diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2023-09-24 23:36:38 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2023-09-24 23:36:38 +0200 |
commit | dfdb70ca28be64f2899932cbd360532f1f520d2f (patch) | |
tree | daf8bb763d32ac6fe46a8f5c915fc8ec6de3c810 /haunt.scm | |
parent | 70b83bcb1848aa8de5533f409a36ec5ceab72dae (diff) |
Add client-side syntax highlighting.
Temporary until I can hook up guile-syntax-highlighting for static
highlighting.
Diffstat (limited to 'haunt.scm')
-rw-r--r-- | haunt.scm | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -191,11 +191,17 @@ in parentheses." (media "screen") (type "text/css") (href "/css/screen.css"))) + (link (@ (rel "stylesheet") + (media "screen") + (type "text/css") + (href "/css/hlstyles/monokai.min.css"))) (link (@ (rel "shortcut icon") (href "https://elephly.net/favicon.ico"))) (script (@ (type "text/javascript") (src "/js/deobfuscate.js"))) + (script (@ (type "text/javascript") (src "/js/highlight.min.js"))) (script (@ (type "text/javascript") (src "/js/hyphenator/Hyphenator.js"))) - (script (@ (type "text/javascript")) "Hyphenator.run();")) + (script (@ (type "text/javascript")) "Hyphenator.run();") + (script (@ (type "text/javascript")) "hljs.highlightAll();")) (body (@ (id "top")) (div (@ (id "index")) (a (@ (href "/") (title "show index")) |