Hello I have a question about the KTextEditor highlighting.

I am working on a KDE XPath Part where I want to highlight the matching tags of a XPathquery in a KatePart. Therefore I want to highlight a KTextEditor::Range object in a KTextEditor::View object as kdevplatform does it in its duchain highlighting. Since 2 days I am stuck searching for the right method. I have found some hints in this file [1]. For example if I comment out the qmetacall to "applyHighlighting" (currently at line 196 ) the special duchain highlighting of kdevplatform does not work. So i think it has something to do with the "m_highlight" variable.

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.

I don't think that this has something to do with the default katepart highlighting as I can't set any range objects there.

So do you know how I can highlight my own Range in a KTextEditor?

Thanks for your help.

Best,
Daniel Nagy

[1] https://projects.kde.org/projects/extragear/kdevelop/kdevplatform/repository/revisions/master/entry/language/highlighting/codehighlighting.cpp


Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to