about summary refs log tree commit homepage
path: root/lib/PublicInbox/UserContent.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-02-05 05:28:03 +0000
committerEric Wong <e@80x24.org>2019-02-05 10:58:35 +0000
commit8b8577f91109e76d12fcfa55a2e7388f54a41be6 (patch)
tree9912b7fa6a0f057916dc64a47f29a2f0491cda2c /lib/PublicInbox/UserContent.pm
parent7826c91ef37f9b5fb5396e1168d84a6574385915 (diff)
downloadpublic-inbox-8b8577f91109e76d12fcfa55a2e7388f54a41be6.tar.gz
For user documentation regarding CSS; showing users the sample
CSS with comments is probably more helpful than having
standalone documentation on CSS classes.
Diffstat (limited to 'lib/PublicInbox/UserContent.pm')
-rw-r--r--lib/PublicInbox/UserContent.pm16
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/PublicInbox/UserContent.pm b/lib/PublicInbox/UserContent.pm
index df0429c3..468e6cf1 100644
--- a/lib/PublicInbox/UserContent.pm
+++ b/lib/PublicInbox/UserContent.pm
@@ -38,9 +38,9 @@ sub CSS () {
         *.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.
+         * highlight 3.x colors (tested 3.18) for displaying blobs.
+         * 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 */
@@ -48,10 +48,12 @@ sub CSS () {
         .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.com { color:#09f } /* multi-line comment */
+        /* .hl.opt { color:#ccc } */ /* operator */
+        /* .hl.ipl { color:#ccc } */ /* interpolation */
+        /* .hl.lin { color:#ccc } */ /* line-number (unused by public-inbox) */
+
+        /* keyword groups kw[a-z] */
         .hl.kwa { color:#ff0 }
         .hl.kwb { color:#0f0 }
         .hl.kwc { color:#ff0 }