From 0fa7013b47217d9f0218bc5c93fc3ffbe921724b Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 4 Sep 2018 02:47:26 +0200 Subject: Add syntax highlighting for Scheme files. --- assets/css/code.css | 33 +++++++++++++++++++++++++++++++++ assets/css/screen.css | 4 ++++ 2 files changed, 37 insertions(+) create mode 100644 assets/css/code.css (limited to 'assets') diff --git a/assets/css/code.css b/assets/css/code.css new file mode 100644 index 0000000..c308845 --- /dev/null +++ b/assets/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; +} diff --git a/assets/css/screen.css b/assets/css/screen.css index 79dd0a3..d26f91e 100644 --- a/assets/css/screen.css +++ b/assets/css/screen.css @@ -151,6 +151,10 @@ table { .multipart.text-x-patch { } +.multipart.scheme { + white-space: pre-wrap; +} + .attachment:before { background-image: url('/img/file.svg'); background-size: 1rem; -- cgit v1.2.3