From 603d9ebc517fcf89ab6d2e7845b118aa6b8e9069 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 27 Jan 2019 11:38:42 +0000 Subject: viewvcs: wire up syntax-highlighting for blobs And update 216dark.css to match a color scheme I'm used to; which is fairly minimal and doesn't use all the classes "highlight" provides. --- contrib/css/216dark.css | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'contrib/css') diff --git a/contrib/css/216dark.css b/contrib/css/216dark.css index 2fd85d08..35ef7aa5 100644 --- a/contrib/css/216dark.css +++ b/contrib/css/216dark.css @@ -24,3 +24,23 @@ a:visited { color:#96f } *.del { color:#f0f } *.head { color:#fff } *.hunk { color:#c93 } + +/* + * highlight 3.x colors (tested 3.18) + * this doesn't use most of the colors available (I find too many + * colors overwhelming). So the #ccc default is commented out. + */ +.hl.num { color:#f30 } +.hl.esc { color:#f0f } +.hl.str { color:#f30 } +.hl.pps { color:#f30 } +/* .hl.slc { color:#ccc } */ +.hl.com { color:#09f } +.hl.ppc { color:#f0f } +/* .hl.opt { color:#ccc } */ +/* .hl.ipl { color:#ccc } */ +/* .hl.lin { color:#ccc } */ +.hl.kwa { color:#ff0 } +.hl.kwb { color:#0ff } +.hl.kwc { color:#ff0 } +/* .hl.kwd { color:#ccc } */ -- cgit v1.2.3-24-ge0c7