From 8022208c47674718e81a5c8224ec46636a2b763a Mon Sep 17 00:00:00 2001 From: Eston Bond Date: Wed, 8 Dec 2010 16:35:59 -0800 Subject: [PATCH] Add syntax highlighting to template --- lib/gollum/frontend/public/css/template.css | 24 +++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/lib/gollum/frontend/public/css/template.css b/lib/gollum/frontend/public/css/template.css index e67601bf..a2222e3f 100755 --- a/lib/gollum/frontend/public/css/template.css +++ b/lib/gollum/frontend/public/css/template.css @@ -226,3 +226,27 @@ #template table tr:nth-child(2n) { background-color: #f9f9f9; } + +/* @control syntax */ +#template .highlight { background: #ffffff; } +#template .highlight .c { color: #999988; font-style: italic } +#template .highlight .err { color: #a61717; background-color: #e3d2d2 } +#template .highlight .k { font-weight: bold } +#template .highlight .o { font-weight: bold } +#template .highlight .cm { color: #999988; font-style: italic } +#template .highlight .cp { color: #999999; font-weight: bold } +#template .highlight .c1 { color: #999988; font-style: italic } +#template .highlight .cs { color: #999999; font-weight: bold; font-style: italic } +#template .highlight .gd { color: #000000; background-color: #ffdddd } +#template .highlight .gd .x { color: #000000; background-color: #ffaaaa } +#template .highlight .ge { font-style: italic } +#template .highlight .gr { color: #aa0000 } +#template .highlight .gh { color: #999999 } +#template .highlight .gi { color: #000000; background-color: #ddffdd } +#template .highlight .gi .x { color: #000000; background-color: #aaffaa } +#template .highlight .gc { color: #999; background-color: #EAF2F5 } +#template .highlight .go { color: #888888 } +#template .highlight .gp { color: #555555 } +#template .highlight .gs { font-weight: bold } +#template .highlight .gu { color: #aaaaaa } +#template .highlight .gt { color: #aa0000 }