Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] More colors for syntax highlight

We have similar requirements in our project. I was not able to find a way to extend semantic highlight without creating our own editor.

In our project we ended up creating a forked CDT version that has an extension point to contribute highlight rules (we support contributing rules for foreground semantic highlight, lines background (similar to CDT inactive code background) and nodes to the Syntax Coloring preference page. I'm going to cleanup our implementation and suggest it as a patch to CDT. You can see what we did here -,, etc.

Best regards,


On Oct 19, 2011 6:38 AM, "Sergey Smolov" <ssedai@xxxxxxxxx> wrote:
Hello, List!

As far as I understand, it is possible to use small set of colors for extra words highlighting, because GPPScannerExtensionConfiguration class has only three methods for usage: addKeyword, addMacro and addPreprocessorKeyword. Is it possible to highlight with some extra colors and not to implement own CDT-based editor (with own model, AST and so on)?

Thanks in advance!
Sincerely yours,
Sergey Smolov

cdt-dev mailing list

Back to the top