Hi

just for information.

I came across this post while trying to solve a problem with QSyntaxHighlight which does not seem to provide access to the current QTextBlock; at the moment, I'm trying to implement source-highlighting in Qt4 (and also Qt3) text editor by relying on GNU Source-highlight (http://www.gnu.org/software/src-highlite/), since I'm turning it also into a library; GNU Source-highlight uses its own syntax for language definition files (I don't like XML), which is powerful enough to deal with possible nested states.

I'll take a look at QCodeEdit since it looks like it provides a better QSyntaxHighlighter.

Do you think using GNU Source-highlight might help your editor too?