Seditio Source
Root |
./othercms/Cotonti-0.6.25/plugins/chili/js/recipes.js
ChiliBook.recipeLoading=false;ChiliBook.recipes["php.js"]={_name:"php",_case:true,_main:{all:{_match:/[\w\W]*/,_replace:function(c){var g=String.fromCharCode(0);var f=[];var e=this;var a=c.replace(/<\?[^?]*\?+(?:[^>][^?]*\?+)*>/g,function(i){f.push(e.x(i,"/block/php_1"));return g});var h=a.replace(/^[^?]*\?+(?:[^>][^?]*\?+)*>|<\?[\w\W]*$/g,function(i){f.push(e.x(i,"/block/php_2"));return g});if(f.length){var b=this.x(h,"html");var d=0;return b.replace(new RegExp(g,"g"),function(){return f[d++]})}else{return this.x(c,"/php")}}}},block:{php_1:{_match:/(<\?(?:php\b)?)([^?]*\?+(?:[^>][^?]*\?+)*>)/,_replace:function(b,a,c){return"<span class='start'>"+this.x(a)+"</span>"+this.x(c.replace(/\?>$/,""),"/php")+"<span class='end'>"+this.x("?>")+"</span>"},_style:{start:"color: red; font-weight: bold",end:"color: red;"}},php_2:{_match:/([^?]*\?+(?:[^>][^?]*\?+)*>)|(<\?(?:php\b)?)([\w\W]*)/,_replace:function(b,c,d,a){if(d){return"<span class='start'>"+this.x(d)+"</span>"+this.x(a,"/php")}else{return this.x(c.replace(/\?>$/,""),"/php")+"<span class='end'>"+this.x("?>")+"</span>"}},_style:{start:"color: red; font-weight: bold",end:"color: red;"}}},php:{mlcom:{_match:/\/\*[^*]*\*+([^\/][^*]*\*+)*\//,_style:"color: gray;"},com:{_match:/(?:\/\/.*)|(?:[^\\]\#.*)/,_style:"color: green;"},string1:{_match:/\'[^\'\\]*(?:\\.[^\'\\]*)*\'/,_style:"color: purple;"},string2:{_match:/\"[^\"\\]*(?:\\.[^\"\\]*)*\"/,_style:"color: fuchsia;"},value:{_match:/\b(?:[Nn][Uu][Ll][Ll]|[Tt][Rr][Uu][Ee]|[Ff][Aa][Ll][Ss][Ee])\b/,_style:"color: gray; font-weight: bold;"},number:{_match:/\b[+-]?(\d*\.?\d+|\d+\.?\d*)([eE][+-]?\d+)?\b/,_style:"color: red;"},const1:{_match:/\b(?:DEFAULT_INCLUDE_PATH|E_(?:ALL|CO(?:MPILE_(?:ERROR|WARNING)|RE_(?:ERROR|WARNING))|ERROR|NOTICE|PARSE|STRICT|USER_(?:ERROR|NOTICE|WARNING)|WARNING)|P(?:EAR_(?:EXTENSION_DIR|INSTALL_DIR)|HP_(?:BINDIR|CONFIG_FILE_(?:PATH|SCAN_DIR)|DATADIR|E(?:OL|XTENSION_DIR)|INT_(?:MAX|SIZE)|L(?:IBDIR|OCALSTATEDIR)|O(?:S|UTPUT_HANDLER_(?:CONT|END|START))|PREFIX|S(?:API|HLIB_SUFFIX|YSCONFDIR)|VERSION))|__COMPILER_HALT_OFFSET__)\b/,_style:"color: red;"},const2:{_match:/\b(?:A(?:B(?:DAY_(?:1|2|3|4|5|6|7)|MON_(?:1(?:0|1|2|)|2|3|4|5|6|7|8|9))|LT_DIGITS|M_STR|SSERT_(?:ACTIVE|BAIL|CALLBACK|QUIET_EVAL|WARNING))|C(?:ASE_(?:LOWER|UPPER)|HAR_MAX|O(?:DESET|NNECTION_(?:ABORTED|NORMAL|TIMEOUT)|UNT_(?:NORMAL|RECURSIVE))|R(?:EDITS_(?:ALL|DOCS|FULLPAGE|G(?:ENERAL|ROUP)|MODULES|QA|SAPI)|NCYSTR|YPT_(?:BLOWFISH|EXT_DES|MD5|S(?:ALT_LENGTH|TD_DES)))|URRENCY_SYMBOL)|D(?:AY_(?:1|2|3|4|5|6|7)|ECIMAL_POINT|IRECTORY_SEPARATOR|_(?:FMT|T_FMT))|E(?:NT_(?:COMPAT|NOQUOTES|QUOTES)|RA(?:_(?:D_(?:FMT|T_FMT)|T_FMT|YEAR)|)|XTR_(?:IF_EXISTS|OVERWRITE|PREFIX_(?:ALL|I(?:F_EXISTS|NVALID)|SAME)|SKIP))|FRAC_DIGITS|GROUPING|HTML_(?:ENTITIES|SPECIALCHARS)|IN(?:FO_(?:ALL|C(?:ONFIGURATION|REDITS)|ENVIRONMENT|GENERAL|LICENSE|MODULES|VARIABLES)|I_(?:ALL|PERDIR|SYSTEM|USER)|T_(?:CURR_SYMBOL|FRAC_DIGITS))|L(?:C_(?:ALL|C(?:OLLATE|TYPE)|M(?:ESSAGES|ONETARY)|NUMERIC|TIME)|O(?:CK_(?:EX|NB|SH|UN)|G_(?:A(?:LERT|UTH(?:PRIV|))|C(?:ONS|R(?:IT|ON))|D(?:AEMON|EBUG)|E(?:MERG|RR)|INFO|KERN|L(?:OCAL(?:0|1|2|3|4|5|6|7)|PR)|MAIL|N(?:DELAY|EWS|O(?:TICE|WAIT))|ODELAY|P(?:ERROR|ID)|SYSLOG|U(?:SER|UCP)|WARNING)))|M(?:ON_(?:1(?:0|1|2|)|2|3|4|5|6|7|8|9|DECIMAL_POINT|GROUPING|THOUSANDS_SEP)|_(?:1_PI|2_(?:PI|SQRTPI)|E|L(?:N(?:10|2)|OG(?:10E|2E))|PI(?:_(?:2|4)|)|SQRT(?:1_2|2)))|N(?:EGATIVE_SIGN|O(?:EXPR|STR)|_(?:CS_PRECEDES|S(?:EP_BY_SPACE|IGN_POSN)))|P(?:ATH(?:INFO_(?:BASENAME|DIRNAME|EXTENSION)|_SEPARATOR)|M_STR|OSITIVE_SIGN|_(?:CS_PRECEDES|S(?:EP_BY_SPACE|IGN_POSN)))|RADIXCHAR|S(?:EEK_(?:CUR|END|SET)|ORT_(?:ASC|DESC|NUMERIC|REGULAR|STRING)|TR_PAD_(?:BOTH|LEFT|RIGHT))|T(?:HOUS(?:ANDS_SEP|EP)|_FMT(?:_AMPM|))|YES(?:EXPR|STR))\b/,_style:"color: red;"},global:{_match:/(?:\$GLOBALS|\$_COOKIE|\$_ENV|\$_FILES|\$_GET|\$_POST|\$_REQUEST|\$_SERVER|\$_SESSION|\$php_errormsg)\b/,_style:"color: red;"},keyword:{_match:/\b(?:__CLASS__|__FILE__|__FUNCTION__|__LINE__|__METHOD__|abstract|and|array|as|break|case|catch|cfunction|class|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|eval|exception|exit|extends|extends|final|for|foreach|function|global|if|implements|include|include_once|interface|isset|list|new|old_function|or|php_user_filter|print|private|protected|public|require|require_once|return|static|switch|this|throw|try|unset|use|var|while|xor)\b/,_style:"color: navy; font-weight: bold;"},variable:{_match:/\$(\w+)/,_replace:'<span class="keyword">$</span><span class="variable">$1</span>',_style:"color: #4040c2;"},heredoc:{_match:/(\<\<\<\s*)(\w+)((?:(?!\2).*\n)+)(\2)\b/,_replace:'<span class="keyword">$1</span><span class="string1">$2</span><span class="string2">$3</span><span class="string1">$4</span>'}}};ChiliBook.recipes["html.js"]={_name:"html",_case:false,_main:{doctype:{_match:/<!DOCTYPE\b[\w\W]*?>/,_style:"color: #CC6600;"},ie_style:{_match:/(<!--\[[^\]]*\]>)([\w\W]*?)(<!\[[^\]]*\]-->)/,_replace:function(b,a,c,d){return"<span class='ie_style'>"+this.x(a)+"</span>"+this.x(c,"//style")+"<span class='ie_style'>"+this.x(d)+"</span>"},_style:"color: DarkSlateGray; font-weight: bold;"},comment:{_match:/<!--[\w\W]*?-->/,_style:"color: #4040c2;"},script:{_match:/(<script\s+[^>]*>)([\w\W]*?)(<\/script\s*>)/,_replace:function(b,a,c,d){return this.x(a,"//tag_start")+this.x(c,"js")+this.x(d,"//tag_end")}},style:{_match:/(<style\s+[^>]*>)([\w\W]*?)(<\/style\s*>)/,_replace:function(b,a,c,d){return this.x(a,"//tag_start")+this.x(c,"css")+this.x(d,"//tag_end")}},tag_start:{_match:/(<\w+)((?:[?%]>|[\w\W])*?)(\/>|>)/,_replace:function(b,a,c,d){return"<span class='tag_start'>"+this.x(a)+"</span>"+this.x(c,"/tag_attrs")+"<span class='tag_start'>"+this.x(d)+"</span>"},_style:"color: navy; font-weight: bold;"},tag_end:{_match:/<\/\w+\s*>|\/>/,_style:"color: navy;"},entity:{_match:/&\w+?;/,_style:"color: blue;"}},tag_attrs:{attr:{_match:/(\W*?)([\w-]+)(\s*=\s*)((?:\'[^\']*(?:\\.[^\']*)*\')|(?:\"[^\"]*(?:\\.[^\"]*)*\"))/,_replace:"$1<span class='attr_name'>$2</span>$3<span class='attr_value'>$4</span>",_style:{attr_name:"color: green;",attr_value:"color: maroon;"}}}};ChiliBook.recipes["js.js"]={_name:"js",_case:true,_main:{ml_comment:{_match:/\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\//,_style:"color: gray;"},sl_comment:{_match:/\/\/.*/,_style:"color: green;"},string:{_match:/(?:\'[^\'\\\n]*(?:\\.[^\'\\\n]*)*\')|(?:\"[^\"\\\n]*(?:\\.[^\"\\\n]*)*\")/,_style:"color: teal;"},num:{_match:/\b[+-]?(?:\d*\.?\d+|\d+\.?\d*)(?:[eE][+-]?\d+)?\b/,_style:"color: red;"},reg_not:{_match:/(?:\w+\s*)\/[^\/\\\n]*(?:\\.[^\/\\\n]*)*\/[gim]*(?:\s*\w+)/,_replace:function(a){return this.x(a,"//num")}},reg_exp:{_match:/\/[^\/\\\n]*(?:\\.[^\/\\\n]*)*\/[gim]*/,_style:"color: maroon;"},brace:{_match:/[\{\}]/,_style:"color: red; font-weight: bold;"},statement:{_match:/\b(with|while|var|try|throw|switch|return|if|for|finally|else|do|default|continue|const|catch|case|break)\b/,_style:"color: navy; font-weight: bold;"},error:{_match:/\b(URIError|TypeError|SyntaxError|ReferenceError|RangeError|EvalError|Error)\b/,_style:"color: Coral;"},object:{_match:/\b(String|RegExp|Object|Number|Math|Function|Date|Boolean|Array)\b/,_style:"color: DeepPink;"},property:{_match:/\b(undefined|arguments|NaN|Infinity)\b/,_style:"color: Purple; font-weight: bold;"},"function":{_match:/\b(parseInt|parseFloat|isNaN|isFinite|eval|encodeURIComponent|encodeURI|decodeURIComponent|decodeURI)\b/,_style:"color: olive;"},operator:{_match:/\b(void|typeof|this|new|instanceof|in|function|delete)\b/,_style:"color: RoyalBlue; font-weight: bold;"},liveconnect:{_match:/\b(sun|netscape|java|Packages|JavaPackage|JavaObject|JavaClass|JavaArray|JSObject|JSException)\b/,_style:"text-decoration: overline;"}}};ChiliBook.recipes["css.js"]={_name:"css",_case:true,_main:{comment:{_match:/\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\//,_style:"color: olive;"},directive:{_match:/@\w+/,_style:"color: fuchsia;"},url:{_match:/\b(url\s*\()([^)]+)(\))/,_replace:"<span class='url'>$1</span>$2<span class='url'>$3</span>",_style:"color: fuchsia;"},block:{_match:/\{([\w\W]*?)\}/,_replace:function(a,b){return"{"+this.x(b,"/definition")+"}"}},"class":{_match:/\.\w+/,_style:"color: #CC0066; font-weight: bold;"},id:{_match:/#\w+/,_style:"color: IndianRed; font-weight: bold;"},pseudo:{_match:/:\w+/,_style:"color: #CC9900;"},element:{_match:/\w+/,_style:"color: Purple; font-weight: bold;"}},definition:{comment:{_match:/\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\//},property:{_match:/\b(?:zoom|z-index|writing-mode|word-wrap|word-spacing|word-break|width|widows|white-space|volume|voice-family|visibility|vertical-align|unicode-bidi|top|text-underline-position|text-transform|text-shadow|text-overflow|text-kashida-space|text-justify|text-indent|text-decoration|text-autospace|text-align-last|text-align|table-layout|stress|speech-rate|speak-punctuation|speak-numeral|speak-header|speak|size|scrollbar-track-color|scrollbar-shadow-color|scrollbar-highlight-color|scrollbar-face-color|scrollbar-dark-shadow-color|scrollbar-base-color|scrollbar-arrow-color|scrollbar-3d-light-color|ruby-position|ruby-overhang|ruby-align|right|richness|quotes|position|play-during|pitch-range|pitch|pause-before|pause-after|pause|page-break-inside|page-break-before|page-break-after|page|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-Y|overflow-X|overflow|outline-width|outline-style|outline-color|outline|orphans|min-width|min-height|max-width|max-height|marks|marker-offset|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|line-break|letter-spacing|left|layout-grid-type|layout-grid-mode|layout-grid-line|layout-grid-char-spacing|layout-grid-char|layout-grid|layout-flow|layer-background-image|layer-background-color|include-source|ime-mode|height|font-weight|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-family|font|float|filter|empty-cells|elevation|display|direction|cursor|cue-before|cue-after|cue|counter-reset|counter-increment|content|color|clip|clear|caption-side|bottom|border-width|border-top-width|border-top-style|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-left-width|border-left-style|border-left-color|border-left|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-color|border-bottom|border|behavior|background-repeat|background-position-y|background-position-x|background-position|background-image|background-color|background-attachment|background|azimuth|accelerator)\s*:/,_style:"color: #330066;"},special:{_match:/\b(?:-use-link-source|-set-link-source|-replace|-moz-user-select|-moz-user-modify|-moz-user-input|-moz-user-focus|-moz-outline-width|-moz-outline-style|-moz-outline-color|-moz-outline|-moz-opacity|-moz-border-top-colors|-moz-border-right-colors|-moz-border-radius-topright|-moz-border-radius-topleft|-moz-border-radius-bottomright|-moz-border-radius-bottomleft|-moz-border-radius|-moz-border-left-colors|-moz-border-bottom-colors|-moz-binding)\s*:/,_style:"color: #330066; text-decoration: underline;"},url:{_match:/\b(url\s*\()([^)]+)(\))/,_replace:"<span class='url'>$1</span>$2<span class='url'>$3</span>"},value:{_match:/\b(?:xx-small|xx-large|x-soft|x-small|x-slow|x-low|x-loud|x-large|x-high|x-fast|wider|wait|w-resize|visible|url|uppercase|upper-roman|upper-latin|upper-alpha|underline|ultra-expanded|ultra-condensed|tv|tty|transparent|top|thin|thick|text-top|text-bottom|table-row-group|table-row|table-header-group|table-footer-group|table-column-group|table-column|table-cell|table-caption|sw-resize|super|sub|status-bar|static|square|spell-out|speech|solid|soft|smaller|small-caption|small-caps|small|slower|slow|silent|show|separate|semi-expanded|semi-condensed|se-resize|scroll|screen|s-resize|run-in|rtl|rightwards|right-side|right|ridge|rgb|repeat-y|repeat-x|repeat|relative|projection|print|pre|portrait|pointer|overline|outside|outset|open-quote|once|oblique|nw-resize|nowrap|normal|none|no-repeat|no-open-quote|no-close-quote|ne-resize|narrower|n-resize|move|mix|middle|message-box|medium|marker|ltr|lowercase|lower-roman|lower-latin|lower-greek|lower-alpha|lower|low|loud|local|list-item|line-through|lighter|level|leftwards|left-side|left|larger|large|landscape|justify|italic|invert|inside|inset|inline-table|inline|icon|higher|high|hide|hidden|help|hebrew|handheld|groove|format|fixed|faster|fast|far-right|far-left|fantasy|extra-expanded|extra-condensed|expanded|embossed|embed|e-resize|double|dotted|disc|digits|default|decimal-leading-zero|decimal|dashed|cursive|crosshair|cross|crop|counters|counter|continuous|condensed|compact|collapse|code|close-quote|circle|center-right|center-left|center|caption|capitalize|braille|bottom|both|bolder|bold|block|blink|bidi-override|below|behind|baseline|avoid|auto|aural|attr|armenian|always|all|absolute|above)\b/,_style:"color: #3366FF;"},string:{_match:/(?:\'[^\'\\\n]*(?:\\.[^\'\\\n]*)*\')|(?:\"[^\"\\\n]*(?:\\.[^\"\\\n]*)*\")/,_style:"color: teal;"},number:{_match:/(?:\b[+-]?(?:\d*\.?\d+|\d+\.?\d*))(?:%|(?:(?:px|pt|em|)\b))/,_style:"color: red;"},color:{_match:/(?:\#[a-fA-F0-9]{3,6})|\b(?:yellow|white|teal|silver|red|purple|olive|navy|maroon|lime|green|gray|fuchsia|blue|black|aqua|YellowGreen|Yellow|WhiteSmoke|White|Wheat|Violet|Turquoise|Tomato|Thistle|Teal|Tan|SteelBlue|SpringGreen|Snow|SlateGrey|SlateGray|SlateBlue|SkyBlue|Silver|Sienna|SeaShell|SeaGreen|SandyBrown|Salmon|SaddleBrown|RoyalBlue|RosyBrown|Red|Purple|PowderBlue|Plum|Pink|Peru|PeachPuff|PapayaWhip|PaleVioletRed|PaleTurquoise|PaleGreen|PaleGoldenRod|Orchid|OrangeRed|Orange|OliveDrab|Olive|OldLace|Navy|NavajoWhite|Moccasin|MistyRose|MintCream|MidnightBlue|MediumVioletRed|MediumTurquoise|MediumSpringGreen|MediumSlateBlue|MediumSeaGreen|MediumPurple|MediumOrchid|MediumBlue|MediumAquaMarine|Maroon|Magenta|Linen|LimeGreen|Lime|LightYellow|LightSteelBlue|LightSlateGrey|LightSlateGray|LightSkyBlue|LightSeaGreen|LightSalmon|LightPink|LightGrey|LightGreen|LightGray|LightGoldenRodYellow|LightCyan|LightCoral|LightBlue|LemonChiffon|LawnGreen|LavenderBlush|Lavender|Khaki|Ivory|Indigo|IndianRed|HotPink|HoneyDew|Grey|GreenYellow|Green|Gray|GoldenRod|Gold|GhostWhite|Gainsboro|Fuchsia|ForestGreen|FloralWhite|FireBrick|DodgerBlue|DimGrey|DimGray|DeepSkyBlue|DeepPink|Darkorange|DarkViolet|DarkTurquoise|DarkSlateGrey|DarkSlateGray|DarkSlateBlue|DarkSeaGreen|DarkSalmon|DarkRed|DarkOrchid|DarkOliveGreen|DarkMagenta|DarkKhaki|DarkGrey|DarkGreen|DarkGray|DarkGoldenRod|DarkCyan|DarkBlue|Cyan|Crimson|Cornsilk|CornflowerBlue|Coral|Chocolate|Chartreuse|CadetBlue|BurlyWood|Brown|BlueViolet|Blue|BlanchedAlmond|Black|Bisque|Beige|Azure|Aquamarine|Aqua|AntiqueWhite|AliceBlue)\b/,_style:"color: green;"}}};