var StopIteration={toString:function(){return"StopIteration"}},Editor={},indentUnit=2;
(function(){function j(a){for(var b="",d=0;d<indentUnit;d++)b+=" ";a=a.replace(/\t/g,b).replace(/\u00a0/g," ").replace(/\r\n?/g,"\n");var e=0,c=[];a=a.split("\n");for(b=0;b<a.length;b++){b!=0&&c.push("\n");c.push(a[b])}return{next:function(){if(e<c.length)return c[e++];else throw StopIteration;}}}window.highlightText=function(a,b,d){d=(d||Editor.Parser).make(stringStream(j(a)));a=[];if(b.nodeType==1){var e=b;b=function(h){for(var f=0;f<h.length;f++)e.appendChild(h[f]);e.appendChild(document.createElement("BR"))}}try{for(;;){var c=
d.next();if(c.value=="\n"){b(a);a=[]}else{var g=document.createElement("SPAN");g.className=c.style;g.appendChild(document.createTextNode(c.value));a.push(g)}}}catch(i){if(i!=StopIteration)throw i;}a.length&&b(a)}})();