[Qt-creator] SyntaxHighlighting for QML

Filippo Cucchetto 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
https://github.com/filcuc/NimSyntaxHighlighter
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
> https://github.com/filcuc/NimSyntaxHighlighter
> 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-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)
>>
>>
>> https://code.google.com/p/qtedit4/source/browse/#svn%2Ftools%2Fqtsourceview%2Fsrc%2Fqate
>>
>> 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
>> between
>> > 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
>



-- 
Filippo Cucchetto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20150419/d72a3d0f/attachment.html>


More information about the Qt-creator mailing list