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 <[email protected]>: > 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 <[email protected]>: > >> 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 >> <[email protected]> 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 >> > [email protected] >> > http://lists.qt-project.org/mailman/listinfo/qt-creator >> > >> > > > > -- > Filippo Cucchetto > -- Filippo Cucchetto
_______________________________________________ Qt-creator mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/qt-creator
