[Qt-interest] Generic highlighter
Sean Harmer
sean.harmer at maps-technology.com
Fri Nov 12 16:00:39 CET 2010
Hi,
On Friday 12 November 2010 14:16:58 NoRulez wrote:
> But this is not the answer of my question.
>
> The implementation is too deep in the qt creators source, but maybe anybody
> has it already extracted?
I do not know of any stand-alone implementation of this. Having said that, the
implementation in the qt-creator source does not appear to be particularly
tightly coupled to QtCreator at all.
The generic syntax highlighter stuff is all in one dir, namely:
qt-creator/src/plugins/texteditor/generichighlighter
The Highlighter class here simply inherits from TextEditor::SyntaxHighlighter
which is in the parent directory. At a quick glance this seems to just operate
on QTextDocument. So it looks to be fairly simple to extract it.
If you get it to work I am sure that others would also be interested.
Good luck,
Sean
More information about the Qt-interest-old
mailing list