User forums > Using Code::Blocks
Syntax highlight
(1/1)
ben79:
Hey there, I want that my editor will automatically highlight common keywords like "printf", "stderr", "malloc" etc in a color of my choice.
I tried manually adding those keywords to the "Keywords" list that's located in "Setting>Editor>Syntax highlighting" and it did worked, but I couldn't chose a specific color in which the added keywords will be highlighted (it just highlighted all of them in blue).
Much thanks to everyone that try to help,
Ben.
zxd:
Setting>Editor>Syntax highlighting>keywords, switch to the set 2 (secondary keywords and identifiers), and add "printf", "malloc", etc. to the set.Then, edit the syntax highlighting of user keywords. That's it.
Navigation
[0] Message Index
Go to full version