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