diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2024-02-25 12:45:55 +0000 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2024-02-25 12:51:16 +0000 |
commit | aee52406b4409c1b3cfc717ed777688ab568138f (patch) | |
tree | f764a03dce7fbd1514bef4116901990122d0cf18 /usr/share | |
parent | 95adecc3706c7e6b1c7871c2c978fb831f5124de (diff) |
cgit syntax highlight using mycgit.css
mycgit.css import cgit.css and highlight.css. Because cgit.css is not a pacman backup file and it will be overwritten once cgit update. I can also update highlight.css automatically via pacman hook or `upd`. Also, I think `highlight` not using `--inline-css` maybe is a better way performance wise and more elegant (less messy generated html source code).
Diffstat (limited to 'usr/share')
-rw-r--r-- | usr/share/webapps/cgit/highlight.css | 24 | ||||
-rw-r--r-- | usr/share/webapps/cgit/mycgit.css | 2 |
2 files changed, 26 insertions, 0 deletions
diff --git a/usr/share/webapps/cgit/highlight.css b/usr/share/webapps/cgit/highlight.css new file mode 100644 index 00000000..bbce7f95 --- /dev/null +++ b/usr/share/webapps/cgit/highlight.css @@ -0,0 +1,24 @@ +/* Style definition file generated by highlight 4.10, http://www.andre-simon.de/ */ +/* highlight theme: Kwrite Editor */ +body.hl { background-color:#e0eaee; } +pre.hl { color:#000000; background-color:#e0eaee; font-size:10pt; font-family:'Courier New',monospace; white-space: pre-wrap; } +.hl.num { color:#b07e00; } +.hl.esc { color:#ff00ff; } +.hl.sng { color:#bf0303; } +.hl.pps { color:#818100; } +.hl.slc { color:#838183; font-style:italic; } +.hl.com { color:#838183; font-style:italic; } +.hl.ppc { color:#008200; } +.hl.opt { color:#000000; } +.hl.ipl { color:#0057ae; } +.hl.lin { color:#555555; user-select: none; } +.hl.hvr { cursor:help; } +.hl.erm { color:#ff0000; font-weight:bold; border:solid 1px red; margin-left: 3em; } +.hl.err { color:#ff0000; font-weight:bold; } +.hl.kwa { color:#000000; font-weight:bold; } +.hl.kwb { color:#0057ae; } +.hl.kwc { color:#000000; } +.hl.kwd { color:#010181; } +.hl.kwe { color:#0d5bc3; } +.hl.kwf { color:#750dc3; } + diff --git a/usr/share/webapps/cgit/mycgit.css b/usr/share/webapps/cgit/mycgit.css new file mode 100644 index 00000000..ed2ecd88 --- /dev/null +++ b/usr/share/webapps/cgit/mycgit.css @@ -0,0 +1,2 @@ +@import "cgit.css"; +@import "highlight.css"; |