Have multiple comment colors/edit the test color coding

Is it possible to create custom text colors in the IDE? Particularly having more than one comment color. For example, I like to block out my debugging lines like so:

// DEBUGGING SERIALPRINTS ----------------------------------------------
//Serial.println(valCheck); // print read value
// DEBUGGING SERIALPRINTS ----------------------------------------------

Is there any way to highlight the surrounding pairs for the above lines?
Secondly, is it possible to make the IDE color code variables like VScode does?

Google Arduino keywords.txt

Brought up a github repository written in python that generates a keywords.txt file. Is this what you wanted me to find?

Hi @falcormoor. Which version of Arduino IDE are you using (e.g., "2.0.1")? The version is shown on the window title bar and also in the Help > About dialog.

I ask for this information because I want to give you the appropriate instructions for the IDE version you are using.

Hey @ptillisch! My version is 2.0.4

OK. The "keywords.txt" custom keyword highlighting system mentioned by LarryD is only for Arduino IDE 1.x.

However, it does use the same powerful general purpose C++ syntax highlighting system as is built into VS Code:

You might be interested in the information shared here about the possibility of installing 3rd party VS Code themes or even your own custom themes in Arduino IDE 2.x:

This is perfect! Thanks!

You are welcome. I'm glad if I was able to be of assistance.

Regards,
Per

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.