User forums > Using Code::Blocks
How do I turn off bare std keyword highlight when I don't have using namespace?
(1/1)
EuphoricCatface:
Hello, I make my C++ code without using namespace std
However, Code::Blocks seems to highlight std keywords when I don't have "using namespace std" nor "std::" appended.
I did google beforehand, but I didn't find any related question. It got me quite surprised, because afaik more people don't use "using namespace std"? Or maybe I quite suck at googling... :P
Anyhow, how do I disable this behavior?
oBFusCATed:
What exactly do you want to disable?
I guess you want to disable the STL keywords.
This is done here: Settings -> Editor -> Syntax highlight -> C++ -> Keywords -> Set -> 2 -> Delete what you don't like here.
EuphoricCatface:
Thank you for your answer. I have seen your reply but did not have a chance to try it out.
My environment was not working for other reason :P
Anyways. I assume, roughly, I could erase "std" from set 2 and put "std::" for any other keywords in the set?
Would that make, say, "std::cin" highlighted but not "cin" alone?
oBFusCATed:
No this won't going to work. Not sure if it will work if you put std::cin there.
Navigation
[0] Message Index
Go to full version