[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: KTextEditor Highlighting custom area
From: Milian Wolff <mail () milianw ! de>
Date: 2012-02-16 14:35:19
Message-ID: 9652366.aVSadRF3On () minime
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Thursday 16 February 2012 13:00:40 Dominik Haumann wrote:
> Hi Daniel,
>
> let's move this discussion to kwrite-devel@kde.org.
>
> On Thursday, 16. February 2012 04:01:21 Daniel Nagy wrote:
> > Therefore I want to highlight a KTextEditor::Range object in a
> > KTextEditor::View object as kdevplatform does it in its duchain
> > highlighting.
> > [...]
> > It seems to me that there are two different highlighting layers.
> > First the one that katepart itself provides and your custom one, but I
> > am not sure about that.
>
> Right, KatePart internally does syntax highlighting based on the xml-files.
> This has nothing to do with Range highlighting.
>
> Additionally to that, i.e. as "overlay", applications (KDevelop, Kate) but
> also other code parts like search&replace can add ranges with special
> highlighting.
>
> If you have a view pointer, i.e. KTextEditor::View* view, then you can do
> the hightlighting as follows:
>
> KTextEditor::MovingInterface* if =
> qobject_cast<KTextEditor::MovingInterface*>(view->document());
>
> if (!if) return;
This wont compile, "if" is a cpp-keyword :P
cheers
--
Milian Wolff
mail@milianw.de
http://milianw.de
["signature.asc" (application/pgp-signature)]
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic