Presently processing-specific variables like width, height, frameRate, PI etc. aren't highlighted (and neither are built-in functions like setup(), keyPressed() etc), which can be confusing to beginners (I'm currently teaching someone to code using Processing so I've been thinking a lot about this kind of stuff lately).
Here's a comparison image (Processing editor on top, VSCode on bottom - note setup(), width and PI):

I have no idea how .tmlanguage files work but I would imagine it could be as simple as manually adding them to the dictionary somehow?
Presently processing-specific variables like width, height, frameRate, PI etc. aren't highlighted (and neither are built-in functions like setup(), keyPressed() etc), which can be confusing to beginners (I'm currently teaching someone to code using Processing so I've been thinking a lot about this kind of stuff lately).
Here's a comparison image (Processing editor on top, VSCode on bottom - note setup(), width and PI):

I have no idea how .tmlanguage files work but I would imagine it could be as simple as manually adding them to the dictionary somehow?