linx-server/static/js/bin_hljs.js

19 lines
520 B
JavaScript
Raw Permalink Normal View History

// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
2015-10-04 08:58:56 +02:00
hljs.tabReplace = ' ';
hljs.initHighlightingOnLoad();
2016-06-15 10:17:25 +02:00
var codeb = document.getElementById("codeb");
var lines = codeb.innerHTML.split("\n");
codeb.innerHTML = "";
for (var i = 0; i < lines.length; i++) {
var div = document.createElement("div");
div.innerHTML = lines[i] + "\n";
codeb.appendChild(div);
};
2016-06-18 06:22:24 +02:00
var ncode = document.getElementById("normal-code");
ncode.className = "linenumbers";
// @license-end