Hi togehter,
does anyone know how can I change the color of functions which was created by my own?
What is the keyword therfore in the theme.txt?
Hi togehter,
does anyone know how can I change the color of functions which was created by my own?
What is the keyword therfore in the theme.txt?
You would first need to define the function names as keywords. The best way to do that is by creating a dummy Arduino library, which serves only as a place for you to define keywords.
The folder structure would look like this:
{sketchbook folder}
|_ libraries
|MyKeywords
| MyKeywords.h
|_ keywords.txt
MyKeywords.h can be an empty file. It only needs to be there to make it a valid library.
Open keywords.txt in a text editor.
Now you need to define each of your custom keywords, carefully following the format documented here:
https://arduino.github.io/arduino-cli/latest/library-specification/
The most easy thing to miss is that you need to use a true tab to separate the keyword from the keyword identifier. NOT SPACES!!! Your text editor program may be configured so that when you press the Tab button, spaces are inserted in place of a true tab. If you do that, the keyword won't be recognized.
Save keywords.txt and restart the IDE. You should now see your custom keywords colored.
If you want to learn how you can customize the keywords coloration, there is documentation here: