diff --git a/src/resources/pre_template.html b/src/resources/pre_template.html index 379b637a..f2142cc7 100644 --- a/src/resources/pre_template.html +++ b/src/resources/pre_template.html @@ -9,7 +9,6 @@ -
@@ -24,6 +23,11 @@ var updateHtml = function(html) { placeholder.innerHTML = html; + + var codes = document.getElementsByTagName('code'); + for (var i = 0; i < codes.length; ++i) { + hljs.highlightBlock(codes[i]); + } } new QWebChannel(qt.webChannelTransport,