META-INF.resources.bower_components.google-code-prettify.src.run_prettify.min.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jwebmp-source-prettify Show documentation
Show all versions of jwebmp-source-prettify Show documentation
The JWebSwing implementation for Source Code Prettify
var IN_GLOBAL_SCOPE=false;(function(){var e=window;var a=e.setTimeout;var y=document;var r=y.documentElement;var g=y.head||y.getElementsByTagName("head")[0]||r;function u(D){var n=y.addEventListener;var z=false,C=true,G=n?"addEventListener":"attachEvent",E=n?"removeEventListener":"detachEvent",i=n?"":"on",F=function(H){if(H.type=="readystatechange"&&y.readyState!="complete"){return}(H.type=="load"?e:y)[E](i+H.type,F,false);if(!z&&(z=true)){D.call(e,H.type||H)}},B=function(){try{r.doScroll("left")}catch(H){a(B,50);return}F("poll")};if(y.readyState=="complete"){D.call(e,"lazy")}else{if(y.createEventObject&&r.doScroll){try{C=!e.frameElement}catch(A){}if(C){B()}}y[G](i+"DOMContentLoaded",F,false);y[G](i+"readystatechange",F,false);e[G](i+"load",F,false)}}function d(A){var z=A.length;function i(n){if(n===z){return}var B=y.createElement("link");B.rel="stylesheet";B.type="text/css";if(n+1=0;){var v=b[s];var l=v.src.match(/^[^?#]*\/run_prettify\.js(\?[^#]*)?(?:#.*)?$/);if(l){k=l[1]||"";v.parentNode.removeChild(v);break}}var t=true;var p=[];var w=[];var x=[];k.replace(/[?&]([^&=]+)=([^&]+)/g,function(n,i,z){z=decodeURIComponent(z);i=decodeURIComponent(i);if(i=="autorun"){t=!/^[0fn]/i.test(z)}else{if(i=="lang"){p.push(z)}else{if(i=="skin"){w.push(z)}else{if(i=="callback"){x.push(z)}}}}});var c="https://google-code-prettify.googlecode.com/svn/loader";for(var s=0,q=p.length;s122)){if(!(aN<65||aJ>90)){aI.push([Math.max(65,aJ)|32,Math.min(aN,90)|32])}if(!(aN<97||aJ>122)){aI.push([Math.max(97,aJ)&~32,Math.min(aN,122)&~32])}}}}aI.sort(function(aW,aV){return(aW[0]-aV[0])||(aV[1]-aW[1])});var aL=[];var aR=[];for(var aT=0;aTaU[0]){if(aU[1]+1>aU[0]){aP.push("-")}aP.push(aw(aU[1]))}}aP.push("]");return aP.join("")}function az(aO){var aM=aO.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g"));var aK=aM.length;var aQ=[];for(var aN=0,aP=0;aN=2&&aL==="["){aM[aN]=aA(aJ)}else{if(aL!=="\\"){aM[aN]=aJ.replace(/[a-zA-Z]/g,function(aR){var aS=aR.charCodeAt(0);return"["+String.fromCharCode(aS&~32,aS|32)+"]"})}}}}return aM.join("")}var aD=[];for(var ay=0,ax=aC.length;ay=0;){av[aF.charAt(aH)]=aB}}var aI=aB[1];var aD=""+aI;if(!aJ.hasOwnProperty(aD)){aK.push(aI);aJ[aD]=null}}aK.push(/[\0-\uffff]/);ay=J(aK)})();var aA=aw.length;var az=function(aK){var aC=aK.sourceCode,aB=aK.basePos;var aG=[aB,ag];var aI=0;var aQ=aC.match(ay)||[];var aM={};for(var aH=0,aT=aQ.length;aH=5&&"lang-"===aS.substring(0,5);if(aP&&!(aL&&typeof aL[1]==="string")){aP=false;aS=ak}if(!aP){aM[aJ]=aS}}var aE=aI;aI+=aJ.length;if(!aP){aG.push(aB+aE,aS)}else{var aO=aL[1];var aN=aJ.indexOf(aO);var aF=aN+aO.length;if(aL[2]){aF=aJ.length-aL[2].length;aN=aF-aO.length}var aU=aS.substring(5);ac(aB+aE,aJ.substring(0,aN),az,aG);ac(aB+aE+aN,aO,P(aU,aO),aG);ac(aB+aE+aF,aJ.substring(aF),az,aG)}}aK.decorations=aG};return az}function G(aF){var ax=[],aB=[];if(aF.tripleQuotedStrings){ax.push([ad,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""])}else{if(aF.multiLineStrings){ax.push([ad,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"])}else{ax.push([ad,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"])}}if(aF.verbatimStrings){aB.push([ad,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null])}var aD=aF.hashComments;if(aD){if(aF.cStyleComments){if(aD>1){ax.push([I,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"])}else{ax.push([I,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"])}aB.push([ad,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])}else{ax.push([I,/^#[^\r\n]*/,null,"#"])}}if(aF.cStyleComments){aB.push([I,/^\/\/[^\r\n]*/,null]);aB.push([I,/^\/\*[\s\S]*?(?:\*\/|$)/,null])}var aw=aF.regexLiterals;if(aw){var ay=aw>1?"":"\n\r";var aA=ay?".":"[\\S\\s]";var az=("/(?=[^/*"+ay+"])(?:[^/\\x5B\\x5C"+ay+"]|\\x5C"+aA+"|\\x5B(?:[^\\x5C\\x5D"+ay+"]|\\x5C"+aA+")*(?:\\x5D|$))+/");aB.push(["lang-regex",RegExp("^"+an+"("+az+")")])}var aE=aF.types;if(aE){aB.push([aq,aE])}var aC=(""+aF.keywords).replace(/^ | $/g,"");if(aC.length){aB.push([aa,new RegExp("^(?:"+aC.replace(/[\s,]+/g,"|")+")\\b"),null])}ax.push([ag,/^\s+/,null," \r\n\t\xA0"]);var av="^.[^\\s\\w.$@'\"`/\\\\]*";if(aF.regexLiterals){av+="(?!s*/)"}aB.push([ah,/^@[a-z_$][a-z_$@0-9]*/i,null],[aq,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[ag,/^[a-z_$][a-z_$@0-9]*/i,null],[ah,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[ag,/^\\[\s\S]?/,null],[am,new RegExp(av),null]);return E(ax,aB)}var al=G({keywords:ab,hashComments:true,cStyleComments:true,multiLineStrings:true,regexLiterals:true});function at(ax,aI,aB){var aw=/(?:^|\s)nocode(?:\s|$)/;var aD=/\r\n?|\n/;var aE=ax.ownerDocument;var aH=aE.createElement("li");while(ax.firstChild){aH.appendChild(ax.firstChild)}var ay=[aH];function aG(aO){var aN=aO.nodeType;if(aN==1&&!aw.test(aO.className)){if("br"===aO.nodeName){aF(aO);if(aO.parentNode){aO.parentNode.removeChild(aO)}}else{for(var aQ=aO.firstChild;aQ;aQ=aQ.nextSibling){aG(aQ)}}}else{if((aN==3||aN==4)&&aB){var aP=aO.nodeValue;var aL=aP.match(aD);if(aL){var aK=aP.substring(0,aL.index);aO.nodeValue=aK;var aJ=aP.substring(aL.index+aL[0].length);if(aJ){var aM=aO.parentNode;aM.insertBefore(aE.createTextNode(aJ),aO.nextSibling)}aF(aO);if(!aK){aO.parentNode.removeChild(aO)}}}}}function aF(aM){while(!aM.nextSibling){aM=aM.parentNode;if(!aM){return}}function aK(aN,aT){var aS=aT?aN.cloneNode(false):aN;var aQ=aN.parentNode;if(aQ){var aR=aK(aQ,1);var aP=aN.nextSibling;aR.appendChild(aS);for(var aO=aP;aO;aO=aP){aP=aO.nextSibling;aR.appendChild(aO)}}return aS}var aJ=aK(aM.nextSibling,0);for(var aL;(aL=aJ.parentNode)&&aL.nodeType===1;){aJ=aL}ay.push(aJ)}for(var aA=0;aA=av){aK+=2}if(az>=aS){aD+=2}}}finally{if(aU){aU.style.display=aL}}}var S={};function B(ax,ay){for(var av=ay.length;--av>=0;){var aw=ay[av];if(!S.hasOwnProperty(aw)){S[aw]=ax}else{if(ao.console){console.warn("cannot override language handler %s",aw)}}}}function P(aw,av){if(!(aw&&S.hasOwnProperty(aw))){aw=/^\s*]*(?:>|$)/],[I,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[am,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^