User forums > Using Code::Blocks

syntax highlighting in C/C++

(1/2) > >>

pomelo:
hi,

I want to know if there is any way to set special colors to functions, macro definitions, and typedefed types in C/C++.

thanks in advance.

MortenMacFly:

--- Quote from: pomelo on August 30, 2011, 10:51:46 am ---I want to know if there is any way to set special colors to functions, macro definitions, and typedefed types in C/C++.

--- End quote ---
Inspect the lexer settings for the language of your choice in the editor options.

pomelo:

--- Quote from: MortenMacFly on August 31, 2011, 08:43:06 am ---Inspect the lexer settings for the language of your choice in the editor options.

--- End quote ---
In Syntax Highlighting settings' panel there is a predefined highlighting mode for C/C++, but the predefined mode does not handle colors for functions, macro definitions... and I failed to find the way to add them to the predefined list. What is more, I did add a new color theme, with different name besides default, but it seems still impossible to modify predefined lexer settings.
Any detailed instructions? Thanks a lot.

oBFusCATed:
What you want is semantic highlighting (hope the term is correct), which C::B doesn't support.

Something like this: http://zwabel.wordpress.com/2009/01/08/c-ide-evolution-from-syntax-highlighting-to-semantic-highlighting/

pomelo:
Thanks oBFusCATed! So there is no way to use semantic highlighting in CB?

Navigation

[0] Message Index

[#] Next page

Go to full version