about summary refs log tree commit diff
path: root/templates/thread.html
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-05-18T21·28+0200
committerVincent Ambo <github@tazj.in>2018-05-18T22·52+0200
commitcda66c4cd3bf2f6f7a466a9e2246c95a5305bfa9 (patch)
treecdebb4dbfcf9825cffbee7468e916bbcfa85665c /templates/thread.html
parentab3f7d888ad9de74d6161ae56deeb4cc396a89b5 (diff)
feat(templates): Add syntax highlighting for code via highlight.js
Includes a static distribution of highlight.js for syntax
highlighting. A sane set of languages has been chosen.
Diffstat (limited to 'templates/thread.html')
-rw-r--r--templates/thread.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/thread.html b/templates/thread.html
index 906f21ee6166..957a39d8cb34 100644
--- a/templates/thread.html
+++ b/templates/thread.html
@@ -9,6 +9,9 @@
     <!-- Custom CSS additions -->
     <style>img { max-width:100%; height:auto; }</style>
     <title>Converse: {{ title | safe }}</title>
+    <!-- Syntax highlighting for code -->
+    <link rel="stylesheet" href="/static/highlight.css">
+    <script src="/static/highlight.js"></script>
   </head>
   <body>
     <header>