User forums > General (but related to Code::Blocks)
C code coloring problem
ordak:
--- Quote from: oBFusCATed on April 01, 2017, 11:23:21 am ---What do you mean by newly defined types? Is this some newer C standard?
--- End quote ---
As I mentioned previously in the first post, I mean the types that are defined using "typedef" specifier. For example see:
http://en.cppreference.com/w/cpp/language/typedef
oBFusCATed:
So you want to do:
--- Code: ---typedef sometype mytype;
--- End code ---
And then if you use mytype you want it different colour?
This is called semantic highlighting and it is not supported by C::B.
ordak:
--- Quote from: oBFusCATed on April 01, 2017, 06:01:17 pm ---So you want to do:
--- Code: ---typedef sometype mytype;
--- End code ---
And then if you use mytype you want it different colour?
This is called semantic highlighting and it is not supported by C::B.
--- End quote ---
I want "mytype" to be colored as "sometype" , which is blue in my Linux PC. Is not there a plugin for this "semantic highlighting" ?
ordak:
Ok, I added those as keywords, manually and they are colored correctly now:
"Settings->Editor->Syntax highlighting->Keywords"
Select appreciate "Set" and add the keywords.
Navigation
[0] Message Index
[*] Previous page
Go to full version