When using IDE 1.X, I had added keywords for AVR registers (PORTB, SPDR, TCCR0B etc.etc.) - so that these would change color when written to the code. I was able to manipulate this by simply adding the wanted keywords to the lib\keywords.txt file. I was not able to find a similar way to do this with 2.0. Is it possible?
Hi @dagzandstuff. Unfortunately custom keywords are not supported in Arduino IDE 2.x. It uses an industry standard C++ keyword highlighting system so it's pretty smart about highlighting in general, but there isn't currently any way to customize the behavior short of diving into modifying a fairly complex "textmate grammar":
Ok, thanks.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.