On Thursday 16 February 2012 13:00:40 Dominik Haumann wrote: > Hi Daniel, > > let's move this discussion to kwrite-de...@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 m...@milianw.de http://milianw.de
signature.asc
Description: This is a digitally signed message part.
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<