Colour additional functions within an editor theme


#1

I like the way the editor theme in RStudio colours functions like if, function, and stop. Is it possible to extend this syntax highlighting so that certain additional words (like abort) are coloured the same way? (I’m using Monokai if that’s important.)


#2

Thanks for the feature request! It’s not currently possible to extend the syntax highlight rules used by RStudio, but you might consider filing this as a feature request at https://github.com/rstudio/rstudio/issues.


#3

No problem! Lodged as #2042.


#4

Maybe you already know this: you can highlight also function calls by ticking the checkbox:

Tools–>Global Options–>Code–>Display–>Highlight R function calls