Dark themes for writing

[This article was first published on Hyndsight » R, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

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

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.

Screenshot from 2015-03-18 13:04:50

RStudio

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.

Screenshot from 2015-03-18 13:09:02

TeXstudio

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.

Screenshot from 2015-03-18 13:11:22

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).

To leave a comment for the author, please follow the link and comment on their blog: Hyndsight » R.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)