'use strict';(function(a){"object"==typeof exports&&"object"==typeof module?a(require("../../lib/codemirror"),require("./runmode")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","./runmode"],a):a(CodeMirror)})(function(a){function f(b,a){if(3==b.nodeType)return a.push(b.nodeValue);for(var c=b.firstChild;c;c=c.nextSibling)f(c,a),e.test(b.nodeType)&&a.push("\n")}var e=/^(p|li|div|h\\d|pre|blockquote|td)$/;a.colorize=function(b,e){b||(b=document.body.getElementsByTagName("pre"));
for(var c=0;c<b.length;++c){var d=b[c],g=d.getAttribute("data-lang")||e;if(g){var h=[];f(d,h);d.innerHTML="";a.runMode(h.join(""),g,d);d.className+=" cm-s-default"}}}});
