[prev in list] [next in list] [prev in thread] [next in thread]
List: kwrite-devel
Subject: Re: KSyntaxHighlighting meta data
From: "Dr.-Ing. Christoph Cullmann" <cullmann () absint ! com>
Date: 2018-08-02 10:20:58
Message-ID: 1685015411.70032.1533205258979.JavaMail.zimbra () absint ! com
[Download RAW message or body]
Hi,
<I cut out the old mail, too long ;=)>
I think having accessors for things one really needs will make sense.
I already discovered yesterday evening we have some "indenter" and "style" accessors,
that works now again.
The same is there to get e.g. indentationBasedFolding/emptyLines/...
I don't think exposing some highlighting internals like keyword list (by name or all) \
is that bad, given we can't change that anyways without breaking all highlighting \
files around on the world.
And having an API at least avoids the hassle of reparsing the XML stuff, which really \
is not what one wants.
I think one needs to expose some more internals for other things KTextEditor \
requires, like getting the current active context to lookup the keywords active for \
it.
(I don't think we need to expose the context, but one will need to expose at least \
things like: keywords for current position, in which syntax definition we are here, \
...)
Greetings
Christoph
--
----------------------------- Dr.-Ing. Christoph Cullmann ---------
AbsInt Angewandte Informatik GmbH Email: cullmann@AbsInt.com
Science Park 1 Tel: +49-681-38360-22
66123 Saarbrücken Fax: +49-681-38360-20
GERMANY WWW: http://www.AbsInt.com
--------------------------------------------------------------------
Geschäftsführung: Dr.-Ing. Christian Ferdinand
Eingetragen im Handelsregister des Amtsgerichts Saarbrücken, HRB 11234
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic