Sha256: df928c0233d5784d3cc38cbd9e4405764a5e9b5ce298f244c1a49c7ecccfc8b7
Contents?: true
Size: 573 Bytes
Versions: 25
Compression:
Stored size: 573 Bytes
Contents
function codemirrorHighlight(target_id) { modes = CodeMirror.listModes(); for (var x = 0; x < modes.length; x++){ if (modes[x] != 'null'){ target_div = document.getElementById(target_id); if (target_div != null){ tags = target_div.getElementsByTagName(modes[x]); for (var i = 0; i < tags.length; i++) { output = tags[i]; output.className += ' cm-s-default'; output.style.cssText = "white-space: pre;"; CodeMirror.runMode(tags[i].innerHTML, modes[x], output); } } } } }
Version data entries
25 entries across 25 versions & 1 rubygems