Dark themes for writing
I spend much of my day sitting in front of a screen, coding or writing. To limit the strain on my eyes, I use a dark theme as much as possible. That is, I write with light colored text on a dark background. I don’t know why this is not the default in more software as it makes a big difference after a few hours of writing.
Most of the time, I am writing using either Sublime Text, RStudio or TeXstudio. Each of them can be set to use a dark theme with syntax coloring to highlight structural features in the text.
Sublime Text is a wonderful editor and I am spending more of my time in it than anywhere else. The default color scheme is very well chosen – Monokai. I use that, coupled with the Numix theme, as shown in the screenshot below.
RStudio now has a few dark themes available, including Monokai (although it is not the default). Go to Tools, Global Options, Appearance, and select the Monokai theme (or whichever other one takes your fancy). Here is a screenshot of RStudio as I use it.
I tend to use Sublime Text for LaTeX editing these days, but occasionally I might open TeXStudio. Unfortunately the default theme is not dark, and it is very difficult to edit the color scheme. From the menus, choose Options, Configure TeXstudio, Syntax Highlighting. Then you have to edit each color individually.
It is possible to save the scheme in a profile file, and then load it on another computer. Several dark themes have been proposed on TeX.stackexchange.com. I edited one of them to create my own theme shown below.
Here is the profile file that implements the above scheme. You should be able to load it in TeXstudio (after which you will need to re-start TeXstudio to see the effect).comments powered by Disqus