Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: ben79 on June 09, 2023, 10:29:38 pm
-
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.
-
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.