[Qt-creator] SyntaxHighlighting for QML

filippocucchetto at gmail.com filippocucchetto at gmail.com
Mon Apr 13 21:27:30 CEST 2015


> I fail to understand what you mean with a bridge. What do you want to
> achieve, in more detail?

Basically i would like to reuse the QtCreator syntax highlighting in Qml
for highlight some code.
Currently, for what i know, the correct way is subclassing the 
QSyntaxHighlighter and use the QDocument API.
I didn't digged inside the QtCreator codebase, but i understood that
currently QtCreator can reuse the syntax highlighting files from the Kate 
editor. 
However i don't know how this is done. Does QtCreator use itself a subclass
of QSyntaxHighlighter? or has it a custom mechanism? 
I possible to extract part of this for plugging in my own application?
If yes, which are the high level steps that i should follow?


Thanks,
F.



More information about the Qt-creator mailing list