Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started by: ordak on March 30, 2017, 07:20:04 am
-
Hi,
using code::blocks svn build in Linux, I get the following mis-colored (black instead of blue):
* noreturn defined in <stdnoreturn.h>
* using typedef, the newly defined types
-
code highlightening is static at the moment... So this is not parsed automatically. If you need it you can set (add keywords) it in the setting somewhere
If you have time and will you are free to send patches and help to improve codeblocks ;)
-
* noreturn defined in <stdnoreturn.h>
So, "noreturn" should be shown in blue color? Your post is a bit hard to read. ;)
-
* noreturn defined in <stdnoreturn.h>
So, "noreturn" should be shown in blue color? Your post is a bit hard to read. ;)
I expect "noreturn" and "the newly defined types" to be shown in blue rather than black. Just as types like "int", "bool" and so on.
-
What do you mean by newly defined types? Is this some newer C standard?
-
What do you mean by newly defined types? Is this some newer C standard?
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
-
So you want to do:
And then if you use mytype you want it different colour?
This is called semantic highlighting and it is not supported by C::B.
-
So you want to do:
And then if you use mytype you want it different colour?
This is called semantic highlighting and it is not supported by C::B.
I want "mytype" to be colored as "sometype" , which is blue in my Linux PC. Is not there a plugin for this "semantic highlighting" ?
-
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.