diff options
author | Eric Wong <e@80x24.org> | 2019-01-29 22:31:26 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-01-29 22:55:02 +0000 |
commit | 8b473d081c3eaccce2efd8458e663ae355eae7b3 (patch) | |
tree | 384e7f3ada0461c02809b11b5021fdc0ae97b15d /lib/PublicInbox/UserContent.pm | |
parent | 91766bc4fe3e009c5c322ee3e3abd32cdb8ab01a (diff) | |
download | public-inbox-8b473d081c3eaccce2efd8458e663ae355eae7b3.tar.gz |
Overkill, but "highlight" supports single-line comments (slc) independently of multi-line comments (com); but we'll use the same color for that. We'll also use #0f0 instead of #0ff for "kwb" (keyword class "b") since blue shades are prevalent in <a> links and comments, while green was unused.
Diffstat (limited to 'lib/PublicInbox/UserContent.pm')
-rw-r--r-- | lib/PublicInbox/UserContent.pm | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/PublicInbox/UserContent.pm b/lib/PublicInbox/UserContent.pm index 514cd952..df0429c3 100644 --- a/lib/PublicInbox/UserContent.pm +++ b/lib/PublicInbox/UserContent.pm @@ -42,18 +42,18 @@ sub CSS () { * 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.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.ppc { color:#f0f } /* .hl.opt { color:#ccc } */ /* .hl.ipl { color:#ccc } */ /* .hl.lin { color:#ccc } */ .hl.kwa { color:#ff0 } - .hl.kwb { color:#0ff } + .hl.kwb { color:#0f0 } .hl.kwc { color:#ff0 } /* .hl.kwd { color:#ccc } */ _ |