Skip to content

Instantly share code, notes, and snippets.

@Mottie
Created November 8, 2014 17:19
Show Gist options
  • Save Mottie/b02135bc070a5e4d2451 to your computer and use it in GitHub Desktop.
Save Mottie/b02135bc070a5e4d2451 to your computer and use it in GitHub Desktop.
Pygments theme comparison: GitHub vs. GItHub Dark Solarized Theme vs Pygments default
/* GitHub Pygments 11/8/2014 */ /* GitHub-Dark Solarized Dark theme http://git.io/9P8J1A */ /* http://pygments.org/_static/pygments.css */
.syntax pre .hll { background-color: #ffffcc }
.highlight {background:#fff} .highlight, .highlight pre, .highlight table { background-color: #002b36 !important; color: #93a1a1 !important; } .syntax pre { background: #f0f0f0; }
.highlight .c, .highlight .c { color: #586e75 !important; } /* Comment */ .syntax pre .c { color: #60a0b0; font-style: italic } /* Comment */
.highlight .cm, .highlight .cm { color: #586e75 !important; } /* Comment.Multiline */ .syntax pre .cm { color: #60a0b0; font-style: italic } /* Comment.Multiline */
.highlight .c1 {color:#998;font-style:italic} .highlight .c1 { color: #586e75 !important; } /* Comment.Single */ .syntax pre .c1 { color: #60a0b0; font-style: italic } /* Comment.Single */
.highlight .err {color:#a61717;background-color:#e3d2d2} .highlight .err { color: #dc322f !important; background-color: #fdf6e3 !important; } /* Error */ .syntax pre .err { border: 1px solid #FF0000 } /* Error */
.highlight .cp, .highlight .cp { color: #859900 !important; } /* Comment.Preproc */ .syntax pre .cp { color: #007020 } /* Comment.Preproc */
.highlight .cs, .highlight .cs { color: #859900 !important; } /* Comment.Special */ .syntax pre .cs { color: #60a0b0; background-color: #fff0f0 } /* Comment.Special */
.highlight .cp .h {color:#999;font-weight:bold}
/* .highlight .cs {font-style:italic} added twice */
.highlight .gd {color:#000;background-color:#fdd} .highlight .gd { color: #2aa198 !important; } /* Generic.Deleted */ .syntax pre .gd { color: #A00000 } /* Generic.Deleted */
.highlight .gd .x {color:#000;background-color:#faa}
.highlight .ge {font-style:italic} .highlight .ge { color: #93a1a1 !important; font-style: italic !important; } /* Generic.Emph */ .syntax pre .ge { font-style: italic } /* Generic.Emph */
.highlight .gh {color:#999} .highlight .gh { color: #cb4b16 !important; } /* Generic.Heading */ .syntax pre .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.highlight .gi {color:#000;background-color:#dfd} .highlight .gi { color: #859900 !important; } /* Generic.Inserted */ .syntax pre .gi { color: #00A000 } /* Generic.Inserted */
.highlight .gi .x {color:#000;background-color:#afa}
.highlight .go {color:#888} .highlight .go { color: #93a1a1 !important; } /* Generic.Output */ .syntax pre .go { color: #888888 } /* Generic.Output */
.highlight .gp {color:#555} .highlight .gp { color: #93a1a1 !important; } /* Generic.Prompt */ .syntax pre .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
.highlight .gs {font-weight:bold} .highlight .gs { color: #93a1a1 !important; font-weight: bold !important; } /* Generic.Strong */ .syntax pre .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu {color:#800080;font-weight:bold} .highlight .gu { color: #cb4b16 !important; } /* Generic.Subheading */ .syntax pre .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
.highlight .gt {color:#aa0000} .highlight .gt { color: #93a1a1 !important; } /* Generic.Traceback */ .syntax pre .gt { color: #0044DD } /* Generic.Traceback */
.highlight .gr {color:#aa0000} .highlight .gr { color: #dc322f !important; } /* Generic.Error */ .syntax pre .gr { color: #FF0000 } /* Generic.Error */
.highlight .h {color:#333;font-style:normal;font-weight:normal}
.highlight .n {color:#333} .highlight .n { color: #93a1a1 !important; } /* Name */
.highlight .mf, .highlight .mf { color: #2aa198 !important; } /* Literal.Number.Float */ .syntax pre .mf { color: #40a070 } /* Literal.Number.Float */
.highlight .mh, .highlight .mh { color: #2aa198 !important; } /* Literal.Number.Hex */ .syntax pre .mh { color: #40a070 } /* Literal.Number.Hex */
.highlight .mi, .highlight .mi { color: #2aa198 !important; } /* Literal.Number.Integer */ .syntax pre .mi { color: #40a070 } /* Literal.Number.Integer */
.highlight .mo, .highlight .mo { color: #2aa198 !important; } /* Literal.Number.Oct */ .syntax pre .mo { color: #40a070 } /* Literal.Number.Oct */
.highlight .il, .highlight .il { color: #2aa198 !important; } /* Literal.Number.Integer.Long */ .syntax pre .il { color: #40a070 } /* Literal.Number.Integer.Long */
.highlight .m {color:#945277} .highlight .m { color: #2aa198 !important; } /* Literal.Number */ .syntax pre .m { color: #40a070 } /* Literal.Number */
.highlight .s, .highlight .s { color: #2aa198 !important; } /* Literal.String */ .syntax pre .s { color: #4070a0 } /* Literal.String */
.highlight .sb, .highlight .sb { color: #586e75 !important; } /* Literal.String.Backtick */ .syntax pre .sb { color: #4070a0 } /* Literal.String.Backtick */
.highlight .sc, .highlight .sc { color: #2aa198 !important; } /* Literal.String.Char */ .syntax pre .sc { color: #4070a0 } /* Literal.String.Char */
.highlight .sd, .highlight .sd { color: #93a1a1 !important; } /* Literal.String.Doc */ .syntax pre .sd { color: #4070a0; font-style: italic } /* Literal.String.Doc */
.highlight .s2, .highlight .s2 { color: #2aa198 !important; } /* Literal.String.Double */ .syntax pre .s2 { color: #4070a0 } /* Literal.String.Double */
.highlight .se, .highlight .se { color: #cb4b16 !important; } /* Literal.String.Escape */ .syntax pre .se { color: #4070a0; font-weight: bold } /* Literal.String.Escape */
.highlight .sh, .highlight .sh { color: #93a1a1 !important; } /* Literal.String.Heredoc */ .syntax pre .sh { color: #4070a0 } /* Literal.String.Heredoc */
.highlight .si, .highlight .si { color: #2aa198 !important; } /* Literal.String.Interpol */ .syntax pre .si { color: #70a0d0; font-style: italic } /* Literal.String.Interpol */
.highlight .sx, .highlight .sx { color: #2aa198 !important; } /* Literal.String.Other */ .syntax pre .sx { color: #c65d09 } /* Literal.String.Other */
.highlight .s1 {color:#df5000} .highlight .s1 { color: #2aa198 !important; } /* Literal.String.Single */ .syntax pre .s1 { color: #4070a0 } /* Literal.String.Single */
.highlight .kc, .highlight .kc { color: #cb4b16 !important; } /* Keyword.Constant */ .syntax pre .kc { color: #007020; font-weight: bold } /* Keyword.Constant */
.highlight .kd, .highlight .kd { color: #268bd2 !important; } /* Keyword.Declaration */ .syntax pre .kd { color: #007020; font-weight: bold } /* Keyword.Declaration */
.highlight .kn, .highlight .kn { color: #859900 !important; } /* Keyword.Namespace */ .syntax pre .kn { color: #007020; font-weight: bold } /* Keyword.Namespace */
.highlight .kp, .highlight .kp { color: #859900 !important; } /* Keyword.Pseudo */ .syntax pre .kp { color: #007020 } /* Keyword.Pseudo */
.highlight .kr, .highlight .kr { color: #268bd2 !important; } /* Keyword.Reserved */ .syntax pre .kr { color: #007020; font-weight: bold } /* Keyword.Reserved */
.highlight .kt, .highlight .kt { color: #dc322f !important; } /* Keyword.Type */ .syntax pre .kt { color: #902000 } /* Keyword.Type */
.highlight .k, .highlight .k { color: #859900 !important; } /* Keyword */ .syntax pre .k { color: #007020; font-weight: bold } /* Keyword */
.highlight .o {font-weight:bold} .highlight .o { color: #859900 !important; } /* Operator */ .syntax pre .o { color: #666666 } /* Operator */
/* .highlight .kt {color:#458} added twice */
.highlight .na, .highlight .na { color: #93a1a1 !important; } /* Name.Attribute */ .syntax pre .na { color: #4070a0 } /* Name.Attribute */
.highlight .nv, .highlight .nv { color: #268bd2 !important; } /* Name.Variable */ .syntax pre .nv { color: #bb60d5 } /* Name.Variable */
.highlight .vc, .highlight .vc { color: #268bd2 !important; } /* Name.Variable.Class */ .syntax pre .vc { color: #bb60d5 } /* Name.Variable.Class */
.highlight .vg, .highlight .vg { color: #268bd2 !important; } /* Name.Variable.Global */ .syntax pre .vg { color: #bb60d5 } /* Name.Variable.Global */
.highlight .vi {color:#008080} .highlight .vi { color: #268bd2 !important; } /* Name.Variable.Instance */ .syntax pre .vi { color: #bb60d5 } /* Name.Variable.Instance */
.highlight .nb {color:#0086B3} .highlight .nb { color: #B58900 !important; } /* Name.Builtin */ .syntax pre .nb { color: #007020 } /* Name.Builtin */
.highlight .nc {color:#458;font-weight:bold} .highlight .nc { color: #268bd2 !important; } /* Name.Class */ .syntax pre .nc { color: #0e84b5; font-weight: bold } /* Name.Class */
.highlight .no {color:#094e99} .highlight .no { color: #cb4b16 !important; } /* Name.Constant */ .syntax pre .no { color: #60add5 } /* Name.Constant */
.highlight .ni {color:#800080} .highlight .ni { color: #cb4b16 !important; } /* Name.Entity */ .syntax pre .ni { color: #d55537; font-weight: bold } /* Name.Entity */
.highlight .ne {color:#990000;font-weight:bold} .highlight .ne { color: #cb4b16 !important; } /* Name.Exception */ .syntax pre .ne { color: #007020 } /* Name.Exception */
.highlight .nf {color:#945277;font-weight:bold} .highlight .nf { color: #268bd2 !important; } /* Name.Function */ .syntax pre .nf { color: #06287e } /* Name.Function */
.highlight .nn {color:#555} .highlight .nn { color: #93a1a1 !important; } /* Name.Namespace */ .syntax pre .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
.highlight .nt {color:#000080} .highlight .nt { color: #268bd2 !important; } /* Name.Tag */ .syntax pre .nt { color: #062873; font-weight: bold } /* Name.Tag */
.highlight .ow {font-weight:bold} .highlight .ow { color: #859900 !important; } /* Operator.Word */ .syntax pre .ow { color: #007020; font-weight: bold } /* Operator.Word */
.highlight .w {color:#bbb} .highlight .w { color: #93a1a1 !important; } /* Text.Whitespace */ .syntax pre .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .sr {color:#017936} .highlight .sr { color: #dc322f !important; } /* Literal.String.Regex */ .syntax pre .sr { color: #235388 } /* Literal.String.Regex */
.highlight .ss {color:#8b467f} .highlight .ss { color: #2aa198 !important; } /* Literal.String.Symbol */ .syntax pre .ss { color: #517918 } /* Literal.String.Symbol */
.highlight .bp {color:#999} .highlight .bp { color: #268bd2 !important; } /* Name.Builtin.Pseudo */ .syntax pre .bp { color: #007020 } /* Name.Builtin.Pseudo */
.highlight .nd { color: #268bd2 !important; } /* Name.Decorator */ .syntax pre .nd { color: #555555; font-weight: bold } /* Name.Decorator */
.highlight .nl { color: #93a1a1 !important; } /* Name.Label */ .syntax pre .nl { color: #002070; font-weight: bold } /* Name.Label */
.syntax pre .mb { color: #40a070 } /* Literal.Number.Bin */
.highlight .g { color: #93a1a1 !important; } /* Generic */
.highlight .l { color: #93a1a1 !important; } /* Literal */
.highlight .x { color: #cb4b16 !important; } /* Other */
.highlight .p { color: #93a1a1 !important; } /* Punctuation */
.highlight .ld { color: #93a1a1 !important; } /* Literal.Date */
.highlight .nx { color: #93a1a1 !important; } /* Name.Other */
.highlight .py { color: #93a1a1 !important; } /* Name.Property */
.highlight .gc {color:#999;background-color:#EAF2F5}
.type-csharp .highlight .k {color:#0000FF}
.type-csharp .highlight .kt {color:#0000FF}
.type-csharp .highlight .nf {color:#000000;font-weight:normal}
.type-csharp .highlight .nc {color:#2B91AF}
.type-csharp .highlight .nn {color:#000000}
.type-csharp .highlight .s {color:#A31515}
.type-csharp .highlight .sc {color:#A31515}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment