PDA

View Full Version : Syntax Highlighter sample is wrong



kib2
8th November 2007, 17:31
Hi,

I just saw a problem with my highlighter, and in fact I Qt4 highlighter's demo as the same one:

Try entering a string inside a comment inside de Demo, like this for example:

// something here "quotations there" and problem appears !

and you'll see 2 colors. The problem seems more complicated than it seems.

Thanks.

elcuco
8th November 2007, 19:47
yes, the example supplied there is a very trivial one.

For more complete implementation, see QDevelop, HaiQ or even QCodeEdit.

For the first 2, use google.
For the last one (QCodeEdit) see this thread: http://www.qtcentre.org/forum/f-qt-software-16/t-qcodeedit-3178-new.html

kib2
8th November 2007, 21:24
Thanks elcuco,

nice peace of codes, but maybe too much for a simple example.