Sorry for missing the point that you were using Qt3..

But hmm, it seems that QSyntaxHighlighter wasn't introduced until in Qt 3.1.0?