Hello everybody,
I have just created two classes (CPPHighlighter and CSharpHighlighter) that inherits from QSyntaxHighlighter to provide colored Source Code on a TextEdit.
I have also created a menu to switch between them. However when I switch the code is not highluighte in the new language but keeps old highlighting. Any suggestions on how to fix this (could be that highlightblock is called only when text changes). CPPHighlighter is almost the same as in the QSyntaxHiglighter Demo.
Thanks

Reply With Quote

