News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Syntax highlight

Started by ben79, June 09, 2023, 10:29:38 PM

Previous topic - Next topic

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.