Created
October 9, 2012 11:19
-
-
Save rhizoome/3858061 to your computer and use it in GitHub Desktop.
Solarized theme for IPython code mirror editor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from IPython.core.display import HTML | |
def solarized(): | |
"""Solarized code mirror theme.""" | |
html = """ | |
<style type="text/css"> | |
.cm-s-ipython { background-color: #002b36; color: #839496; } | |
.cm-s-ipython span.cm-keyword {color: #859900; font-weight: bold;} | |
.cm-s-ipython span.cm-number {color: #b58900;} | |
.cm-s-ipython span.cm-operator {color: #268bd2; font-weight: bold;} | |
.cm-s-ipython span.cm-meta {color: #cb4b16;} | |
.cm-s-ipython span.cm-comment {color: #586e75; font-style: italic;} | |
.cm-s-ipython span.cm-string {color: #2aa198;} | |
.cm-s-ipython span.cm-error {color: #dc322f;} | |
.cm-s-ipython span.cm-builtin {color: #cb4b16;} | |
.cm-s-ipython span.cm-variable {color: #839496;} | |
</style>""" | |
return HTML(html) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment