template: Enable syntax highlighting using highlight.js

This commit is contained in:
Albert S. 2022-11-08 08:48:19 +01:00
parent fbfe5510a1
commit a71c3da129
2 changed files with 5 additions and 1 deletions

View File

@ -5,8 +5,10 @@
<li style="font-size: 10pt">Powered by qswiki</li>
</ul>
</footer>
<script src="{qswiki:config:highlightjspath}"></script>
<script>
{qswiki:include:js_session_refresh}
hljs.highlightAll();
</script>
</body>
</html>
</html>

View File

@ -3,6 +3,8 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="{qswiki:config:csspath}">
<link rel="stylesheet" href="{qswiki:config:highlightjsstyle}">
<title>{qswiki:var:title}</title>
<body>
<nav>