Liferay.Loader.define("fragment-web$codemirror@5.65.2/addon/runmode/colorize",["module","exports","require","../../lib/codemirror","./runmode"],(function(e,o,r){var t,n=void 0;window;t=function(e){"use strict";var o=/^(p|li|div|h\\d|pre|blockquote|td)$/;function textContent(e,r){if(3==e.nodeType)return r.push(e.nodeValue);for(var t=e.firstChild;t;t=t.nextSibling)textContent(t,r),o.test(e.nodeType)&&r.push("\n")}e.colorize=function(o,r){o||(o=document.body.getElementsByTagName("pre"));for(var t=0;t<o.length;++t){var n=o[t],i=n.getAttribute("data-lang")||r;if(i){var d=[];textContent(n,d),n.innerHTML="",e.runMode(d.join(""),i,n),n.className+=" cm-s-default"}}}},"object"==typeof o&&"object"==typeof e?t(r("../../lib/codemirror"),r("./runmode")):"function"==typeof n&&n.amd?n(["../../lib/codemirror","./runmode"],t):t(CodeMirror)}));
//# sourceMappingURL=colorize.js.map