linx-server/static/js/bin_hljs.js

19 lines
520 B
JavaScript
Raw Normal View History

// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
2015-10-04 02:58:56 -04:00
hljs.tabReplace = ' ';
hljs.initHighlightingOnLoad();
2016-06-15 04:17:25 -04: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 00:22:24 -04:00
var ncode = document.getElementById("normal-code");
ncode.className = "linenumbers";
// @license-end