diff options
author | Ludovic Courtès <ludo@gnu.org> | 2017-04-14 11:34:47 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2017-04-14 11:45:28 +0200 |
commit | b0a1c906278ec6fd40f68bb27328e181bc3e4b5f (patch) | |
tree | 55e6ed4a782f2731a4670bc131cd1f61e02ac8f1 /website/static/base/css/code.css | |
parent | 510b0bcc56f15b79c32c7c46ddc2b56afe6c4455 (diff) | |
download | guix-artwork-b0a1c906278ec6fd40f68bb27328e181bc3e4b5f.tar guix-artwork-b0a1c906278ec6fd40f68bb27328e181bc3e4b5f.tar.gz |
website: news: Highlight Scheme syntax.
* website/www/news.scm (%default-special-prefixes, lex-scheme/guix): New
variables.
(syntax-highlight): New procedure.
(post->sxml): Use it.
* website/static/base/css/code.css: New file.
* website/static/base/css/news.css: Import it.
* website/posts/running-services-in-containers.md: Use ```scheme for the
Scheme snippet.
Diffstat (limited to 'website/static/base/css/code.css')
-rw-r--r-- | website/static/base/css/code.css | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/website/static/base/css/code.css b/website/static/base/css/code.css new file mode 100644 index 0000000..c308845 --- /dev/null +++ b/website/static/base/css/code.css @@ -0,0 +1,33 @@ +/* Syntax highlighting code, by David Thompson, borrowed + from: + https://git.dthompson.us/blog.git/blob_plain/refs/heads/haunt-migration:/css/dthompson.css + David Thompson gives permission for this to be GPLv3+ and CC BY-SA 4.0 + + Modified significantly since. +*/ + + +.syntax-special, .syntax-element { + color: #856; + font-weight: bold; +} + +.syntax-symbol { + color: #423; +} + +.syntax-string { + color: #484; +} + +.syntax-keyword, .syntax-attribute { + color: #921; +} + +.syntax-comment { + color: #666; +} + +.syntax-open, .syntax-close { + color: #688; +} |