[Qt-creator] SyntaxHighlighting for QML
filippocucchetto at gmail.com
Sun Apr 19 16:04:11 CEST 2015
I created a simple syntax highlighter from scratch. You can find it here
however the performance is slow. I don't think that the parsing code is the
problem. It's seems more related to the SyntaxHighlighter code. Any advice?
2015-04-19 16:03 GMT+02:00 Filippo Cucchetto <filippocucchetto at gmail.com>:
> I created a simple syntax highlighter from scratch. You can find it here
> however the performance is slow. I don't think that the parsing code is
> the problem. It's seems more related to the SyntaxHighlighter code. Any
> 2015-04-16 7:40 GMT+02:00 Diego Iastrubni <diegoiast at gmail.com>:
>> The syntax highlighter from QtCreator is not trivial. But not too hard
>> to rip out.
>> This code is based on a (very) old version of QtCreator, but it does
>> work on my system (qt4 works, qt5 has some visual glitches on Linux,
>> Mac and Windows seem to work)
>> On Tue, Apr 7, 2015 at 1:10 AM, Filippo Cucchetto
>> <filippocucchetto at gmail.com> wrote:
>> > Hi,
>> > i know that QML expose the QDocument in its interface. This allows
>> writing a
>> > custom syntax highlighter by subclassing QSyntaxHighlighter.
>> > But this feels to me like reinventing the wheel. Is there a bridge
>> > the syntax highlighter used by QtCreator and QSyntaxHighlighter?
>> > --
>> > Filippo Cucchetto
>> > _______________________________________________
>> > Qt-creator mailing list
>> > Qt-creator at qt-project.org
>> > http://lists.qt-project.org/mailman/listinfo/qt-creator
> Filippo Cucchetto
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Qt-creator