diff options
| Commit | c81e2f9ba3c23be418c4d44a0242c65d48dc6c4b (patch) | |
|---|---|---|
| Author | 2025-11-15 12:08:12 +0200 | |
| Committer | 2025-11-15 12:08:12 +0200 | |
| Files | 602779dae2716864163b1abecf491e470886057f /src | |
| syndamia.com-c81e2f9ba3c23be418c4d44a0242c65d48dc6c4b.tar syndamia.com-c81e2f9ba3c23be418c4d44a0242c65d48dc6c4b.tar.gz syndamia.com-c81e2f9ba3c23be418c4d44a0242c65d48dc6c4b.zip | ||
| Parent | 044e4f1eef1c70fb0b20aea435ef5513de0becf0 (diff) | |
feat!: Implement syntax highlighting, based on another tool
1 files changed, 19 insertions, 35 deletions
| -rw-r--r-- | src/styles.css | 54 |
diff --git a/src/styles.css b/src/styles.css index 133afe2..747ec72 100644 --- a/src/styles.css +++ b/src/styles.css @@ -37,25 +37,15 @@ --hic-orange: #af3a03; --hi-comment: var(--hic-gray); - --hi-const: var(--hic-purple); --hi-string: var(--hic-green); - --hi-char: var(--hic-purple); + --hi-interp: var(--hic-purple); --hi-number: var(--hic-purple); - --hi-bool: var(--hic-purple); - --hi-float: var(--hic-purple); - --hi-identifier: var(--hic-blue); --hi-function: var(--hic-green); - --hi-statement: var(--hic-red); - --hi-conditional: var(--hic-red); - --hi-repeat: var(--hic-red); - --hi-operator: var(--hi-fg); - --hi-keyword: var(--hic-red); /* Label and Exception are keywords */ + --hi-operator: var(--hic-orange); + --hi-keyword: var(--hic-red); --hi-preproc: var(--hic-aqua); --hi-type: var(--hic-yellow); - --hi-storageclass: var(--hic-orange); - --hi-structure: var(--hic-aqua); - --hi-typedef: var(--hic-aqua); - --hi-ignore: var(--hi-fg); + --hi-escape: var(--hic-orange); } /*## Global ##*/ @@ -467,27 +457,21 @@ table pre > code { } dd code { font-size: 0.8em; } -.HI-comment { color: var(--hi-comment); } -.HI-const { color: var(--hi-const); } -.HI-string { color: var(--hi-string); } -.HI-char { color: var(--hi-char); } -.HI-number { color: var(--hi-number); } -.HI-bool { color: var(--hi-bool); } -.HI-float { color: var(--hi-float); } -.HI-identifier { color: var(--hi-identifier); } -.HI-function { color: var(--hi-function); } -.HI-statement { color: var(--hi-statement); } -.HI-conditional { color: var(--hi-conditional); } -.HI-repeat { color: var(--hi-repeat); } -.HI-operator { color: var(--hi-operator); } -.HI-keyword { color: var(--hi-keyword); /* Label and Exception are keywords */ } -.HI-preproc { color: var(--hi-preproc); } -.HI-type { color: var(--hi-type); } -.HI-storageclass { color: var(--hi-storageclass); } -.HI-structure { color: var(--hi-structure); } -.HI-typedef { color: var(--hi-typedef); } -.HI-ignore { color: var(--hi-ignore); } -.HI-comment * { color: inherit; } /* If text inside a comment is matched, don't show it */ +.hl.erm { color:#ff0000; font-weight:bold; border:solid 1px red; margin-left: 3em; } +.hl.err { color:#ff0000; font-weight:bold; } +.hl.kwf { color:#750dc3; } + +.hl.slc, .hl.com { color: var(--hi-comment); } +.hl.pps, .hl.sng { color: var(--hi-string); } +.hl.kwb, .hl.kwc { color: var(--hi-type); } +.hl.num { color: var(--hi-number); } +.hl.ipl { color: var(--hi-interp); } +.hl.kwd { color: var(--hi-function); font-weight: bold; } +.hl.kwa { color: var(--hi-keyword); } +.hl.opt { color: var(--hi-operator); } +.hl.ppc { color: var(--hi-preproc); } +.hl.esc { color: var(--hi-escape); } +.hl.kwe { color: inherit; } /*### Wrapper > Article > table ###*/ |