From 36dd5b755a4a969d41bdff47e3e8de8d26fb8b0f Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 7 Jun 2014 19:59:13 +0100 Subject: Configure syntax highlighting with solarized CSS --- config.toml | 1 + static/css/syntax.css | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 static/css/syntax.css diff --git a/config.toml b/config.toml index c8faf13..e295169 100644 --- a/config.toml +++ b/config.toml @@ -2,6 +2,7 @@ baseurl = "/" languageCode = "en-gb" title = "Alan Pearce" theme = "hyde" +pygmentsuseclasses = true [Params] Description = "…now has a website" diff --git a/static/css/syntax.css b/static/css/syntax.css new file mode 100644 index 0000000..a48dea9 --- /dev/null +++ b/static/css/syntax.css @@ -0,0 +1,69 @@ +.hll { background-color: #ffffcc } +.c { color: #93a1a1; font-style: italic } /* Comment */ +.err { color: #dc322f } /* Error */ +.g { color: #657b83 } /* Generic */ +.k { color: #859900 } /* Keyword */ +.l { color: #657b83 } /* Literal */ +.n { color: #586e75 } /* Name */ +.o { color: #657b83 } /* Operator */ +.x { color: #657b83 } /* Other */ +.p { color: #657b83 } /* Punctuation */ +.cm { color: #93a1a1; font-style: italic } /* Comment.Multiline */ +.cp { color: #93a1a1; font-style: italic } /* Comment.Preproc */ +.c1 { color: #93a1a1; font-style: italic } /* Comment.Single */ +.cs { color: #93a1a1; font-style: italic } /* Comment.Special */ +.gd { color: #657b83 } /* Generic.Deleted */ +.ge { color: #657b83 } /* Generic.Emph */ +.gr { color: #657b83 } /* Generic.Error */ +.gh { color: #657b83 } /* Generic.Heading */ +.gi { color: #657b83 } /* Generic.Inserted */ +.go { color: #657b83 } /* Generic.Output */ +.gp { color: #657b83 } /* Generic.Prompt */ +.gs { color: #657b83 } /* Generic.Strong */ +.gu { color: #657b83 } /* Generic.Subheading */ +.gt { color: #657b83 } /* Generic.Traceback */ +.kc { color: #859900 } /* Keyword.Constant */ +.kd { color: #859900 } /* Keyword.Declaration */ +.kn { color: #cb4b16 } /* Keyword.Namespace */ +.kp { color: #cb4b16 } /* Keyword.Pseudo */ +.kr { color: #859900 } /* Keyword.Reserved */ +.kt { color: #859900 } /* Keyword.Type */ +.ld { color: #657b83 } /* Literal.Date */ +.m { color: #2aa198 } /* Literal.Number */ +.s { color: #2aa198 } /* Literal.String */ +.na { color: #657b83 } /* Name.Attribute */ +.nb { color: #268bd2 } /* Name.Builtin */ +.nc { color: #268bd2 } /* Name.Class */ +.no { color: #b58900 } /* Name.Constant */ +.nd { color: #cb4b16 } /* Name.Decorator */ +.ni { color: #cb4b16 } /* Name.Entity */ +.ne { color: #cb4b16 } /* Name.Exception */ +.nf { color: #268bd2 } /* Name.Function */ +.nl { color: #657b83 } /* Name.Label */ +.nn { color: #b58900 } /* Name.Namespace */ +.nx { color: #657b83 } /* Name.Other */ +.py { color: #268bd2 } /* Name.Property */ +.nt { color: #859900 } /* Name.Tag */ +.nv { color: #cb4b16 } /* Name.Variable */ +.ow { color: #859900 } /* Operator.Word */ +.w { color: #fdf6e3 } /* Text.Whitespace */ +.mf { color: #2aa198 } /* Literal.Number.Float */ +.mh { color: #2aa198 } /* Literal.Number.Hex */ +.mi { color: #2aa198 } /* Literal.Number.Integer */ +.mo { color: #2aa198 } /* Literal.Number.Oct */ +.sb { color: #2aa198 } /* Literal.String.Backtick */ +.sc { color: #2aa198 } /* Literal.String.Char */ +.sd { color: #2aa198 } /* Literal.String.Doc */ +.s2 { color: #2aa198 } /* Literal.String.Double */ +.se { color: #cb4b16 } /* Literal.String.Escape */ +.sh { color: #2aa198 } /* Literal.String.Heredoc */ +.si { color: #cb4b16 } /* Literal.String.Interpol */ +.sx { color: #2aa198 } /* Literal.String.Other */ +.sr { color: #2aa198 } /* Literal.String.Regex */ +.s1 { color: #2aa198 } /* Literal.String.Single */ +.ss { color: #2aa198 } /* Literal.String.Symbol */ +.bp { color: #268bd2; font-weight: bold } /* Name.Builtin.Pseudo */ +.vc { color: #268bd2 } /* Name.Variable.Class */ +.vg { color: #268bd2 } /* Name.Variable.Global */ +.vi { color: #268bd2 } /* Name.Variable.Instance */ +.il { color: #2aa198 } /* Literal.Number.Integer.Long */ -- cgit 1.4.1