RStudio has a tutorial . Although this does not apply to your question about coloring variables, I changed the selection of matching parentheses in my subject so that they are more visible. Here's how:
Select a theme from this theme editor and save it on your computer as a .tmTheme file. Add a theme to RStudio. RStudio automatically creates a .rstheme file from this. I found the rstheme file in my Users/Eric/Documents/.R/rstudio/themes (on a Windows machine). Open the file in Notepad ++ (or in your favorite text editor) and find the .ace entry corresponding to the one you want to change (for me, in particular, .ace_bracket from the RStudio tutorial that I mentioned earlier). This will have an rgba value similar to the following: background-color: rgba(238, 252, 81, 0.8); Note that the last value is the alpha (transparency) value and should be between 0 and 1. The values I use give me a bright bright yellow that is easy to see.
source share