I just installed Code Blocks on Linux Mint and loaded some C++ files from an old Visual Studio project. I noticed that Code Blocks colours some of my function names such as "copy" and "insert" in green, why is that?
Asked
Active
Viewed 1,080 times
0
-
This thread: http://stackoverflow.com/questions/18467369/does-codeblocks-reserve-names-other-than-c-keywords talks about "user keywords" which are highlighted in green. – ebyrob Mar 31 '16 at 18:19
-
Likely because it knows about standard functions `std::copy` and `std::container::insert`. – SergeyA Mar 31 '16 at 18:22
-
I'm voting to close this question as off-topic because it is not related to programming – Jean-Baptiste Yunès Mar 31 '16 at 18:32
-
Fair enough, but I don't want to use the std library, except maybe for cout and then I just place the "std::" infront. – gornvix Mar 31 '16 at 18:33
-
Since when was naming functions not a programming related topic? – gornvix Mar 31 '16 at 18:34
-
@tyebillion This is not about function naming but rather about one editor/IDEs choice of syntax highlighting. Did you see my answer? – Jesper Juhl Mar 31 '16 at 18:43
2 Answers
4
That's just syntax highlighting at work. Every IDE or editor does it its own way (or not at all). Most allow you to customize what gets coloured and in what colour etc.

Jesper Juhl
- 30,449
- 3
- 47
- 70