]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/UserContent.pm
css/216dark: add comments and tweak highlight colors
[public-inbox.git] / lib / PublicInbox / UserContent.pm
index b34ebf91b0caa9649bdf071180bd69fea5049126..df0429c38f759c08f56488beebb722c7fa2b88d4 100644 (file)
@@ -36,6 +36,26 @@ sub CSS () {
        *.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 } /* number */
+       .hl.esc { color:#f0f } /* escape character */
+       .hl.str { color:#f30 } /* string */
+       .hl.ppc { color:#f0f } /* preprocessor */
+       .hl.pps { color:#f30 } /* preprocessor string */
+       .hl.slc { color:#09f } /* single-line comment */
+       .hl.com { color:#09f }
+       /* .hl.opt { color:#ccc } */
+       /* .hl.ipl { color:#ccc } */
+       /* .hl.lin { color:#ccc } */
+       .hl.kwa { color:#ff0 }
+       .hl.kwb { color:#0f0 }
+       .hl.kwc { color:#ff0 }
+       /* .hl.kwd { color:#ccc } */
 _
 }
 # end of auto-updated sub