CodeMirror.runMode=function(e,r,t,o){var a=CodeMirror.getMode(CodeMirror.defaults,r);if(1==t.nodeType){var n=o&&o.tabSize||CodeMirror.defaults.tabSize,d=t,i=0;d.innerHTML="",t=function(e,r){if("\n"==e)return d.appendChild(document.createElement("br")),void(i=0);for(var t="",o=0;;){var a=e.indexOf("\t",o);if(-1==a){t+=e.slice(o),i+=e.length-o;break}i+=a-o,t+=e.slice(o,a);var c=n-i%n;i+=c;for(var l=0;l<c;++l)t+=" ";o=a+1}if(r){var s=d.appendChild(document.createElement("span"));s.className="cm-"+r.replace(/ +/g," cm-"),s.appendChild(document.createTextNode(t))}else d.appendChild(document.createTextNode(t))}}for(var c=CodeMirror.splitLines(e),l=CodeMirror.startState(a),s=0,f=c.length;s<f;++s){s&&t("\n");for(var p=new CodeMirror.StringStream(c[s]);!p.eol();){var u=a.token(p,l);t(p.current(),u,s,p.start),p.start=p.pos}}};