diff options
author | Vincent Ambo <tazjin@gmail.com> | 2018-05-18T21·28+0200 |
---|---|---|
committer | Vincent Ambo <github@tazj.in> | 2018-05-18T22·52+0200 |
commit | cda66c4cd3bf2f6f7a466a9e2246c95a5305bfa9 (patch) | |
tree | cdebb4dbfcf9825cffbee7468e916bbcfa85665c /templates | |
parent | ab3f7d888ad9de74d6161ae56deeb4cc396a89b5 (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')
-rw-r--r-- | templates/thread.html | 3 |
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> |