[Qt-interest] Stacking / Multiple QSyntaxHighlighter on one document?
Diego Iastrubni
diegoiast at gmail.com
Mon Jun 6 10:18:09 CEST 2011
> Sure.
> But, one of the highlighters installs its own QTextBlockUserData object
> I want to use it unchanged ( http://srchiliteqt.sourceforge.net/ ).
> Well, I don't see any possibility to intercept the
> QTextBlock::setUserData() ...
>
>>
>> BTW: for parenthesis use set/getExtraSelections
>> http://doc.qt.nokia.com/main-snapshot/qplaintextedit.html#setExtraSelections
Those Italian guy are always making problems... (Hi Lorenzo! you are
Italian... right..?). I am sure he can fix this is his library without
too much problems.
On the other hand... If you are bored, I managed to de-couple the
syntax highlighter form QtCreator in my application. Not trivial yet,
as I did not make the full fork() yet, but usable. See
http://code.google.com/p/qtedit4/source/browse/tools/qtsourceview/demos/demo6/demo6.cpp
More information about the Qt-interest-old
mailing list