Version Description
Download this release
Release Info
Developer | renathoc |
Plugin | SyntaxHighlighter Evolved |
Version | 3.6.0 |
Comparing to | |
See all releases |
Code changes from version 3.5.5 to 3.6.0
- dist/blocks.build.js +1 -1
- dist/blocks.editor.build.css +1 -0
- dist/blocks.style.build.css +0 -0
- readme.txt +22 -4
- syntaxhighlighter.php +229 -21
- syntaxhighlighter2/scripts/shBrushAS3.js +39 -39
- syntaxhighlighter2/scripts/shBrushBash.js +66 -66
- syntaxhighlighter2/scripts/shBrushCSharp.js +67 -67
- syntaxhighlighter2/scripts/shBrushColdFusion.js +80 -80
- syntaxhighlighter2/scripts/shBrushCpp.js +100 -99
- syntaxhighlighter2/scripts/shBrushCss.js +93 -93
- syntaxhighlighter2/scripts/shBrushDiff.js +43 -43
- syntaxhighlighter2/scripts/shBrushErlang.js +30 -30
- syntaxhighlighter2/scripts/shBrushGroovy.js +29 -29
- syntaxhighlighter2/scripts/shBrushJScript.js +52 -52
- syntaxhighlighter2/scripts/shBrushJava.js +59 -59
- syntaxhighlighter2/scripts/shBrushJavaFX.js +29 -29
- syntaxhighlighter2/scripts/shBrushPerl.js +74 -74
- syntaxhighlighter2/scripts/shBrushPhp.js +91 -91
- syntaxhighlighter2/scripts/shBrushPlain.js +35 -35
- syntaxhighlighter2/scripts/shBrushPowerShell.js +76 -76
- syntaxhighlighter2/scripts/shBrushPython.js +66 -66
- syntaxhighlighter2/scripts/shBrushRuby.js +57 -57
- syntaxhighlighter2/scripts/shBrushScala.js +53 -53
- syntaxhighlighter2/scripts/shBrushSql.js +68 -68
- syntaxhighlighter2/scripts/shBrushVb.js +58 -58
- syntaxhighlighter2/scripts/shBrushXml.js +71 -71
- syntaxhighlighter2/scripts/shCore.js +29 -29
- syntaxhighlighter2/scripts/shLegacy.js +29 -29
- syntaxhighlighter2/styles/shThemeDjango.css +53 -53
- syntaxhighlighter2/styles/shThemeEclipse.css +56 -56
- syntaxhighlighter2/styles/shThemeEmacs.css +54 -54
- syntaxhighlighter2/styles/shThemeFadeToGrey.css +53 -53
- syntaxhighlighter2/styles/shThemeMidnight.css +54 -54
- syntaxhighlighter2/styles/shThemeRDark.css +54 -54
- syntaxhighlighter3/scripts/shBrushCpp.js +2 -1
dist/blocks.build.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){function t(r){if(n[r])return n[r].exports;var l=n[r]={i:r,l:!1,exports:{}};return e[r].call(l.exports,l,l.exports,t),l.l=!0,l.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),l=(n.n(r),n(2)),a=(n.n(l),n(3)),i=(n.n(a),n(4));n.n(i);Object(l.registerBlockType)("syntaxhighlighter/code",{title:Object(r.__)("SyntaxHighlighter Code","syntaxhighlighter"),description:Object(r.__)("Adds syntax highlighting to source code (front end only).","syntaxhighlighter"),icon:"editor-code",category:"formatting",keywords:[Object(r.__)("Source","syntaxhighlighter"),Object(r.__)("Program","syntaxhighlighter"),Object(r.__)("Develop","syntaxhighlighter")],attributes:{content:{type:"string",source:"text",selector:"pre"},language:{type:"string",default:syntaxHighlighterData.settings.language.default},lineNumbers:{type:"boolean",default:syntaxHighlighterData.settings.lineNumbers.default},firstLineNumber:{type:"string",default:syntaxHighlighterData.settings.firstLineNumber.default},highlightLines:{type:"string"},wrapLines:{type:"boolean",default:syntaxHighlighterData.settings.wrapLines.default},makeURLsClickable:{type:"boolean",default:syntaxHighlighterData.settings.makeURLsClickable.default},quickCode:{type:"boolean",default:syntaxHighlighterData.settings.quickCode.default}},supports:{html:!1},transforms:{from:[{type:"enter",regExp:/^```$/,transform:function(){return Object(l.createBlock)("syntaxhighlighter/code")}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName},schema:{pre:{children:{code:{children:{"#text":{}}}}}}},{type:"block",blocks:["core/code"],transform:function(e){var t=e.content;return Object(l.createBlock)("syntaxhighlighter/code",{content:t})}}],to:[{type:"block",blocks:["core/code"],transform:function(e){var t=e.content;return Object(l.createBlock)("core/code",{content:t})}}]},edit:function(e){var t=e.attributes,n=e.setAttributes,l=e.className,o=t.content,s=t.language,h=t.lineNumbers,c=t.firstLineNumber,g=t.highlightLines,u=t.wrapLines,p=t.makeURLsClickable,m=t.quickCode,b=[];if(syntaxHighlighterData.settings.language.supported){var d=[];for(var y in syntaxHighlighterData.brushes)d.push({label:syntaxHighlighterData.brushes[y],value:y});b.push(wp.element.createElement(a.PanelRow,null,wp.element.createElement(a.SelectControl,{label:Object(r.__)("Code Language","syntaxhighlighter"),value:s,options:d,onChange:function(e){return n({language:e})}})))}return syntaxHighlighterData.settings.lineNumbers.supported&&b.push(wp.element.createElement(a.PanelRow,null,wp.element.createElement(a.ToggleControl,{label:Object(r.__)("Show Line Numbers","syntaxhighlighter"),checked:h,onChange:function(e){return n({lineNumbers:e})}}))),h&&syntaxHighlighterData.settings.firstLineNumber.supported&&b.push(wp.element.createElement(a.PanelRow,null,wp.element.createElement(a.TextControl,{label:Object(r.__)("First Line Number","syntaxhighlighter"),type:"number",value:c,onChange:function(e){return n({firstLineNumber:e})},min:1,max:1e5}))),syntaxHighlighterData.settings.highlightLines.supported&&b.push(wp.element.createElement(a.TextControl,{label:Object(r.__)("Highlight Lines","syntaxhighlighter"),value:g,help:Object(r.__)("A comma-separated list of line numbers to highlight. Can also be a range. Example: 1,5,10-20","syntaxhighlighter"),onChange:function(e){return n({highlightLines:e})}})),syntaxHighlighterData.settings.wrapLines.supported&&b.push(wp.element.createElement(a.PanelRow,null,wp.element.createElement(a.ToggleControl,{label:Object(r.__)("Wrap Long Lines","syntaxhighlighter"),checked:u,onChange:function(e){return n({wrapLines:e})}}))),syntaxHighlighterData.settings.makeURLsClickable.supported&&b.push(wp.element.createElement(a.PanelRow,null,wp.element.createElement(a.ToggleControl,{label:Object(r.__)("Make URLs Clickable","syntaxhighlighter"),checked:p,onChange:function(e){return n({makeURLsClickable:e})}}))),syntaxHighlighterData.settings.quickCode.supported&&b.push(wp.element.createElement(a.PanelRow,null,wp.element.createElement(a.ToggleControl,{label:Object(r.__)("Enable edit mode on double click","syntaxhighlighter"),checked:m,onChange:function(e){return n({quickCode:e})}}))),[wp.element.createElement(i.InspectorControls,{key:"syntaxHighlighterInspectorControls"},wp.element.createElement(a.PanelBody,{title:Object(r.__)("Settings","syntaxhighlighter")},b)),wp.element.createElement("div",{className:l+" wp-block-code"},wp.element.createElement(i.PlainText,{value:o,onChange:function(e){return n({content:e})},placeholder:Object(r.__)("Tip: To the right, choose a code language from the block settings.","syntaxhighlighter"),"aria-label":Object(r.__)("SyntaxHighlighter Code","syntaxhighlighter")}))]},save:function(e){var t=e.attributes,n=t.content;return wp.element.createElement("pre",null,n)}})},function(e,t){e.exports=wp.i18n},function(e,t){e.exports=wp.blocks},function(e,t){e.exports=wp.components},function(e,t){e.exports=wp.editor}]);
|
1 |
+
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=6)}([function(e,t){e.exports=wp.i18n},function(e,t){e.exports=wp.blocks},function(e,t){e.exports=wp.editor},function(e,t){e.exports=wp.components},function(e,t){e.exports=wp.element},function(e,t,n){"use strict";function r(e){return e.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&")}function o(e){return e.replace(/</g,"<")}function a(e){return o(r(e))}function l(e){return o(e.replace(/&/g,"&"))}t.b=a,t.a=l;n(16)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=(n.n(r),n(7));Object(r.registerBlockType)("syntaxhighlighter/code",o.a)},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(8)),a=n(13),l=n(17),i=n(20),c=(n.n(i),n(21)),u=(n.n(c),window.syntaxHighlighterData.settings);t.a={title:Object(r.__)("SyntaxHighlighter Code","syntaxhighlighter"),description:Object(r.__)("Adds syntax highlighting to source code (front end only).","syntaxhighlighter"),icon:"editor-code",category:"formatting",keywords:[Object(r.__)("Source","syntaxhighlighter"),Object(r.__)("Program","syntaxhighlighter"),Object(r.__)("Develop","syntaxhighlighter")],attributes:{content:{type:"string",source:"text",selector:"pre"},language:{type:"string",default:u.language.default},lineNumbers:{type:"boolean",default:u.lineNumbers.default},firstLineNumber:{type:"string",default:u.firstLineNumber.default},highlightLines:{type:"string"},wrapLines:{type:"boolean",default:u.wrapLines.default},makeURLsClickable:{type:"boolean",default:u.makeURLsClickable.default},quickCode:{type:"boolean",default:u.quickCode.default}},supports:{html:!1,align:!0},transforms:l.a,edit:o.a,save:a.a}},function(e,t,n){"use strict";function r(e){var t=e.attributes,n=e.setAttributes,r=e.className,c=t.content,u=window.syntaxHighlighterData.settings.tabSize,s=wp.element.createElement("div",{className:r+" wp-block-code"},wp.element.createElement(o.PlainText,{className:"wp-block-syntaxhighlighter__textarea",style:{tabSize:u,MozTabSize:""+u},value:c,onChange:function(e){return n({content:e})},placeholder:Object(a.__)("Tip: you can choose a code language from the block settings.","syntaxhighlighter"),"aria-label":Object(a.__)("SyntaxHighlighter Code","syntaxhighlighter")}));return wp.element.createElement(i.Fragment,null,Object(l.a)({attributes:t,setAttributes:n}),s)}t.a=r;var o=n(2),a=(n.n(o),n(0)),l=(n.n(a),n(9)),i=n(4);n.n(i)},function(e,t,n){"use strict";var r=n(3),o=(n.n(r),n(4)),a=(n.n(o),n(2)),l=(n.n(a),n(0)),i=(n.n(l),n(10));t.a=function(e){var t=e.attributes,n=e.setAttributes,c=[],u=[],s=t.language,p=t.lineNumbers,h=t.firstLineNumber,g=t.highlightLines,f=t.wrapLines,b=t.makeURLsClickable,m=t.quickCode,d=window.syntaxHighlighterData,y=d.settings,w=d.brushes;if(y.language.supported){var v=[];for(var x in w)v.push({label:w[x],value:x});c.push(wp.element.createElement(r.PanelRow,{key:"code-language"},wp.element.createElement(r.SelectControl,{label:Object(l.__)("Code Language","syntaxhighlighter"),value:s,options:v,onChange:function(e){return n({language:e})}}))),u.push(Object(i.a)({attributes:t,setAttributes:n,options:v}))}return y.lineNumbers.supported&&c.push(wp.element.createElement(r.PanelRow,{key:"show-line-numbers"},wp.element.createElement(r.ToggleControl,{label:Object(l.__)("Show Line Numbers","syntaxhighlighter"),checked:p,onChange:function(e){return n({lineNumbers:e})}}))),p&&y.firstLineNumber.supported&&c.push(wp.element.createElement(r.PanelRow,{key:"first-line-number"},wp.element.createElement(r.TextControl,{label:Object(l.__)("First Line Number","syntaxhighlighter"),type:"number",value:h,onChange:function(e){return n({firstLineNumber:e})},min:"1",max:"100000"}))),y.highlightLines.supported&&c.push(wp.element.createElement(r.PanelRow,{key:"highlight-lines"},wp.element.createElement(r.TextControl,{label:Object(l.__)("Highlight Lines","syntaxhighlighter"),value:g,help:Object(l.__)("A comma-separated list of line numbers to highlight. Can also be a range. Example: 1,5,10-20","syntaxhighlighter"),onChange:function(e){return n({highlightLines:e})}}))),y.wrapLines.supported&&c.push(wp.element.createElement(r.PanelRow,{key:"wrap-long-lines"},wp.element.createElement(r.ToggleControl,{label:Object(l.__)("Wrap Long Lines","syntaxhighlighter"),checked:f,onChange:function(e){return n({wrapLines:e})}}))),y.makeURLsClickable.supported&&c.push(wp.element.createElement(r.PanelRow,{key:"make-urls-clickable"},wp.element.createElement(r.ToggleControl,{label:Object(l.__)("Make URLs Clickable","syntaxhighlighter"),checked:b,onChange:function(e){return n({makeURLsClickable:e})}}))),y.quickCode.supported&&c.push(wp.element.createElement(r.PanelRow,{key:"edit-mode"},wp.element.createElement(r.ToggleControl,{label:Object(l.__)("Enable edit mode on double click","syntaxhighlighter"),checked:m,onChange:function(e){return n({quickCode:e})}}))),wp.element.createElement(o.Fragment,null,wp.element.createElement(a.BlockControls,null,wp.element.createElement(r.ToolbarGroup,null,u)),wp.element.createElement(a.InspectorControls,{key:"syntaxHighlighterInspectorControls"},wp.element.createElement(r.PanelBody,{title:Object(l.__)("Settings","syntaxhighlighter")},c)))}},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(11));t.a=function(e){var t=e.attributes,n=e.setAttributes,a=e.options,l=t.language;return wp.element.createElement(o.a,{key:"code-language",options:a,optionsLabel:Object(r.__)("Code Language","syntaxhighlighter"),value:l,onChange:function(e){return n({language:e})}})}},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=n(12),a=n.n(o),l=n(3),i=(n.n(l),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}),c=function(e){var t=e.options,n=e.optionsLabel,o=e.icon,c=e.value,u=e.onChange,s=r(e,["options","optionsLabel","icon","value","onChange"]),p=t.find(function(e){return c===e.value});return wp.element.createElement(l.Dropdown,i({className:"syntaxhighlighter-toolbar-dropdown",popoverProps:{isAlternate:!0,position:"bottom right left",focusOnMount:!0,className:a()("syntaxhighlighter-toolbar-dropdown__popover")},renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement(l.Button,{onClick:n,icon:o,"aria-expanded":t,"aria-haspopup":"true",children:p?p.label:""})},renderContent:function(e){var r=e.onClose;return wp.element.createElement(l.NavigableMenu,{role:"menu",stopNavigationEvents:!0},wp.element.createElement(l.MenuGroup,{label:n},t.map(function(e){var t=e.value===p.value;return wp.element.createElement(l.MenuItem,{key:e.value,role:"menuitemradio",isSelected:t,className:a()("syntaxhighlighter-toolbar-dropdown__option",{"is-selected":t}),onClick:function(){u(e.value),r()},children:e.label})})))}},s))};t.a=c},function(e,t,n){var r,o;!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var l=n.apply(null,r);l&&e.push(l)}else if("object"===o)for(var i in r)a.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}var a={}.hasOwnProperty;"undefined"!==typeof e&&e.exports?(n.default=n,e.exports=n):(r=[],void 0!==(o=function(){return n}.apply(t,r))&&(e.exports=o))}()},function(e,t,n){"use strict";function r(e){var t=e.attributes;return wp.element.createElement("pre",null,Object(o.a)(t.content))}t.a=r;var o=n(14)},function(e,t,n){"use strict";function r(e){return Object(a.flow)(l.a,o)(e||"")}function o(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}t.a=r;var a=n(15),l=(n.n(a),n(5))},function(e,t){e.exports=lodash},function(e,t,n){"use strict";function r(e){return e.replace(/>/g,">")}t.a=r},function(e,t,n){"use strict";var r=n(1),o=(n.n(r),n(5)),a=n(18),l=n.n(a),i=function(){function e(e,t){var n=[],_n=!0,r=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(_n=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{!_n&&l.return&&l.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.a={from:[{type:"enter",regExp:/^```\w*$/,transform:function(e){var t=e.content,n=void 0===t?"":t,o=n.match(/^```(\w+)/)||[null,null],a=i(o,2),l=a[1],c=l?{language:l}:void 0;return Object(r.createBlock)("syntaxhighlighter/code",c)}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName},schema:{pre:{children:{code:{children:{"#text":{}}}}}}},{type:"block",blocks:["core/code"],transform:function(e){var t=e.content;return Object(r.createBlock)("syntaxhighlighter/code",{content:l()(t)})}}],to:[{type:"block",blocks:["core/code"],transform:function(e){var t=e.content;return Object(r.createBlock)("core/code",{content:Object(o.b)(t)})}}]}},function(e,t,n){(function(t){function n(e){if("string"==typeof e)return e;if(o(e))return v?v.call(e):"";var t=e+"";return"0"==t&&1/e==-i?"-0":t}function r(e){return!!e&&"object"==typeof e}function o(e){return"symbol"==typeof e||r(e)&&d.call(e)==c}function a(e){return null==e?"":n(e)}function l(e){return e=a(e),e&&s.test(e)?e.replace(u,b):e}var i=1/0,c="[object Symbol]",u=/&(?:amp|lt|gt|quot|#39|#96);/g,s=RegExp(u.source),p={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},h="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,f=h||g||Function("return this")(),b=function(e){return function(t){return null==e?void 0:e[t]}}(p),m=Object.prototype,d=m.toString,y=f.Symbol,w=y?y.prototype:void 0,v=w?w.toString:void 0;e.exports=l}).call(t,n(19))},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"===typeof window&&(n=window)}e.exports=n},function(e,t){},function(e,t){}]);
|
dist/blocks.editor.build.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.syntaxhighlighter-toolbar-dropdown__popover.components-popover[data-x-axis='right'] .components-popover__content{margin-left:0;min-width:300px}.syntaxhighlighter-toolbar-dropdown__option{text-align:left;height:auto;min-height:32px;border-radius:2px}.syntaxhighlighter-toolbar-dropdown__option .components-menu-item__item{white-space:normal}.syntaxhighlighter-toolbar-dropdown__option.is-selected{background-color:#f0f0f0}
|
dist/blocks.style.build.css
ADDED
File without changes
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== SyntaxHighlighter Evolved ===
|
2 |
Contributors: Viper007Bond, automattic, donncha
|
3 |
Donate link: https://alex.blog/2019/03/13/in-memory-of-alex-donation-link-update/
|
4 |
-
Tags: code,
|
5 |
-
Requires at least:
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 3.
|
8 |
|
9 |
Easily post syntax-highlighted code to your site without having to modify the code at all. As seen on WordPress.com.
|
10 |
|
@@ -40,6 +40,24 @@ Try excluding this plugin's Javascript from any performance optimizations your s
|
|
40 |
|
41 |
== ChangeLog ==
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
= Version 3.5.5 =
|
44 |
|
45 |
* Allow setting text to include br and code tags. #144
|
1 |
=== SyntaxHighlighter Evolved ===
|
2 |
Contributors: Viper007Bond, automattic, donncha
|
3 |
Donate link: https://alex.blog/2019/03/13/in-memory-of-alex-donation-link-update/
|
4 |
+
Tags: code, source, sourcecode, php, syntax highlighting, syntax, highlight, highlighting, highlighter, WordPress.com
|
5 |
+
Requires at least: 5.2
|
6 |
+
Tested up to: 5.7
|
7 |
+
Stable tag: 3.6.0
|
8 |
|
9 |
Easily post syntax-highlighted code to your site without having to modify the code at all. As seen on WordPress.com.
|
10 |
|
40 |
|
41 |
== ChangeLog ==
|
42 |
|
43 |
+
= Version 3.6.0 =
|
44 |
+
|
45 |
+
* New: Add ```language shortcut. #180
|
46 |
+
* New: Add block alignment support. #179
|
47 |
+
* New: Add language selector to block toolbar. #172
|
48 |
+
* Fix: transform issue. #201
|
49 |
+
* Fix: toolbar code selection for latest Gutenberg versions #200
|
50 |
+
* Fix: Content attribute selector. #178
|
51 |
+
* Fix: Escaping for shortcodes and URLs. #177
|
52 |
+
* Fix: Escaping issues with HTML entities. #160
|
53 |
+
* Fix: MatLab brush key in brush map. #188
|
54 |
+
* Fix: Remove <code> wrapper. #163
|
55 |
+
* Fix: escaping for non-admin authored posts. #187
|
56 |
+
* Tweak: Bump "tested up to" version. #183
|
57 |
+
* Tweak: Refactor block JS code. #171
|
58 |
+
* Tweak: Update plugin tags. #181
|
59 |
+
* Tweak: Use tab size from plugin settings in block editor. #174
|
60 |
+
|
61 |
= Version 3.5.5 =
|
62 |
|
63 |
* Allow setting text to include br and code tags. #144
|
syntaxhighlighter.php
CHANGED
@@ -4,19 +4,22 @@
|
|
4 |
|
5 |
Plugin Name: SyntaxHighlighter Evolved
|
6 |
Plugin URI: https://alex.blog/wordpress-plugins/syntaxhighlighter/
|
7 |
-
Version: 3.
|
8 |
Description: Easily post syntax-highlighted code to your site without having to modify the code at all. Uses Alex Gorbatchev's <a href="http://alexgorbatchev.com/SyntaxHighlighter/">SyntaxHighlighter</a>. Includes a new editor block.
|
9 |
Author: Alex Mills (Viper007Bond)
|
10 |
Author URI: https://alex.blog/
|
11 |
Text Domain: syntaxhighlighter
|
12 |
License: GPL2
|
13 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
|
|
|
|
|
|
14 |
|
15 |
**************************************************************************/
|
16 |
|
17 |
class SyntaxHighlighter {
|
18 |
// All of these variables are private. Filters are provided for things that can be modified.
|
19 |
-
var $pluginver = '3.
|
20 |
var $agshver = false; // Alex Gorbatchev's SyntaxHighlighter version (dynamically set below due to v2 vs v3)
|
21 |
var $shfolder = false; // Controls what subfolder to load SyntaxHighlighter from (v2 or v3)
|
22 |
var $settings = array(); // Contains the user's settings
|
@@ -203,6 +206,7 @@ class SyntaxHighlighter {
|
|
203 |
'latex' => 'latex', // Not used as a shortcode
|
204 |
'tex' => 'latex',
|
205 |
'matlab' => 'matlabkey',
|
|
|
206 |
'objc' => 'objc',
|
207 |
'obj-c' => 'objc',
|
208 |
'perl' => 'perl',
|
@@ -334,6 +338,15 @@ class SyntaxHighlighter {
|
|
334 |
: $this->pluginver
|
335 |
);
|
336 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
337 |
// WordPress 5.0+ only, no Gutenberg plugin support
|
338 |
if ( function_exists( 'wp_set_script_translations' ) ) {
|
339 |
wp_set_script_translations( 'syntaxhighlighter-blocks', 'syntaxhighlighter' );
|
@@ -370,6 +383,7 @@ class SyntaxHighlighter {
|
|
370 |
'supported' => ( '3' == $this->settings['shversion'] ),
|
371 |
'default' => (bool) $this->settings['quickcode'],
|
372 |
),
|
|
|
373 |
);
|
374 |
|
375 |
wp_add_inline_script(
|
@@ -503,7 +517,6 @@ class SyntaxHighlighter {
|
|
503 |
*/
|
504 |
public function render_block( $attributes, $content ) {
|
505 |
$remaps = array(
|
506 |
-
'className' => 'classname',
|
507 |
'lineNumbers' => 'gutter',
|
508 |
'firstLineNumber' => 'firstline',
|
509 |
'highlightLines' => 'highlight',
|
@@ -511,6 +524,10 @@ class SyntaxHighlighter {
|
|
511 |
'makeURLsClickable' => 'autolinks',
|
512 |
'quickCode' => 'quickcode',
|
513 |
);
|
|
|
|
|
|
|
|
|
514 |
|
515 |
foreach ( $remaps as $from => $to ) {
|
516 |
if ( isset( $attributes[ $from ] ) ) {
|
@@ -527,9 +544,12 @@ class SyntaxHighlighter {
|
|
527 |
$code = preg_replace( '#<pre [^>]+>([^<]+)?</pre>#', '$1', $content );
|
528 |
|
529 |
// Undo escaping done by WordPress
|
530 |
-
$code =
|
|
|
|
|
|
|
531 |
|
532 |
-
return
|
533 |
}
|
534 |
|
535 |
// Add the custom TinyMCE plugin which wraps plugin shortcodes in <pre> in TinyMCE
|
@@ -1317,11 +1337,14 @@ class SyntaxHighlighter {
|
|
1317 |
|
1318 |
$code = ( false === strpos( $code, '<' ) && false === strpos( $code, '>' ) && 2 == $this->get_code_format($post) ) ? strip_tags( $code ) : htmlspecialchars( $code );
|
1319 |
|
|
|
|
|
|
|
1320 |
$params[] = 'notranslate'; // For Google, see http://otto42.com/9k
|
1321 |
|
1322 |
$params = apply_filters( 'syntaxhighlighter_cssclasses', $params ); // Use this to add additional CSS classes / SH parameters
|
1323 |
|
1324 |
-
return apply_filters( 'syntaxhighlighter_htmlresult', '<pre class="' . esc_attr( implode( ' ', $params ) ) . '"' . $title . '>' . $code . '</pre>' )
|
1325 |
}
|
1326 |
|
1327 |
|
@@ -1388,7 +1411,12 @@ class SyntaxHighlighter {
|
|
1388 |
<td>
|
1389 |
<fieldset>
|
1390 |
<legend class="hidden"><?php esc_html_e( 'Load All Brushes', 'syntaxhighlighter' ); ?></legend>
|
1391 |
-
<label for="syntaxhighlighter-loadallbrushes"
|
|
|
|
|
|
|
|
|
|
|
1392 |
</fieldset>
|
1393 |
</td>
|
1394 |
</tr>
|
@@ -1524,20 +1552,200 @@ class SyntaxHighlighter {
|
|
1524 |
<p><?php printf( __( 'These are the parameters you can pass to the shortcode and what they do. For the booleans (i.e. on/off), pass %1$s/%2$s or %3$s/%4$s.', 'syntaxhighlighter' ), '<code>true</code>', '<code>1</code>', '<code>false</code>', '<code>0</code>' ); ?></p>
|
1525 |
|
1526 |
<ul class="ul-disc">
|
1527 |
-
<li
|
1528 |
-
|
1529 |
-
|
1530 |
-
|
1531 |
-
|
1532 |
-
|
1533 |
-
|
1534 |
-
|
1535 |
-
|
1536 |
-
|
1537 |
-
|
1538 |
-
|
1539 |
-
|
1540 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1541 |
</ul>
|
1542 |
|
1543 |
<p><?php esc_html_e( 'Some example shortcodes:', 'syntaxhighlighter' ); ?></p>
|
4 |
|
5 |
Plugin Name: SyntaxHighlighter Evolved
|
6 |
Plugin URI: https://alex.blog/wordpress-plugins/syntaxhighlighter/
|
7 |
+
Version: 3.6.0
|
8 |
Description: Easily post syntax-highlighted code to your site without having to modify the code at all. Uses Alex Gorbatchev's <a href="http://alexgorbatchev.com/SyntaxHighlighter/">SyntaxHighlighter</a>. Includes a new editor block.
|
9 |
Author: Alex Mills (Viper007Bond)
|
10 |
Author URI: https://alex.blog/
|
11 |
Text Domain: syntaxhighlighter
|
12 |
License: GPL2
|
13 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
14 |
+
Requires at least: 5.2
|
15 |
+
Tested up to: 5.7
|
16 |
+
Requires PHP: 7.0
|
17 |
|
18 |
**************************************************************************/
|
19 |
|
20 |
class SyntaxHighlighter {
|
21 |
// All of these variables are private. Filters are provided for things that can be modified.
|
22 |
+
var $pluginver = '3.6.0'; // Plugin version
|
23 |
var $agshver = false; // Alex Gorbatchev's SyntaxHighlighter version (dynamically set below due to v2 vs v3)
|
24 |
var $shfolder = false; // Controls what subfolder to load SyntaxHighlighter from (v2 or v3)
|
25 |
var $settings = array(); // Contains the user's settings
|
206 |
'latex' => 'latex', // Not used as a shortcode
|
207 |
'tex' => 'latex',
|
208 |
'matlab' => 'matlabkey',
|
209 |
+
'matlabkey' => 'matlabkey',
|
210 |
'objc' => 'objc',
|
211 |
'obj-c' => 'objc',
|
212 |
'perl' => 'perl',
|
338 |
: $this->pluginver
|
339 |
);
|
340 |
|
341 |
+
wp_enqueue_style(
|
342 |
+
'syntaxhighlighter-blocks-css', // Handle.
|
343 |
+
plugins_url( 'dist/blocks.editor.build.css', __FILE__ ),
|
344 |
+
[],
|
345 |
+
( ( defined( 'WP_DEBUG' ) && WP_DEBUG ) || ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) )
|
346 |
+
? filemtime( plugin_dir_path( __FILE__ ) . 'dist/blocks.editor.build.css' )
|
347 |
+
: $this->pluginver
|
348 |
+
);
|
349 |
+
|
350 |
// WordPress 5.0+ only, no Gutenberg plugin support
|
351 |
if ( function_exists( 'wp_set_script_translations' ) ) {
|
352 |
wp_set_script_translations( 'syntaxhighlighter-blocks', 'syntaxhighlighter' );
|
383 |
'supported' => ( '3' == $this->settings['shversion'] ),
|
384 |
'default' => (bool) $this->settings['quickcode'],
|
385 |
),
|
386 |
+
'tabSize' => (int) $this->settings['tabsize'],
|
387 |
);
|
388 |
|
389 |
wp_add_inline_script(
|
517 |
*/
|
518 |
public function render_block( $attributes, $content ) {
|
519 |
$remaps = array(
|
|
|
520 |
'lineNumbers' => 'gutter',
|
521 |
'firstLineNumber' => 'firstline',
|
522 |
'highlightLines' => 'highlight',
|
524 |
'makeURLsClickable' => 'autolinks',
|
525 |
'quickCode' => 'quickcode',
|
526 |
);
|
527 |
+
$classNames = ! empty( $attributes['className'] ) ? [ esc_attr( $attributes['className'] ) ] : [];
|
528 |
+
if( ! empty( $attributes['align'] ) ) {
|
529 |
+
$classNames[] = 'align' . esc_attr( $attributes['align'] );
|
530 |
+
}
|
531 |
|
532 |
foreach ( $remaps as $from => $to ) {
|
533 |
if ( isset( $attributes[ $from ] ) ) {
|
544 |
$code = preg_replace( '#<pre [^>]+>([^<]+)?</pre>#', '$1', $content );
|
545 |
|
546 |
// Undo escaping done by WordPress
|
547 |
+
$code = htmlspecialchars_decode( $code );
|
548 |
+
$code = preg_replace( '/^(\s*https?:)�?47;�?47;([^\s<>"]+\s*)$/m', '$1//$2', $code );
|
549 |
+
|
550 |
+
$code = $this->shortcode_callback( $attributes, $code, 'code' );
|
551 |
|
552 |
+
return '<div class="wp-block-syntaxhighlighter-code ' . esc_attr( join(' ', $classNames ) ) . '">' . $code . '</div>';
|
553 |
}
|
554 |
|
555 |
// Add the custom TinyMCE plugin which wraps plugin shortcodes in <pre> in TinyMCE
|
1337 |
|
1338 |
$code = ( false === strpos( $code, '<' ) && false === strpos( $code, '>' ) && 2 == $this->get_code_format($post) ) ? strip_tags( $code ) : htmlspecialchars( $code );
|
1339 |
|
1340 |
+
// Escape shortcodes
|
1341 |
+
$code = preg_replace( '/\[/', '[', $code );
|
1342 |
+
|
1343 |
$params[] = 'notranslate'; // For Google, see http://otto42.com/9k
|
1344 |
|
1345 |
$params = apply_filters( 'syntaxhighlighter_cssclasses', $params ); // Use this to add additional CSS classes / SH parameters
|
1346 |
|
1347 |
+
return apply_filters( 'syntaxhighlighter_htmlresult', '<pre class="' . esc_attr( implode( ' ', $params ) ) . '"' . $title . '>' . $code . '</pre>' );
|
1348 |
}
|
1349 |
|
1350 |
|
1411 |
<td>
|
1412 |
<fieldset>
|
1413 |
<legend class="hidden"><?php esc_html_e( 'Load All Brushes', 'syntaxhighlighter' ); ?></legend>
|
1414 |
+
<label for="syntaxhighlighter-loadallbrushes">
|
1415 |
+
<input name="syntaxhighlighter_settings[loadallbrushes]" type="checkbox" id="syntaxhighlighter-loadallbrushes" value="1" <?php checked( $this->settings['loadallbrushes'], 1 ); ?> />
|
1416 |
+
<?php
|
1417 |
+
echo wp_kses( __( 'Always load all language files (for directly using <code><pre></code> tags rather than shortcodes). If left unchecked (default), then language files will only be loaded when needed. If unsure, leave this box unchecked.', 'syntaxhighlighter' ), array( 'code' => array(), 'br' => array() ) );
|
1418 |
+
?>
|
1419 |
+
</label>
|
1420 |
</fieldset>
|
1421 |
</td>
|
1422 |
</tr>
|
1552 |
<p><?php printf( __( 'These are the parameters you can pass to the shortcode and what they do. For the booleans (i.e. on/off), pass %1$s/%2$s or %3$s/%4$s.', 'syntaxhighlighter' ), '<code>true</code>', '<code>1</code>', '<code>false</code>', '<code>0</code>' ); ?></p>
|
1553 |
|
1554 |
<ul class="ul-disc">
|
1555 |
+
<li>
|
1556 |
+
<?php
|
1557 |
+
echo wp_kses(
|
1558 |
+
sprintf(
|
1559 |
+
// translators: %1$s Lang parameter; %2$s Language parameter; %3$s Valid tags link.
|
1560 |
+
_x(
|
1561 |
+
'%1$s or %2$s — The language syntax to highlight with. You can alternately just use that as the tag, such as <code>[php]code[/php]</code>. <a href="%3$s">Click here</a> for a list of valid tags (under "aliases").',
|
1562 |
+
'language parameter',
|
1563 |
+
'syntaxhighlighter'
|
1564 |
+
),
|
1565 |
+
'<code>lang</code>',
|
1566 |
+
'<code>language</code>',
|
1567 |
+
'http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/'
|
1568 |
+
),
|
1569 |
+
array(
|
1570 |
+
'a' => array(
|
1571 |
+
'href' => array(),
|
1572 |
+
),
|
1573 |
+
'code' => array(),
|
1574 |
+
)
|
1575 |
+
);
|
1576 |
+
?>
|
1577 |
+
</li>
|
1578 |
+
<li>
|
1579 |
+
<?php
|
1580 |
+
printf(
|
1581 |
+
// translators: %s Autolinks parameter.
|
1582 |
+
esc_html_x(
|
1583 |
+
'%s — Toggle automatic URL linking.',
|
1584 |
+
'autolinks parameter',
|
1585 |
+
'syntaxhighlighter'
|
1586 |
+
),
|
1587 |
+
'<code>autolinks</code>'
|
1588 |
+
);
|
1589 |
+
?>
|
1590 |
+
</li>
|
1591 |
+
<li>
|
1592 |
+
<?php
|
1593 |
+
printf(
|
1594 |
+
// translators: %s Classname parameter.
|
1595 |
+
esc_html_x(
|
1596 |
+
'%s — Add an additional CSS class to the code box.',
|
1597 |
+
'classname parameter',
|
1598 |
+
'syntaxhighlighter'
|
1599 |
+
),
|
1600 |
+
'<code>classname</code>'
|
1601 |
+
);
|
1602 |
+
?>
|
1603 |
+
</li>
|
1604 |
+
<li>
|
1605 |
+
<?php
|
1606 |
+
printf(
|
1607 |
+
// translators: %s Collapse parameter.
|
1608 |
+
esc_html_x(
|
1609 |
+
'%s — Toggle collapsing the code box by default, requiring a click to expand it. Good for large code posts.',
|
1610 |
+
'collapse parameter',
|
1611 |
+
'syntaxhighlighter'
|
1612 |
+
),
|
1613 |
+
'<code>collapse</code>'
|
1614 |
+
);
|
1615 |
+
?>
|
1616 |
+
</li>
|
1617 |
+
<li>
|
1618 |
+
<?php
|
1619 |
+
printf(
|
1620 |
+
// translators: %s Firstline parameter.
|
1621 |
+
esc_html_x(
|
1622 |
+
'%s — An interger specifying what number the first line should be (for the line numbering).',
|
1623 |
+
'firstline parameter',
|
1624 |
+
'syntaxhighlighter'
|
1625 |
+
),
|
1626 |
+
'<code>firstline</code>'
|
1627 |
+
);
|
1628 |
+
?>
|
1629 |
+
</li>
|
1630 |
+
<li>
|
1631 |
+
<?php
|
1632 |
+
printf(
|
1633 |
+
// translators: %s Gutter parameter.
|
1634 |
+
esc_html_x(
|
1635 |
+
'%s — Toggle the left-side line numbering.',
|
1636 |
+
'gutter parameter',
|
1637 |
+
'syntaxhighlighter'
|
1638 |
+
),
|
1639 |
+
'<code>gutter</code>'
|
1640 |
+
);
|
1641 |
+
?>
|
1642 |
+
</li>
|
1643 |
+
<li>
|
1644 |
+
<?php
|
1645 |
+
printf(
|
1646 |
+
// translators: %1$s Highlight parameter; %2$s Example.
|
1647 |
+
esc_html_x(
|
1648 |
+
'%1$s — A comma-separated list of line numbers to highlight. You can also specify a range. Example: %2$s',
|
1649 |
+
'highlight parameter',
|
1650 |
+
'syntaxhighlighter'
|
1651 |
+
),
|
1652 |
+
'<code>highlight</code>',
|
1653 |
+
'<code>2,5-10,12</code>'
|
1654 |
+
);
|
1655 |
+
?>
|
1656 |
+
</li>
|
1657 |
+
<li>
|
1658 |
+
<?php
|
1659 |
+
printf(
|
1660 |
+
// translators: %s Htmlscript parameter.
|
1661 |
+
esc_html_x(
|
1662 |
+
"%s — Toggle highlighting any extra HTML/XML. Good for when you're mixing HTML/XML with another language, such as having PHP inside an HTML web page. The above preview has it enabled for example. This only works with certain languages.",
|
1663 |
+
'htmlscript parameter',
|
1664 |
+
'syntaxhighlighter'
|
1665 |
+
),
|
1666 |
+
'<code>htmlscript</code>'
|
1667 |
+
);
|
1668 |
+
?>
|
1669 |
+
</li>
|
1670 |
+
<li>
|
1671 |
+
<?php
|
1672 |
+
printf(
|
1673 |
+
// translators: %s Light parameter.
|
1674 |
+
esc_html_x(
|
1675 |
+
'%s — Toggle light mode which disables the gutter and toolbar all at once.',
|
1676 |
+
'light parameter',
|
1677 |
+
'syntaxhighlighter'
|
1678 |
+
),
|
1679 |
+
'<code>light</code>'
|
1680 |
+
);
|
1681 |
+
?>
|
1682 |
+
</li>
|
1683 |
+
<li>
|
1684 |
+
<?php
|
1685 |
+
printf(
|
1686 |
+
// translators: %s Padlinenumbers parameter.
|
1687 |
+
esc_html_x(
|
1688 |
+
'%s — Controls line number padding. Valid values are <code>false</code> (no padding), <code>true</code> (automatic padding), or an integer (forced padding).',
|
1689 |
+
'padlinenumbers parameter',
|
1690 |
+
'syntaxhighlighter'
|
1691 |
+
),
|
1692 |
+
'<code>padlinenumbers</code>'
|
1693 |
+
);
|
1694 |
+
?>
|
1695 |
+
</li>
|
1696 |
+
<li>
|
1697 |
+
<?php
|
1698 |
+
printf(
|
1699 |
+
// translators: %1$s Title parameter; %2$s Collapse parameter.
|
1700 |
+
esc_html_x(
|
1701 |
+
'%1$s (v3 only) — Sets some text to show up before the code. Very useful when combined with the %2$s parameter.',
|
1702 |
+
'title parameter',
|
1703 |
+
'syntaxhighlighter'
|
1704 |
+
),
|
1705 |
+
'<code>title</code>',
|
1706 |
+
'<code>collapse</code>'
|
1707 |
+
);
|
1708 |
+
?>
|
1709 |
+
</li>
|
1710 |
+
<li>
|
1711 |
+
<?php
|
1712 |
+
printf(
|
1713 |
+
// translators: %s Toolbar parameter.
|
1714 |
+
esc_html_x(
|
1715 |
+
'%s — Toggle the toolbar (buttons in v2, the about question mark in v3)',
|
1716 |
+
'toolbar parameter',
|
1717 |
+
'syntaxhighlighter'
|
1718 |
+
),
|
1719 |
+
'<code>toolbar</code>'
|
1720 |
+
);
|
1721 |
+
?>
|
1722 |
+
</li>
|
1723 |
+
<li>
|
1724 |
+
<?php
|
1725 |
+
printf(
|
1726 |
+
// translators: %s Wraplines parameter.
|
1727 |
+
esc_html_x(
|
1728 |
+
'%s (v2 only) — Toggle line wrapping.',
|
1729 |
+
'wraplines parameter',
|
1730 |
+
'syntaxhighlighter'
|
1731 |
+
),
|
1732 |
+
'<code>wraplines</code>'
|
1733 |
+
);
|
1734 |
+
?>
|
1735 |
+
</li>
|
1736 |
+
<li>
|
1737 |
+
<?php
|
1738 |
+
printf(
|
1739 |
+
// translators: %s Quickcode parameter.
|
1740 |
+
esc_html_x(
|
1741 |
+
'%s — Enable edit mode on double click.',
|
1742 |
+
'quickcode parameter',
|
1743 |
+
'syntaxhighlighter'
|
1744 |
+
),
|
1745 |
+
'<code>quickcode</code>'
|
1746 |
+
);
|
1747 |
+
?>
|
1748 |
+
</li>
|
1749 |
</ul>
|
1750 |
|
1751 |
<p><?php esc_html_e( 'Some example shortcodes:', 'syntaxhighlighter' ); ?></p>
|
syntaxhighlighter2/scripts/shBrushAS3.js
CHANGED
@@ -1,47 +1,47 @@
|
|
1 |
-
/**
|
2 |
-
* SyntaxHighlighter
|
3 |
-
* http://alexgorbatchev.com/
|
4 |
-
*
|
5 |
-
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
-
*
|
8 |
-
* @version
|
9 |
-
* 2.1.364 (October 15 2009)
|
10 |
-
*
|
11 |
-
* @copyright
|
12 |
-
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
-
*
|
14 |
-
* @license
|
15 |
-
* This file is part of SyntaxHighlighter.
|
16 |
-
*
|
17 |
-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
-
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
-
* the Free Software Foundation, either version 3 of the License, or
|
20 |
-
* (at your option) any later version.
|
21 |
-
*
|
22 |
-
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
* GNU General Public License for more details.
|
26 |
-
*
|
27 |
-
* You should have received a copy of the GNU General Public License
|
28 |
-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
-
*/
|
30 |
SyntaxHighlighter.brushes.AS3 = function()
|
31 |
{
|
32 |
// Created by Peter Atoria @ http://iAtoria.com
|
33 |
-
|
34 |
var inits = 'class interface function package';
|
35 |
-
|
36 |
-
var keywords = '-Infinity ...rest Array as AS3 Boolean break case catch const continue Date decodeURI ' +
|
37 |
-
'decodeURIComponent default delete do dynamic each else encodeURI encodeURIComponent escape ' +
|
38 |
-
'extends false final finally flash_proxy for get if implements import in include Infinity ' +
|
39 |
-
'instanceof int internal is isFinite isNaN isXMLName label namespace NaN native new null ' +
|
40 |
-
'Null Number Object object_proxy override parseFloat parseInt private protected public ' +
|
41 |
-
'return set static String super switch this throw true try typeof uint undefined unescape ' +
|
42 |
'use void while with'
|
43 |
;
|
44 |
-
|
45 |
this.regexList = [
|
46 |
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
47 |
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
@@ -53,7 +53,7 @@ SyntaxHighlighter.brushes.AS3 = function()
|
|
53 |
{ regex: new RegExp('var', 'gm'), css: 'variable' }, // variable
|
54 |
{ regex: new RegExp('trace', 'gm'), css: 'color1' } // trace
|
55 |
];
|
56 |
-
|
57 |
this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags);
|
58 |
};
|
59 |
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
SyntaxHighlighter.brushes.AS3 = function()
|
31 |
{
|
32 |
// Created by Peter Atoria @ http://iAtoria.com
|
33 |
+
|
34 |
var inits = 'class interface function package';
|
35 |
+
|
36 |
+
var keywords = '-Infinity ...rest Array as AS3 Boolean break case catch const continue Date decodeURI ' +
|
37 |
+
'decodeURIComponent default delete do dynamic each else encodeURI encodeURIComponent escape ' +
|
38 |
+
'extends false final finally flash_proxy for get if implements import in include Infinity ' +
|
39 |
+
'instanceof int internal is isFinite isNaN isXMLName label namespace NaN native new null ' +
|
40 |
+
'Null Number Object object_proxy override parseFloat parseInt private protected public ' +
|
41 |
+
'return set static String super switch this throw true try typeof uint undefined unescape ' +
|
42 |
'use void while with'
|
43 |
;
|
44 |
+
|
45 |
this.regexList = [
|
46 |
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
47 |
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
53 |
{ regex: new RegExp('var', 'gm'), css: 'variable' }, // variable
|
54 |
{ regex: new RegExp('trace', 'gm'), css: 'color1' } // trace
|
55 |
];
|
56 |
+
|
57 |
this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags);
|
58 |
};
|
59 |
|
syntaxhighlighter2/scripts/shBrushBash.js
CHANGED
@@ -1,66 +1,66 @@
|
|
1 |
-
/**
|
2 |
-
* SyntaxHighlighter
|
3 |
-
* http://alexgorbatchev.com/
|
4 |
-
*
|
5 |
-
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
-
*
|
8 |
-
* @version
|
9 |
-
* 2.1.364 (October 15 2009)
|
10 |
-
*
|
11 |
-
* @copyright
|
12 |
-
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
-
*
|
14 |
-
* @license
|
15 |
-
* This file is part of SyntaxHighlighter.
|
16 |
-
*
|
17 |
-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
-
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
-
* the Free Software Foundation, either version 3 of the License, or
|
20 |
-
* (at your option) any later version.
|
21 |
-
*
|
22 |
-
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
* GNU General Public License for more details.
|
26 |
-
*
|
27 |
-
* You should have received a copy of the GNU General Public License
|
28 |
-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
-
*/
|
30 |
-
SyntaxHighlighter.brushes.Bash = function()
|
31 |
-
{
|
32 |
-
var keywords = 'if fi then elif else for do done until while break continue case function return in eq ne gt lt ge le';
|
33 |
-
var commands = 'alias apropos awk basename bash bc bg builtin bzip2 cal cat cd cfdisk chgrp chmod chown chroot' +
|
34 |
-
'cksum clear cmp comm command cp cron crontab csplit cut date dc dd ddrescue declare df ' +
|
35 |
-
'diff diff3 dig dir dircolors dirname dirs du echo egrep eject enable env ethtool eval ' +
|
36 |
-
'exec exit expand export expr false fdformat fdisk fg fgrep file find fmt fold format ' +
|
37 |
-
'free fsck ftp gawk getopts grep groups gzip hash head history hostname id ifconfig ' +
|
38 |
-
'import install join kill less let ln local locate logname logout look lpc lpr lprint ' +
|
39 |
-
'lprintd lprintq lprm ls lsof make man mkdir mkfifo mkisofs mknod more mount mtools ' +
|
40 |
-
'mv netstat nice nl nohup nslookup open op passwd paste pathchk ping popd pr printcap ' +
|
41 |
-
'printenv printf ps pushd pwd quota quotacheck quotactl ram rcp read readonly renice ' +
|
42 |
-
'remsync rm rmdir rsync screen scp sdiff sed select seq set sftp shift shopt shutdown ' +
|
43 |
-
'sleep sort source split ssh strace su sudo sum symlink sync tail tar tee test time ' +
|
44 |
-
'times touch top traceroute trap tr true tsort tty type ulimit umask umount unalias ' +
|
45 |
-
'uname unexpand uniq units unset unshar useradd usermod users uuencode uudecode v vdir ' +
|
46 |
-
'vi watch wc whereis which who whoami Wget xargs yes'
|
47 |
-
;
|
48 |
-
|
49 |
-
this.findMatches = function(regexList, code)
|
50 |
-
{
|
51 |
-
code = code.replace(/>/g, '>').replace(/</g, '<');
|
52 |
-
this.code = code;
|
53 |
-
return SyntaxHighlighter.Highlighter.prototype.findMatches.apply(this, [regexList, code]);
|
54 |
-
};
|
55 |
-
|
56 |
-
this.regexList = [
|
57 |
-
{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments
|
58 |
-
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
59 |
-
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
60 |
-
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
|
61 |
-
{ regex: new RegExp(this.getKeywords(commands), 'gm'), css: 'functions' } // commands
|
62 |
-
];
|
63 |
-
}
|
64 |
-
|
65 |
-
SyntaxHighlighter.brushes.Bash.prototype = new SyntaxHighlighter.Highlighter();
|
66 |
-
SyntaxHighlighter.brushes.Bash.aliases = ['bash', 'shell'];
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.Bash = function()
|
31 |
+
{
|
32 |
+
var keywords = 'if fi then elif else for do done until while break continue case function return in eq ne gt lt ge le';
|
33 |
+
var commands = 'alias apropos awk basename bash bc bg builtin bzip2 cal cat cd cfdisk chgrp chmod chown chroot' +
|
34 |
+
'cksum clear cmp comm command cp cron crontab csplit cut date dc dd ddrescue declare df ' +
|
35 |
+
'diff diff3 dig dir dircolors dirname dirs du echo egrep eject enable env ethtool eval ' +
|
36 |
+
'exec exit expand export expr false fdformat fdisk fg fgrep file find fmt fold format ' +
|
37 |
+
'free fsck ftp gawk getopts grep groups gzip hash head history hostname id ifconfig ' +
|
38 |
+
'import install join kill less let ln local locate logname logout look lpc lpr lprint ' +
|
39 |
+
'lprintd lprintq lprm ls lsof make man mkdir mkfifo mkisofs mknod more mount mtools ' +
|
40 |
+
'mv netstat nice nl nohup nslookup open op passwd paste pathchk ping popd pr printcap ' +
|
41 |
+
'printenv printf ps pushd pwd quota quotacheck quotactl ram rcp read readonly renice ' +
|
42 |
+
'remsync rm rmdir rsync screen scp sdiff sed select seq set sftp shift shopt shutdown ' +
|
43 |
+
'sleep sort source split ssh strace su sudo sum symlink sync tail tar tee test time ' +
|
44 |
+
'times touch top traceroute trap tr true tsort tty type ulimit umask umount unalias ' +
|
45 |
+
'uname unexpand uniq units unset unshar useradd usermod users uuencode uudecode v vdir ' +
|
46 |
+
'vi watch wc whereis which who whoami Wget xargs yes'
|
47 |
+
;
|
48 |
+
|
49 |
+
this.findMatches = function(regexList, code)
|
50 |
+
{
|
51 |
+
code = code.replace(/>/g, '>').replace(/</g, '<');
|
52 |
+
this.code = code;
|
53 |
+
return SyntaxHighlighter.Highlighter.prototype.findMatches.apply(this, [regexList, code]);
|
54 |
+
};
|
55 |
+
|
56 |
+
this.regexList = [
|
57 |
+
{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments
|
58 |
+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
59 |
+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
60 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
|
61 |
+
{ regex: new RegExp(this.getKeywords(commands), 'gm'), css: 'functions' } // commands
|
62 |
+
];
|
63 |
+
}
|
64 |
+
|
65 |
+
SyntaxHighlighter.brushes.Bash.prototype = new SyntaxHighlighter.Highlighter();
|
66 |
+
SyntaxHighlighter.brushes.Bash.aliases = ['bash', 'shell'];
|
syntaxhighlighter2/scripts/shBrushCSharp.js
CHANGED
@@ -1,67 +1,67 @@
|
|
1 |
-
/**
|
2 |
-
* SyntaxHighlighter
|
3 |
-
* http://alexgorbatchev.com/
|
4 |
-
*
|
5 |
-
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
-
*
|
8 |
-
* @version
|
9 |
-
* 2.1.364 (October 15 2009)
|
10 |
-
*
|
11 |
-
* @copyright
|
12 |
-
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
-
*
|
14 |
-
* @license
|
15 |
-
* This file is part of SyntaxHighlighter.
|
16 |
-
*
|
17 |
-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
-
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
-
* the Free Software Foundation, either version 3 of the License, or
|
20 |
-
* (at your option) any later version.
|
21 |
-
*
|
22 |
-
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
* GNU General Public License for more details.
|
26 |
-
*
|
27 |
-
* You should have received a copy of the GNU General Public License
|
28 |
-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
-
*/
|
30 |
-
SyntaxHighlighter.brushes.CSharp = function()
|
31 |
-
{
|
32 |
-
var keywords = 'abstract as base bool break byte case catch char checked class const ' +
|
33 |
-
'continue decimal default delegate do double else enum event explicit ' +
|
34 |
-
'extern false finally fixed float for foreach get goto if implicit in int ' +
|
35 |
-
'interface internal is lock long namespace new null object operator out ' +
|
36 |
-
'override params private protected public readonly ref return sbyte sealed set ' +
|
37 |
-
'short sizeof stackalloc static string struct switch this throw true try ' +
|
38 |
-
'typeof uint ulong unchecked unsafe ushort using virtual void while';
|
39 |
-
|
40 |
-
function fixComments(match, regexInfo)
|
41 |
-
{
|
42 |
-
var css = (match[0].indexOf("///") == 0)
|
43 |
-
? 'color1'
|
44 |
-
: 'comments'
|
45 |
-
;
|
46 |
-
|
47 |
-
return [new SyntaxHighlighter.Match(match[0], match.index, css)];
|
48 |
-
}
|
49 |
-
|
50 |
-
this.regexList = [
|
51 |
-
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, func : fixComments }, // one line comments
|
52 |
-
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
53 |
-
{ regex: /@"(?:[^"]|"")*"/g, css: 'string' }, // @-quoted strings
|
54 |
-
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
55 |
-
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
56 |
-
{ regex: /^\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
|
57 |
-
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // c# keyword
|
58 |
-
{ regex: /\bpartial(?=\s+(?:class|interface|struct)\b)/g, css: 'keyword' }, // contextual keyword: 'partial'
|
59 |
-
{ regex: /\byield(?=\s+(?:return|break)\b)/g, css: 'keyword' } // contextual keyword: 'yield'
|
60 |
-
];
|
61 |
-
|
62 |
-
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
63 |
-
};
|
64 |
-
|
65 |
-
SyntaxHighlighter.brushes.CSharp.prototype = new SyntaxHighlighter.Highlighter();
|
66 |
-
SyntaxHighlighter.brushes.CSharp.aliases = ['c#', 'c-sharp', 'csharp'];
|
67 |
-
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.CSharp = function()
|
31 |
+
{
|
32 |
+
var keywords = 'abstract as base bool break byte case catch char checked class const ' +
|
33 |
+
'continue decimal default delegate do double else enum event explicit ' +
|
34 |
+
'extern false finally fixed float for foreach get goto if implicit in int ' +
|
35 |
+
'interface internal is lock long namespace new null object operator out ' +
|
36 |
+
'override params private protected public readonly ref return sbyte sealed set ' +
|
37 |
+
'short sizeof stackalloc static string struct switch this throw true try ' +
|
38 |
+
'typeof uint ulong unchecked unsafe ushort using virtual void while';
|
39 |
+
|
40 |
+
function fixComments(match, regexInfo)
|
41 |
+
{
|
42 |
+
var css = (match[0].indexOf("///") == 0)
|
43 |
+
? 'color1'
|
44 |
+
: 'comments'
|
45 |
+
;
|
46 |
+
|
47 |
+
return [new SyntaxHighlighter.Match(match[0], match.index, css)];
|
48 |
+
}
|
49 |
+
|
50 |
+
this.regexList = [
|
51 |
+
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, func : fixComments }, // one line comments
|
52 |
+
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
53 |
+
{ regex: /@"(?:[^"]|"")*"/g, css: 'string' }, // @-quoted strings
|
54 |
+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
55 |
+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
56 |
+
{ regex: /^\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
|
57 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // c# keyword
|
58 |
+
{ regex: /\bpartial(?=\s+(?:class|interface|struct)\b)/g, css: 'keyword' }, // contextual keyword: 'partial'
|
59 |
+
{ regex: /\byield(?=\s+(?:return|break)\b)/g, css: 'keyword' } // contextual keyword: 'yield'
|
60 |
+
];
|
61 |
+
|
62 |
+
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
63 |
+
};
|
64 |
+
|
65 |
+
SyntaxHighlighter.brushes.CSharp.prototype = new SyntaxHighlighter.Highlighter();
|
66 |
+
SyntaxHighlighter.brushes.CSharp.aliases = ['c#', 'c-sharp', 'csharp'];
|
67 |
+
|
syntaxhighlighter2/scripts/shBrushColdFusion.js
CHANGED
@@ -1,88 +1,88 @@
|
|
1 |
-
/**
|
2 |
-
* SyntaxHighlighter
|
3 |
-
* http://alexgorbatchev.com/
|
4 |
-
*
|
5 |
-
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
-
*
|
8 |
-
* @version
|
9 |
-
* 2.1.364 (October 15 2009)
|
10 |
-
*
|
11 |
-
* @copyright
|
12 |
-
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
-
*
|
14 |
-
* @license
|
15 |
-
* This file is part of SyntaxHighlighter.
|
16 |
-
*
|
17 |
-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
-
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
-
* the Free Software Foundation, either version 3 of the License, or
|
20 |
-
* (at your option) any later version.
|
21 |
-
*
|
22 |
-
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
* GNU General Public License for more details.
|
26 |
-
*
|
27 |
-
* You should have received a copy of the GNU General Public License
|
28 |
-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
-
*/
|
30 |
SyntaxHighlighter.brushes.ColdFusion = function()
|
31 |
{
|
32 |
// Contributed by Jen
|
33 |
// http://www.jensbits.com/2009/05/14/coldfusion-brush-for-syntaxhighlighter-plus
|
34 |
-
|
35 |
-
var funcs = 'Abs ACos AddSOAPRequestHeader AddSOAPResponseHeader AjaxLink AjaxOnLoad ArrayAppend ArrayAvg ArrayClear ArrayDeleteAt ' +
|
36 |
-
'ArrayInsertAt ArrayIsDefined ArrayIsEmpty ArrayLen ArrayMax ArrayMin ArraySet ArraySort ArraySum ArraySwap ArrayToList ' +
|
37 |
-
'Asc ASin Atn BinaryDecode BinaryEncode BitAnd BitMaskClear BitMaskRead BitMaskSet BitNot BitOr BitSHLN BitSHRN BitXor ' +
|
38 |
-
'Ceiling CharsetDecode CharsetEncode Chr CJustify Compare CompareNoCase Cos CreateDate CreateDateTime CreateObject ' +
|
39 |
-
'CreateODBCDate CreateODBCDateTime CreateODBCTime CreateTime CreateTimeSpan CreateUUID DateAdd DateCompare DateConvert ' +
|
40 |
-
'DateDiff DateFormat DatePart Day DayOfWeek DayOfWeekAsString DayOfYear DaysInMonth DaysInYear DE DecimalFormat DecrementValue ' +
|
41 |
-
'Decrypt DecryptBinary DeleteClientVariable DeserializeJSON DirectoryExists DollarFormat DotNetToCFType Duplicate Encrypt ' +
|
42 |
-
'EncryptBinary Evaluate Exp ExpandPath FileClose FileCopy FileDelete FileExists FileIsEOF FileMove FileOpen FileRead ' +
|
43 |
-
'FileReadBinary FileReadLine FileSetAccessMode FileSetAttribute FileSetLastModified FileWrite Find FindNoCase FindOneOf ' +
|
44 |
-
'FirstDayOfMonth Fix FormatBaseN GenerateSecretKey GetAuthUser GetBaseTagData GetBaseTagList GetBaseTemplatePath ' +
|
45 |
-
'GetClientVariablesList GetComponentMetaData GetContextRoot GetCurrentTemplatePath GetDirectoryFromPath GetEncoding ' +
|
46 |
-
'GetException GetFileFromPath GetFileInfo GetFunctionList GetGatewayHelper GetHttpRequestData GetHttpTimeString ' +
|
47 |
-
'GetK2ServerDocCount GetK2ServerDocCountLimit GetLocale GetLocaleDisplayName GetLocalHostIP GetMetaData GetMetricData ' +
|
48 |
-
'GetPageContext GetPrinterInfo GetProfileSections GetProfileString GetReadableImageFormats GetSOAPRequest GetSOAPRequestHeader ' +
|
49 |
-
'GetSOAPResponse GetSOAPResponseHeader GetTempDirectory GetTempFile GetTemplatePath GetTickCount GetTimeZoneInfo GetToken ' +
|
50 |
-
'GetUserRoles GetWriteableImageFormats Hash Hour HTMLCodeFormat HTMLEditFormat IIf ImageAddBorder ImageBlur ImageClearRect ' +
|
51 |
-
'ImageCopy ImageCrop ImageDrawArc ImageDrawBeveledRect ImageDrawCubicCurve ImageDrawLine ImageDrawLines ImageDrawOval ' +
|
52 |
-
'ImageDrawPoint ImageDrawQuadraticCurve ImageDrawRect ImageDrawRoundRect ImageDrawText ImageFlip ImageGetBlob ImageGetBufferedImage ' +
|
53 |
-
'ImageGetEXIFTag ImageGetHeight ImageGetIPTCTag ImageGetWidth ImageGrayscale ImageInfo ImageNegative ImageNew ImageOverlay ImagePaste ' +
|
54 |
-
'ImageRead ImageReadBase64 ImageResize ImageRotate ImageRotateDrawingAxis ImageScaleToFit ImageSetAntialiasing ImageSetBackgroundColor ' +
|
55 |
-
'ImageSetDrawingColor ImageSetDrawingStroke ImageSetDrawingTransparency ImageSharpen ImageShear ImageShearDrawingAxis ImageTranslate ' +
|
56 |
-
'ImageTranslateDrawingAxis ImageWrite ImageWriteBase64 ImageXORDrawingMode IncrementValue InputBaseN Insert Int IsArray IsBinary ' +
|
57 |
-
'IsBoolean IsCustomFunction IsDate IsDDX IsDebugMode IsDefined IsImage IsImageFile IsInstanceOf IsJSON IsLeapYear IsLocalHost ' +
|
58 |
-
'IsNumeric IsNumericDate IsObject IsPDFFile IsPDFObject IsQuery IsSimpleValue IsSOAPRequest IsStruct IsUserInAnyRole IsUserInRole ' +
|
59 |
-
'IsUserLoggedIn IsValid IsWDDX IsXML IsXmlAttribute IsXmlDoc IsXmlElem IsXmlNode IsXmlRoot JavaCast JSStringFormat LCase Left Len ' +
|
60 |
-
'ListAppend ListChangeDelims ListContains ListContainsNoCase ListDeleteAt ListFind ListFindNoCase ListFirst ListGetAt ListInsertAt ' +
|
61 |
-
'ListLast ListLen ListPrepend ListQualify ListRest ListSetAt ListSort ListToArray ListValueCount ListValueCountNoCase LJustify Log ' +
|
62 |
-
'Log10 LSCurrencyFormat LSDateFormat LSEuroCurrencyFormat LSIsCurrency LSIsDate LSIsNumeric LSNumberFormat LSParseCurrency LSParseDateTime ' +
|
63 |
-
'LSParseEuroCurrency LSParseNumber LSTimeFormat LTrim Max Mid Min Minute Month MonthAsString Now NumberFormat ParagraphFormat ParseDateTime ' +
|
64 |
-
'Pi PrecisionEvaluate PreserveSingleQuotes Quarter QueryAddColumn QueryAddRow QueryConvertForGrid QueryNew QuerySetCell QuotedValueList Rand ' +
|
65 |
-
'Randomize RandRange REFind REFindNoCase ReleaseComObject REMatch REMatchNoCase RemoveChars RepeatString Replace ReplaceList ReplaceNoCase ' +
|
66 |
-
'REReplace REReplaceNoCase Reverse Right RJustify Round RTrim Second SendGatewayMessage SerializeJSON SetEncoding SetLocale SetProfileString ' +
|
67 |
-
'SetVariable Sgn Sin Sleep SpanExcluding SpanIncluding Sqr StripCR StructAppend StructClear StructCopy StructCount StructDelete StructFind ' +
|
68 |
-
'StructFindKey StructFindValue StructGet StructInsert StructIsEmpty StructKeyArray StructKeyExists StructKeyList StructKeyList StructNew ' +
|
69 |
-
'StructSort StructUpdate Tan TimeFormat ToBase64 ToBinary ToScript ToString Trim UCase URLDecode URLEncodedFormat URLSessionFormat Val ' +
|
70 |
-
'ValueList VerifyClient Week Wrap Wrap WriteOutput XmlChildPos XmlElemNew XmlFormat XmlGetNodeType XmlNew XmlParse XmlSearch XmlTransform ' +
|
71 |
'XmlValidate Year YesNoFormat';
|
72 |
|
73 |
-
var keywords = 'cfabort cfajaximport cfajaxproxy cfapplet cfapplication cfargument cfassociate cfbreak cfcache cfcalendar ' +
|
74 |
-
'cfcase cfcatch cfchart cfchartdata cfchartseries cfcol cfcollection cfcomponent cfcontent cfcookie cfdbinfo ' +
|
75 |
-
'cfdefaultcase cfdirectory cfdiv cfdocument cfdocumentitem cfdocumentsection cfdump cfelse cfelseif cferror ' +
|
76 |
-
'cfexchangecalendar cfexchangeconnection cfexchangecontact cfexchangefilter cfexchangemail cfexchangetask ' +
|
77 |
-
'cfexecute cfexit cffeed cffile cfflush cfform cfformgroup cfformitem cfftp cffunction cfgrid cfgridcolumn ' +
|
78 |
-
'cfgridrow cfgridupdate cfheader cfhtmlhead cfhttp cfhttpparam cfif cfimage cfimport cfinclude cfindex ' +
|
79 |
-
'cfinput cfinsert cfinterface cfinvoke cfinvokeargument cflayout cflayoutarea cfldap cflocation cflock cflog ' +
|
80 |
-
'cflogin cfloginuser cflogout cfloop cfmail cfmailparam cfmailpart cfmenu cfmenuitem cfmodule cfNTauthenticate ' +
|
81 |
-
'cfobject cfobjectcache cfoutput cfparam cfpdf cfpdfform cfpdfformparam cfpdfparam cfpdfsubform cfpod cfpop ' +
|
82 |
-
'cfpresentation cfpresentationslide cfpresenter cfprint cfprocessingdirective cfprocparam cfprocresult ' +
|
83 |
-
'cfproperty cfquery cfqueryparam cfregistry cfreport cfreportparam cfrethrow cfreturn cfsavecontent cfschedule ' +
|
84 |
-
'cfscript cfsearch cfselect cfset cfsetting cfsilent cfslider cfsprydataset cfstoredproc cfswitch cftable ' +
|
85 |
-
'cftextarea cfthread cfthrow cftimer cftooltip cftrace cftransaction cftree cftreeitem cftry cfupdate cfwddx ' +
|
86 |
'cfwindow cfxml cfzip cfzipparam';
|
87 |
|
88 |
var operators = 'all and any between cross in join like not null or outer some';
|
@@ -99,4 +99,4 @@ SyntaxHighlighter.brushes.ColdFusion = function()
|
|
99 |
}
|
100 |
|
101 |
SyntaxHighlighter.brushes.ColdFusion.prototype = new SyntaxHighlighter.Highlighter();
|
102 |
-
SyntaxHighlighter.brushes.ColdFusion.aliases = ['coldfusion','cf'];
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
SyntaxHighlighter.brushes.ColdFusion = function()
|
31 |
{
|
32 |
// Contributed by Jen
|
33 |
// http://www.jensbits.com/2009/05/14/coldfusion-brush-for-syntaxhighlighter-plus
|
34 |
+
|
35 |
+
var funcs = 'Abs ACos AddSOAPRequestHeader AddSOAPResponseHeader AjaxLink AjaxOnLoad ArrayAppend ArrayAvg ArrayClear ArrayDeleteAt ' +
|
36 |
+
'ArrayInsertAt ArrayIsDefined ArrayIsEmpty ArrayLen ArrayMax ArrayMin ArraySet ArraySort ArraySum ArraySwap ArrayToList ' +
|
37 |
+
'Asc ASin Atn BinaryDecode BinaryEncode BitAnd BitMaskClear BitMaskRead BitMaskSet BitNot BitOr BitSHLN BitSHRN BitXor ' +
|
38 |
+
'Ceiling CharsetDecode CharsetEncode Chr CJustify Compare CompareNoCase Cos CreateDate CreateDateTime CreateObject ' +
|
39 |
+
'CreateODBCDate CreateODBCDateTime CreateODBCTime CreateTime CreateTimeSpan CreateUUID DateAdd DateCompare DateConvert ' +
|
40 |
+
'DateDiff DateFormat DatePart Day DayOfWeek DayOfWeekAsString DayOfYear DaysInMonth DaysInYear DE DecimalFormat DecrementValue ' +
|
41 |
+
'Decrypt DecryptBinary DeleteClientVariable DeserializeJSON DirectoryExists DollarFormat DotNetToCFType Duplicate Encrypt ' +
|
42 |
+
'EncryptBinary Evaluate Exp ExpandPath FileClose FileCopy FileDelete FileExists FileIsEOF FileMove FileOpen FileRead ' +
|
43 |
+
'FileReadBinary FileReadLine FileSetAccessMode FileSetAttribute FileSetLastModified FileWrite Find FindNoCase FindOneOf ' +
|
44 |
+
'FirstDayOfMonth Fix FormatBaseN GenerateSecretKey GetAuthUser GetBaseTagData GetBaseTagList GetBaseTemplatePath ' +
|
45 |
+
'GetClientVariablesList GetComponentMetaData GetContextRoot GetCurrentTemplatePath GetDirectoryFromPath GetEncoding ' +
|
46 |
+
'GetException GetFileFromPath GetFileInfo GetFunctionList GetGatewayHelper GetHttpRequestData GetHttpTimeString ' +
|
47 |
+
'GetK2ServerDocCount GetK2ServerDocCountLimit GetLocale GetLocaleDisplayName GetLocalHostIP GetMetaData GetMetricData ' +
|
48 |
+
'GetPageContext GetPrinterInfo GetProfileSections GetProfileString GetReadableImageFormats GetSOAPRequest GetSOAPRequestHeader ' +
|
49 |
+
'GetSOAPResponse GetSOAPResponseHeader GetTempDirectory GetTempFile GetTemplatePath GetTickCount GetTimeZoneInfo GetToken ' +
|
50 |
+
'GetUserRoles GetWriteableImageFormats Hash Hour HTMLCodeFormat HTMLEditFormat IIf ImageAddBorder ImageBlur ImageClearRect ' +
|
51 |
+
'ImageCopy ImageCrop ImageDrawArc ImageDrawBeveledRect ImageDrawCubicCurve ImageDrawLine ImageDrawLines ImageDrawOval ' +
|
52 |
+
'ImageDrawPoint ImageDrawQuadraticCurve ImageDrawRect ImageDrawRoundRect ImageDrawText ImageFlip ImageGetBlob ImageGetBufferedImage ' +
|
53 |
+
'ImageGetEXIFTag ImageGetHeight ImageGetIPTCTag ImageGetWidth ImageGrayscale ImageInfo ImageNegative ImageNew ImageOverlay ImagePaste ' +
|
54 |
+
'ImageRead ImageReadBase64 ImageResize ImageRotate ImageRotateDrawingAxis ImageScaleToFit ImageSetAntialiasing ImageSetBackgroundColor ' +
|
55 |
+
'ImageSetDrawingColor ImageSetDrawingStroke ImageSetDrawingTransparency ImageSharpen ImageShear ImageShearDrawingAxis ImageTranslate ' +
|
56 |
+
'ImageTranslateDrawingAxis ImageWrite ImageWriteBase64 ImageXORDrawingMode IncrementValue InputBaseN Insert Int IsArray IsBinary ' +
|
57 |
+
'IsBoolean IsCustomFunction IsDate IsDDX IsDebugMode IsDefined IsImage IsImageFile IsInstanceOf IsJSON IsLeapYear IsLocalHost ' +
|
58 |
+
'IsNumeric IsNumericDate IsObject IsPDFFile IsPDFObject IsQuery IsSimpleValue IsSOAPRequest IsStruct IsUserInAnyRole IsUserInRole ' +
|
59 |
+
'IsUserLoggedIn IsValid IsWDDX IsXML IsXmlAttribute IsXmlDoc IsXmlElem IsXmlNode IsXmlRoot JavaCast JSStringFormat LCase Left Len ' +
|
60 |
+
'ListAppend ListChangeDelims ListContains ListContainsNoCase ListDeleteAt ListFind ListFindNoCase ListFirst ListGetAt ListInsertAt ' +
|
61 |
+
'ListLast ListLen ListPrepend ListQualify ListRest ListSetAt ListSort ListToArray ListValueCount ListValueCountNoCase LJustify Log ' +
|
62 |
+
'Log10 LSCurrencyFormat LSDateFormat LSEuroCurrencyFormat LSIsCurrency LSIsDate LSIsNumeric LSNumberFormat LSParseCurrency LSParseDateTime ' +
|
63 |
+
'LSParseEuroCurrency LSParseNumber LSTimeFormat LTrim Max Mid Min Minute Month MonthAsString Now NumberFormat ParagraphFormat ParseDateTime ' +
|
64 |
+
'Pi PrecisionEvaluate PreserveSingleQuotes Quarter QueryAddColumn QueryAddRow QueryConvertForGrid QueryNew QuerySetCell QuotedValueList Rand ' +
|
65 |
+
'Randomize RandRange REFind REFindNoCase ReleaseComObject REMatch REMatchNoCase RemoveChars RepeatString Replace ReplaceList ReplaceNoCase ' +
|
66 |
+
'REReplace REReplaceNoCase Reverse Right RJustify Round RTrim Second SendGatewayMessage SerializeJSON SetEncoding SetLocale SetProfileString ' +
|
67 |
+
'SetVariable Sgn Sin Sleep SpanExcluding SpanIncluding Sqr StripCR StructAppend StructClear StructCopy StructCount StructDelete StructFind ' +
|
68 |
+
'StructFindKey StructFindValue StructGet StructInsert StructIsEmpty StructKeyArray StructKeyExists StructKeyList StructKeyList StructNew ' +
|
69 |
+
'StructSort StructUpdate Tan TimeFormat ToBase64 ToBinary ToScript ToString Trim UCase URLDecode URLEncodedFormat URLSessionFormat Val ' +
|
70 |
+
'ValueList VerifyClient Week Wrap Wrap WriteOutput XmlChildPos XmlElemNew XmlFormat XmlGetNodeType XmlNew XmlParse XmlSearch XmlTransform ' +
|
71 |
'XmlValidate Year YesNoFormat';
|
72 |
|
73 |
+
var keywords = 'cfabort cfajaximport cfajaxproxy cfapplet cfapplication cfargument cfassociate cfbreak cfcache cfcalendar ' +
|
74 |
+
'cfcase cfcatch cfchart cfchartdata cfchartseries cfcol cfcollection cfcomponent cfcontent cfcookie cfdbinfo ' +
|
75 |
+
'cfdefaultcase cfdirectory cfdiv cfdocument cfdocumentitem cfdocumentsection cfdump cfelse cfelseif cferror ' +
|
76 |
+
'cfexchangecalendar cfexchangeconnection cfexchangecontact cfexchangefilter cfexchangemail cfexchangetask ' +
|
77 |
+
'cfexecute cfexit cffeed cffile cfflush cfform cfformgroup cfformitem cfftp cffunction cfgrid cfgridcolumn ' +
|
78 |
+
'cfgridrow cfgridupdate cfheader cfhtmlhead cfhttp cfhttpparam cfif cfimage cfimport cfinclude cfindex ' +
|
79 |
+
'cfinput cfinsert cfinterface cfinvoke cfinvokeargument cflayout cflayoutarea cfldap cflocation cflock cflog ' +
|
80 |
+
'cflogin cfloginuser cflogout cfloop cfmail cfmailparam cfmailpart cfmenu cfmenuitem cfmodule cfNTauthenticate ' +
|
81 |
+
'cfobject cfobjectcache cfoutput cfparam cfpdf cfpdfform cfpdfformparam cfpdfparam cfpdfsubform cfpod cfpop ' +
|
82 |
+
'cfpresentation cfpresentationslide cfpresenter cfprint cfprocessingdirective cfprocparam cfprocresult ' +
|
83 |
+
'cfproperty cfquery cfqueryparam cfregistry cfreport cfreportparam cfrethrow cfreturn cfsavecontent cfschedule ' +
|
84 |
+
'cfscript cfsearch cfselect cfset cfsetting cfsilent cfslider cfsprydataset cfstoredproc cfswitch cftable ' +
|
85 |
+
'cftextarea cfthread cfthrow cftimer cftooltip cftrace cftransaction cftree cftreeitem cftry cfupdate cfwddx ' +
|
86 |
'cfwindow cfxml cfzip cfzipparam';
|
87 |
|
88 |
var operators = 'all and any between cross in join like not null or outer some';
|
99 |
}
|
100 |
|
101 |
SyntaxHighlighter.brushes.ColdFusion.prototype = new SyntaxHighlighter.Highlighter();
|
102 |
+
SyntaxHighlighter.brushes.ColdFusion.aliases = ['coldfusion','cf'];
|
syntaxhighlighter2/scripts/shBrushCpp.js
CHANGED
@@ -1,99 +1,100 @@
|
|
1 |
-
/**
|
2 |
-
* SyntaxHighlighter
|
3 |
-
* http://alexgorbatchev.com/
|
4 |
-
*
|
5 |
-
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
-
*
|
8 |
-
* @version
|
9 |
-
* 2.1.364 (October 15 2009)
|
10 |
-
*
|
11 |
-
* @copyright
|
12 |
-
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
-
*
|
14 |
-
* @license
|
15 |
-
* This file is part of SyntaxHighlighter.
|
16 |
-
*
|
17 |
-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
-
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
-
* the Free Software Foundation, either version 3 of the License, or
|
20 |
-
* (at your option) any later version.
|
21 |
-
*
|
22 |
-
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
* GNU General Public License for more details.
|
26 |
-
*
|
27 |
-
* You should have received a copy of the GNU General Public License
|
28 |
-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
-
*/
|
30 |
-
SyntaxHighlighter.brushes.Cpp = function()
|
31 |
-
{
|
32 |
-
// Copyright 2006 Shin, YoungJin
|
33 |
-
|
34 |
-
var datatypes = 'ATOM BOOL BOOLEAN BYTE CHAR COLORREF DWORD DWORDLONG DWORD_PTR ' +
|
35 |
-
'DWORD32 DWORD64 FLOAT HACCEL HALF_PTR HANDLE HBITMAP HBRUSH ' +
|
36 |
-
'HCOLORSPACE HCONV HCONVLIST HCURSOR HDC HDDEDATA HDESK HDROP HDWP ' +
|
37 |
-
'HENHMETAFILE HFILE HFONT HGDIOBJ HGLOBAL HHOOK HICON HINSTANCE HKEY ' +
|
38 |
-
'HKL HLOCAL HMENU HMETAFILE HMODULE HMONITOR HPALETTE HPEN HRESULT ' +
|
39 |
-
'HRGN HRSRC HSZ HWINSTA HWND INT INT_PTR INT32 INT64 LANGID LCID LCTYPE ' +
|
40 |
-
'LGRPID LONG LONGLONG LONG_PTR LONG32 LONG64 LPARAM LPBOOL LPBYTE LPCOLORREF ' +
|
41 |
-
'LPCSTR LPCTSTR LPCVOID LPCWSTR LPDWORD LPHANDLE LPINT LPLONG LPSTR LPTSTR ' +
|
42 |
-
'LPVOID LPWORD LPWSTR LRESULT PBOOL PBOOLEAN PBYTE PCHAR PCSTR PCTSTR PCWSTR ' +
|
43 |
-
'PDWORDLONG PDWORD_PTR PDWORD32 PDWORD64 PFLOAT PHALF_PTR PHANDLE PHKEY PINT ' +
|
44 |
-
'PINT_PTR PINT32 PINT64 PLCID PLONG PLONGLONG PLONG_PTR PLONG32 PLONG64 POINTER_32 ' +
|
45 |
-
'POINTER_64 PSHORT PSIZE_T PSSIZE_T PSTR PTBYTE PTCHAR PTSTR PUCHAR PUHALF_PTR ' +
|
46 |
-
'PUINT PUINT_PTR PUINT32 PUINT64 PULONG PULONGLONG PULONG_PTR PULONG32 PULONG64 ' +
|
47 |
-
'PUSHORT PVOID PWCHAR PWORD PWSTR SC_HANDLE SC_LOCK SERVICE_STATUS_HANDLE SHORT ' +
|
48 |
-
'SIZE_T SSIZE_T TBYTE TCHAR UCHAR UHALF_PTR UINT UINT_PTR UINT32 UINT64 ULONG ' +
|
49 |
-
'ULONGLONG ULONG_PTR ULONG32 ULONG64 USHORT USN VOID WCHAR WORD WPARAM WPARAM WPARAM ' +
|
50 |
-
'char bool short int __int32 __int64 __int8 __int16 long float double __wchar_t ' +
|
51 |
-
'clock_t _complex _dev_t _diskfree_t div_t ldiv_t _exception _EXCEPTION_POINTERS ' +
|
52 |
-
'FILE _finddata_t _finddatai64_t _wfinddata_t _wfinddatai64_t __finddata64_t ' +
|
53 |
-
'__wfinddata64_t _FPIEEE_RECORD fpos_t _HEAPINFO _HFILE lconv intptr_t ' +
|
54 |
-
'jmp_buf mbstate_t _off_t _onexit_t _PNH ptrdiff_t _purecall_handler ' +
|
55 |
-
'sig_atomic_t size_t _stat __stat64 _stati64 terminate_function ' +
|
56 |
-
'time_t __time64_t _timeb __timeb64 tm uintptr_t _utimbuf ' +
|
57 |
-
'va_list wchar_t wctrans_t wctype_t wint_t signed'
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
'
|
62 |
-
'
|
63 |
-
'
|
64 |
-
'
|
65 |
-
'
|
66 |
-
'
|
67 |
-
'
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
'
|
72 |
-
'
|
73 |
-
'
|
74 |
-
'
|
75 |
-
'
|
76 |
-
'
|
77 |
-
'
|
78 |
-
'
|
79 |
-
'
|
80 |
-
'
|
81 |
-
'
|
82 |
-
'
|
83 |
-
'
|
84 |
-
'
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
{ regex: SyntaxHighlighter.regexLib.
|
89 |
-
{ regex: SyntaxHighlighter.regexLib.
|
90 |
-
{ regex: SyntaxHighlighter.regexLib.
|
91 |
-
{ regex:
|
92 |
-
{ regex:
|
93 |
-
{ regex: new RegExp(this.getKeywords(
|
94 |
-
{ regex: new RegExp(this.getKeywords(
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
SyntaxHighlighter.brushes.Cpp.
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.Cpp = function()
|
31 |
+
{
|
32 |
+
// Copyright 2006 Shin, YoungJin
|
33 |
+
|
34 |
+
var datatypes = 'ATOM BOOL BOOLEAN BYTE CHAR COLORREF DWORD DWORDLONG DWORD_PTR ' +
|
35 |
+
'DWORD32 DWORD64 FLOAT HACCEL HALF_PTR HANDLE HBITMAP HBRUSH ' +
|
36 |
+
'HCOLORSPACE HCONV HCONVLIST HCURSOR HDC HDDEDATA HDESK HDROP HDWP ' +
|
37 |
+
'HENHMETAFILE HFILE HFONT HGDIOBJ HGLOBAL HHOOK HICON HINSTANCE HKEY ' +
|
38 |
+
'HKL HLOCAL HMENU HMETAFILE HMODULE HMONITOR HPALETTE HPEN HRESULT ' +
|
39 |
+
'HRGN HRSRC HSZ HWINSTA HWND INT INT_PTR INT32 INT64 LANGID LCID LCTYPE ' +
|
40 |
+
'LGRPID LONG LONGLONG LONG_PTR LONG32 LONG64 LPARAM LPBOOL LPBYTE LPCOLORREF ' +
|
41 |
+
'LPCSTR LPCTSTR LPCVOID LPCWSTR LPDWORD LPHANDLE LPINT LPLONG LPSTR LPTSTR ' +
|
42 |
+
'LPVOID LPWORD LPWSTR LRESULT PBOOL PBOOLEAN PBYTE PCHAR PCSTR PCTSTR PCWSTR ' +
|
43 |
+
'PDWORDLONG PDWORD_PTR PDWORD32 PDWORD64 PFLOAT PHALF_PTR PHANDLE PHKEY PINT ' +
|
44 |
+
'PINT_PTR PINT32 PINT64 PLCID PLONG PLONGLONG PLONG_PTR PLONG32 PLONG64 POINTER_32 ' +
|
45 |
+
'POINTER_64 PSHORT PSIZE_T PSSIZE_T PSTR PTBYTE PTCHAR PTSTR PUCHAR PUHALF_PTR ' +
|
46 |
+
'PUINT PUINT_PTR PUINT32 PUINT64 PULONG PULONGLONG PULONG_PTR PULONG32 PULONG64 ' +
|
47 |
+
'PUSHORT PVOID PWCHAR PWORD PWSTR SC_HANDLE SC_LOCK SERVICE_STATUS_HANDLE SHORT ' +
|
48 |
+
'SIZE_T SSIZE_T TBYTE TCHAR UCHAR UHALF_PTR UINT UINT_PTR UINT32 UINT64 ULONG ' +
|
49 |
+
'ULONGLONG ULONG_PTR ULONG32 ULONG64 USHORT USN VOID WCHAR WORD WPARAM WPARAM WPARAM ' +
|
50 |
+
'char bool short int __int32 __int64 __int8 __int16 long float double __wchar_t ' +
|
51 |
+
'clock_t _complex _dev_t _diskfree_t div_t ldiv_t _exception _EXCEPTION_POINTERS ' +
|
52 |
+
'FILE _finddata_t _finddatai64_t _wfinddata_t _wfinddatai64_t __finddata64_t ' +
|
53 |
+
'__wfinddata64_t _FPIEEE_RECORD fpos_t _HEAPINFO _HFILE lconv intptr_t ' +
|
54 |
+
'jmp_buf mbstate_t _off_t _onexit_t _PNH ptrdiff_t _purecall_handler ' +
|
55 |
+
'sig_atomic_t size_t _stat __stat64 _stati64 terminate_function ' +
|
56 |
+
'time_t __time64_t _timeb __timeb64 tm uintptr_t _utimbuf ' +
|
57 |
+
'va_list wchar_t wctrans_t wctype_t wint_t signed ' +
|
58 |
+
'int8_t int16_t int_32_t int64_t uint8_t uint16_t uint32_t uint64_t';
|
59 |
+
|
60 |
+
var keywords = 'break case catch class const __finally __exception __try ' +
|
61 |
+
'const_cast continue private public protected __declspec ' +
|
62 |
+
'default delete deprecated dllexport dllimport do dynamic_cast ' +
|
63 |
+
'else enum explicit extern if for friend goto inline ' +
|
64 |
+
'mutable naked namespace new noinline noreturn nothrow ' +
|
65 |
+
'register reinterpret_cast return selectany ' +
|
66 |
+
'sizeof static static_cast struct switch template this ' +
|
67 |
+
'thread throw true false try typedef typeid typename union ' +
|
68 |
+
'using uuid virtual void volatile whcar_t while';
|
69 |
+
|
70 |
+
var functions = 'assert isalnum isalpha iscntrl isdigit isgraph islower isprint' +
|
71 |
+
'ispunct isspace isupper isxdigit tolower toupper errno localeconv ' +
|
72 |
+
'setlocale acos asin atan atan2 ceil cos cosh exp fabs floor fmod ' +
|
73 |
+
'frexp ldexp log log10 modf pow sin sinh sqrt tan tanh jmp_buf ' +
|
74 |
+
'longjmp setjmp raise signal sig_atomic_t va_arg va_end va_start ' +
|
75 |
+
'clearerr fclose feof ferror fflush fgetc fgetpos fgets fopen ' +
|
76 |
+
'fprintf fputc fputs fread freopen fscanf fseek fsetpos ftell ' +
|
77 |
+
'fwrite getc getchar gets perror printf putc putchar puts remove ' +
|
78 |
+
'rename rewind scanf setbuf setvbuf sprintf sscanf tmpfile tmpnam ' +
|
79 |
+
'ungetc vfprintf vprintf vsprintf abort abs atexit atof atoi atol ' +
|
80 |
+
'bsearch calloc div exit free getenv labs ldiv malloc mblen mbstowcs ' +
|
81 |
+
'mbtowc qsort rand realloc srand strtod strtol strtoul system ' +
|
82 |
+
'wcstombs wctomb memchr memcmp memcpy memmove memset strcat strchr ' +
|
83 |
+
'strcmp strcoll strcpy strcspn strerror strlen strncat strncmp ' +
|
84 |
+
'strncpy strpbrk strrchr strspn strstr strtok strxfrm asctime ' +
|
85 |
+
'clock ctime difftime gmtime localtime mktime strftime time';
|
86 |
+
|
87 |
+
this.regexList = [
|
88 |
+
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
89 |
+
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
90 |
+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
91 |
+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
92 |
+
{ regex: /^ *#.*/gm, css: 'preprocessor' },
|
93 |
+
{ regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'color1 bold' },
|
94 |
+
{ regex: new RegExp(this.getKeywords(functions), 'gm'), css: 'functions bold' },
|
95 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword bold' }
|
96 |
+
];
|
97 |
+
};
|
98 |
+
|
99 |
+
SyntaxHighlighter.brushes.Cpp.prototype = new SyntaxHighlighter.Highlighter();
|
100 |
+
SyntaxHighlighter.brushes.Cpp.aliases = ['cpp', 'c'];
|
syntaxhighlighter2/scripts/shBrushCss.js
CHANGED
@@ -1,93 +1,93 @@
|
|
1 |
-
/**
|
2 |
-
* SyntaxHighlighter
|
3 |
-
* http://alexgorbatchev.com/
|
4 |
-
*
|
5 |
-
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
-
*
|
8 |
-
* @version
|
9 |
-
* 2.1.364 (October 15 2009)
|
10 |
-
*
|
11 |
-
* @copyright
|
12 |
-
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
-
*
|
14 |
-
* @license
|
15 |
-
* This file is part of SyntaxHighlighter.
|
16 |
-
*
|
17 |
-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
-
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
-
* the Free Software Foundation, either version 3 of the License, or
|
20 |
-
* (at your option) any later version.
|
21 |
-
*
|
22 |
-
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
* GNU General Public License for more details.
|
26 |
-
*
|
27 |
-
* You should have received a copy of the GNU General Public License
|
28 |
-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
-
*/
|
30 |
-
SyntaxHighlighter.brushes.CSS = function()
|
31 |
-
{
|
32 |
-
function getKeywordsCSS(str)
|
33 |
-
{
|
34 |
-
return '\\b([a-z_]|)' + str.replace(/ /g, '(?=:)\\b|\\b([a-z_\\*]|\\*|)') + '(?=:)\\b';
|
35 |
-
};
|
36 |
-
|
37 |
-
function getValuesCSS(str)
|
38 |
-
{
|
39 |
-
return '\\b' + str.replace(/ /g, '(?!-)(?!:)\\b|\\b()') + '\:\\b';
|
40 |
-
};
|
41 |
-
|
42 |
-
var keywords = 'ascent azimuth background-attachment background-color background-image background-position ' +
|
43 |
-
'background-repeat background baseline bbox border-collapse border-color border-spacing border-style border-top ' +
|
44 |
-
'border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color ' +
|
45 |
-
'border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width ' +
|
46 |
-
'border-bottom-width border-left-width border-width border bottom cap-height caption-side centerline clear clip color ' +
|
47 |
-
'content counter-increment counter-reset cue-after cue-before cue cursor definition-src descent direction display ' +
|
48 |
-
'elevation empty-cells float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font ' +
|
49 |
-
'height left letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top ' +
|
50 |
-
'margin-right margin-bottom margin-left margin marker-offset marks mathline max-height max-width min-height min-width orphans ' +
|
51 |
-
'outline-color outline-style outline-width outline overflow padding-top padding-right padding-bottom padding-left padding page ' +
|
52 |
-
'page-break-after page-break-before page-break-inside pause pause-after pause-before pitch pitch-range play-during position ' +
|
53 |
-
'quotes right richness size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress ' +
|
54 |
-
'table-layout text-align top text-decoration text-indent text-shadow text-transform unicode-bidi unicode-range units-per-em ' +
|
55 |
-
'vertical-align visibility voice-family volume white-space widows width widths word-spacing x-height z-index';
|
56 |
-
|
57 |
-
var values = 'above absolute all always aqua armenian attr aural auto avoid baseline behind below bidi-override black blink block blue bold bolder '+
|
58 |
-
'both bottom braille capitalize caption center center-left center-right circle close-quote code collapse compact condensed '+
|
59 |
-
'continuous counter counters crop cross crosshair cursive dashed decimal decimal-leading-zero default digits disc dotted double '+
|
60 |
-
'embed embossed e-resize expanded extra-condensed extra-expanded fantasy far-left far-right fast faster fixed format fuchsia '+
|
61 |
-
'gray green groove handheld hebrew help hidden hide high higher icon inline-table inline inset inside invert italic '+
|
62 |
-
'justify landscape large larger left-side left leftwards level lighter lime line-through list-item local loud lower-alpha '+
|
63 |
-
'lowercase lower-greek lower-latin lower-roman lower low ltr marker maroon medium message-box middle mix move narrower '+
|
64 |
-
'navy ne-resize no-close-quote none no-open-quote no-repeat normal nowrap n-resize nw-resize oblique olive once open-quote outset '+
|
65 |
-
'outside overline pointer portrait pre print projection purple red relative repeat repeat-x repeat-y rgb ridge right right-side '+
|
66 |
-
'rightwards rtl run-in screen scroll semi-condensed semi-expanded separate se-resize show silent silver slower slow '+
|
67 |
-
'small small-caps small-caption smaller soft solid speech spell-out square s-resize static status-bar sub super sw-resize '+
|
68 |
-
'table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group teal '+
|
69 |
-
'text-bottom text-top thick thin top transparent tty tv ultra-condensed ultra-expanded underline upper-alpha uppercase upper-latin '+
|
70 |
-
'upper-roman url visible wait white wider w-resize x-fast x-high x-large x-loud x-low x-slow x-small x-soft xx-large xx-small yellow';
|
71 |
-
|
72 |
-
var fonts = '[mM]onospace [tT]ahoma [vV]erdana [aA]rial [hH]elvetica [sS]ans-serif [sS]erif [cC]ourier mono sans serif';
|
73 |
-
|
74 |
-
this.regexList = [
|
75 |
-
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
76 |
-
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
77 |
-
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
78 |
-
{ regex: /\#[a-fA-F0-9]{3,6}/g, css: 'value' }, // html colors
|
79 |
-
{ regex: /(-?\d+)(\.\d+)?(px|em|pt|\:|\%|)/g, css: 'value' }, // sizes
|
80 |
-
{ regex: /!important/g, css: 'color3' }, // !important
|
81 |
-
{ regex: new RegExp(getKeywordsCSS(keywords), 'gm'), css: 'keyword' }, // keywords
|
82 |
-
{ regex: new RegExp(getValuesCSS(values), 'g'), css: 'value' }, // values
|
83 |
-
{ regex: new RegExp(this.getKeywords(fonts), 'g'), css: 'color1' } // fonts
|
84 |
-
];
|
85 |
-
|
86 |
-
this.forHtmlScript({
|
87 |
-
left: /(<|<)\s*style.*?(>|>)/gi,
|
88 |
-
right: /(<|<)\/\s*style\s*(>|>)/gi
|
89 |
-
});
|
90 |
-
};
|
91 |
-
|
92 |
-
SyntaxHighlighter.brushes.CSS.prototype = new SyntaxHighlighter.Highlighter();
|
93 |
-
SyntaxHighlighter.brushes.CSS.aliases = ['css'];
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.CSS = function()
|
31 |
+
{
|
32 |
+
function getKeywordsCSS(str)
|
33 |
+
{
|
34 |
+
return '\\b([a-z_]|)' + str.replace(/ /g, '(?=:)\\b|\\b([a-z_\\*]|\\*|)') + '(?=:)\\b';
|
35 |
+
};
|
36 |
+
|
37 |
+
function getValuesCSS(str)
|
38 |
+
{
|
39 |
+
return '\\b' + str.replace(/ /g, '(?!-)(?!:)\\b|\\b()') + '\:\\b';
|
40 |
+
};
|
41 |
+
|
42 |
+
var keywords = 'ascent azimuth background-attachment background-color background-image background-position ' +
|
43 |
+
'background-repeat background baseline bbox border-collapse border-color border-spacing border-style border-top ' +
|
44 |
+
'border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color ' +
|
45 |
+
'border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width ' +
|
46 |
+
'border-bottom-width border-left-width border-width border bottom cap-height caption-side centerline clear clip color ' +
|
47 |
+
'content counter-increment counter-reset cue-after cue-before cue cursor definition-src descent direction display ' +
|
48 |
+
'elevation empty-cells float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font ' +
|
49 |
+
'height left letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top ' +
|
50 |
+
'margin-right margin-bottom margin-left margin marker-offset marks mathline max-height max-width min-height min-width orphans ' +
|
51 |
+
'outline-color outline-style outline-width outline overflow padding-top padding-right padding-bottom padding-left padding page ' +
|
52 |
+
'page-break-after page-break-before page-break-inside pause pause-after pause-before pitch pitch-range play-during position ' +
|
53 |
+
'quotes right richness size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress ' +
|
54 |
+
'table-layout text-align top text-decoration text-indent text-shadow text-transform unicode-bidi unicode-range units-per-em ' +
|
55 |
+
'vertical-align visibility voice-family volume white-space widows width widths word-spacing x-height z-index';
|
56 |
+
|
57 |
+
var values = 'above absolute all always aqua armenian attr aural auto avoid baseline behind below bidi-override black blink block blue bold bolder '+
|
58 |
+
'both bottom braille capitalize caption center center-left center-right circle close-quote code collapse compact condensed '+
|
59 |
+
'continuous counter counters crop cross crosshair cursive dashed decimal decimal-leading-zero default digits disc dotted double '+
|
60 |
+
'embed embossed e-resize expanded extra-condensed extra-expanded fantasy far-left far-right fast faster fixed format fuchsia '+
|
61 |
+
'gray green groove handheld hebrew help hidden hide high higher icon inline-table inline inset inside invert italic '+
|
62 |
+
'justify landscape large larger left-side left leftwards level lighter lime line-through list-item local loud lower-alpha '+
|
63 |
+
'lowercase lower-greek lower-latin lower-roman lower low ltr marker maroon medium message-box middle mix move narrower '+
|
64 |
+
'navy ne-resize no-close-quote none no-open-quote no-repeat normal nowrap n-resize nw-resize oblique olive once open-quote outset '+
|
65 |
+
'outside overline pointer portrait pre print projection purple red relative repeat repeat-x repeat-y rgb ridge right right-side '+
|
66 |
+
'rightwards rtl run-in screen scroll semi-condensed semi-expanded separate se-resize show silent silver slower slow '+
|
67 |
+
'small small-caps small-caption smaller soft solid speech spell-out square s-resize static status-bar sub super sw-resize '+
|
68 |
+
'table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group teal '+
|
69 |
+
'text-bottom text-top thick thin top transparent tty tv ultra-condensed ultra-expanded underline upper-alpha uppercase upper-latin '+
|
70 |
+
'upper-roman url visible wait white wider w-resize x-fast x-high x-large x-loud x-low x-slow x-small x-soft xx-large xx-small yellow';
|
71 |
+
|
72 |
+
var fonts = '[mM]onospace [tT]ahoma [vV]erdana [aA]rial [hH]elvetica [sS]ans-serif [sS]erif [cC]ourier mono sans serif';
|
73 |
+
|
74 |
+
this.regexList = [
|
75 |
+
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
76 |
+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
77 |
+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
78 |
+
{ regex: /\#[a-fA-F0-9]{3,6}/g, css: 'value' }, // html colors
|
79 |
+
{ regex: /(-?\d+)(\.\d+)?(px|em|pt|\:|\%|)/g, css: 'value' }, // sizes
|
80 |
+
{ regex: /!important/g, css: 'color3' }, // !important
|
81 |
+
{ regex: new RegExp(getKeywordsCSS(keywords), 'gm'), css: 'keyword' }, // keywords
|
82 |
+
{ regex: new RegExp(getValuesCSS(values), 'g'), css: 'value' }, // values
|
83 |
+
{ regex: new RegExp(this.getKeywords(fonts), 'g'), css: 'color1' } // fonts
|
84 |
+
];
|
85 |
+
|
86 |
+
this.forHtmlScript({
|
87 |
+
left: /(<|<)\s*style.*?(>|>)/gi,
|
88 |
+
right: /(<|<)\/\s*style\s*(>|>)/gi
|
89 |
+
});
|
90 |
+
};
|
91 |
+
|
92 |
+
SyntaxHighlighter.brushes.CSS.prototype = new SyntaxHighlighter.Highlighter();
|
93 |
+
SyntaxHighlighter.brushes.CSS.aliases = ['css'];
|
syntaxhighlighter2/scripts/shBrushDiff.js
CHANGED
@@ -1,43 +1,43 @@
|
|
1 |
-
/**
|
2 |
-
* SyntaxHighlighter
|
3 |
-
* http://alexgorbatchev.com/
|
4 |
-
*
|
5 |
-
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
-
*
|
8 |
-
* @version
|
9 |
-
* 2.1.364 (October 15 2009)
|
10 |
-
*
|
11 |
-
* @copyright
|
12 |
-
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
-
*
|
14 |
-
* @license
|
15 |
-
* This file is part of SyntaxHighlighter.
|
16 |
-
*
|
17 |
-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
-
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
-
* the Free Software Foundation, either version 3 of the License, or
|
20 |
-
* (at your option) any later version.
|
21 |
-
*
|
22 |
-
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
* GNU General Public License for more details.
|
26 |
-
*
|
27 |
-
* You should have received a copy of the GNU General Public License
|
28 |
-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
-
*/
|
30 |
-
SyntaxHighlighter.brushes.Diff = function()
|
31 |
-
{
|
32 |
-
this.regexList = [
|
33 |
-
{ regex: /^\+\+\+.*$/gm, css: 'color2' },
|
34 |
-
{ regex: /^\-\-\-.*$/gm, css: 'color2' },
|
35 |
-
{ regex: /^\s.*$/gm, css: 'color1' },
|
36 |
-
{ regex: /^@@.*@@$/gm, css: 'variable' },
|
37 |
-
{ regex: /^\+[^\+]{1}.*$/gm, css: 'string' },
|
38 |
-
{ regex: /^\-[^\-]{1}.*$/gm, css: 'comments' }
|
39 |
-
];
|
40 |
-
};
|
41 |
-
|
42 |
-
SyntaxHighlighter.brushes.Diff.prototype = new SyntaxHighlighter.Highlighter();
|
43 |
-
SyntaxHighlighter.brushes.Diff.aliases = ['diff', 'patch'];
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.Diff = function()
|
31 |
+
{
|
32 |
+
this.regexList = [
|
33 |
+
{ regex: /^\+\+\+.*$/gm, css: 'color2' },
|
34 |
+
{ regex: /^\-\-\-.*$/gm, css: 'color2' },
|
35 |
+
{ regex: /^\s.*$/gm, css: 'color1' },
|
36 |
+
{ regex: /^@@.*@@$/gm, css: 'variable' },
|
37 |
+
{ regex: /^\+[^\+]{1}.*$/gm, css: 'string' },
|
38 |
+
{ regex: /^\-[^\-]{1}.*$/gm, css: 'comments' }
|
39 |
+
];
|
40 |
+
};
|
41 |
+
|
42 |
+
SyntaxHighlighter.brushes.Diff.prototype = new SyntaxHighlighter.Highlighter();
|
43 |
+
SyntaxHighlighter.brushes.Diff.aliases = ['diff', 'patch'];
|
syntaxhighlighter2/scripts/shBrushErlang.js
CHANGED
@@ -1,36 +1,36 @@
|
|
1 |
-
/**
|
2 |
-
* SyntaxHighlighter
|
3 |
-
* http://alexgorbatchev.com/
|
4 |
-
*
|
5 |
-
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
-
*
|
8 |
-
* @version
|
9 |
-
* 2.1.364 (October 15 2009)
|
10 |
-
*
|
11 |
-
* @copyright
|
12 |
-
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
-
*
|
14 |
-
* @license
|
15 |
-
* This file is part of SyntaxHighlighter.
|
16 |
-
*
|
17 |
-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
-
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
-
* the Free Software Foundation, either version 3 of the License, or
|
20 |
-
* (at your option) any later version.
|
21 |
-
*
|
22 |
-
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
* GNU General Public License for more details.
|
26 |
-
*
|
27 |
-
* You should have received a copy of the GNU General Public License
|
28 |
-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
-
*/
|
30 |
SyntaxHighlighter.brushes.Erlang = function()
|
31 |
{
|
32 |
// Contributed by Jean-Lou Dupont
|
33 |
-
// http://jldupont.blogspot.com/2009/06/erlang-syntax-highlighter.html
|
34 |
|
35 |
// According to: http://erlang.org/doc/reference_manual/introduction.html#1.5
|
36 |
var keywords = 'after and andalso band begin bnot bor bsl bsr bxor '+
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
SyntaxHighlighter.brushes.Erlang = function()
|
31 |
{
|
32 |
// Contributed by Jean-Lou Dupont
|
33 |
+
// http://jldupont.blogspot.com/2009/06/erlang-syntax-highlighter.html
|
34 |
|
35 |
// According to: http://erlang.org/doc/reference_manual/introduction.html#1.5
|
36 |
var keywords = 'after and andalso band begin bnot bor bsl bsr bxor '+
|
syntaxhighlighter2/scripts/shBrushGroovy.js
CHANGED
@@ -1,32 +1,32 @@
|
|
1 |
-
/**
|
2 |
-
* SyntaxHighlighter
|
3 |
-
* http://alexgorbatchev.com/
|
4 |
-
*
|
5 |
-
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
-
*
|
8 |
-
* @version
|
9 |
-
* 2.1.364 (October 15 2009)
|
10 |
-
*
|
11 |
-
* @copyright
|
12 |
-
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
-
*
|
14 |
-
* @license
|
15 |
-
* This file is part of SyntaxHighlighter.
|
16 |
-
*
|
17 |
-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
-
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
-
* the Free Software Foundation, either version 3 of the License, or
|
20 |
-
* (at your option) any later version.
|
21 |
-
*
|
22 |
-
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
* GNU General Public License for more details.
|
26 |
-
*
|
27 |
-
* You should have received a copy of the GNU General Public License
|
28 |
-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
-
*/
|
30 |
SyntaxHighlighter.brushes.Groovy = function()
|
31 |
{
|
32 |
// Contributed by Andres Almiray
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
SyntaxHighlighter.brushes.Groovy = function()
|
31 |
{
|
32 |
// Contributed by Andres Almiray
|
syntaxhighlighter2/scripts/shBrushJScript.js
CHANGED
@@ -1,52 +1,52 @@
|
|
1 |
-
/**
|
2 |
-
* SyntaxHighlighter
|
3 |
-
* http://alexgorbatchev.com/
|
4 |
-
*
|
5 |
-
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
-
*
|
8 |
-
* @version
|
9 |
-
* 2.1.364 (October 15 2009)
|
10 |
-
*
|
11 |
-
* @copyright
|
12 |
-
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
-
*
|
14 |
-
* @license
|
15 |
-
* This file is part of SyntaxHighlighter.
|
16 |
-
*
|
17 |
-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
-
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
-
* the Free Software Foundation, either version 3 of the License, or
|
20 |
-
* (at your option) any later version.
|
21 |
-
*
|
22 |
-
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
* GNU General Public License for more details.
|
26 |
-
*
|
27 |
-
* You should have received a copy of the GNU General Public License
|
28 |
-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
-
*/
|
30 |
-
SyntaxHighlighter.brushes.JScript = function()
|
31 |
-
{
|
32 |
-
var keywords = 'break case catch continue ' +
|
33 |
-
'default delete do else false ' +
|
34 |
-
'for function if in instanceof ' +
|
35 |
-
'new null return super switch ' +
|
36 |
-
'this throw true try typeof var while with'
|
37 |
-
;
|
38 |
-
|
39 |
-
this.regexList = [
|
40 |
-
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
41 |
-
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
42 |
-
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
43 |
-
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
44 |
-
{ regex: /\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
|
45 |
-
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords
|
46 |
-
];
|
47 |
-
|
48 |
-
this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags);
|
49 |
-
};
|
50 |
-
|
51 |
-
SyntaxHighlighter.brushes.JScript.prototype = new SyntaxHighlighter.Highlighter();
|
52 |
-
SyntaxHighlighter.brushes.JScript.aliases = ['js', 'jscript', 'javascript'];
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.JScript = function()
|
31 |
+
{
|
32 |
+
var keywords = 'break case catch continue ' +
|
33 |
+
'default delete do else false ' +
|
34 |
+
'for function if in instanceof ' +
|
35 |
+
'new null return super switch ' +
|
36 |
+
'this throw true try typeof var while with'
|
37 |
+
;
|
38 |
+
|
39 |
+
this.regexList = [
|
40 |
+
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
41 |
+
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
42 |
+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
43 |
+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
44 |
+
{ regex: /\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
|
45 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords
|
46 |
+
];
|
47 |
+
|
48 |
+
this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags);
|
49 |
+
};
|
50 |
+
|
51 |
+
SyntaxHighlighter.brushes.JScript.prototype = new SyntaxHighlighter.Highlighter();
|
52 |
+
SyntaxHighlighter.brushes.JScript.aliases = ['js', 'jscript', 'javascript'];
|
syntaxhighlighter2/scripts/shBrushJava.js
CHANGED
@@ -1,59 +1,59 @@
|
|
1 |
-
/**
|
2 |
-
* SyntaxHighlighter
|
3 |
-
* http://alexgorbatchev.com/
|
4 |
-
*
|
5 |
-
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
-
*
|
8 |
-
* @version
|
9 |
-
* 2.1.364 (October 15 2009)
|
10 |
-
*
|
11 |
-
* @copyright
|
12 |
-
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
-
*
|
14 |
-
* @license
|
15 |
-
* This file is part of SyntaxHighlighter.
|
16 |
-
*
|
17 |
-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
-
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
-
* the Free Software Foundation, either version 3 of the License, or
|
20 |
-
* (at your option) any later version.
|
21 |
-
*
|
22 |
-
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
* GNU General Public License for more details.
|
26 |
-
*
|
27 |
-
* You should have received a copy of the GNU General Public License
|
28 |
-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
-
*/
|
30 |
-
SyntaxHighlighter.brushes.Java = function()
|
31 |
-
{
|
32 |
-
var keywords = 'abstract assert boolean break byte case catch char class const ' +
|
33 |
-
'continue default do double else enum extends ' +
|
34 |
-
'false final finally float for goto if implements import ' +
|
35 |
-
'instanceof int interface long native new null ' +
|
36 |
-
'package private protected public return ' +
|
37 |
-
'short static strictfp super switch synchronized this throw throws true ' +
|
38 |
-
'transient try void volatile while';
|
39 |
-
|
40 |
-
this.regexList = [
|
41 |
-
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
42 |
-
{ regex: /\/\*([^\*][\s\S]*)?\*\//gm, css: 'comments' }, // multiline comments
|
43 |
-
{ regex: /\/\*(?!\*\/)\*[\s\S]*?\*\//gm, css: 'preprocessor' }, // documentation comments
|
44 |
-
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
45 |
-
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
46 |
-
{ regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers
|
47 |
-
{ regex: /(?!\@interface\b)\@[\$\w]+\b/g, css: 'color1' }, // annotation @anno
|
48 |
-
{ regex: /\@interface\b/g, css: 'color2' }, // @interface keyword
|
49 |
-
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // java keyword
|
50 |
-
];
|
51 |
-
|
52 |
-
this.forHtmlScript({
|
53 |
-
left : /(<|<)%[@!=]?/g,
|
54 |
-
right : /%(>|>)/g
|
55 |
-
});
|
56 |
-
};
|
57 |
-
|
58 |
-
SyntaxHighlighter.brushes.Java.prototype = new SyntaxHighlighter.Highlighter();
|
59 |
-
SyntaxHighlighter.brushes.Java.aliases = ['java'];
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.Java = function()
|
31 |
+
{
|
32 |
+
var keywords = 'abstract assert boolean break byte case catch char class const ' +
|
33 |
+
'continue default do double else enum extends ' +
|
34 |
+
'false final finally float for goto if implements import ' +
|
35 |
+
'instanceof int interface long native new null ' +
|
36 |
+
'package private protected public return ' +
|
37 |
+
'short static strictfp super switch synchronized this throw throws true ' +
|
38 |
+
'transient try void volatile while';
|
39 |
+
|
40 |
+
this.regexList = [
|
41 |
+
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
42 |
+
{ regex: /\/\*([^\*][\s\S]*)?\*\//gm, css: 'comments' }, // multiline comments
|
43 |
+
{ regex: /\/\*(?!\*\/)\*[\s\S]*?\*\//gm, css: 'preprocessor' }, // documentation comments
|
44 |
+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
45 |
+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
46 |
+
{ regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers
|
47 |
+
{ regex: /(?!\@interface\b)\@[\$\w]+\b/g, css: 'color1' }, // annotation @anno
|
48 |
+
{ regex: /\@interface\b/g, css: 'color2' }, // @interface keyword
|
49 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // java keyword
|
50 |
+
];
|
51 |
+
|
52 |
+
this.forHtmlScript({
|
53 |
+
left : /(<|<)%[@!=]?/g,
|
54 |
+
right : /%(>|>)/g
|
55 |
+
});
|
56 |
+
};
|
57 |
+
|
58 |
+
SyntaxHighlighter.brushes.Java.prototype = new SyntaxHighlighter.Highlighter();
|
59 |
+
SyntaxHighlighter.brushes.Java.aliases = ['java'];
|
syntaxhighlighter2/scripts/shBrushJavaFX.js
CHANGED
@@ -1,32 +1,32 @@
|
|
1 |
-
/**
|
2 |
-
* SyntaxHighlighter
|
3 |
-
* http://alexgorbatchev.com/
|
4 |
-
*
|
5 |
-
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
-
*
|
8 |
-
* @version
|
9 |
-
* 2.1.364 (October 15 2009)
|
10 |
-
*
|
11 |
-
* @copyright
|
12 |
-
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
-
*
|
14 |
-
* @license
|
15 |
-
* This file is part of SyntaxHighlighter.
|
16 |
-
*
|
17 |
-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
-
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
-
* the Free Software Foundation, either version 3 of the License, or
|
20 |
-
* (at your option) any later version.
|
21 |
-
*
|
22 |
-
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
* GNU General Public License for more details.
|
26 |
-
*
|
27 |
-
* You should have received a copy of the GNU General Public License
|
28 |
-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
-
*/
|
30 |
SyntaxHighlighter.brushes.JavaFX = function()
|
31 |
{
|
32 |
// Contributed by Patrick Webster
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
SyntaxHighlighter.brushes.JavaFX = function()
|
31 |
{
|
32 |
// Contributed by Patrick Webster
|
syntaxhighlighter2/scripts/shBrushPerl.js
CHANGED
@@ -1,74 +1,74 @@
|
|
1 |
-
/**
|
2 |
-
* SyntaxHighlighter
|
3 |
-
* http://alexgorbatchev.com/
|
4 |
-
*
|
5 |
-
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
-
*
|
8 |
-
* @version
|
9 |
-
* 2.1.364 (October 15 2009)
|
10 |
-
*
|
11 |
-
* @copyright
|
12 |
-
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
-
*
|
14 |
-
* @license
|
15 |
-
* This file is part of SyntaxHighlighter.
|
16 |
-
*
|
17 |
-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
-
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
-
* the Free Software Foundation, either version 3 of the License, or
|
20 |
-
* (at your option) any later version.
|
21 |
-
*
|
22 |
-
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
* GNU General Public License for more details.
|
26 |
-
*
|
27 |
-
* You should have received a copy of the GNU General Public License
|
28 |
-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
-
*/
|
30 |
-
SyntaxHighlighter.brushes.Perl = function()
|
31 |
-
{
|
32 |
-
// Contributed by David Simmons-Duffin and Marty Kube
|
33 |
-
|
34 |
-
var funcs =
|
35 |
-
'abs accept alarm atan2 bind binmode chdir chmod chomp chop chown chr ' +
|
36 |
-
'chroot close closedir connect cos crypt defined delete each endgrent ' +
|
37 |
-
'endhostent endnetent endprotoent endpwent endservent eof exec exists ' +
|
38 |
-
'exp fcntl fileno flock fork format formline getc getgrent getgrgid ' +
|
39 |
-
'getgrnam gethostbyaddr gethostbyname gethostent getlogin getnetbyaddr ' +
|
40 |
-
'getnetbyname getnetent getpeername getpgrp getppid getpriority ' +
|
41 |
-
'getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid ' +
|
42 |
-
'getservbyname getservbyport getservent getsockname getsockopt glob ' +
|
43 |
-
'gmtime grep hex index int ioctl join keys kill lc lcfirst length link ' +
|
44 |
-
'listen localtime lock log lstat map mkdir msgctl msgget msgrcv msgsnd ' +
|
45 |
-
'oct open opendir ord pack pipe pop pos print printf prototype push ' +
|
46 |
-
'quotemeta rand read readdir readline readlink readpipe recv rename ' +
|
47 |
-
'reset reverse rewinddir rindex rmdir scalar seek seekdir select semctl ' +
|
48 |
-
'semget semop send setgrent sethostent setnetent setpgrp setpriority ' +
|
49 |
-
'setprotoent setpwent setservent setsockopt shift shmctl shmget shmread ' +
|
50 |
-
'shmwrite shutdown sin sleep socket socketpair sort splice split sprintf ' +
|
51 |
-
'sqrt srand stat study substr symlink syscall sysopen sysread sysseek ' +
|
52 |
-
'system syswrite tell telldir time times tr truncate uc ucfirst umask ' +
|
53 |
-
'undef unlink unpack unshift utime values vec wait waitpid warn write';
|
54 |
-
|
55 |
-
var keywords =
|
56 |
-
'bless caller continue dbmclose dbmopen die do dump else elsif eval exit ' +
|
57 |
-
'for foreach goto if import last local my next no our package redo ref ' +
|
58 |
-
'require return sub tie tied unless untie until use wantarray while';
|
59 |
-
|
60 |
-
this.regexList = [
|
61 |
-
{ regex: new RegExp('#[^!].*$', 'gm'), css: 'comments' },
|
62 |
-
{ regex: new RegExp('^\\s*#!.*$', 'gm'), css: 'preprocessor' }, // shebang
|
63 |
-
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
|
64 |
-
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
|
65 |
-
{ regex: new RegExp('(\\$|@|%)\\w+', 'g'), css: 'variable' },
|
66 |
-
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' },
|
67 |
-
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
|
68 |
-
];
|
69 |
-
|
70 |
-
this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
|
71 |
-
}
|
72 |
-
|
73 |
-
SyntaxHighlighter.brushes.Perl.prototype = new SyntaxHighlighter.Highlighter();
|
74 |
-
SyntaxHighlighter.brushes.Perl.aliases = ['perl', 'Perl', 'pl'];
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.Perl = function()
|
31 |
+
{
|
32 |
+
// Contributed by David Simmons-Duffin and Marty Kube
|
33 |
+
|
34 |
+
var funcs =
|
35 |
+
'abs accept alarm atan2 bind binmode chdir chmod chomp chop chown chr ' +
|
36 |
+
'chroot close closedir connect cos crypt defined delete each endgrent ' +
|
37 |
+
'endhostent endnetent endprotoent endpwent endservent eof exec exists ' +
|
38 |
+
'exp fcntl fileno flock fork format formline getc getgrent getgrgid ' +
|
39 |
+
'getgrnam gethostbyaddr gethostbyname gethostent getlogin getnetbyaddr ' +
|
40 |
+
'getnetbyname getnetent getpeername getpgrp getppid getpriority ' +
|
41 |
+
'getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid ' +
|
42 |
+
'getservbyname getservbyport getservent getsockname getsockopt glob ' +
|
43 |
+
'gmtime grep hex index int ioctl join keys kill lc lcfirst length link ' +
|
44 |
+
'listen localtime lock log lstat map mkdir msgctl msgget msgrcv msgsnd ' +
|
45 |
+
'oct open opendir ord pack pipe pop pos print printf prototype push ' +
|
46 |
+
'quotemeta rand read readdir readline readlink readpipe recv rename ' +
|
47 |
+
'reset reverse rewinddir rindex rmdir scalar seek seekdir select semctl ' +
|
48 |
+
'semget semop send setgrent sethostent setnetent setpgrp setpriority ' +
|
49 |
+
'setprotoent setpwent setservent setsockopt shift shmctl shmget shmread ' +
|
50 |
+
'shmwrite shutdown sin sleep socket socketpair sort splice split sprintf ' +
|
51 |
+
'sqrt srand stat study substr symlink syscall sysopen sysread sysseek ' +
|
52 |
+
'system syswrite tell telldir time times tr truncate uc ucfirst umask ' +
|
53 |
+
'undef unlink unpack unshift utime values vec wait waitpid warn write';
|
54 |
+
|
55 |
+
var keywords =
|
56 |
+
'bless caller continue dbmclose dbmopen die do dump else elsif eval exit ' +
|
57 |
+
'for foreach goto if import last local my next no our package redo ref ' +
|
58 |
+
'require return sub tie tied unless untie until use wantarray while';
|
59 |
+
|
60 |
+
this.regexList = [
|
61 |
+
{ regex: new RegExp('#[^!].*$', 'gm'), css: 'comments' },
|
62 |
+
{ regex: new RegExp('^\\s*#!.*$', 'gm'), css: 'preprocessor' }, // shebang
|
63 |
+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
|
64 |
+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
|
65 |
+
{ regex: new RegExp('(\\$|@|%)\\w+', 'g'), css: 'variable' },
|
66 |
+
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' },
|
67 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
|
68 |
+
];
|
69 |
+
|
70 |
+
this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
|
71 |
+
}
|
72 |
+
|
73 |
+
SyntaxHighlighter.brushes.Perl.prototype = new SyntaxHighlighter.Highlighter();
|
74 |
+
SyntaxHighlighter.brushes.Perl.aliases = ['perl', 'Perl', 'pl'];
|
syntaxhighlighter2/scripts/shBrushPhp.js
CHANGED
@@ -1,91 +1,91 @@
|
|
1 |
-
/**
|
2 |
-
* SyntaxHighlighter
|
3 |
-
* http://alexgorbatchev.com/
|
4 |
-
*
|
5 |
-
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
-
*
|
8 |
-
* @version
|
9 |
-
* 2.1.364 (October 15 2009)
|
10 |
-
*
|
11 |
-
* @copyright
|
12 |
-
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
-
*
|
14 |
-
* @license
|
15 |
-
* This file is part of SyntaxHighlighter.
|
16 |
-
*
|
17 |
-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
-
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
-
* the Free Software Foundation, either version 3 of the License, or
|
20 |
-
* (at your option) any later version.
|
21 |
-
*
|
22 |
-
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
* GNU General Public License for more details.
|
26 |
-
*
|
27 |
-
* You should have received a copy of the GNU General Public License
|
28 |
-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
-
*/
|
30 |
-
SyntaxHighlighter.brushes.Php = function()
|
31 |
-
{
|
32 |
-
var funcs = 'abs acos acosh addcslashes addslashes ' +
|
33 |
-
'array_change_key_case array_chunk array_combine array_count_values array_diff '+
|
34 |
-
'array_diff_assoc array_diff_key array_diff_uassoc array_diff_ukey array_fill '+
|
35 |
-
'array_filter array_flip array_intersect array_intersect_assoc array_intersect_key '+
|
36 |
-
'array_intersect_uassoc array_intersect_ukey array_key_exists array_keys array_map '+
|
37 |
-
'array_merge array_merge_recursive array_multisort array_pad array_pop array_product '+
|
38 |
-
'array_push array_rand array_reduce array_reverse array_search array_shift '+
|
39 |
-
'array_slice array_splice array_sum array_udiff array_udiff_assoc '+
|
40 |
-
'array_udiff_uassoc array_uintersect array_uintersect_assoc '+
|
41 |
-
'array_uintersect_uassoc array_unique array_unshift array_values array_walk '+
|
42 |
-
'array_walk_recursive atan atan2 atanh base64_decode base64_encode base_convert '+
|
43 |
-
'basename bcadd bccomp bcdiv bcmod bcmul bindec bindtextdomain bzclose bzcompress '+
|
44 |
-
'bzdecompress bzerrno bzerror bzerrstr bzflush bzopen bzread bzwrite ceil chdir '+
|
45 |
-
'checkdate checkdnsrr chgrp chmod chop chown chr chroot chunk_split class_exists '+
|
46 |
-
'closedir closelog copy cos cosh count count_chars date decbin dechex decoct '+
|
47 |
-
'deg2rad delete ebcdic2ascii echo empty end ereg ereg_replace eregi eregi_replace error_log '+
|
48 |
-
'error_reporting escapeshellarg escapeshellcmd eval exec exit exp explode extension_loaded '+
|
49 |
-
'feof fflush fgetc fgetcsv fgets fgetss file_exists file_get_contents file_put_contents '+
|
50 |
-
'fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype '+
|
51 |
-
'floatval flock floor flush fmod fnmatch fopen fpassthru fprintf fputcsv fputs fread fscanf '+
|
52 |
-
'fseek fsockopen fstat ftell ftok getallheaders getcwd getdate getenv gethostbyaddr gethostbyname '+
|
53 |
-
'gethostbynamel getimagesize getlastmod getmxrr getmygid getmyinode getmypid getmyuid getopt '+
|
54 |
-
'getprotobyname getprotobynumber getrandmax getrusage getservbyname getservbyport gettext '+
|
55 |
-
'gettimeofday gettype glob gmdate gmmktime ini_alter ini_get ini_get_all ini_restore ini_set '+
|
56 |
-
'interface_exists intval ip2long is_a is_array is_bool is_callable is_dir is_double '+
|
57 |
-
'is_executable is_file is_finite is_float is_infinite is_int is_integer is_link is_long '+
|
58 |
-
'is_nan is_null is_numeric is_object is_readable is_real is_resource is_scalar is_soap_fault '+
|
59 |
-
'is_string is_subclass_of is_uploaded_file is_writable is_writeable mkdir mktime nl2br '+
|
60 |
-
'parse_ini_file parse_str parse_url passthru pathinfo print readlink realpath rewind rewinddir rmdir '+
|
61 |
-
'round str_ireplace str_pad str_repeat str_replace str_rot13 str_shuffle str_split '+
|
62 |
-
'str_word_count strcasecmp strchr strcmp strcoll strcspn strftime strip_tags stripcslashes '+
|
63 |
-
'stripos stripslashes stristr strlen strnatcasecmp strnatcmp strncasecmp strncmp strpbrk '+
|
64 |
-
'strpos strptime strrchr strrev strripos strrpos strspn strstr strtok strtolower strtotime '+
|
65 |
-
'strtoupper strtr strval substr substr_compare';
|
66 |
-
|
67 |
-
var keywords = 'and or xor array as break case ' +
|
68 |
-
'cfunction class const continue declare default die do else ' +
|
69 |
-
'elseif enddeclare endfor endforeach endif endswitch endwhile ' +
|
70 |
-
'extends for foreach function include include_once global if ' +
|
71 |
-
'new old_function return static switch use require require_once ' +
|
72 |
-
'var while abstract interface public implements extends private protected throw';
|
73 |
-
|
74 |
-
var constants = '__FILE__ __LINE__ __METHOD__ __FUNCTION__ __CLASS__';
|
75 |
-
|
76 |
-
this.regexList = [
|
77 |
-
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
78 |
-
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
79 |
-
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
80 |
-
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
81 |
-
{ regex: /\$\w+/g, css: 'variable' }, // variables
|
82 |
-
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // common functions
|
83 |
-
{ regex: new RegExp(this.getKeywords(constants), 'gmi'), css: 'constants' }, // constants
|
84 |
-
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keyword
|
85 |
-
];
|
86 |
-
|
87 |
-
this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
|
88 |
-
};
|
89 |
-
|
90 |
-
SyntaxHighlighter.brushes.Php.prototype = new SyntaxHighlighter.Highlighter();
|
91 |
-
SyntaxHighlighter.brushes.Php.aliases = ['php'];
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.Php = function()
|
31 |
+
{
|
32 |
+
var funcs = 'abs acos acosh addcslashes addslashes ' +
|
33 |
+
'array_change_key_case array_chunk array_combine array_count_values array_diff '+
|
34 |
+
'array_diff_assoc array_diff_key array_diff_uassoc array_diff_ukey array_fill '+
|
35 |
+
'array_filter array_flip array_intersect array_intersect_assoc array_intersect_key '+
|
36 |
+
'array_intersect_uassoc array_intersect_ukey array_key_exists array_keys array_map '+
|
37 |
+
'array_merge array_merge_recursive array_multisort array_pad array_pop array_product '+
|
38 |
+
'array_push array_rand array_reduce array_reverse array_search array_shift '+
|
39 |
+
'array_slice array_splice array_sum array_udiff array_udiff_assoc '+
|
40 |
+
'array_udiff_uassoc array_uintersect array_uintersect_assoc '+
|
41 |
+
'array_uintersect_uassoc array_unique array_unshift array_values array_walk '+
|
42 |
+
'array_walk_recursive atan atan2 atanh base64_decode base64_encode base_convert '+
|
43 |
+
'basename bcadd bccomp bcdiv bcmod bcmul bindec bindtextdomain bzclose bzcompress '+
|
44 |
+
'bzdecompress bzerrno bzerror bzerrstr bzflush bzopen bzread bzwrite ceil chdir '+
|
45 |
+
'checkdate checkdnsrr chgrp chmod chop chown chr chroot chunk_split class_exists '+
|
46 |
+
'closedir closelog copy cos cosh count count_chars date decbin dechex decoct '+
|
47 |
+
'deg2rad delete ebcdic2ascii echo empty end ereg ereg_replace eregi eregi_replace error_log '+
|
48 |
+
'error_reporting escapeshellarg escapeshellcmd eval exec exit exp explode extension_loaded '+
|
49 |
+
'feof fflush fgetc fgetcsv fgets fgetss file_exists file_get_contents file_put_contents '+
|
50 |
+
'fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype '+
|
51 |
+
'floatval flock floor flush fmod fnmatch fopen fpassthru fprintf fputcsv fputs fread fscanf '+
|
52 |
+
'fseek fsockopen fstat ftell ftok getallheaders getcwd getdate getenv gethostbyaddr gethostbyname '+
|
53 |
+
'gethostbynamel getimagesize getlastmod getmxrr getmygid getmyinode getmypid getmyuid getopt '+
|
54 |
+
'getprotobyname getprotobynumber getrandmax getrusage getservbyname getservbyport gettext '+
|
55 |
+
'gettimeofday gettype glob gmdate gmmktime ini_alter ini_get ini_get_all ini_restore ini_set '+
|
56 |
+
'interface_exists intval ip2long is_a is_array is_bool is_callable is_dir is_double '+
|
57 |
+
'is_executable is_file is_finite is_float is_infinite is_int is_integer is_link is_long '+
|
58 |
+
'is_nan is_null is_numeric is_object is_readable is_real is_resource is_scalar is_soap_fault '+
|
59 |
+
'is_string is_subclass_of is_uploaded_file is_writable is_writeable mkdir mktime nl2br '+
|
60 |
+
'parse_ini_file parse_str parse_url passthru pathinfo print readlink realpath rewind rewinddir rmdir '+
|
61 |
+
'round str_ireplace str_pad str_repeat str_replace str_rot13 str_shuffle str_split '+
|
62 |
+
'str_word_count strcasecmp strchr strcmp strcoll strcspn strftime strip_tags stripcslashes '+
|
63 |
+
'stripos stripslashes stristr strlen strnatcasecmp strnatcmp strncasecmp strncmp strpbrk '+
|
64 |
+
'strpos strptime strrchr strrev strripos strrpos strspn strstr strtok strtolower strtotime '+
|
65 |
+
'strtoupper strtr strval substr substr_compare';
|
66 |
+
|
67 |
+
var keywords = 'and or xor array as break case ' +
|
68 |
+
'cfunction class const continue declare default die do else ' +
|
69 |
+
'elseif enddeclare endfor endforeach endif endswitch endwhile ' +
|
70 |
+
'extends for foreach function include include_once global if ' +
|
71 |
+
'new old_function return static switch use require require_once ' +
|
72 |
+
'var while abstract interface public implements extends private protected throw';
|
73 |
+
|
74 |
+
var constants = '__FILE__ __LINE__ __METHOD__ __FUNCTION__ __CLASS__';
|
75 |
+
|
76 |
+
this.regexList = [
|
77 |
+
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
78 |
+
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
79 |
+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
80 |
+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
81 |
+
{ regex: /\$\w+/g, css: 'variable' }, // variables
|
82 |
+
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // common functions
|
83 |
+
{ regex: new RegExp(this.getKeywords(constants), 'gmi'), css: 'constants' }, // constants
|
84 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keyword
|
85 |
+
];
|
86 |
+
|
87 |
+
this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
|
88 |
+
};
|
89 |
+
|
90 |
+
SyntaxHighlighter.brushes.Php.prototype = new SyntaxHighlighter.Highlighter();
|
91 |
+
SyntaxHighlighter.brushes.Php.aliases = ['php'];
|
syntaxhighlighter2/scripts/shBrushPlain.js
CHANGED
@@ -1,35 +1,35 @@
|
|
1 |
-
/**
|
2 |
-
* SyntaxHighlighter
|
3 |
-
* http://alexgorbatchev.com/
|
4 |
-
*
|
5 |
-
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
-
*
|
8 |
-
* @version
|
9 |
-
* 2.1.364 (October 15 2009)
|
10 |
-
*
|
11 |
-
* @copyright
|
12 |
-
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
-
*
|
14 |
-
* @license
|
15 |
-
* This file is part of SyntaxHighlighter.
|
16 |
-
*
|
17 |
-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
-
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
-
* the Free Software Foundation, either version 3 of the License, or
|
20 |
-
* (at your option) any later version.
|
21 |
-
*
|
22 |
-
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
* GNU General Public License for more details.
|
26 |
-
*
|
27 |
-
* You should have received a copy of the GNU General Public License
|
28 |
-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
-
*/
|
30 |
-
SyntaxHighlighter.brushes.Plain = function()
|
31 |
-
{
|
32 |
-
};
|
33 |
-
|
34 |
-
SyntaxHighlighter.brushes.Plain.prototype = new SyntaxHighlighter.Highlighter();
|
35 |
-
SyntaxHighlighter.brushes.Plain.aliases = ['text', 'plain'];
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.Plain = function()
|
31 |
+
{
|
32 |
+
};
|
33 |
+
|
34 |
+
SyntaxHighlighter.brushes.Plain.prototype = new SyntaxHighlighter.Highlighter();
|
35 |
+
SyntaxHighlighter.brushes.Plain.aliases = ['text', 'plain'];
|
syntaxhighlighter2/scripts/shBrushPowerShell.js
CHANGED
@@ -1,76 +1,76 @@
|
|
1 |
-
/**
|
2 |
-
* SyntaxHighlighter
|
3 |
-
* http://alexgorbatchev.com/
|
4 |
-
*
|
5 |
-
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
-
*
|
8 |
-
* @version
|
9 |
-
* 2.1.364 (October 15 2009)
|
10 |
-
*
|
11 |
-
* @copyright
|
12 |
-
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
-
*
|
14 |
-
* @license
|
15 |
-
* This file is part of SyntaxHighlighter.
|
16 |
-
*
|
17 |
-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
-
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
-
* the Free Software Foundation, either version 3 of the License, or
|
20 |
-
* (at your option) any later version.
|
21 |
-
*
|
22 |
-
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
* GNU General Public License for more details.
|
26 |
-
*
|
27 |
-
* You should have received a copy of the GNU General Public License
|
28 |
-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
-
*/
|
30 |
-
SyntaxHighlighter.brushes.PowerShell = function()
|
31 |
-
{
|
32 |
-
// Contributes by B.v.Zanten, Getronics
|
33 |
-
// http://confluence.atlassian.com/display/CONFEXT/New+Code+Macro
|
34 |
-
|
35 |
-
var keywords = 'Add-Content Add-History Add-Member Add-PSSnapin Clear(-Content)? Clear-Item ' +
|
36 |
-
'Clear-ItemProperty Clear-Variable Compare-Object ConvertFrom-SecureString Convert-Path ' +
|
37 |
-
'ConvertTo-Html ConvertTo-SecureString Copy(-Item)? Copy-ItemProperty Export-Alias ' +
|
38 |
-
'Export-Clixml Export-Console Export-Csv ForEach(-Object)? Format-Custom Format-List ' +
|
39 |
-
'Format-Table Format-Wide Get-Acl Get-Alias Get-AuthenticodeSignature Get-ChildItem Get-Command ' +
|
40 |
-
'Get-Content Get-Credential Get-Culture Get-Date Get-EventLog Get-ExecutionPolicy ' +
|
41 |
-
'Get-Help Get-History Get-Host Get-Item Get-ItemProperty Get-Location Get-Member ' +
|
42 |
-
'Get-PfxCertificate Get-Process Get-PSDrive Get-PSProvider Get-PSSnapin Get-Service ' +
|
43 |
-
'Get-TraceSource Get-UICulture Get-Unique Get-Variable Get-WmiObject Group-Object ' +
|
44 |
-
'Import-Alias Import-Clixml Import-Csv Invoke-Expression Invoke-History Invoke-Item ' +
|
45 |
-
'Join-Path Measure-Command Measure-Object Move(-Item)? Move-ItemProperty New-Alias ' +
|
46 |
-
'New-Item New-ItemProperty New-Object New-PSDrive New-Service New-TimeSpan ' +
|
47 |
-
'New-Variable Out-Default Out-File Out-Host Out-Null Out-Printer Out-String Pop-Location ' +
|
48 |
-
'Push-Location Read-Host Remove-Item Remove-ItemProperty Remove-PSDrive Remove-PSSnapin ' +
|
49 |
-
'Remove-Variable Rename-Item Rename-ItemProperty Resolve-Path Restart-Service Resume-Service ' +
|
50 |
-
'Select-Object Select-String Set-Acl Set-Alias Set-AuthenticodeSignature Set-Content ' +
|
51 |
-
'Set-Date Set-ExecutionPolicy Set-Item Set-ItemProperty Set-Location Set-PSDebug ' +
|
52 |
-
'Set-Service Set-TraceSource Set(-Variable)? Sort-Object Split-Path Start-Service ' +
|
53 |
-
'Start-Sleep Start-Transcript Stop-Process Stop-Service Stop-Transcript Suspend-Service ' +
|
54 |
-
'Tee-Object Test-Path Trace-Command Update-FormatData Update-TypeData Where(-Object)? ' +
|
55 |
-
'Write-Debug Write-Error Write(-Host)? Write-Output Write-Progress Write-Verbose Write-Warning';
|
56 |
-
var alias = 'ac asnp clc cli clp clv cpi cpp cvpa diff epal epcsv fc fl ' +
|
57 |
-
'ft fw gal gc gci gcm gdr ghy gi gl gm gp gps group gsv ' +
|
58 |
-
'gsnp gu gv gwmi iex ihy ii ipal ipcsv mi mp nal ndr ni nv oh rdr ' +
|
59 |
-
'ri rni rnp rp rsnp rv rvpa sal sasv sc select si sl sleep sort sp ' +
|
60 |
-
'spps spsv sv tee cat cd cp h history kill lp ls ' +
|
61 |
-
'mount mv popd ps pushd pwd r rm rmdir echo cls chdir del dir ' +
|
62 |
-
'erase rd ren type % \\?';
|
63 |
-
|
64 |
-
this.regexList = [
|
65 |
-
{ regex: /#.*$/gm, css: 'comments' }, // one line comments
|
66 |
-
{ regex: /\$[a-zA-Z0-9]+\b/g, css: 'value' }, // variables $Computer1
|
67 |
-
{ regex: /\-[a-zA-Z]+\b/g, css: 'keyword' }, // Operators -not -and -eq
|
68 |
-
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
69 |
-
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
70 |
-
{ regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' },
|
71 |
-
{ regex: new RegExp(this.getKeywords(alias), 'gmi'), css: 'keyword' }
|
72 |
-
];
|
73 |
-
};
|
74 |
-
|
75 |
-
SyntaxHighlighter.brushes.PowerShell.prototype = new SyntaxHighlighter.Highlighter();
|
76 |
-
SyntaxHighlighter.brushes.PowerShell.aliases = ['powershell', 'ps'];
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.PowerShell = function()
|
31 |
+
{
|
32 |
+
// Contributes by B.v.Zanten, Getronics
|
33 |
+
// http://confluence.atlassian.com/display/CONFEXT/New+Code+Macro
|
34 |
+
|
35 |
+
var keywords = 'Add-Content Add-History Add-Member Add-PSSnapin Clear(-Content)? Clear-Item ' +
|
36 |
+
'Clear-ItemProperty Clear-Variable Compare-Object ConvertFrom-SecureString Convert-Path ' +
|
37 |
+
'ConvertTo-Html ConvertTo-SecureString Copy(-Item)? Copy-ItemProperty Export-Alias ' +
|
38 |
+
'Export-Clixml Export-Console Export-Csv ForEach(-Object)? Format-Custom Format-List ' +
|
39 |
+
'Format-Table Format-Wide Get-Acl Get-Alias Get-AuthenticodeSignature Get-ChildItem Get-Command ' +
|
40 |
+
'Get-Content Get-Credential Get-Culture Get-Date Get-EventLog Get-ExecutionPolicy ' +
|
41 |
+
'Get-Help Get-History Get-Host Get-Item Get-ItemProperty Get-Location Get-Member ' +
|
42 |
+
'Get-PfxCertificate Get-Process Get-PSDrive Get-PSProvider Get-PSSnapin Get-Service ' +
|
43 |
+
'Get-TraceSource Get-UICulture Get-Unique Get-Variable Get-WmiObject Group-Object ' +
|
44 |
+
'Import-Alias Import-Clixml Import-Csv Invoke-Expression Invoke-History Invoke-Item ' +
|
45 |
+
'Join-Path Measure-Command Measure-Object Move(-Item)? Move-ItemProperty New-Alias ' +
|
46 |
+
'New-Item New-ItemProperty New-Object New-PSDrive New-Service New-TimeSpan ' +
|
47 |
+
'New-Variable Out-Default Out-File Out-Host Out-Null Out-Printer Out-String Pop-Location ' +
|
48 |
+
'Push-Location Read-Host Remove-Item Remove-ItemProperty Remove-PSDrive Remove-PSSnapin ' +
|
49 |
+
'Remove-Variable Rename-Item Rename-ItemProperty Resolve-Path Restart-Service Resume-Service ' +
|
50 |
+
'Select-Object Select-String Set-Acl Set-Alias Set-AuthenticodeSignature Set-Content ' +
|
51 |
+
'Set-Date Set-ExecutionPolicy Set-Item Set-ItemProperty Set-Location Set-PSDebug ' +
|
52 |
+
'Set-Service Set-TraceSource Set(-Variable)? Sort-Object Split-Path Start-Service ' +
|
53 |
+
'Start-Sleep Start-Transcript Stop-Process Stop-Service Stop-Transcript Suspend-Service ' +
|
54 |
+
'Tee-Object Test-Path Trace-Command Update-FormatData Update-TypeData Where(-Object)? ' +
|
55 |
+
'Write-Debug Write-Error Write(-Host)? Write-Output Write-Progress Write-Verbose Write-Warning';
|
56 |
+
var alias = 'ac asnp clc cli clp clv cpi cpp cvpa diff epal epcsv fc fl ' +
|
57 |
+
'ft fw gal gc gci gcm gdr ghy gi gl gm gp gps group gsv ' +
|
58 |
+
'gsnp gu gv gwmi iex ihy ii ipal ipcsv mi mp nal ndr ni nv oh rdr ' +
|
59 |
+
'ri rni rnp rp rsnp rv rvpa sal sasv sc select si sl sleep sort sp ' +
|
60 |
+
'spps spsv sv tee cat cd cp h history kill lp ls ' +
|
61 |
+
'mount mv popd ps pushd pwd r rm rmdir echo cls chdir del dir ' +
|
62 |
+
'erase rd ren type % \\?';
|
63 |
+
|
64 |
+
this.regexList = [
|
65 |
+
{ regex: /#.*$/gm, css: 'comments' }, // one line comments
|
66 |
+
{ regex: /\$[a-zA-Z0-9]+\b/g, css: 'value' }, // variables $Computer1
|
67 |
+
{ regex: /\-[a-zA-Z]+\b/g, css: 'keyword' }, // Operators -not -and -eq
|
68 |
+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
69 |
+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
70 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' },
|
71 |
+
{ regex: new RegExp(this.getKeywords(alias), 'gmi'), css: 'keyword' }
|
72 |
+
];
|
73 |
+
};
|
74 |
+
|
75 |
+
SyntaxHighlighter.brushes.PowerShell.prototype = new SyntaxHighlighter.Highlighter();
|
76 |
+
SyntaxHighlighter.brushes.PowerShell.aliases = ['powershell', 'ps'];
|
syntaxhighlighter2/scripts/shBrushPython.js
CHANGED
@@ -1,66 +1,66 @@
|
|
1 |
-
/**
|
2 |
-
* SyntaxHighlighter
|
3 |
-
* http://alexgorbatchev.com/
|
4 |
-
*
|
5 |
-
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
-
*
|
8 |
-
* @version
|
9 |
-
* 2.1.364 (October 15 2009)
|
10 |
-
*
|
11 |
-
* @copyright
|
12 |
-
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
-
*
|
14 |
-
* @license
|
15 |
-
* This file is part of SyntaxHighlighter.
|
16 |
-
*
|
17 |
-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
-
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
-
* the Free Software Foundation, either version 3 of the License, or
|
20 |
-
* (at your option) any later version.
|
21 |
-
*
|
22 |
-
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
* GNU General Public License for more details.
|
26 |
-
*
|
27 |
-
* You should have received a copy of the GNU General Public License
|
28 |
-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
-
*/
|
30 |
-
SyntaxHighlighter.brushes.Python = function()
|
31 |
-
{
|
32 |
-
// Contributed by Gheorghe Milas and Ahmad Sherif
|
33 |
-
|
34 |
-
var keywords = 'and assert break class continue def del elif else ' +
|
35 |
-
'except exec finally for from global if import in is ' +
|
36 |
-
'lambda not or pass print raise return try yield while';
|
37 |
-
|
38 |
-
var funcs = '__import__ abs all any apply basestring bin bool buffer callable ' +
|
39 |
-
'chr classmethod cmp coerce compile complex delattr dict dir ' +
|
40 |
-
'divmod enumerate eval execfile file filter float format frozenset ' +
|
41 |
-
'getattr globals hasattr hash help hex id input int intern ' +
|
42 |
-
'isinstance issubclass iter len list locals long map max min next ' +
|
43 |
-
'object oct open ord pow print property range raw_input reduce ' +
|
44 |
-
'reload repr reversed round set setattr slice sorted staticmethod ' +
|
45 |
-
'str sum super tuple type type unichr unicode vars xrange zip';
|
46 |
-
|
47 |
-
var special = 'None True False self cls class_';
|
48 |
-
|
49 |
-
this.regexList = [
|
50 |
-
{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' },
|
51 |
-
{ regex: /^\s*@\w+/gm, css: 'decorator' },
|
52 |
-
{ regex: /(['\"]{3})([^\1])*?\1/gm, css: 'comments' },
|
53 |
-
{ regex: /"(?!")(?:\.|\\\"|[^\""\n])*"/gm, css: 'string' },
|
54 |
-
{ regex: /'(?!')(?:\.|(\\\')|[^\''\n])*'/gm, css: 'string' },
|
55 |
-
{ regex: /\+|\-|\*|\/|\%|=|==/gm, css: 'keyword' },
|
56 |
-
{ regex: /\b\d+\.?\w*/g, css: 'value' },
|
57 |
-
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' },
|
58 |
-
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' },
|
59 |
-
{ regex: new RegExp(this.getKeywords(special), 'gm'), css: 'color1' }
|
60 |
-
];
|
61 |
-
|
62 |
-
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
63 |
-
};
|
64 |
-
|
65 |
-
SyntaxHighlighter.brushes.Python.prototype = new SyntaxHighlighter.Highlighter();
|
66 |
-
SyntaxHighlighter.brushes.Python.aliases = ['py', 'python'];
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.Python = function()
|
31 |
+
{
|
32 |
+
// Contributed by Gheorghe Milas and Ahmad Sherif
|
33 |
+
|
34 |
+
var keywords = 'and assert break class continue def del elif else ' +
|
35 |
+
'except exec finally for from global if import in is ' +
|
36 |
+
'lambda not or pass print raise return try yield while';
|
37 |
+
|
38 |
+
var funcs = '__import__ abs all any apply basestring bin bool buffer callable ' +
|
39 |
+
'chr classmethod cmp coerce compile complex delattr dict dir ' +
|
40 |
+
'divmod enumerate eval execfile file filter float format frozenset ' +
|
41 |
+
'getattr globals hasattr hash help hex id input int intern ' +
|
42 |
+
'isinstance issubclass iter len list locals long map max min next ' +
|
43 |
+
'object oct open ord pow print property range raw_input reduce ' +
|
44 |
+
'reload repr reversed round set setattr slice sorted staticmethod ' +
|
45 |
+
'str sum super tuple type type unichr unicode vars xrange zip';
|
46 |
+
|
47 |
+
var special = 'None True False self cls class_';
|
48 |
+
|
49 |
+
this.regexList = [
|
50 |
+
{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' },
|
51 |
+
{ regex: /^\s*@\w+/gm, css: 'decorator' },
|
52 |
+
{ regex: /(['\"]{3})([^\1])*?\1/gm, css: 'comments' },
|
53 |
+
{ regex: /"(?!")(?:\.|\\\"|[^\""\n])*"/gm, css: 'string' },
|
54 |
+
{ regex: /'(?!')(?:\.|(\\\')|[^\''\n])*'/gm, css: 'string' },
|
55 |
+
{ regex: /\+|\-|\*|\/|\%|=|==/gm, css: 'keyword' },
|
56 |
+
{ regex: /\b\d+\.?\w*/g, css: 'value' },
|
57 |
+
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' },
|
58 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' },
|
59 |
+
{ regex: new RegExp(this.getKeywords(special), 'gm'), css: 'color1' }
|
60 |
+
];
|
61 |
+
|
62 |
+
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
63 |
+
};
|
64 |
+
|
65 |
+
SyntaxHighlighter.brushes.Python.prototype = new SyntaxHighlighter.Highlighter();
|
66 |
+
SyntaxHighlighter.brushes.Python.aliases = ['py', 'python'];
|
syntaxhighlighter2/scripts/shBrushRuby.js
CHANGED
@@ -1,57 +1,57 @@
|
|
1 |
-
/**
|
2 |
-
* SyntaxHighlighter
|
3 |
-
* http://alexgorbatchev.com/
|
4 |
-
*
|
5 |
-
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
-
*
|
8 |
-
* @version
|
9 |
-
* 2.1.364 (October 15 2009)
|
10 |
-
*
|
11 |
-
* @copyright
|
12 |
-
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
-
*
|
14 |
-
* @license
|
15 |
-
* This file is part of SyntaxHighlighter.
|
16 |
-
*
|
17 |
-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
-
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
-
* the Free Software Foundation, either version 3 of the License, or
|
20 |
-
* (at your option) any later version.
|
21 |
-
*
|
22 |
-
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
* GNU General Public License for more details.
|
26 |
-
*
|
27 |
-
* You should have received a copy of the GNU General Public License
|
28 |
-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
-
*/
|
30 |
-
SyntaxHighlighter.brushes.Ruby = function()
|
31 |
-
{
|
32 |
-
// Contributed by Erik Peterson.
|
33 |
-
|
34 |
-
var keywords = 'alias and BEGIN begin break case class def define_method defined do each else elsif ' +
|
35 |
-
'END end ensure false for if in module new next nil not or raise redo rescue retry return ' +
|
36 |
-
'self super then throw true undef unless until when while yield';
|
37 |
-
|
38 |
-
var builtins = 'Array Bignum Binding Class Continuation Dir Exception FalseClass File::Stat File Fixnum Fload ' +
|
39 |
-
'Hash Integer IO MatchData Method Module NilClass Numeric Object Proc Range Regexp String Struct::TMS Symbol ' +
|
40 |
-
'ThreadGroup Thread Time TrueClass';
|
41 |
-
|
42 |
-
this.regexList = [
|
43 |
-
{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments
|
44 |
-
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
45 |
-
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
46 |
-
{ regex: /\b[A-Z0-9_]+\b/g, css: 'constants' }, // constants
|
47 |
-
{ regex: /:[a-z][A-Za-z0-9_]*/g, css: 'color2' }, // symbols
|
48 |
-
{ regex: /(\$|@@|@)\w+/g, css: 'variable bold' }, // $global, @instance, and @@class variables
|
49 |
-
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
|
50 |
-
{ regex: new RegExp(this.getKeywords(builtins), 'gm'), css: 'color1' } // builtins
|
51 |
-
];
|
52 |
-
|
53 |
-
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
54 |
-
};
|
55 |
-
|
56 |
-
SyntaxHighlighter.brushes.Ruby.prototype = new SyntaxHighlighter.Highlighter();
|
57 |
-
SyntaxHighlighter.brushes.Ruby.aliases = ['ruby', 'rails', 'ror', 'rb'];
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.Ruby = function()
|
31 |
+
{
|
32 |
+
// Contributed by Erik Peterson.
|
33 |
+
|
34 |
+
var keywords = 'alias and BEGIN begin break case class def define_method defined do each else elsif ' +
|
35 |
+
'END end ensure false for if in module new next nil not or raise redo rescue retry return ' +
|
36 |
+
'self super then throw true undef unless until when while yield';
|
37 |
+
|
38 |
+
var builtins = 'Array Bignum Binding Class Continuation Dir Exception FalseClass File::Stat File Fixnum Fload ' +
|
39 |
+
'Hash Integer IO MatchData Method Module NilClass Numeric Object Proc Range Regexp String Struct::TMS Symbol ' +
|
40 |
+
'ThreadGroup Thread Time TrueClass';
|
41 |
+
|
42 |
+
this.regexList = [
|
43 |
+
{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments
|
44 |
+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
45 |
+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
46 |
+
{ regex: /\b[A-Z0-9_]+\b/g, css: 'constants' }, // constants
|
47 |
+
{ regex: /:[a-z][A-Za-z0-9_]*/g, css: 'color2' }, // symbols
|
48 |
+
{ regex: /(\$|@@|@)\w+/g, css: 'variable bold' }, // $global, @instance, and @@class variables
|
49 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
|
50 |
+
{ regex: new RegExp(this.getKeywords(builtins), 'gm'), css: 'color1' } // builtins
|
51 |
+
];
|
52 |
+
|
53 |
+
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
54 |
+
};
|
55 |
+
|
56 |
+
SyntaxHighlighter.brushes.Ruby.prototype = new SyntaxHighlighter.Highlighter();
|
57 |
+
SyntaxHighlighter.brushes.Ruby.aliases = ['ruby', 'rails', 'ror', 'rb'];
|
syntaxhighlighter2/scripts/shBrushScala.js
CHANGED
@@ -1,53 +1,53 @@
|
|
1 |
-
/**
|
2 |
-
* SyntaxHighlighter
|
3 |
-
* http://alexgorbatchev.com/
|
4 |
-
*
|
5 |
-
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
-
*
|
8 |
-
* @version
|
9 |
-
* 2.1.364 (October 15 2009)
|
10 |
-
*
|
11 |
-
* @copyright
|
12 |
-
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
-
*
|
14 |
-
* @license
|
15 |
-
* This file is part of SyntaxHighlighter.
|
16 |
-
*
|
17 |
-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
-
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
-
* the Free Software Foundation, either version 3 of the License, or
|
20 |
-
* (at your option) any later version.
|
21 |
-
*
|
22 |
-
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
* GNU General Public License for more details.
|
26 |
-
*
|
27 |
-
* You should have received a copy of the GNU General Public License
|
28 |
-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
-
*/
|
30 |
-
SyntaxHighlighter.brushes.Scala = function()
|
31 |
-
{
|
32 |
-
// Contributed by Yegor Jbanov and David Bernard.
|
33 |
-
|
34 |
-
var keywords = 'val sealed case def true trait implicit forSome import match object null finally super ' +
|
35 |
-
'override try lazy for var catch throw type extends class while with new final yield abstract ' +
|
36 |
-
'else do if return protected private this package false';
|
37 |
-
|
38 |
-
var keyops = '[_:=><%#@]+';
|
39 |
-
|
40 |
-
this.regexList = [
|
41 |
-
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
42 |
-
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
43 |
-
{ regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // multi-line strings
|
44 |
-
{ regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double-quoted string
|
45 |
-
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
46 |
-
{ regex: /0x[a-f0-9]+|\d+(\.\d+)?/gi, css: 'value' }, // numbers
|
47 |
-
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
|
48 |
-
{ regex: new RegExp(keyops, 'gm'), css: 'keyword' } // scala keyword
|
49 |
-
];
|
50 |
-
}
|
51 |
-
|
52 |
-
SyntaxHighlighter.brushes.Scala.prototype = new SyntaxHighlighter.Highlighter();
|
53 |
-
SyntaxHighlighter.brushes.Scala.aliases = ['scala'];
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.Scala = function()
|
31 |
+
{
|
32 |
+
// Contributed by Yegor Jbanov and David Bernard.
|
33 |
+
|
34 |
+
var keywords = 'val sealed case def true trait implicit forSome import match object null finally super ' +
|
35 |
+
'override try lazy for var catch throw type extends class while with new final yield abstract ' +
|
36 |
+
'else do if return protected private this package false';
|
37 |
+
|
38 |
+
var keyops = '[_:=><%#@]+';
|
39 |
+
|
40 |
+
this.regexList = [
|
41 |
+
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
42 |
+
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
43 |
+
{ regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // multi-line strings
|
44 |
+
{ regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double-quoted string
|
45 |
+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
46 |
+
{ regex: /0x[a-f0-9]+|\d+(\.\d+)?/gi, css: 'value' }, // numbers
|
47 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
|
48 |
+
{ regex: new RegExp(keyops, 'gm'), css: 'keyword' } // scala keyword
|
49 |
+
];
|
50 |
+
}
|
51 |
+
|
52 |
+
SyntaxHighlighter.brushes.Scala.prototype = new SyntaxHighlighter.Highlighter();
|
53 |
+
SyntaxHighlighter.brushes.Scala.aliases = ['scala'];
|
syntaxhighlighter2/scripts/shBrushSql.js
CHANGED
@@ -1,68 +1,68 @@
|
|
1 |
-
/**
|
2 |
-
* SyntaxHighlighter
|
3 |
-
* http://alexgorbatchev.com/
|
4 |
-
*
|
5 |
-
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
-
*
|
8 |
-
* @version
|
9 |
-
* 2.1.364 (October 15 2009)
|
10 |
-
*
|
11 |
-
* @copyright
|
12 |
-
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
-
*
|
14 |
-
* @license
|
15 |
-
* This file is part of SyntaxHighlighter.
|
16 |
-
*
|
17 |
-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
-
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
-
* the Free Software Foundation, either version 3 of the License, or
|
20 |
-
* (at your option) any later version.
|
21 |
-
*
|
22 |
-
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
* GNU General Public License for more details.
|
26 |
-
*
|
27 |
-
* You should have received a copy of the GNU General Public License
|
28 |
-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
-
*/
|
30 |
-
SyntaxHighlighter.brushes.Sql = function()
|
31 |
-
{
|
32 |
-
var funcs = 'abs avg case cast coalesce convert count current_timestamp ' +
|
33 |
-
'current_user day isnull left lower month nullif replace right ' +
|
34 |
-
'session_user space substring sum system_user upper user year';
|
35 |
-
|
36 |
-
var keywords = 'absolute action add after alter as asc at authorization begin bigint ' +
|
37 |
-
'binary bit by cascade char character check checkpoint close collate ' +
|
38 |
-
'column commit committed connect connection constraint contains continue ' +
|
39 |
-
'create cube current current_date current_time cursor database date ' +
|
40 |
-
'deallocate dec decimal declare default delete desc distinct double drop ' +
|
41 |
-
'dynamic else end end-exec escape except exec execute false fetch first ' +
|
42 |
-
'float for force foreign forward free from full function global goto grant ' +
|
43 |
-
'group grouping having hour ignore index inner insensitive insert instead ' +
|
44 |
-
'int integer intersect into is isolation key last level load local max min ' +
|
45 |
-
'minute modify move name national nchar next no numeric of off on only ' +
|
46 |
-
'open option order out output partial password precision prepare primary ' +
|
47 |
-
'prior privileges procedure public read real references relative repeatable ' +
|
48 |
-
'restrict return returns revoke rollback rollup rows rule schema scroll ' +
|
49 |
-
'second section select sequence serializable set size smallint static ' +
|
50 |
-
'statistics table temp temporary then time timestamp to top transaction ' +
|
51 |
-
'translation trigger true truncate uncommitted union unique update values ' +
|
52 |
-
'varchar varying view when where with work';
|
53 |
-
|
54 |
-
var operators = 'all and any between cross in join like not null or outer some';
|
55 |
-
|
56 |
-
this.regexList = [
|
57 |
-
{ regex: /--(.*)$/gm, css: 'comments' }, // one line and multiline comments
|
58 |
-
{ regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings
|
59 |
-
{ regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // single quoted strings
|
60 |
-
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'color2' }, // functions
|
61 |
-
{ regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // operators and such
|
62 |
-
{ regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
|
63 |
-
];
|
64 |
-
};
|
65 |
-
|
66 |
-
SyntaxHighlighter.brushes.Sql.prototype = new SyntaxHighlighter.Highlighter();
|
67 |
-
SyntaxHighlighter.brushes.Sql.aliases = ['sql'];
|
68 |
-
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.Sql = function()
|
31 |
+
{
|
32 |
+
var funcs = 'abs avg case cast coalesce convert count current_timestamp ' +
|
33 |
+
'current_user day isnull left lower month nullif replace right ' +
|
34 |
+
'session_user space substring sum system_user upper user year';
|
35 |
+
|
36 |
+
var keywords = 'absolute action add after alter as asc at authorization begin bigint ' +
|
37 |
+
'binary bit by cascade char character check checkpoint close collate ' +
|
38 |
+
'column commit committed connect connection constraint contains continue ' +
|
39 |
+
'create cube current current_date current_time cursor database date ' +
|
40 |
+
'deallocate dec decimal declare default delete desc distinct double drop ' +
|
41 |
+
'dynamic else end end-exec escape except exec execute false fetch first ' +
|
42 |
+
'float for force foreign forward free from full function global goto grant ' +
|
43 |
+
'group grouping having hour ignore index inner insensitive insert instead ' +
|
44 |
+
'int integer intersect into is isolation key last level load local max min ' +
|
45 |
+
'minute modify move name national nchar next no numeric of off on only ' +
|
46 |
+
'open option order out output partial password precision prepare primary ' +
|
47 |
+
'prior privileges procedure public read real references relative repeatable ' +
|
48 |
+
'restrict return returns revoke rollback rollup rows rule schema scroll ' +
|
49 |
+
'second section select sequence serializable set size smallint static ' +
|
50 |
+
'statistics table temp temporary then time timestamp to top transaction ' +
|
51 |
+
'translation trigger true truncate uncommitted union unique update values ' +
|
52 |
+
'varchar varying view when where with work';
|
53 |
+
|
54 |
+
var operators = 'all and any between cross in join like not null or outer some';
|
55 |
+
|
56 |
+
this.regexList = [
|
57 |
+
{ regex: /--(.*)$/gm, css: 'comments' }, // one line and multiline comments
|
58 |
+
{ regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings
|
59 |
+
{ regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // single quoted strings
|
60 |
+
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'color2' }, // functions
|
61 |
+
{ regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // operators and such
|
62 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
|
63 |
+
];
|
64 |
+
};
|
65 |
+
|
66 |
+
SyntaxHighlighter.brushes.Sql.prototype = new SyntaxHighlighter.Highlighter();
|
67 |
+
SyntaxHighlighter.brushes.Sql.aliases = ['sql'];
|
68 |
+
|
syntaxhighlighter2/scripts/shBrushVb.js
CHANGED
@@ -1,58 +1,58 @@
|
|
1 |
-
/**
|
2 |
-
* SyntaxHighlighter
|
3 |
-
* http://alexgorbatchev.com/
|
4 |
-
*
|
5 |
-
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
-
*
|
8 |
-
* @version
|
9 |
-
* 2.1.364 (October 15 2009)
|
10 |
-
*
|
11 |
-
* @copyright
|
12 |
-
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
-
*
|
14 |
-
* @license
|
15 |
-
* This file is part of SyntaxHighlighter.
|
16 |
-
*
|
17 |
-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
-
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
-
* the Free Software Foundation, either version 3 of the License, or
|
20 |
-
* (at your option) any later version.
|
21 |
-
*
|
22 |
-
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
* GNU General Public License for more details.
|
26 |
-
*
|
27 |
-
* You should have received a copy of the GNU General Public License
|
28 |
-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
-
*/
|
30 |
-
SyntaxHighlighter.brushes.Vb = function()
|
31 |
-
{
|
32 |
-
var keywords = 'AddHandler AddressOf AndAlso Alias And Ansi As Assembly Auto ' +
|
33 |
-
'Boolean ByRef Byte ByVal Call Case Catch CBool CByte CChar CDate ' +
|
34 |
-
'CDec CDbl Char CInt Class CLng CObj Const CShort CSng CStr CType ' +
|
35 |
-
'Date Decimal Declare Default Delegate Dim DirectCast Do Double Each ' +
|
36 |
-
'Else ElseIf End Enum Erase Error Event Exit False Finally For Friend ' +
|
37 |
-
'Function Get GetType GoSub GoTo Handles If Implements Imports In ' +
|
38 |
-
'Inherits Integer Interface Is Let Lib Like Long Loop Me Mod Module ' +
|
39 |
-
'MustInherit MustOverride MyBase MyClass Namespace New Next Not Nothing ' +
|
40 |
-
'NotInheritable NotOverridable Object On Option Optional Or OrElse ' +
|
41 |
-
'Overloads Overridable Overrides ParamArray Preserve Private Property ' +
|
42 |
-
'Protected Public RaiseEvent ReadOnly ReDim REM RemoveHandler Resume ' +
|
43 |
-
'Return Select Set Shadows Shared Short Single Static Step Stop String ' +
|
44 |
-
'Structure Sub SyncLock Then Throw To True Try TypeOf Unicode Until ' +
|
45 |
-
'Variant When While With WithEvents WriteOnly Xor';
|
46 |
-
|
47 |
-
this.regexList = [
|
48 |
-
{ regex: /'.*$/gm, css: 'comments' }, // one line comments
|
49 |
-
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
50 |
-
{ regex: /^\s*#.*$/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
|
51 |
-
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // vb keyword
|
52 |
-
];
|
53 |
-
|
54 |
-
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
55 |
-
};
|
56 |
-
|
57 |
-
SyntaxHighlighter.brushes.Vb.prototype = new SyntaxHighlighter.Highlighter();
|
58 |
-
SyntaxHighlighter.brushes.Vb.aliases = ['vb', 'vbnet'];
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.Vb = function()
|
31 |
+
{
|
32 |
+
var keywords = 'AddHandler AddressOf AndAlso Alias And Ansi As Assembly Auto ' +
|
33 |
+
'Boolean ByRef Byte ByVal Call Case Catch CBool CByte CChar CDate ' +
|
34 |
+
'CDec CDbl Char CInt Class CLng CObj Const CShort CSng CStr CType ' +
|
35 |
+
'Date Decimal Declare Default Delegate Dim DirectCast Do Double Each ' +
|
36 |
+
'Else ElseIf End Enum Erase Error Event Exit False Finally For Friend ' +
|
37 |
+
'Function Get GetType GoSub GoTo Handles If Implements Imports In ' +
|
38 |
+
'Inherits Integer Interface Is Let Lib Like Long Loop Me Mod Module ' +
|
39 |
+
'MustInherit MustOverride MyBase MyClass Namespace New Next Not Nothing ' +
|
40 |
+
'NotInheritable NotOverridable Object On Option Optional Or OrElse ' +
|
41 |
+
'Overloads Overridable Overrides ParamArray Preserve Private Property ' +
|
42 |
+
'Protected Public RaiseEvent ReadOnly ReDim REM RemoveHandler Resume ' +
|
43 |
+
'Return Select Set Shadows Shared Short Single Static Step Stop String ' +
|
44 |
+
'Structure Sub SyncLock Then Throw To True Try TypeOf Unicode Until ' +
|
45 |
+
'Variant When While With WithEvents WriteOnly Xor';
|
46 |
+
|
47 |
+
this.regexList = [
|
48 |
+
{ regex: /'.*$/gm, css: 'comments' }, // one line comments
|
49 |
+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
50 |
+
{ regex: /^\s*#.*$/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
|
51 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // vb keyword
|
52 |
+
];
|
53 |
+
|
54 |
+
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
55 |
+
};
|
56 |
+
|
57 |
+
SyntaxHighlighter.brushes.Vb.prototype = new SyntaxHighlighter.Highlighter();
|
58 |
+
SyntaxHighlighter.brushes.Vb.aliases = ['vb', 'vbnet'];
|
syntaxhighlighter2/scripts/shBrushXml.js
CHANGED
@@ -1,71 +1,71 @@
|
|
1 |
-
/**
|
2 |
-
* SyntaxHighlighter
|
3 |
-
* http://alexgorbatchev.com/
|
4 |
-
*
|
5 |
-
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
-
*
|
8 |
-
* @version
|
9 |
-
* 2.1.364 (October 15 2009)
|
10 |
-
*
|
11 |
-
* @copyright
|
12 |
-
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
-
*
|
14 |
-
* @license
|
15 |
-
* This file is part of SyntaxHighlighter.
|
16 |
-
*
|
17 |
-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
-
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
-
* the Free Software Foundation, either version 3 of the License, or
|
20 |
-
* (at your option) any later version.
|
21 |
-
*
|
22 |
-
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
* GNU General Public License for more details.
|
26 |
-
*
|
27 |
-
* You should have received a copy of the GNU General Public License
|
28 |
-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
-
*/
|
30 |
-
SyntaxHighlighter.brushes.Xml = function()
|
31 |
-
{
|
32 |
-
function process(match, regexInfo)
|
33 |
-
{
|
34 |
-
var constructor = SyntaxHighlighter.Match,
|
35 |
-
code = match[0],
|
36 |
-
tag = new XRegExp('(<|<)[\\s\\/\\?]*(?<name>[:\\w-\\.]+)', 'xg').exec(code),
|
37 |
-
result = []
|
38 |
-
;
|
39 |
-
|
40 |
-
if (match.attributes != null)
|
41 |
-
{
|
42 |
-
var attributes,
|
43 |
-
regex = new XRegExp('(?<name> [\\w:\\-\\.]+)' +
|
44 |
-
'\\s*=\\s*' +
|
45 |
-
'(?<value> ".*?"|\'.*?\'|\\w+)',
|
46 |
-
'xg');
|
47 |
-
|
48 |
-
while ((attributes = regex.exec(code)) != null)
|
49 |
-
{
|
50 |
-
result.push(new constructor(attributes.name, match.index + attributes.index, 'color1'));
|
51 |
-
result.push(new constructor(attributes.value, match.index + attributes.index + attributes[0].indexOf(attributes.value), 'string'));
|
52 |
-
}
|
53 |
-
}
|
54 |
-
|
55 |
-
if (tag != null)
|
56 |
-
result.push(
|
57 |
-
new constructor(tag.name, match.index + tag[0].indexOf(tag.name), 'keyword')
|
58 |
-
);
|
59 |
-
|
60 |
-
return result;
|
61 |
-
}
|
62 |
-
|
63 |
-
this.regexList = [
|
64 |
-
{ regex: new XRegExp('(\\<|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\\>|>)', 'gm'), css: 'color2' }, // <![ ... [ ... ]]>
|
65 |
-
{ regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, // <!-- ... -->
|
66 |
-
{ regex: new XRegExp('(<|<)[\\s\\/\\?]*(\\w+)(?<attributes>.*?)[\\s\\/\\?]*(>|>)', 'sg'), func: process }
|
67 |
-
];
|
68 |
-
};
|
69 |
-
|
70 |
-
SyntaxHighlighter.brushes.Xml.prototype = new SyntaxHighlighter.Highlighter();
|
71 |
-
SyntaxHighlighter.brushes.Xml.aliases = ['xml', 'xhtml', 'xslt', 'html'];
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.Xml = function()
|
31 |
+
{
|
32 |
+
function process(match, regexInfo)
|
33 |
+
{
|
34 |
+
var constructor = SyntaxHighlighter.Match,
|
35 |
+
code = match[0],
|
36 |
+
tag = new XRegExp('(<|<)[\\s\\/\\?]*(?<name>[:\\w-\\.]+)', 'xg').exec(code),
|
37 |
+
result = []
|
38 |
+
;
|
39 |
+
|
40 |
+
if (match.attributes != null)
|
41 |
+
{
|
42 |
+
var attributes,
|
43 |
+
regex = new XRegExp('(?<name> [\\w:\\-\\.]+)' +
|
44 |
+
'\\s*=\\s*' +
|
45 |
+
'(?<value> ".*?"|\'.*?\'|\\w+)',
|
46 |
+
'xg');
|
47 |
+
|
48 |
+
while ((attributes = regex.exec(code)) != null)
|
49 |
+
{
|
50 |
+
result.push(new constructor(attributes.name, match.index + attributes.index, 'color1'));
|
51 |
+
result.push(new constructor(attributes.value, match.index + attributes.index + attributes[0].indexOf(attributes.value), 'string'));
|
52 |
+
}
|
53 |
+
}
|
54 |
+
|
55 |
+
if (tag != null)
|
56 |
+
result.push(
|
57 |
+
new constructor(tag.name, match.index + tag[0].indexOf(tag.name), 'keyword')
|
58 |
+
);
|
59 |
+
|
60 |
+
return result;
|
61 |
+
}
|
62 |
+
|
63 |
+
this.regexList = [
|
64 |
+
{ regex: new XRegExp('(\\<|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\\>|>)', 'gm'), css: 'color2' }, // <![ ... [ ... ]]>
|
65 |
+
{ regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, // <!-- ... -->
|
66 |
+
{ regex: new XRegExp('(<|<)[\\s\\/\\?]*(\\w+)(?<attributes>.*?)[\\s\\/\\?]*(>|>)', 'sg'), func: process }
|
67 |
+
];
|
68 |
+
};
|
69 |
+
|
70 |
+
SyntaxHighlighter.brushes.Xml.prototype = new SyntaxHighlighter.Highlighter();
|
71 |
+
SyntaxHighlighter.brushes.Xml.aliases = ['xml', 'xhtml', 'xslt', 'html'];
|
syntaxhighlighter2/scripts/shCore.js
CHANGED
@@ -1,30 +1,30 @@
|
|
1 |
-
/**
|
2 |
-
* SyntaxHighlighter
|
3 |
-
* http://alexgorbatchev.com/
|
4 |
-
*
|
5 |
-
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
-
*
|
8 |
-
* @version
|
9 |
-
* 2.1.364 (October 15 2009)
|
10 |
-
*
|
11 |
-
* @copyright
|
12 |
-
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
-
*
|
14 |
-
* @license
|
15 |
-
* This file is part of SyntaxHighlighter.
|
16 |
-
*
|
17 |
-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
-
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
-
* the Free Software Foundation, either version 3 of the License, or
|
20 |
-
* (at your option) any later version.
|
21 |
-
*
|
22 |
-
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
* GNU General Public License for more details.
|
26 |
-
*
|
27 |
-
* You should have received a copy of the GNU General Public License
|
28 |
-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
-
*/
|
30 |
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('c(!1q.2X){h 2X=l(){h p={6b:{"1s-R":"","84-2y":1,"83-2y-7W":I,"1I":v,"8d-89":I,"1H-2Q":4,"3g":I,"1w":I,"66":N,"8k-8l":I,"88":N,"5h-1p":I,"1L-1l":N},M:{4T:I,69:v,5l:16,5k:16,8B:N,8f:N,8s:"54",1f:{5q:"53 1g",5d:"9N 1g",5i:"9O 6q 6p",78:"9M C 9L 1V 9I 6p 9J",3t:"3t",6C:"?",1A:"2X\\n\\n",6T:"9K\'t 9P 2O D: ",7x:"9Q 9W\'t 9X D 1L-1l 9V: ",77:"<!9U 1L 9R \\"-//9S//6H 9T 1.0 9H//9G\\" \\"2s://5x.6x.6B/9v/6D/6H/6D-9w.9u\\"><1L 9t=\\"2s://5x.6x.6B/9s/9x\\"><6z><9y 2s-9E=\\"9F-9D\\" 63=\\"1X/1L; 9C=9z-8\\" /><3i>9A 2X</3i></6z><33 1m=\\"39-9Y:9Z,an,ao,am-al;ai-3f:#aj;3f:#ak;39-2Q:ap;1X-6G:6u;\\"><A 1m=\\"1X-6G:6u;6w-4w:aw;\\"><A 1m=\\"39-2Q:au-at;\\">2X</A><A 1m=\\"39-2Q:.as;6w-9p:ah;\\"><A>6O 2.1.ag (a5 15 6h)</A><A><a 27=\\"2s://6I.3k\\" a6=\\"4k\\" 1m=\\"3f:#6F;1X-6t:6L;\\">2s://6I.3k</a></A><A>a3 a0 a1 f 1l, a2 <a 27=\\"a7://5x.a8.3k/ae-af/ad?ac=a9-aa&ab=ax\\" 1m=\\"3f:#6F;1X-6t:6L;\\">8R</a> 6q 8Q 8O 8W!</A></A><A>8V C 8U 8X.</A><A>8K 8N-6h 8M 8S.</A></A></33></1L>"},8u:N},1r:{4Z:v,9o:v,3m:v,6f:{}},2d:{},8h:{9g:/\\/\\*[\\s\\S]*?\\*\\//3b,9d:/\\/\\/.*$/3b,9e:/#.*$/3b,9j:/"([^\\\\"\\n]|\\\\.)*"/g,9n:/\'([^\\\\\'\\n]|\\\\.)*\'/g,9m:/"([^\\\\"]|\\\\.)*"/g,8Y:/\'([^\\\\\']|\\\\.)*\'/g,9k:/(&X;|<)!--[\\s\\S]*?--(&Z;|>)/3b,43:/&X;\\w+:\\/\\/[\\w-.\\/?%&=@:;]*&Z;|\\w+:\\/\\/[\\w-.\\/?%&=@:;]*/g,9c:{G:/(&X;|<)\\?=?/g,1d:/\\?(&Z;|>)/g},93:{G:/(&X;|<)%=?/g,1d:/%(&Z;|>)/g},92:{G:/(&X;|<)\\s*1l.*?(&Z;|>)/4e,1d:/(&X;|<)\\/\\s*1l\\s*(&Z;|>)/4e}},1w:{1c:l(3O){h 3T=Q.22("3Y"),5s=p.1w.7d;3T.L="1w";D(h 30 1V 5s){h 6i=5s[30],5t=W 6i(3O),1Y=5t.1c();3O.6g[30]=5t;c(1Y==v){1J}c(7X(1Y)=="91"){1Y=p.1w.6m(1Y,3O.1k,30)}1Y.L+="5v "+30;3T.2p(1Y)}q 3T},6m:l(5L,7j,5K){h a=Q.22("a"),5N=a.1m,5D=p.M,5M=5D.5l,5J=5D.5k;a.27="#"+5K;a.3i=5L;a.5j=7j;a.76=5K;a.1Q=5L;c(40(5M)==N){5N.26=5M+"75"}c(40(5J)==N){5N.2e=5J+"75"}a.9l=l(e){97{p.1w.6M(f,e||1q.6Y,f.5j,f.76)}98(e){p.B.1A(e.6n)}q N};q a},6M:l(7i,7g,7b,7h,7f){h 5G=p.1r.6f[7b],5H;c(5G==v||(5H=5G.6g[7h])==v){q v}q 5H.2z(7i,7g,7f)},7d:{5q:l(5b){f.1c=l(){c(5b.V("66")!=I){q}q p.M.1f.5q};f.2z=l(5c,8T,8P){h A=5b.A;5c.7y.4p(5c);A.L=A.L.E("5O","")}},5d:l(6R){f.1c=l(){q p.M.1f.5d};f.2z=l(b1,bU,bV){h 3J=p.B.3d(6R.5g).E(/</g,"&X;"),2A=p.B.4z("","4k",bT,bS,"bQ=0, bR=1, bW=0, 7a=1");3J=p.B.2T(3J);2A.Q.3D("<54>"+3J+"</54>");2A.Q.4o()}},5i:l(64){h 3C,c2,6a=64.1k;f.1c=l(){h 2V=p.M;c(2V.69==v){q v}l 1E(56){h 5m="";D(h 5f 1V 56){5m+="<c1 R=\'"+5f+"\' 24=\'"+56[5f]+"\'/>"}q 5m};l 2i(5n){h 5p="";D(h 5o 1V 5n){5p+=" "+5o+"=\'"+5n[5o]+"\'"}q 5p};h 67={26:2V.5l,2e:2V.5k,1k:6a+"bY",4r:"bZ/x-71-6V",3i:p.M.1f.5i},5V={bE:"ay",bD:"bC",bA:"5j="+6a,c4:"N"},5U=2V.69,3x;c(/bG/i.1R(6K.7k)){3x="<4h"+2i({bH:"bM:bN-bL-bK-bI-bJ",c3:"2s://ck.cj.3k/cm/71/c9/6V/c8.c7#6O=9,0,0,0"})+2i(67)+">"+1E(5V)+1E({c6:5U})+"</4h>"}F{3x="<ca"+2i(67)+2i(5V)+2i({cg:5U})+"/>"}3C=Q.22("A");3C.1Q=3x;q 3C};f.2z=l(cf,ce,62){h 7c=62.cd;6U(7c){2K"7q":h 61=p.B.2T(p.B.3d(64.5g).E(/&X;/g,"<").E(/&Z;/g,">").E(/&aT;/g,"&"));c(1q.74){1q.74.aU("1X",61)}F{q p.B.2T(61)}2K"aR":p.B.1A(p.M.1f.78);2h;2K"aP":p.B.1A(62.6n);2h}}},aV:l(65){f.1c=l(){q p.M.1f.3t};f.2z=l(aW,bz,b0){h 1Z=Q.22("aZ"),1N=v;c(p.1r.3m!=v){Q.33.4p(p.1r.3m)}p.1r.3m=1Z;1Z.1m.aX="aY:aO;26:6r;2e:6r;G:-6j;4w:-6j;";Q.33.2p(1Z);1N=1Z.5Q.Q;6J(1N,1q.Q);1N.3D("<A 1s=\\""+65.A.L.E("5O","")+" aD\\">"+65.A.1Q+"</A>");1N.4o();1Z.5Q.4F();1Z.5Q.3t();l 6J(6N,6E){h 2I=6E.4O("4n");D(h i=0;i<2I.u;i++){c(2I[i].6y.6P()=="6A"&&/aE\\.1a$/.1R(2I[i].27)){6N.3D("<4n 4r=\\"1X/1a\\" 6y=\\"6A\\" 27=\\""+2I[i].27+"\\"></4n>")}}}}},az:l(aA){f.1c=l(){q p.M.1f.6C};f.2z=l(aF,aG){h 2A=p.B.4z("","4k",aM,aK,"7a=0"),1N=2A.Q;1N.3D(p.M.1f.77);1N.4o();2A.4F()}}}},B:{Y:l(49,73,3y){3y=3e.aH(3y||0,0);D(h i=3y;i<49.u;i++){c(49[i]==73){q i}}q-1},6d:l(72){q 72+3e.aI(3e.b2()*b3).2u()},6c:l(51,4L){h 3h={},1W;D(1W 1V 51){3h[1W]=51[1W]}D(1W 1V 4L){3h[1W]=4L[1W]}q 3h},80:l(4J){6U(4J){2K"I":q I;2K"N":q N}q 4J},4z:l(43,6W,4B,4H,2N){h x=(6X.26-4B)/2,y=(6X.2e-4H)/2;2N+=", G="+x+", 4w="+y+", 26="+4B+", 2e="+4H;2N=2N.E(/^,/,"");h 4E=1q.bk(43,6W,2N);4E.4F();q 4E},7C:l(1G,1T,1U){c(1G.6Z){1G["e"+1T+1U]=1U;1G[1T+1U]=l(){1G["e"+1T+1U](1q.6Y)};1G.6Z("bw"+1T,1G[1T+1U])}F{1G.bv(1T,1U,N)}},1A:l(z){1A(p.M.1f.1A+z)},4u:l(4N,6Q){h 2r=p.1r.4Z,3V=v;c(2r==v){2r={};D(h 2L 1V p.2d){h 42=p.2d[2L].bu;c(42==v){1J}p.2d[2L].R=2L.6P();D(h i=0;i<42.u;i++){2r[42[i]]=2L}}p.1r.4Z=2r}3V=p.2d[2r[4N]];c(3V==v&&6Q!=N){p.B.1A(p.M.1f.6T+4N)}q 3V},46:l(z,6S){h 2E=z.1P("\\n");D(h i=0;i<2E.u;i++){2E[i]=6S(2E[i])}q 2E.5A("\\n")},8C:l(z){q z.E(/^[ ]*[\\n]+|[\\n]*[ ]*$/g,"")},8H:l(z){h 3X,45={},4P=W U("^\\\\[(?<4c>(.*?))\\\\]$"),7e=W U("(?<R>[\\\\w-]+)"+"\\\\s*:\\\\s*"+"(?<24>"+"[\\\\w-%#]+|"+"\\\\[.*?\\\\]|"+"\\".*?\\"|"+"\'.*?\'"+")\\\\s*;?","g");2j((3X=7e.T(z))!=v){h 2f=3X.24.E(/^[\'"]|[\'"]$/g,"");c(2f!=v&&4P.1R(2f)){h m=4P.T(2f);2f=m.4c.u>0?m.4c.1P(/\\s*,\\s*/):[]}45[3X.R]=2f}q 45},7K:l(z,1a){c(z==v||z.u==0||z=="\\n"){q z}z=z.E(/</g,"&X;");z=z.E(/ {2,}/g,l(m){h 4t="";D(h i=0;i<m.u-1;i++){4t+="&2B;"}q 4t+" "});c(1a!=v){z=p.B.46(z,l(2l){c(2l.u==0){q""}h 3W="";2l=2l.E(/^(&2B;| )+/,l(s){3W=s;q""});c(2l.u==0){q 3W}q 3W+"<C 1s=\\""+1a+"\\">"+2l+"</C>"})}q z},7V:l(6l,6o){h 32=6l.2u();2j(32.u<6o){32="0"+32}q 32},6k:l(){h 3w=Q.22("A"),3B,3o=0,44=Q.33,1k=p.B.6d("6k"),36="<A 1s=\\"",2Y="</A>",4U="</4G>";3w.1Q=36+"6e\\">"+36+"1p\\">"+36+"2y\\">"+36+"63"+"\\"><4G 1s=\\"b5\\"><4G 1k=\\""+1k+"\\">&2B;"+4U+4U+2Y+2Y+2Y+2Y;44.2p(3w);3B=Q.bb(1k);c(/bg/i.1R(6K.7k)){h 6v=1q.be(3B,v);3o=85(6v.bc("26"))}F{3o=3B.bd}44.4p(3w);q 3o},8b:l(79,6s){h 1H="";D(h i=0;i<6s;i++){1H+=" "}q 79.E(/\\t/g,1H)},8a:l(2Z,4f){h bF=2Z.1P("\\n"),1H="\\t",4d="";D(h i=0;i<50;i++){4d+=" "}l 8x(3s,18,8A){q 3s.29(0,18)+4d.29(0,8A)+3s.29(18+1,3s.u)};2Z=p.B.46(2Z,l(20){c(20.Y(1H)==-1){q 20}h 18=0;2j((18=20.Y(1H))!=-1){h 8w=4f-18%4f;20=8x(20,18,8w)}q 20});q 2Z},3d:l(z){h br=/<br\\s*\\/?>|&X;br\\s*\\/?&Z;/4e;c(p.M.8B==I){z=z.E(br,"\\n")}c(p.M.8f==I){z=z.E(br,"")}q z},2G:l(z){q z.E(/^\\s+|\\s+$/g,"")},2T:l(z){h 21=p.B.3d(z).1P("\\n"),bf=W bh(),8D=/^\\s*/,2a=ba;D(h i=0;i<21.u&&2a>0;i++){h 4x=21[i];c(p.B.2G(4x).u==0){1J}h 4I=8D.T(4x);c(4I==v){q z}2a=3e.2a(4I[0].u,2a)}c(2a>0){D(h i=0;i<21.u;i++){21[i]=21[i].29(2a)}}q 21.5A("\\n")},82:l(35,31){c(35.H<31.H){q-1}F{c(35.H>31.H){q 1}F{c(35.u<31.u){q-1}F{c(35.u>31.u){q 1}}}}q 0},2D:l(8q,34){l 8n(4D,8r){q[W p.4v(4D[0],4D.H,8r.1a)]};h b4=0,4s=v,3L=[],8p=34.4X?34.4X:8n;2j((4s=34.3K.T(8q))!=v){3L=3L.2t(8p(4s,34))}q 3L},8m:l(8o){h X="&X;",Z="&Z;";q 8o.E(p.8h.43,l(m){h 4j="",47="";c(m.Y(X)==0){47=X;m=m.3U(X.u)}c(m.Y(Z)==m.u-Z.u){m=m.3U(0,m.u-Z.u);4j=Z}q 47+"<a 27=\\""+m+"\\">"+m+"</a>"+4j})},8v:l(){h 3N=Q.4O("1l"),4i=[];D(h i=0;i<3N.u;i++){c(3N[i].4r=="6e"){4i.K(3N[i])}}q 4i},8I:l(4b){h 4q="<![b6[",3S="]]>",1v=p.B.2G(4b),3R=N;c(1v.Y(4q)==0){1v=1v.3U(4q.u);3R=I}c(1v.Y(3S)==1v.u-3S.u){1v=1v.3U(0,1v.u-3S.u);3R=I}q 3R?1v:4b}},1I:l(8E,4R){l 8e(4g){h 4Q=[];D(h i=0;i<4g.u;i++){4Q.K(4g[i])}q 4Q};h 2q=4R?[4R]:8e(Q.4O(p.M.8s)),8J="1Q",2k=v,4S=p.M;c(4S.4T){2q=2q.2t(p.B.8v())}c(2q.u===0){q}D(h i=0;i<2q.u;i++){h 2M=2q[i],28=p.B.8H(2M.L),1D,2W,25;28=p.B.6c(8E,28);1D=28["2O"];c(1D==v){1J}c(28["1L-1l"]=="I"||p.6b["1L-1l"]==I){2k=W p.4a(1D);1D="b9"}F{h 3P=p.B.4u(1D);c(3P){1D=3P.R;2k=W 3P()}F{1J}}2W=2M[8J];c(4S.4T){2W=p.B.8I(2W)}28["2O-R"]=1D;2k.1I(2W,28);25=2k.A;c(p.M.8u){25=Q.22("bj");25.24=2k.A.1Q;25.1m.26="bt";25.1m.2e="bx"}2M.7y.bs(25,2M)}},bq:l(7H){p.B.7C(1q,"bl",l(){p.1I(7H)})}};p.4v=l(4A,7G,1a){f.24=4A;f.H=7G;f.u=4A.u;f.1a=1a;f.5Y=v};p.4v.14.2u=l(){q f.24};p.4a=l(4K){h 3z=p.B.4u(4K),2g,4W=W p.2d.bm(),bn=v;c(3z==v){q}2g=W 3z();f.4m=4W;c(2g.3I==v){p.B.1A(p.M.1f.7x+4K);q}4W.59.K({3K:2g.3I.C,4X:7p});l 3A(4Y,7w){D(h j=0;j<4Y.u;j++){4Y[j].H+=7w}};l 7p(19,bp){h 7n=19.C,1o=[],4M=2g.59,7l=19.H+19.G.u,2U=2g.3I,1n;D(h i=0;i<4M.u;i++){1n=p.B.2D(7n,4M[i]);3A(1n,7l);1o=1o.2t(1n)}c(2U.G!=v&&19.G!=v){1n=p.B.2D(19.G,2U.G);3A(1n,19.H);1o=1o.2t(1n)}c(2U.1d!=v&&19.1d!=v){1n=p.B.2D(19.1d,2U.1d);3A(1n,19.H+19[0].bo(19.1d));1o=1o.2t(1n)}D(h j=0;j<1o.u;j++){1o[j].5Y=3z.R}q 1o}};p.4a.14.1I=l(7t,7s){f.4m.1I(7t,7s);f.A=f.4m.A};p.7I=l(){};p.7I.14={V:l(7J,7Z){h 4l=f.1E[7J];q p.B.80(4l==v?7Z:4l)},1c:l(7Y){q Q.22(7Y)},8i:l(2F,81){h 3u=[];c(2F!=v){D(h i=0;i<2F.u;i++){c(7X(2F[i])=="4h"){3u=3u.2t(p.B.2D(81,2F[i]))}}}q 3u.aB(p.B.82)},86:l(){h 23=f.2C;D(h i=0;i<23.u;i++){c(23[i]===v){1J}h 2x=23[i],4V=2x.H+2x.u;D(h j=i+1;j<23.u&&23[i]!==v;j++){h 1S=23[j];c(1S===v){1J}F{c(1S.H>4V){2h}F{c(1S.H==2x.H&&1S.u>2x.u){f.2C[i]=v}F{c(1S.H>=2x.H&&1S.H<4V){f.2C[j]=v}}}}}}},8t:l(2H){h 3r=2H.1P(/\\n/g),3n=85(f.V("84-2y")),2v=f.V("83-2y-7W"),7N=f.V("1I",[]),7U=f.V("3g");2H="";c(2v==I){2v=(3n+3r.u-1).2u().u}F{c(40(2v)==I){2v=0}}D(h i=0;i<3r.u;i++){h 1x=3r[i],60=/^(&2B;|\\s)+/.T(1x),52="aN"+(i%2==0?1:2),7F=p.B.7V(3n+i,2v),7P=p.B.Y(7N,(3n+i).2u())!=-1,2S=v;c(60!=v){2S=60[0].2u();1x=1x.29(2S.u)}1x=p.B.2G(1x);c(1x.u==0){1x="&2B;"}c(7P){52+=" aQ"}2H+="<A 1s=\\"2y "+52+"\\">"+"<7L>"+"<7T>"+(7U?"<3F 1s=\\"aS\\"><C>"+7F+"</C></3F>":"")+"<3F 1s=\\"63\\">"+(2S!=v?"<C 1s=\\"by\\">"+2S.E(" ","&2B;")+"</C>":"")+1x+"</3F>"+"</7T>"+"</7L>"+"</A>"}q 2H},8y:l(5X,5T){h 18=0,3c="",3a=p.B.7K,5S=f.V("2O-R","");l 5W(5Z){h 5R=5Z?(5Z.5Y||5S):5S;q 5R?5R+" ":""};D(h i=0;i<5T.u;i++){h 1y=5T[i],3G;c(1y===v||1y.u===0){1J}3G=5W(1y);3c+=3a(5X.29(18,1y.H-18),3G+"7O")+3a(1y.24,3G+1y.1a);18=1y.H+1y.u}3c+=3a(5X.29(18),5W()+"7O");q 3c},1I:l(C,7E){h cb=p.M,1r=p.1r,A,ci,3Z,ch="cn";f.1E={};f.A=v;f.1p=v;f.C=v;f.1i=v;f.6g={};f.1k=p.B.6d("cl");1r.6f[f.1k]=f;c(C===v){C=""}f.1E=p.B.6c(p.6b,7E||{});c(f.V("88")==I){f.1E.1w=f.1E.3g=N}f.A=A=f.1c("3Y");f.1p=f.1c("3Y");f.1p.L="1p";L="6e";A.1k=f.1k;c(f.V("66")){L+=" 5O"}c(f.V("3g")==N){L+=" bB"}c(f.V("5h-1p")==N){f.1p.L+=" bO-5h"}L+=" "+f.V("1s-R");L+=" "+f.V("2O-R");A.L=L;f.5g=C;f.C=p.B.8C(C).E(/\\r/g," ");3Z=f.V("1H-2Q");f.C=f.V("8d-89")==I?p.B.8a(f.C,3Z):p.B.8b(f.C,3Z);f.C=p.B.2T(f.C);c(f.V("1w")){f.1i=f.1c("3Y");f.1i.L="1i";f.1i.2p(p.1w.1c(f));A.2p(f.1i);h 1i=f.1i;l 58(){1i.L=1i.L.E("53","")};A.c0=l(){58();1i.L+=" 53"};A.bX=l(){58()}}A.2p(f.1p);f.2C=f.8i(f.59,f.C);f.86();C=f.8y(f.C,f.2C);C=f.8t(p.B.2G(C));c(f.V("8k-8l")){C=p.B.8m(C)}f.1p.1Q=C},9f:l(z){z=z.E(/^\\s+|\\s+$/g,"").E(/\\s+/g,"|");q"\\\\b(?:"+z+")\\\\b"},9i:l(2J){f.3I={G:{3K:2J.G,1a:"1l"},1d:{3K:2J.1d,1a:"1l"},C:W U("(?<G>"+2J.G.1g+")"+"(?<C>.*?)"+"(?<1d>"+2J.1d.1g+")","96")}}};q p}()}c(!1q.U){(l(){h 2w={T:10.14.T,87:5I.14.87,E:5I.14.E,1P:5I.14.1P},1F={13:/(?:[^\\\\([#\\s.]+|\\\\(?!k<[\\w$]+>|[7z]{[^}]+})[\\S\\s]?|\\((?=\\?(?!#|<[\\w$]+>)))+|(\\()(?:\\?(?:(#)[^)]*\\)|<([$\\w]+)>))?|\\\\(?:k<([\\w$]+)>|[7z]{([^}]+)})|(\\[\\^?)|([\\S\\s])/g,99:/(?:[^$]+|\\$(?![1-9$&`\']|{[$\\w]+}))+|\\$(?:([1-9]\\d*|[$&`\'])|{([$\\w]+)})/g,37:/^(?:\\s+|#.*)+/,5B:/^(?:[?*+]|{\\d+(?:,\\d*)?})/,7Q:/&&\\[\\^?/g,7S:/]/g},7o=l(5C,5v,5u){D(h i=5u||0;i<5C.u;i++){c(5C[i]===5v){q i}}q-1},8G=/()??/.T("")[1]!==3j,3q={};U=l(1e,1O){c(1e 68 10){c(1O!==3j){3H 7r("4y\'t 4C 9a 8z 95 7u 10 5u 94")}q 1e.3E()}h 1O=1O||"",7R=1O.Y("s")>-1,7M=1O.Y("x")>-1,5z=N,3v=[],1b=[],13=1F.13,J,cc,38,3M,3p;13.O=0;2j(J=2w.T.2n(13,1e)){c(J[2]){c(!1F.5B.1R(1e.17(13.O))){1b.K("(?:)")}}F{c(J[1]){3v.K(J[3]||v);c(J[3]){5z=I}1b.K("(")}F{c(J[4]){3M=7o(3v,J[4]);1b.K(3M>-1?"\\\\"+(3M+1)+(40(1e.5w(13.O))?"":"(?:)"):J[0])}F{c(J[5]){1b.K(3q.7m?3q.7m.7q(J[5],J[0].5w(1)==="P"):J[0])}F{c(J[6]){c(1e.5w(13.O)==="]"){1b.K(J[6]==="["?"(?!)":"[\\\\S\\\\s]");13.O++}F{cc=U.8g("&&"+1e.17(J.H),1F.7Q,1F.7S,"",{7D:"\\\\"})[0];1b.K(J[6]+cc+"]");13.O+=cc.u+1}}F{c(J[7]){c(7R&&J[7]==="."){1b.K("[\\\\S\\\\s]")}F{c(7M&&1F.37.1R(J[7])){38=2w.T.2n(1F.37,1e.17(13.O-1))[0].u;c(!1F.5B.1R(1e.17(13.O-1+38))){1b.K("(?:)")}13.O+=38-1}F{1b.K(J[7])}}}F{1b.K(J[0])}}}}}}}3p=10(1b.5A(""),2w.E.2n(1O,/[9B]+/g,""));3p.1C={1g:1e,2m:5z?3v:v};q 3p};U.9q=l(R,o){3q[R]=o};10.14.T=l(z){h 1h=2w.T.2n(f,z),R,i,5y;c(1h){c(8G&&1h.u>1){5y=W 10("^"+f.1g+"$(?!\\\\s)",f.5E());2w.E.2n(1h[0],5y,l(){D(i=1;i<8j.u-2;i++){c(8j[i]===3j){1h[i]=3j}}})}c(f.1C&&f.1C.2m){D(i=1;i<1h.u;i++){R=f.1C.2m[i-1];c(R){1h[R]=1h[i]}}}c(f.3l&&f.O>(1h.H+1h[0].u)){f.O--}}q 1h}})()}10.14.5E=l(){q(f.3l?"g":"")+(f.av?"i":"")+(f.8F?"m":"")+(f.37?"x":"")+(f.a4?"y":"")};10.14.3E=l(7A){h 5F=W U(f.1g,(7A||"")+f.5E());c(f.1C){5F.1C={1g:f.1C.1g,2m:f.1C.2m?f.1C.2m.17(0):v}}q 5F};10.14.2n=l(90,z){q f.T(z)};10.14.9b=l(9h,8c){q f.T(8c[0])};U.5P=l(57,5e){h 55="/"+57+"/"+(5e||"");q U.5P[55]||(U.5P[55]=W U(57,5e))};U.41=l(z){q z.E(/[-[\\]{}()*+?.\\\\^$|,#\\s]/g,"\\\\$&")};U.8g=l(z,G,11,1j,2R){h 2R=2R||{},2P=2R.7D,12=2R.c5,1j=1j||"",5r=1j.Y("g")>-1,70=1j.Y("i")>-1,7v=1j.Y("m")>-1,5a=1j.Y("y")>-1,1j=1j.E(/y/g,""),G=G 68 10?(G.3l?G:G.3E("g")):W U(G,"g"+1j),11=11 68 10?(11.3l?11:11.3E("g")):W U(11,"g"+1j),1M=[],2o=0,1u=0,1t=0,1z=0,2b,2c,1B,1K,3Q,48;c(2P){c(2P.u>1){3H aC("4y\'t 4C aL aJ 7u 41 7B")}c(7v){3H 7r("4y\'t 4C 41 7B 8z bi b8 8F b7")}3Q=U.41(2P);48=W 10("^(?:"+3Q+"[\\\\S\\\\s]|(?:(?!"+G.1g+"|"+11.1g+")[^"+3Q+"])+)+",70?"i":"")}2j(I){G.O=11.O=1t+(2P?(48.T(z.17(1t))||[""])[0].u:0);1B=G.T(z);1K=11.T(z);c(1B&&1K){c(1B.H<=1K.H){1K=v}F{1B=v}}c(1B||1K){1u=(1B||1K).H;1t=(1B?G:11).O}F{c(!2o){2h}}c(5a&&!2o&&1u>1z){2h}c(1B){c(!2o++){2b=1u;2c=1t}}F{c(1K&&2o){c(!--2o){c(12){c(12[0]&&2b>1z){1M.K([12[0],z.17(1z,2b),1z,2b])}c(12[1]){1M.K([12[1],z.17(2b,2c),2b,2c])}c(12[2]){1M.K([12[2],z.17(2c,1u),2c,1u])}c(12[3]){1M.K([12[3],z.17(1u,1t),1u,1t])}}F{1M.K(z.17(2c,1u))}1z=1t;c(!5r){2h}}}F{G.O=11.O=0;3H bP("8L aq 9r ar 8Z")}}c(1u===1t){1t++}}c(5r&&!5a&&12&&12[0]&&z.u>1z){1M.K([12[0],z.17(1z),1z,z.u])}G.O=11.O=0;q 1M};',62,768,'||||||||||||if|||this||var||||function||||sh|return||||length|null||||str|div|utils|code|for|replace|else|left|index|true|_121|push|className|config|false|lastIndex||document|name||exec|XRegExp|getParam|new|lt|indexOf|gt|RegExp|_139|vN|part|prototype|||slice|pos|_d3|css|_11f|create|right|_119|strings|source|_129|bar|_13a|id|script|style|_da|_d6|lines|window|vars|class|_145|_144|_b5|toolbar|_f4|_103|_146|alert|_149|_x|_c3|params|lib|obj|tab|highlight|continue|_14a|html|_142|doc|_11a|split|innerHTML|test|_ec|_5a|_5b|in|_4f|text|_8|_3c|_91|_98|createElement|_e7|value|_c5|width|href|_c2|substr|min|_147|_148|brushes|height|_6e|_cd|break|attributes|while|_be|_75|captureNames|call|_143|appendChild|_bc|_5f|http|concat|toString|_f0|real|_e9|line|execute|wnd|nbsp|matches|getMatches|_66|_e3|trim|_ed|_40|_10f|case|_61|_c1|_55|brush|_13c|size|_13b|_f9|unindent|_d9|_28|_c4|SyntaxHighlighter|_81|_88|_5|m2|_7a|body|_a2|m1|_80|extended|len|font|_fe|gm|_fd|fixInputString|Math|color|gutter|_4e|title|undefined|com|global|printFrame|_ef|_7d|_125|_118|_ee|_8e|print|_e5|_11e|_7b|_32|_49|_cc|offsetMatches|_7c|_25|write|addFlags|td|_104|throw|htmlScript|_22|regex|_a7|_124|_af|_2|_c6|_14b|_b6|_b4|_3|substring|_60|_76|_6a|DIV|_10b|isNaN|escape|_62|url|_7e|_6b|eachLine|_ae|esc|_47|HtmlScript|_b2|values|_8c|gi|_89|_b9|object|_b0|_ad|_blank|_e1|xmlBrush|link|close|removeChild|_b3|type|_a6|_73|findBrush|Match|top|_9d|can|popup|_c8|_53|supply|_a3|win|focus|span|_54|_9e|_50|_cb|_4d|_d7|_5d|getElementsByTagName|_6c|_ba|_b8|_bf|useScriptTags|_82|_ea|_ce|func|_d0|discoveredBrushes||_4c|_f6|show|pre|key|_29|_133|hide|regexList|_141|_19|_1a|viewSource|_134|_2b|originalCode|wrap|copyToClipboard|highlighterId|toolbarItemHeight|toolbarItemWidth|_2a|_2c|_2e|_2d|expandSource|_13e|_4|_7|from|item|charAt|www|r2|_11d|join|quantifier|_113|_e|getNativeFlags|_12e|_17|_18|String|_10|_b|_9|_f|_d|collapsed|cache|contentWindow|_101|_ff|_fb|swf|_30|getBrushNameCss|_fa|brushName|_100|_f5|_37|_35|content|_24|_38|collapse|_2f|instanceof|clipboardSwf|_27|defaults|merge|guid|syntaxhighlighter|highlighters|toolbarCommands|2009|_6|500px|measureSpace|_78|createButton|message|_79|clipboard|to|0px|_85|decoration|center|_83|margin|w3|rel|head|stylesheet|org|help|xhtml1|_3f|0099FF|align|DTD|alexgorbatchev|copyStyles|navigator|none|executeCommand|_3e|version|toLowerCase|_5e|_1e|_65|noBrush|switch|flash|_52|screen|event|attachEvent|_13f|shockwave|_4b|_48|clipboardData|px|commandName|aboutDialog|copyToClipboardConfirmation|_84|scrollbars|_14|_36|items|_6d|_16|_13|_15|_12|_a|userAgent|_d8|unicode|_d5|_112|process|get|TypeError|_de|_dd|one|_140|_d1|brushNotHtmlScript|parentNode|pP|_12d|character|addEvent|escapeChar|_106|_f7|_c9|_c7|Highlighter|_df|decorate|table|_11c|_f1|plain|_f8|classLeft|_11b|classRight|tr|_f2|padNumber|numbers|typeof|_e2|_e0|toBoolean|_e4|matchesSortCallback|pad|first|parseInt|removeNestedMatches|match|light|tabs|processSmartTabs|processTabs|args|smart|toArray|stripBrs|matchRecursive|regexLib|findMatches|arguments|auto|links|processUrls|defaultAdd|_a9|_a8|_a1|_a4|tagName|createDisplayLines|debug|getSyntaxHighlighterScriptTags|_93|insertSpaces|processMatches|when|_90|bloggerMode|trimFirstAndLastLines|_9a|_b7|multiline|_117|parseParams|stripCData|_bd|Copyright|subject|Alex|2004|development|_1c|keep|donate|Gorbatchev|_1b|syntax|JavaScript|active|highlighter|multiLineSingleQuotedString|delimiters|_12f|string|scriptScriptTags|aspScriptTags|another|constructing|sgi|try|catch|replaceVar|flags|apply|phpScriptTags|singleLineCComments|singleLinePerlComments|getKeywords|multiLineCComments|_131|forHtmlScript|doubleQuotedString|xmlComments|onclick|multiLineDoubleQuotedString|singleQuotedString|spaceWidth|bottom|addPlugin|contains|1999|xmlns|dtd|TR|transitional|xhtml|meta|utf|About|sx|charset|Type|equiv|Content|EN|Transitional|your|now|Can|is|The|view|copy|find|Brush|PUBLIC|W3C|XHTML|DOCTYPE|option|wasn|configured|family|Geneva|you|like|please|If|sticky|October|target|https|paypal|_s|xclick|hosted_button_id|cmd|webscr|cgi|bin|364|4em|background|fff|000|serif|sans|Arial|Helvetica|1em|data|unbalanced|75em|large|xx|ignoreCase|3em|2930402|always|about|_42|sort|SyntaxError|printing|shCore|_43|_44|max|round|than|250|more|500|alt|absolute|error|highlighted|ok|number|amp|setData|printSource|_39|cssText|position|IFRAME|_3b|_1f|random|1000000|_a5|block|CDATA|flag|the|htmlscript|1000|getElementById|getPropertyValue|offsetWidth|getComputedStyle|_99|opera|Array|using|textarea|open|load|Xml|_cf|lastIndexOf|_d4|all||replaceChild|70em|aliases|addEventListener|on|30em|spaces|_3a|flashVars|nogutter|transparent|wmode|allowScriptAccess|_8a|msie|classid|96b8|444553540000|11cf|ae6d|clsid|d27cdb6e|no|Error|location|resizable|400|750|_20|_21|menubar|onmouseout|_clipboard|application|onmouseover|param|_26|codebase|menu|valueNames|movie|cab|swflash|cabs|embed|conf||command|_34|_33|src|_10c|_10a|macromedia|download|highlighter_|pub|important'.split('|'),0,{}))
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('c(!1q.2X){h 2X=l(){h p={6b:{"1s-R":"","84-2y":1,"83-2y-7W":I,"1I":v,"8d-89":I,"1H-2Q":4,"3g":I,"1w":I,"66":N,"8k-8l":I,"88":N,"5h-1p":I,"1L-1l":N},M:{4T:I,69:v,5l:16,5k:16,8B:N,8f:N,8s:"54",1f:{5q:"53 1g",5d:"9N 1g",5i:"9O 6q 6p",78:"9M C 9L 1V 9I 6p 9J",3t:"3t",6C:"?",1A:"2X\\n\\n",6T:"9K\'t 9P 2O D: ",7x:"9Q 9W\'t 9X D 1L-1l 9V: ",77:"<!9U 1L 9R \\"-//9S//6H 9T 1.0 9H//9G\\" \\"2s://5x.6x.6B/9v/6D/6H/6D-9w.9u\\"><1L 9t=\\"2s://5x.6x.6B/9s/9x\\"><6z><9y 2s-9E=\\"9F-9D\\" 63=\\"1X/1L; 9C=9z-8\\" /><3i>9A 2X</3i></6z><33 1m=\\"39-9Y:9Z,an,ao,am-al;ai-3f:#aj;3f:#ak;39-2Q:ap;1X-6G:6u;\\"><A 1m=\\"1X-6G:6u;6w-4w:aw;\\"><A 1m=\\"39-2Q:au-at;\\">2X</A><A 1m=\\"39-2Q:.as;6w-9p:ah;\\"><A>6O 2.1.ag (a5 15 6h)</A><A><a 27=\\"2s://6I.3k\\" a6=\\"4k\\" 1m=\\"3f:#6F;1X-6t:6L;\\">2s://6I.3k</a></A><A>a3 a0 a1 f 1l, a2 <a 27=\\"a7://5x.a8.3k/ae-af/ad?ac=a9-aa&ab=ax\\" 1m=\\"3f:#6F;1X-6t:6L;\\">8R</a> 6q 8Q 8O 8W!</A></A><A>8V C 8U 8X.</A><A>8K 8N-6h 8M 8S.</A></A></33></1L>"},8u:N},1r:{4Z:v,9o:v,3m:v,6f:{}},2d:{},8h:{9g:/\\/\\*[\\s\\S]*?\\*\\//3b,9d:/\\/\\/.*$/3b,9e:/#.*$/3b,9j:/"([^\\\\"\\n]|\\\\.)*"/g,9n:/\'([^\\\\\'\\n]|\\\\.)*\'/g,9m:/"([^\\\\"]|\\\\.)*"/g,8Y:/\'([^\\\\\']|\\\\.)*\'/g,9k:/(&X;|<)!--[\\s\\S]*?--(&Z;|>)/3b,43:/&X;\\w+:\\/\\/[\\w-.\\/?%&=@:;]*&Z;|\\w+:\\/\\/[\\w-.\\/?%&=@:;]*/g,9c:{G:/(&X;|<)\\?=?/g,1d:/\\?(&Z;|>)/g},93:{G:/(&X;|<)%=?/g,1d:/%(&Z;|>)/g},92:{G:/(&X;|<)\\s*1l.*?(&Z;|>)/4e,1d:/(&X;|<)\\/\\s*1l\\s*(&Z;|>)/4e}},1w:{1c:l(3O){h 3T=Q.22("3Y"),5s=p.1w.7d;3T.L="1w";D(h 30 1V 5s){h 6i=5s[30],5t=W 6i(3O),1Y=5t.1c();3O.6g[30]=5t;c(1Y==v){1J}c(7X(1Y)=="91"){1Y=p.1w.6m(1Y,3O.1k,30)}1Y.L+="5v "+30;3T.2p(1Y)}q 3T},6m:l(5L,7j,5K){h a=Q.22("a"),5N=a.1m,5D=p.M,5M=5D.5l,5J=5D.5k;a.27="#"+5K;a.3i=5L;a.5j=7j;a.76=5K;a.1Q=5L;c(40(5M)==N){5N.26=5M+"75"}c(40(5J)==N){5N.2e=5J+"75"}a.9l=l(e){97{p.1w.6M(f,e||1q.6Y,f.5j,f.76)}98(e){p.B.1A(e.6n)}q N};q a},6M:l(7i,7g,7b,7h,7f){h 5G=p.1r.6f[7b],5H;c(5G==v||(5H=5G.6g[7h])==v){q v}q 5H.2z(7i,7g,7f)},7d:{5q:l(5b){f.1c=l(){c(5b.V("66")!=I){q}q p.M.1f.5q};f.2z=l(5c,8T,8P){h A=5b.A;5c.7y.4p(5c);A.L=A.L.E("5O","")}},5d:l(6R){f.1c=l(){q p.M.1f.5d};f.2z=l(b1,bU,bV){h 3J=p.B.3d(6R.5g).E(/</g,"&X;"),2A=p.B.4z("","4k",bT,bS,"bQ=0, bR=1, bW=0, 7a=1");3J=p.B.2T(3J);2A.Q.3D("<54>"+3J+"</54>");2A.Q.4o()}},5i:l(64){h 3C,c2,6a=64.1k;f.1c=l(){h 2V=p.M;c(2V.69==v){q v}l 1E(56){h 5m="";D(h 5f 1V 56){5m+="<c1 R=\'"+5f+"\' 24=\'"+56[5f]+"\'/>"}q 5m};l 2i(5n){h 5p="";D(h 5o 1V 5n){5p+=" "+5o+"=\'"+5n[5o]+"\'"}q 5p};h 67={26:2V.5l,2e:2V.5k,1k:6a+"bY",4r:"bZ/x-71-6V",3i:p.M.1f.5i},5V={bE:"ay",bD:"bC",bA:"5j="+6a,c4:"N"},5U=2V.69,3x;c(/bG/i.1R(6K.7k)){3x="<4h"+2i({bH:"bM:bN-bL-bK-bI-bJ",c3:"2s://ck.cj.3k/cm/71/c9/6V/c8.c7#6O=9,0,0,0"})+2i(67)+">"+1E(5V)+1E({c6:5U})+"</4h>"}F{3x="<ca"+2i(67)+2i(5V)+2i({cg:5U})+"/>"}3C=Q.22("A");3C.1Q=3x;q 3C};f.2z=l(cf,ce,62){h 7c=62.cd;6U(7c){2K"7q":h 61=p.B.2T(p.B.3d(64.5g).E(/&X;/g,"<").E(/&Z;/g,">").E(/&aT;/g,"&"));c(1q.74){1q.74.aU("1X",61)}F{q p.B.2T(61)}2K"aR":p.B.1A(p.M.1f.78);2h;2K"aP":p.B.1A(62.6n);2h}}},aV:l(65){f.1c=l(){q p.M.1f.3t};f.2z=l(aW,bz,b0){h 1Z=Q.22("aZ"),1N=v;c(p.1r.3m!=v){Q.33.4p(p.1r.3m)}p.1r.3m=1Z;1Z.1m.aX="aY:aO;26:6r;2e:6r;G:-6j;4w:-6j;";Q.33.2p(1Z);1N=1Z.5Q.Q;6J(1N,1q.Q);1N.3D("<A 1s=\\""+65.A.L.E("5O","")+" aD\\">"+65.A.1Q+"</A>");1N.4o();1Z.5Q.4F();1Z.5Q.3t();l 6J(6N,6E){h 2I=6E.4O("4n");D(h i=0;i<2I.u;i++){c(2I[i].6y.6P()=="6A"&&/aE\\.1a$/.1R(2I[i].27)){6N.3D("<4n 4r=\\"1X/1a\\" 6y=\\"6A\\" 27=\\""+2I[i].27+"\\"></4n>")}}}}},az:l(aA){f.1c=l(){q p.M.1f.6C};f.2z=l(aF,aG){h 2A=p.B.4z("","4k",aM,aK,"7a=0"),1N=2A.Q;1N.3D(p.M.1f.77);1N.4o();2A.4F()}}}},B:{Y:l(49,73,3y){3y=3e.aH(3y||0,0);D(h i=3y;i<49.u;i++){c(49[i]==73){q i}}q-1},6d:l(72){q 72+3e.aI(3e.b2()*b3).2u()},6c:l(51,4L){h 3h={},1W;D(1W 1V 51){3h[1W]=51[1W]}D(1W 1V 4L){3h[1W]=4L[1W]}q 3h},80:l(4J){6U(4J){2K"I":q I;2K"N":q N}q 4J},4z:l(43,6W,4B,4H,2N){h x=(6X.26-4B)/2,y=(6X.2e-4H)/2;2N+=", G="+x+", 4w="+y+", 26="+4B+", 2e="+4H;2N=2N.E(/^,/,"");h 4E=1q.bk(43,6W,2N);4E.4F();q 4E},7C:l(1G,1T,1U){c(1G.6Z){1G["e"+1T+1U]=1U;1G[1T+1U]=l(){1G["e"+1T+1U](1q.6Y)};1G.6Z("bw"+1T,1G[1T+1U])}F{1G.bv(1T,1U,N)}},1A:l(z){1A(p.M.1f.1A+z)},4u:l(4N,6Q){h 2r=p.1r.4Z,3V=v;c(2r==v){2r={};D(h 2L 1V p.2d){h 42=p.2d[2L].bu;c(42==v){1J}p.2d[2L].R=2L.6P();D(h i=0;i<42.u;i++){2r[42[i]]=2L}}p.1r.4Z=2r}3V=p.2d[2r[4N]];c(3V==v&&6Q!=N){p.B.1A(p.M.1f.6T+4N)}q 3V},46:l(z,6S){h 2E=z.1P("\\n");D(h i=0;i<2E.u;i++){2E[i]=6S(2E[i])}q 2E.5A("\\n")},8C:l(z){q z.E(/^[ ]*[\\n]+|[\\n]*[ ]*$/g,"")},8H:l(z){h 3X,45={},4P=W U("^\\\\[(?<4c>(.*?))\\\\]$"),7e=W U("(?<R>[\\\\w-]+)"+"\\\\s*:\\\\s*"+"(?<24>"+"[\\\\w-%#]+|"+"\\\\[.*?\\\\]|"+"\\".*?\\"|"+"\'.*?\'"+")\\\\s*;?","g");2j((3X=7e.T(z))!=v){h 2f=3X.24.E(/^[\'"]|[\'"]$/g,"");c(2f!=v&&4P.1R(2f)){h m=4P.T(2f);2f=m.4c.u>0?m.4c.1P(/\\s*,\\s*/):[]}45[3X.R]=2f}q 45},7K:l(z,1a){c(z==v||z.u==0||z=="\\n"){q z}z=z.E(/</g,"&X;");z=z.E(/ {2,}/g,l(m){h 4t="";D(h i=0;i<m.u-1;i++){4t+="&2B;"}q 4t+" "});c(1a!=v){z=p.B.46(z,l(2l){c(2l.u==0){q""}h 3W="";2l=2l.E(/^(&2B;| )+/,l(s){3W=s;q""});c(2l.u==0){q 3W}q 3W+"<C 1s=\\""+1a+"\\">"+2l+"</C>"})}q z},7V:l(6l,6o){h 32=6l.2u();2j(32.u<6o){32="0"+32}q 32},6k:l(){h 3w=Q.22("A"),3B,3o=0,44=Q.33,1k=p.B.6d("6k"),36="<A 1s=\\"",2Y="</A>",4U="</4G>";3w.1Q=36+"6e\\">"+36+"1p\\">"+36+"2y\\">"+36+"63"+"\\"><4G 1s=\\"b5\\"><4G 1k=\\""+1k+"\\">&2B;"+4U+4U+2Y+2Y+2Y+2Y;44.2p(3w);3B=Q.bb(1k);c(/bg/i.1R(6K.7k)){h 6v=1q.be(3B,v);3o=85(6v.bc("26"))}F{3o=3B.bd}44.4p(3w);q 3o},8b:l(79,6s){h 1H="";D(h i=0;i<6s;i++){1H+=" "}q 79.E(/\\t/g,1H)},8a:l(2Z,4f){h bF=2Z.1P("\\n"),1H="\\t",4d="";D(h i=0;i<50;i++){4d+=" "}l 8x(3s,18,8A){q 3s.29(0,18)+4d.29(0,8A)+3s.29(18+1,3s.u)};2Z=p.B.46(2Z,l(20){c(20.Y(1H)==-1){q 20}h 18=0;2j((18=20.Y(1H))!=-1){h 8w=4f-18%4f;20=8x(20,18,8w)}q 20});q 2Z},3d:l(z){h br=/<br\\s*\\/?>|&X;br\\s*\\/?&Z;/4e;c(p.M.8B==I){z=z.E(br,"\\n")}c(p.M.8f==I){z=z.E(br,"")}q z},2G:l(z){q z.E(/^\\s+|\\s+$/g,"")},2T:l(z){h 21=p.B.3d(z).1P("\\n"),bf=W bh(),8D=/^\\s*/,2a=ba;D(h i=0;i<21.u&&2a>0;i++){h 4x=21[i];c(p.B.2G(4x).u==0){1J}h 4I=8D.T(4x);c(4I==v){q z}2a=3e.2a(4I[0].u,2a)}c(2a>0){D(h i=0;i<21.u;i++){21[i]=21[i].29(2a)}}q 21.5A("\\n")},82:l(35,31){c(35.H<31.H){q-1}F{c(35.H>31.H){q 1}F{c(35.u<31.u){q-1}F{c(35.u>31.u){q 1}}}}q 0},2D:l(8q,34){l 8n(4D,8r){q[W p.4v(4D[0],4D.H,8r.1a)]};h b4=0,4s=v,3L=[],8p=34.4X?34.4X:8n;2j((4s=34.3K.T(8q))!=v){3L=3L.2t(8p(4s,34))}q 3L},8m:l(8o){h X="&X;",Z="&Z;";q 8o.E(p.8h.43,l(m){h 4j="",47="";c(m.Y(X)==0){47=X;m=m.3U(X.u)}c(m.Y(Z)==m.u-Z.u){m=m.3U(0,m.u-Z.u);4j=Z}q 47+"<a 27=\\""+m+"\\">"+m+"</a>"+4j})},8v:l(){h 3N=Q.4O("1l"),4i=[];D(h i=0;i<3N.u;i++){c(3N[i].4r=="6e"){4i.K(3N[i])}}q 4i},8I:l(4b){h 4q="<![b6[",3S="]]>",1v=p.B.2G(4b),3R=N;c(1v.Y(4q)==0){1v=1v.3U(4q.u);3R=I}c(1v.Y(3S)==1v.u-3S.u){1v=1v.3U(0,1v.u-3S.u);3R=I}q 3R?1v:4b}},1I:l(8E,4R){l 8e(4g){h 4Q=[];D(h i=0;i<4g.u;i++){4Q.K(4g[i])}q 4Q};h 2q=4R?[4R]:8e(Q.4O(p.M.8s)),8J="1Q",2k=v,4S=p.M;c(4S.4T){2q=2q.2t(p.B.8v())}c(2q.u===0){q}D(h i=0;i<2q.u;i++){h 2M=2q[i],28=p.B.8H(2M.L),1D,2W,25;28=p.B.6c(8E,28);1D=28["2O"];c(1D==v){1J}c(28["1L-1l"]=="I"||p.6b["1L-1l"]==I){2k=W p.4a(1D);1D="b9"}F{h 3P=p.B.4u(1D);c(3P){1D=3P.R;2k=W 3P()}F{1J}}2W=2M[8J];c(4S.4T){2W=p.B.8I(2W)}28["2O-R"]=1D;2k.1I(2W,28);25=2k.A;c(p.M.8u){25=Q.22("bj");25.24=2k.A.1Q;25.1m.26="bt";25.1m.2e="bx"}2M.7y.bs(25,2M)}},bq:l(7H){p.B.7C(1q,"bl",l(){p.1I(7H)})}};p.4v=l(4A,7G,1a){f.24=4A;f.H=7G;f.u=4A.u;f.1a=1a;f.5Y=v};p.4v.14.2u=l(){q f.24};p.4a=l(4K){h 3z=p.B.4u(4K),2g,4W=W p.2d.bm(),bn=v;c(3z==v){q}2g=W 3z();f.4m=4W;c(2g.3I==v){p.B.1A(p.M.1f.7x+4K);q}4W.59.K({3K:2g.3I.C,4X:7p});l 3A(4Y,7w){D(h j=0;j<4Y.u;j++){4Y[j].H+=7w}};l 7p(19,bp){h 7n=19.C,1o=[],4M=2g.59,7l=19.H+19.G.u,2U=2g.3I,1n;D(h i=0;i<4M.u;i++){1n=p.B.2D(7n,4M[i]);3A(1n,7l);1o=1o.2t(1n)}c(2U.G!=v&&19.G!=v){1n=p.B.2D(19.G,2U.G);3A(1n,19.H);1o=1o.2t(1n)}c(2U.1d!=v&&19.1d!=v){1n=p.B.2D(19.1d,2U.1d);3A(1n,19.H+19[0].bo(19.1d));1o=1o.2t(1n)}D(h j=0;j<1o.u;j++){1o[j].5Y=3z.R}q 1o}};p.4a.14.1I=l(7t,7s){f.4m.1I(7t,7s);f.A=f.4m.A};p.7I=l(){};p.7I.14={V:l(7J,7Z){h 4l=f.1E[7J];q p.B.80(4l==v?7Z:4l)},1c:l(7Y){q Q.22(7Y)},8i:l(2F,81){h 3u=[];c(2F!=v){D(h i=0;i<2F.u;i++){c(7X(2F[i])=="4h"){3u=3u.2t(p.B.2D(81,2F[i]))}}}q 3u.aB(p.B.82)},86:l(){h 23=f.2C;D(h i=0;i<23.u;i++){c(23[i]===v){1J}h 2x=23[i],4V=2x.H+2x.u;D(h j=i+1;j<23.u&&23[i]!==v;j++){h 1S=23[j];c(1S===v){1J}F{c(1S.H>4V){2h}F{c(1S.H==2x.H&&1S.u>2x.u){f.2C[i]=v}F{c(1S.H>=2x.H&&1S.H<4V){f.2C[j]=v}}}}}}},8t:l(2H){h 3r=2H.1P(/\\n/g),3n=85(f.V("84-2y")),2v=f.V("83-2y-7W"),7N=f.V("1I",[]),7U=f.V("3g");2H="";c(2v==I){2v=(3n+3r.u-1).2u().u}F{c(40(2v)==I){2v=0}}D(h i=0;i<3r.u;i++){h 1x=3r[i],60=/^(&2B;|\\s)+/.T(1x),52="aN"+(i%2==0?1:2),7F=p.B.7V(3n+i,2v),7P=p.B.Y(7N,(3n+i).2u())!=-1,2S=v;c(60!=v){2S=60[0].2u();1x=1x.29(2S.u)}1x=p.B.2G(1x);c(1x.u==0){1x="&2B;"}c(7P){52+=" aQ"}2H+="<A 1s=\\"2y "+52+"\\">"+"<7L>"+"<7T>"+(7U?"<3F 1s=\\"aS\\"><C>"+7F+"</C></3F>":"")+"<3F 1s=\\"63\\">"+(2S!=v?"<C 1s=\\"by\\">"+2S.E(" ","&2B;")+"</C>":"")+1x+"</3F>"+"</7T>"+"</7L>"+"</A>"}q 2H},8y:l(5X,5T){h 18=0,3c="",3a=p.B.7K,5S=f.V("2O-R","");l 5W(5Z){h 5R=5Z?(5Z.5Y||5S):5S;q 5R?5R+" ":""};D(h i=0;i<5T.u;i++){h 1y=5T[i],3G;c(1y===v||1y.u===0){1J}3G=5W(1y);3c+=3a(5X.29(18,1y.H-18),3G+"7O")+3a(1y.24,3G+1y.1a);18=1y.H+1y.u}3c+=3a(5X.29(18),5W()+"7O");q 3c},1I:l(C,7E){h cb=p.M,1r=p.1r,A,ci,3Z,ch="cn";f.1E={};f.A=v;f.1p=v;f.C=v;f.1i=v;f.6g={};f.1k=p.B.6d("cl");1r.6f[f.1k]=f;c(C===v){C=""}f.1E=p.B.6c(p.6b,7E||{});c(f.V("88")==I){f.1E.1w=f.1E.3g=N}f.A=A=f.1c("3Y");f.1p=f.1c("3Y");f.1p.L="1p";L="6e";A.1k=f.1k;c(f.V("66")){L+=" 5O"}c(f.V("3g")==N){L+=" bB"}c(f.V("5h-1p")==N){f.1p.L+=" bO-5h"}L+=" "+f.V("1s-R");L+=" "+f.V("2O-R");A.L=L;f.5g=C;f.C=p.B.8C(C).E(/\\r/g," ");3Z=f.V("1H-2Q");f.C=f.V("8d-89")==I?p.B.8a(f.C,3Z):p.B.8b(f.C,3Z);f.C=p.B.2T(f.C);c(f.V("1w")){f.1i=f.1c("3Y");f.1i.L="1i";f.1i.2p(p.1w.1c(f));A.2p(f.1i);h 1i=f.1i;l 58(){1i.L=1i.L.E("53","")};A.c0=l(){58();1i.L+=" 53"};A.bX=l(){58()}}A.2p(f.1p);f.2C=f.8i(f.59,f.C);f.86();C=f.8y(f.C,f.2C);C=f.8t(p.B.2G(C));c(f.V("8k-8l")){C=p.B.8m(C)}f.1p.1Q=C},9f:l(z){z=z.E(/^\\s+|\\s+$/g,"").E(/\\s+/g,"|");q"\\\\b(?:"+z+")\\\\b"},9i:l(2J){f.3I={G:{3K:2J.G,1a:"1l"},1d:{3K:2J.1d,1a:"1l"},C:W U("(?<G>"+2J.G.1g+")"+"(?<C>.*?)"+"(?<1d>"+2J.1d.1g+")","96")}}};q p}()}c(!1q.U){(l(){h 2w={T:10.14.T,87:5I.14.87,E:5I.14.E,1P:5I.14.1P},1F={13:/(?:[^\\\\([#\\s.]+|\\\\(?!k<[\\w$]+>|[7z]{[^}]+})[\\S\\s]?|\\((?=\\?(?!#|<[\\w$]+>)))+|(\\()(?:\\?(?:(#)[^)]*\\)|<([$\\w]+)>))?|\\\\(?:k<([\\w$]+)>|[7z]{([^}]+)})|(\\[\\^?)|([\\S\\s])/g,99:/(?:[^$]+|\\$(?![1-9$&`\']|{[$\\w]+}))+|\\$(?:([1-9]\\d*|[$&`\'])|{([$\\w]+)})/g,37:/^(?:\\s+|#.*)+/,5B:/^(?:[?*+]|{\\d+(?:,\\d*)?})/,7Q:/&&\\[\\^?/g,7S:/]/g},7o=l(5C,5v,5u){D(h i=5u||0;i<5C.u;i++){c(5C[i]===5v){q i}}q-1},8G=/()??/.T("")[1]!==3j,3q={};U=l(1e,1O){c(1e 68 10){c(1O!==3j){3H 7r("4y\'t 4C 9a 8z 95 7u 10 5u 94")}q 1e.3E()}h 1O=1O||"",7R=1O.Y("s")>-1,7M=1O.Y("x")>-1,5z=N,3v=[],1b=[],13=1F.13,J,cc,38,3M,3p;13.O=0;2j(J=2w.T.2n(13,1e)){c(J[2]){c(!1F.5B.1R(1e.17(13.O))){1b.K("(?:)")}}F{c(J[1]){3v.K(J[3]||v);c(J[3]){5z=I}1b.K("(")}F{c(J[4]){3M=7o(3v,J[4]);1b.K(3M>-1?"\\\\"+(3M+1)+(40(1e.5w(13.O))?"":"(?:)"):J[0])}F{c(J[5]){1b.K(3q.7m?3q.7m.7q(J[5],J[0].5w(1)==="P"):J[0])}F{c(J[6]){c(1e.5w(13.O)==="]"){1b.K(J[6]==="["?"(?!)":"[\\\\S\\\\s]");13.O++}F{cc=U.8g("&&"+1e.17(J.H),1F.7Q,1F.7S,"",{7D:"\\\\"})[0];1b.K(J[6]+cc+"]");13.O+=cc.u+1}}F{c(J[7]){c(7R&&J[7]==="."){1b.K("[\\\\S\\\\s]")}F{c(7M&&1F.37.1R(J[7])){38=2w.T.2n(1F.37,1e.17(13.O-1))[0].u;c(!1F.5B.1R(1e.17(13.O-1+38))){1b.K("(?:)")}13.O+=38-1}F{1b.K(J[7])}}}F{1b.K(J[0])}}}}}}}3p=10(1b.5A(""),2w.E.2n(1O,/[9B]+/g,""));3p.1C={1g:1e,2m:5z?3v:v};q 3p};U.9q=l(R,o){3q[R]=o};10.14.T=l(z){h 1h=2w.T.2n(f,z),R,i,5y;c(1h){c(8G&&1h.u>1){5y=W 10("^"+f.1g+"$(?!\\\\s)",f.5E());2w.E.2n(1h[0],5y,l(){D(i=1;i<8j.u-2;i++){c(8j[i]===3j){1h[i]=3j}}})}c(f.1C&&f.1C.2m){D(i=1;i<1h.u;i++){R=f.1C.2m[i-1];c(R){1h[R]=1h[i]}}}c(f.3l&&f.O>(1h.H+1h[0].u)){f.O--}}q 1h}})()}10.14.5E=l(){q(f.3l?"g":"")+(f.av?"i":"")+(f.8F?"m":"")+(f.37?"x":"")+(f.a4?"y":"")};10.14.3E=l(7A){h 5F=W U(f.1g,(7A||"")+f.5E());c(f.1C){5F.1C={1g:f.1C.1g,2m:f.1C.2m?f.1C.2m.17(0):v}}q 5F};10.14.2n=l(90,z){q f.T(z)};10.14.9b=l(9h,8c){q f.T(8c[0])};U.5P=l(57,5e){h 55="/"+57+"/"+(5e||"");q U.5P[55]||(U.5P[55]=W U(57,5e))};U.41=l(z){q z.E(/[-[\\]{}()*+?.\\\\^$|,#\\s]/g,"\\\\$&")};U.8g=l(z,G,11,1j,2R){h 2R=2R||{},2P=2R.7D,12=2R.c5,1j=1j||"",5r=1j.Y("g")>-1,70=1j.Y("i")>-1,7v=1j.Y("m")>-1,5a=1j.Y("y")>-1,1j=1j.E(/y/g,""),G=G 68 10?(G.3l?G:G.3E("g")):W U(G,"g"+1j),11=11 68 10?(11.3l?11:11.3E("g")):W U(11,"g"+1j),1M=[],2o=0,1u=0,1t=0,1z=0,2b,2c,1B,1K,3Q,48;c(2P){c(2P.u>1){3H aC("4y\'t 4C aL aJ 7u 41 7B")}c(7v){3H 7r("4y\'t 4C 41 7B 8z bi b8 8F b7")}3Q=U.41(2P);48=W 10("^(?:"+3Q+"[\\\\S\\\\s]|(?:(?!"+G.1g+"|"+11.1g+")[^"+3Q+"])+)+",70?"i":"")}2j(I){G.O=11.O=1t+(2P?(48.T(z.17(1t))||[""])[0].u:0);1B=G.T(z);1K=11.T(z);c(1B&&1K){c(1B.H<=1K.H){1K=v}F{1B=v}}c(1B||1K){1u=(1B||1K).H;1t=(1B?G:11).O}F{c(!2o){2h}}c(5a&&!2o&&1u>1z){2h}c(1B){c(!2o++){2b=1u;2c=1t}}F{c(1K&&2o){c(!--2o){c(12){c(12[0]&&2b>1z){1M.K([12[0],z.17(1z,2b),1z,2b])}c(12[1]){1M.K([12[1],z.17(2b,2c),2b,2c])}c(12[2]){1M.K([12[2],z.17(2c,1u),2c,1u])}c(12[3]){1M.K([12[3],z.17(1u,1t),1u,1t])}}F{1M.K(z.17(2c,1u))}1z=1t;c(!5r){2h}}}F{G.O=11.O=0;3H bP("8L aq 9r ar 8Z")}}c(1u===1t){1t++}}c(5r&&!5a&&12&&12[0]&&z.u>1z){1M.K([12[0],z.17(1z),1z,z.u])}G.O=11.O=0;q 1M};',62,768,'||||||||||||if|||this||var||||function||||sh|return||||length|null||||str|div|utils|code|for|replace|else|left|index|true|_121|push|className|config|false|lastIndex||document|name||exec|XRegExp|getParam|new|lt|indexOf|gt|RegExp|_139|vN|part|prototype|||slice|pos|_d3|css|_11f|create|right|_119|strings|source|_129|bar|_13a|id|script|style|_da|_d6|lines|window|vars|class|_145|_144|_b5|toolbar|_f4|_103|_146|alert|_149|_x|_c3|params|lib|obj|tab|highlight|continue|_14a|html|_142|doc|_11a|split|innerHTML|test|_ec|_5a|_5b|in|_4f|text|_8|_3c|_91|_98|createElement|_e7|value|_c5|width|href|_c2|substr|min|_147|_148|brushes|height|_6e|_cd|break|attributes|while|_be|_75|captureNames|call|_143|appendChild|_bc|_5f|http|concat|toString|_f0|real|_e9|line|execute|wnd|nbsp|matches|getMatches|_66|_e3|trim|_ed|_40|_10f|case|_61|_c1|_55|brush|_13c|size|_13b|_f9|unindent|_d9|_28|_c4|SyntaxHighlighter|_81|_88|_5|m2|_7a|body|_a2|m1|_80|extended|len|font|_fe|gm|_fd|fixInputString|Math|color|gutter|_4e|title|undefined|com|global|printFrame|_ef|_7d|_125|_118|_ee|_8e|print|_e5|_11e|_7b|_32|_49|_cc|offsetMatches|_7c|_25|write|addFlags|td|_104|throw|htmlScript|_22|regex|_a7|_124|_af|_2|_c6|_14b|_b6|_b4|_3|substring|_60|_76|_6a|DIV|_10b|isNaN|escape|_62|url|_7e|_6b|eachLine|_ae|esc|_47|HtmlScript|_b2|values|_8c|gi|_89|_b9|object|_b0|_ad|_blank|_e1|xmlBrush|link|close|removeChild|_b3|type|_a6|_73|findBrush|Match|top|_9d|can|popup|_c8|_53|supply|_a3|win|focus|span|_54|_9e|_50|_cb|_4d|_d7|_5d|getElementsByTagName|_6c|_ba|_b8|_bf|useScriptTags|_82|_ea|_ce|func|_d0|discoveredBrushes||_4c|_f6|show|pre|key|_29|_133|hide|regexList|_141|_19|_1a|viewSource|_134|_2b|originalCode|wrap|copyToClipboard|highlighterId|toolbarItemHeight|toolbarItemWidth|_2a|_2c|_2e|_2d|expandSource|_13e|_4|_7|from|item|charAt|www|r2|_11d|join|quantifier|_113|_e|getNativeFlags|_12e|_17|_18|String|_10|_b|_9|_f|_d|collapsed|cache|contentWindow|_101|_ff|_fb|swf|_30|getBrushNameCss|_fa|brushName|_100|_f5|_37|_35|content|_24|_38|collapse|_2f|instanceof|clipboardSwf|_27|defaults|merge|guid|syntaxhighlighter|highlighters|toolbarCommands|2009|_6|500px|measureSpace|_78|createButton|message|_79|clipboard|to|0px|_85|decoration|center|_83|margin|w3|rel|head|stylesheet|org|help|xhtml1|_3f|0099FF|align|DTD|alexgorbatchev|copyStyles|navigator|none|executeCommand|_3e|version|toLowerCase|_5e|_1e|_65|noBrush|switch|flash|_52|screen|event|attachEvent|_13f|shockwave|_4b|_48|clipboardData|px|commandName|aboutDialog|copyToClipboardConfirmation|_84|scrollbars|_14|_36|items|_6d|_16|_13|_15|_12|_a|userAgent|_d8|unicode|_d5|_112|process|get|TypeError|_de|_dd|one|_140|_d1|brushNotHtmlScript|parentNode|pP|_12d|character|addEvent|escapeChar|_106|_f7|_c9|_c7|Highlighter|_df|decorate|table|_11c|_f1|plain|_f8|classLeft|_11b|classRight|tr|_f2|padNumber|numbers|typeof|_e2|_e0|toBoolean|_e4|matchesSortCallback|pad|first|parseInt|removeNestedMatches|match|light|tabs|processSmartTabs|processTabs|args|smart|toArray|stripBrs|matchRecursive|regexLib|findMatches|arguments|auto|links|processUrls|defaultAdd|_a9|_a8|_a1|_a4|tagName|createDisplayLines|debug|getSyntaxHighlighterScriptTags|_93|insertSpaces|processMatches|when|_90|bloggerMode|trimFirstAndLastLines|_9a|_b7|multiline|_117|parseParams|stripCData|_bd|Copyright|subject|Alex|2004|development|_1c|keep|donate|Gorbatchev|_1b|syntax|JavaScript|active|highlighter|multiLineSingleQuotedString|delimiters|_12f|string|scriptScriptTags|aspScriptTags|another|constructing|sgi|try|catch|replaceVar|flags|apply|phpScriptTags|singleLineCComments|singleLinePerlComments|getKeywords|multiLineCComments|_131|forHtmlScript|doubleQuotedString|xmlComments|onclick|multiLineDoubleQuotedString|singleQuotedString|spaceWidth|bottom|addPlugin|contains|1999|xmlns|dtd|TR|transitional|xhtml|meta|utf|About|sx|charset|Type|equiv|Content|EN|Transitional|your|now|Can|is|The|view|copy|find|Brush|PUBLIC|W3C|XHTML|DOCTYPE|option|wasn|configured|family|Geneva|you|like|please|If|sticky|October|target|https|paypal|_s|xclick|hosted_button_id|cmd|webscr|cgi|bin|364|4em|background|fff|000|serif|sans|Arial|Helvetica|1em|data|unbalanced|75em|large|xx|ignoreCase|3em|2930402|always|about|_42|sort|SyntaxError|printing|shCore|_43|_44|max|round|than|250|more|500|alt|absolute|error|highlighted|ok|number|amp|setData|printSource|_39|cssText|position|IFRAME|_3b|_1f|random|1000000|_a5|block|CDATA|flag|the|htmlscript|1000|getElementById|getPropertyValue|offsetWidth|getComputedStyle|_99|opera|Array|using|textarea|open|load|Xml|_cf|lastIndexOf|_d4|all||replaceChild|70em|aliases|addEventListener|on|30em|spaces|_3a|flashVars|nogutter|transparent|wmode|allowScriptAccess|_8a|msie|classid|96b8|444553540000|11cf|ae6d|clsid|d27cdb6e|no|Error|location|resizable|400|750|_20|_21|menubar|onmouseout|_clipboard|application|onmouseover|param|_26|codebase|menu|valueNames|movie|cab|swflash|cabs|embed|conf||command|_34|_33|src|_10c|_10a|macromedia|download|highlighter_|pub|important'.split('|'),0,{}))
|
syntaxhighlighter2/scripts/shLegacy.js
CHANGED
@@ -1,30 +1,30 @@
|
|
1 |
-
/**
|
2 |
-
* SyntaxHighlighter
|
3 |
-
* http://alexgorbatchev.com/
|
4 |
-
*
|
5 |
-
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
-
*
|
8 |
-
* @version
|
9 |
-
* 2.1.364 (October 15 2009)
|
10 |
-
*
|
11 |
-
* @copyright
|
12 |
-
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
-
*
|
14 |
-
* @license
|
15 |
-
* This file is part of SyntaxHighlighter.
|
16 |
-
*
|
17 |
-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
-
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
-
* the Free Software Foundation, either version 3 of the License, or
|
20 |
-
* (at your option) any later version.
|
21 |
-
*
|
22 |
-
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
* GNU General Public License for more details.
|
26 |
-
*
|
27 |
-
* You should have received a copy of the GNU General Public License
|
28 |
-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
-
*/
|
30 |
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('1 y={d:{}};y.d={F:6(S,l,q,k,m,n){6 J(z,Y){1 V=16 15("^"+Y+"\\\\[(?<o>\\\\w+)\\\\]$","14"),x=2;h(1 i=0;i<z.g;i++){7((x=V.17(z[i]))!=2){4 x.o}}4 2};6 3(r,U){4 r!=2?r:U};6 9(s){4 s!=2?s.13():2};1 f=S.18(":"),E=f[0],c={},u={"p":"p"};C={"p":"1a"},v=2,5=d.5;h(1 i 19 f){c[f[i]]="p"}l=9(3(l,5.O));q=9(3(q,5.T));k=9(3(k,5.A));n=9(3(n,5.W));m=9(3(m,5["K-L"]));v={1b:E,O:3(C[c.12],l),T:3(C[c.1g],q),A:3(u[c.A],k),W:3(u[c.1t],n),"K-L":3(J(f,"1q"),m)};4 v},1x:6(B,I,D,H,N,M){6 Z(){1 a=1r;h(1 i=0;i<a.g;i++){7(a[i]===2){10}7(G(a[i])=="1s"&&a[i]!=""){4 a[i]+""}7(G(a[i])=="1c"&&a[i].o!=""){4 a[i].o+""}}4 2};6 t(Q,R,11){1 j=1w.1v(11);h(1 i=0;i<j.g;i++){7(j[i].1u("1p")==R){Q.1n(j[i])}}};1 b=[],1o=2,1f={},1e="1d";t(b,B,"1h");t(b,B,"1i");7(b.g===0){4}h(1 i=0;i<b.g;i++){1 8=b[i],e=Z(8.X["1m"],8.1l,8.X["P"],8.P),1k="";7(e===2){10}e=y.d.F(e,I,D,H,N,M);d.1j(e,8)}}};',62,96,'|var|null|defaultValue|return|defaults|function|if|_26|asString||_21|_11|SyntaxHighlighter|_27|_f|length|for||_1f|_4|_2|_5|_6|value|true|_3|_c|_e|findTagsByName|_12|result||_a|dp|_7|collapse|_14|reverse|_16|_10|parseParams|typeof|_17|_15|getValue|first|line|_19|_18|gutter|language|_1c|_1d|_1|toolbar|_d|_9|ruler|attributes|_8|findValue|continue|_1e|nogutter|toString|gi|XRegExp|new|exec|split|in|false|brush|object|innerHTML|_24|_23|nocontrols|pre|textarea|highlight|_28|className|class|push|_22|name|firstline|arguments|string|showcolumns|getAttribute|getElementsByTagName|document|HighlightAll'.split('|'),0,{}))
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('1 y={d:{}};y.d={F:6(S,l,q,k,m,n){6 J(z,Y){1 V=16 15("^"+Y+"\\\\[(?<o>\\\\w+)\\\\]$","14"),x=2;h(1 i=0;i<z.g;i++){7((x=V.17(z[i]))!=2){4 x.o}}4 2};6 3(r,U){4 r!=2?r:U};6 9(s){4 s!=2?s.13():2};1 f=S.18(":"),E=f[0],c={},u={"p":"p"};C={"p":"1a"},v=2,5=d.5;h(1 i 19 f){c[f[i]]="p"}l=9(3(l,5.O));q=9(3(q,5.T));k=9(3(k,5.A));n=9(3(n,5.W));m=9(3(m,5["K-L"]));v={1b:E,O:3(C[c.12],l),T:3(C[c.1g],q),A:3(u[c.A],k),W:3(u[c.1t],n),"K-L":3(J(f,"1q"),m)};4 v},1x:6(B,I,D,H,N,M){6 Z(){1 a=1r;h(1 i=0;i<a.g;i++){7(a[i]===2){10}7(G(a[i])=="1s"&&a[i]!=""){4 a[i]+""}7(G(a[i])=="1c"&&a[i].o!=""){4 a[i].o+""}}4 2};6 t(Q,R,11){1 j=1w.1v(11);h(1 i=0;i<j.g;i++){7(j[i].1u("1p")==R){Q.1n(j[i])}}};1 b=[],1o=2,1f={},1e="1d";t(b,B,"1h");t(b,B,"1i");7(b.g===0){4}h(1 i=0;i<b.g;i++){1 8=b[i],e=Z(8.X["1m"],8.1l,8.X["P"],8.P),1k="";7(e===2){10}e=y.d.F(e,I,D,H,N,M);d.1j(e,8)}}};',62,96,'|var|null|defaultValue|return|defaults|function|if|_26|asString||_21|_11|SyntaxHighlighter|_27|_f|length|for||_1f|_4|_2|_5|_6|value|true|_3|_c|_e|findTagsByName|_12|result||_a|dp|_7|collapse|_14|reverse|_16|_10|parseParams|typeof|_17|_15|getValue|first|line|_19|_18|gutter|language|_1c|_1d|_1|toolbar|_d|_9|ruler|attributes|_8|findValue|continue|_1e|nogutter|toString|gi|XRegExp|new|exec|split|in|false|brush|object|innerHTML|_24|_23|nocontrols|pre|textarea|highlight|_28|className|class|push|_22|name|firstline|arguments|string|showcolumns|getAttribute|getElementsByTagName|document|HighlightAll'.split('|'),0,{}))
|
syntaxhighlighter2/styles/shThemeDjango.css
CHANGED
@@ -1,32 +1,32 @@
|
|
1 |
-
/**
|
2 |
-
* SyntaxHighlighter
|
3 |
-
* http://alexgorbatchev.com/
|
4 |
-
*
|
5 |
-
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
-
*
|
8 |
-
* @version
|
9 |
-
* 2.1.364 (October 15 2009)
|
10 |
-
*
|
11 |
-
* @copyright
|
12 |
-
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
-
*
|
14 |
-
* @license
|
15 |
-
* This file is part of SyntaxHighlighter.
|
16 |
-
*
|
17 |
-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
-
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
-
* the Free Software Foundation, either version 3 of the License, or
|
20 |
-
* (at your option) any later version.
|
21 |
-
*
|
22 |
-
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
* GNU General Public License for more details.
|
26 |
-
*
|
27 |
-
* You should have received a copy of the GNU General Public License
|
28 |
-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
-
*/
|
30 |
/**
|
31 |
* Django SyntaxHighlighter theme
|
32 |
*/
|
@@ -53,7 +53,7 @@
|
|
53 |
color: #B9BDB6 !important;
|
54 |
}
|
55 |
|
56 |
-
.syntaxhighlighter.printing .line .content
|
57 |
{
|
58 |
border: 0 !important;
|
59 |
}
|
@@ -110,7 +110,7 @@
|
|
110 |
|
111 |
.syntaxhighlighter .comments,
|
112 |
.syntaxhighlighter .comments a
|
113 |
-
{
|
114 |
color: #336442 !important;
|
115 |
font-style: italic !important;
|
116 |
}
|
@@ -118,59 +118,59 @@
|
|
118 |
.syntaxhighlighter .string,
|
119 |
.syntaxhighlighter .string a
|
120 |
{
|
121 |
-
color: #9DF39F !important;
|
122 |
}
|
123 |
|
124 |
.syntaxhighlighter .keyword
|
125 |
-
{
|
126 |
-
color: #96DD3B !important;
|
127 |
font-weight: bold !important;
|
128 |
}
|
129 |
|
130 |
-
.syntaxhighlighter .preprocessor
|
131 |
-
{
|
132 |
-
color: #91BB9E !important;
|
133 |
}
|
134 |
|
135 |
-
.syntaxhighlighter .variable
|
136 |
-
{
|
137 |
-
color: #FFAA3E !important;
|
138 |
}
|
139 |
|
140 |
.syntaxhighlighter .value
|
141 |
-
{
|
142 |
-
color: #F7E741 !important;
|
143 |
}
|
144 |
|
145 |
.syntaxhighlighter .functions
|
146 |
-
{
|
147 |
-
color: #FFAA3E !important;
|
148 |
}
|
149 |
|
150 |
.syntaxhighlighter .constants
|
151 |
-
{
|
152 |
-
color: #E0E8FF !important;
|
153 |
}
|
154 |
|
155 |
.syntaxhighlighter .script
|
156 |
-
{
|
157 |
background-color: #497958 !important;
|
158 |
}
|
159 |
|
160 |
.syntaxhighlighter .color1,
|
161 |
.syntaxhighlighter .color1 a
|
162 |
-
{
|
163 |
-
color: #EB939A !important;
|
164 |
}
|
165 |
|
166 |
.syntaxhighlighter .color2,
|
167 |
.syntaxhighlighter .color2 a
|
168 |
-
{
|
169 |
-
color: #91BB9E !important;
|
170 |
}
|
171 |
|
172 |
.syntaxhighlighter .color3,
|
173 |
.syntaxhighlighter .color3 a
|
174 |
-
{
|
175 |
-
color: #EDEF7D !important;
|
176 |
}
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
/**
|
31 |
* Django SyntaxHighlighter theme
|
32 |
*/
|
53 |
color: #B9BDB6 !important;
|
54 |
}
|
55 |
|
56 |
+
.syntaxhighlighter.printing .line .content
|
57 |
{
|
58 |
border: 0 !important;
|
59 |
}
|
110 |
|
111 |
.syntaxhighlighter .comments,
|
112 |
.syntaxhighlighter .comments a
|
113 |
+
{
|
114 |
color: #336442 !important;
|
115 |
font-style: italic !important;
|
116 |
}
|
118 |
.syntaxhighlighter .string,
|
119 |
.syntaxhighlighter .string a
|
120 |
{
|
121 |
+
color: #9DF39F !important;
|
122 |
}
|
123 |
|
124 |
.syntaxhighlighter .keyword
|
125 |
+
{
|
126 |
+
color: #96DD3B !important;
|
127 |
font-weight: bold !important;
|
128 |
}
|
129 |
|
130 |
+
.syntaxhighlighter .preprocessor
|
131 |
+
{
|
132 |
+
color: #91BB9E !important;
|
133 |
}
|
134 |
|
135 |
+
.syntaxhighlighter .variable
|
136 |
+
{
|
137 |
+
color: #FFAA3E !important;
|
138 |
}
|
139 |
|
140 |
.syntaxhighlighter .value
|
141 |
+
{
|
142 |
+
color: #F7E741 !important;
|
143 |
}
|
144 |
|
145 |
.syntaxhighlighter .functions
|
146 |
+
{
|
147 |
+
color: #FFAA3E !important;
|
148 |
}
|
149 |
|
150 |
.syntaxhighlighter .constants
|
151 |
+
{
|
152 |
+
color: #E0E8FF !important;
|
153 |
}
|
154 |
|
155 |
.syntaxhighlighter .script
|
156 |
+
{
|
157 |
background-color: #497958 !important;
|
158 |
}
|
159 |
|
160 |
.syntaxhighlighter .color1,
|
161 |
.syntaxhighlighter .color1 a
|
162 |
+
{
|
163 |
+
color: #EB939A !important;
|
164 |
}
|
165 |
|
166 |
.syntaxhighlighter .color2,
|
167 |
.syntaxhighlighter .color2 a
|
168 |
+
{
|
169 |
+
color: #91BB9E !important;
|
170 |
}
|
171 |
|
172 |
.syntaxhighlighter .color3,
|
173 |
.syntaxhighlighter .color3 a
|
174 |
+
{
|
175 |
+
color: #EDEF7D !important;
|
176 |
}
|
syntaxhighlighter2/styles/shThemeEclipse.css
CHANGED
@@ -1,32 +1,32 @@
|
|
1 |
-
/**
|
2 |
-
* SyntaxHighlighter
|
3 |
-
* http://alexgorbatchev.com/
|
4 |
-
*
|
5 |
-
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
-
*
|
8 |
-
* @version
|
9 |
-
* 2.1.364 (October 15 2009)
|
10 |
-
*
|
11 |
-
* @copyright
|
12 |
-
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
-
*
|
14 |
-
* @license
|
15 |
-
* This file is part of SyntaxHighlighter.
|
16 |
-
*
|
17 |
-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
-
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
-
* the Free Software Foundation, either version 3 of the License, or
|
20 |
-
* (at your option) any later version.
|
21 |
-
*
|
22 |
-
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
* GNU General Public License for more details.
|
26 |
-
*
|
27 |
-
* You should have received a copy of the GNU General Public License
|
28 |
-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
-
*/
|
30 |
/**
|
31 |
* Eclipse IDE SyntaxHighlighter color theme
|
32 |
* (C) Code-House
|
@@ -65,7 +65,7 @@
|
|
65 |
color: #000 !important;
|
66 |
}
|
67 |
|
68 |
-
.syntaxhighlighter.printing .line .content
|
69 |
{
|
70 |
border: 0 !important;
|
71 |
}
|
@@ -103,74 +103,74 @@
|
|
103 |
************************************/
|
104 |
.syntaxhighlighter .plain,
|
105 |
.syntaxhighlighter .plain a
|
106 |
-
{
|
107 |
color: #000 !important;
|
108 |
}
|
109 |
|
110 |
.syntaxhighlighter .comments,
|
111 |
.syntaxhighlighter .comments a
|
112 |
-
{
|
113 |
color: #3f5fbf !important;
|
114 |
}
|
115 |
|
116 |
.syntaxhighlighter .string,
|
117 |
.syntaxhighlighter .string a
|
118 |
{
|
119 |
-
color: #2a00ff !important;
|
120 |
}
|
121 |
|
122 |
.syntaxhighlighter .keyword
|
123 |
-
{
|
124 |
-
color: #7f0055 !important;
|
125 |
-
font-weight: bold !important;
|
126 |
}
|
127 |
|
128 |
-
.syntaxhighlighter .preprocessor
|
129 |
-
{
|
130 |
-
color: #646464 !important;
|
131 |
}
|
132 |
|
133 |
-
.syntaxhighlighter .variable
|
134 |
-
{
|
135 |
-
color: #a70 !important;
|
136 |
}
|
137 |
|
138 |
.syntaxhighlighter .value
|
139 |
-
{
|
140 |
-
color: #090 !important;
|
141 |
}
|
142 |
|
143 |
.syntaxhighlighter .functions
|
144 |
-
{
|
145 |
-
color: #ff1493 !important;
|
146 |
}
|
147 |
|
148 |
.syntaxhighlighter .constants
|
149 |
-
{
|
150 |
-
color: #0066CC !important;
|
151 |
}
|
152 |
|
153 |
.syntaxhighlighter .script
|
154 |
-
{
|
155 |
background-color: yellow !important;
|
156 |
}
|
157 |
|
158 |
.syntaxhighlighter .color1,
|
159 |
.syntaxhighlighter .color1 a
|
160 |
-
{
|
161 |
-
color: #808080 !important;
|
162 |
}
|
163 |
|
164 |
.syntaxhighlighter .color2,
|
165 |
.syntaxhighlighter .color2 a
|
166 |
-
{
|
167 |
-
color: #ff1493 !important;
|
168 |
}
|
169 |
|
170 |
.syntaxhighlighter .color3,
|
171 |
.syntaxhighlighter .color3 a
|
172 |
-
{
|
173 |
-
color: red !important;
|
174 |
}
|
175 |
|
176 |
|
@@ -187,4 +187,4 @@
|
|
187 |
.xml .string {
|
188 |
font-style: italic !important;
|
189 |
color: #2a00ff !important;
|
190 |
-
}
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
/**
|
31 |
* Eclipse IDE SyntaxHighlighter color theme
|
32 |
* (C) Code-House
|
65 |
color: #000 !important;
|
66 |
}
|
67 |
|
68 |
+
.syntaxhighlighter.printing .line .content
|
69 |
{
|
70 |
border: 0 !important;
|
71 |
}
|
103 |
************************************/
|
104 |
.syntaxhighlighter .plain,
|
105 |
.syntaxhighlighter .plain a
|
106 |
+
{
|
107 |
color: #000 !important;
|
108 |
}
|
109 |
|
110 |
.syntaxhighlighter .comments,
|
111 |
.syntaxhighlighter .comments a
|
112 |
+
{
|
113 |
color: #3f5fbf !important;
|
114 |
}
|
115 |
|
116 |
.syntaxhighlighter .string,
|
117 |
.syntaxhighlighter .string a
|
118 |
{
|
119 |
+
color: #2a00ff !important;
|
120 |
}
|
121 |
|
122 |
.syntaxhighlighter .keyword
|
123 |
+
{
|
124 |
+
color: #7f0055 !important;
|
125 |
+
font-weight: bold !important;
|
126 |
}
|
127 |
|
128 |
+
.syntaxhighlighter .preprocessor
|
129 |
+
{
|
130 |
+
color: #646464 !important;
|
131 |
}
|
132 |
|
133 |
+
.syntaxhighlighter .variable
|
134 |
+
{
|
135 |
+
color: #a70 !important;
|
136 |
}
|
137 |
|
138 |
.syntaxhighlighter .value
|
139 |
+
{
|
140 |
+
color: #090 !important;
|
141 |
}
|
142 |
|
143 |
.syntaxhighlighter .functions
|
144 |
+
{
|
145 |
+
color: #ff1493 !important;
|
146 |
}
|
147 |
|
148 |
.syntaxhighlighter .constants
|
149 |
+
{
|
150 |
+
color: #0066CC !important;
|
151 |
}
|
152 |
|
153 |
.syntaxhighlighter .script
|
154 |
+
{
|
155 |
background-color: yellow !important;
|
156 |
}
|
157 |
|
158 |
.syntaxhighlighter .color1,
|
159 |
.syntaxhighlighter .color1 a
|
160 |
+
{
|
161 |
+
color: #808080 !important;
|
162 |
}
|
163 |
|
164 |
.syntaxhighlighter .color2,
|
165 |
.syntaxhighlighter .color2 a
|
166 |
+
{
|
167 |
+
color: #ff1493 !important;
|
168 |
}
|
169 |
|
170 |
.syntaxhighlighter .color3,
|
171 |
.syntaxhighlighter .color3 a
|
172 |
+
{
|
173 |
+
color: red !important;
|
174 |
}
|
175 |
|
176 |
|
187 |
.xml .string {
|
188 |
font-style: italic !important;
|
189 |
color: #2a00ff !important;
|
190 |
+
}
|
syntaxhighlighter2/styles/shThemeEmacs.css
CHANGED
@@ -1,32 +1,32 @@
|
|
1 |
-
/**
|
2 |
-
* SyntaxHighlighter
|
3 |
-
* http://alexgorbatchev.com/
|
4 |
-
*
|
5 |
-
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
-
*
|
8 |
-
* @version
|
9 |
-
* 2.1.364 (October 15 2009)
|
10 |
-
*
|
11 |
-
* @copyright
|
12 |
-
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
-
*
|
14 |
-
* @license
|
15 |
-
* This file is part of SyntaxHighlighter.
|
16 |
-
*
|
17 |
-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
-
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
-
* the Free Software Foundation, either version 3 of the License, or
|
20 |
-
* (at your option) any later version.
|
21 |
-
*
|
22 |
-
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
* GNU General Public License for more details.
|
26 |
-
*
|
27 |
-
* You should have received a copy of the GNU General Public License
|
28 |
-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
-
*/
|
30 |
/**
|
31 |
* Emacs SyntaxHighlighter theme based on theme by Joshua Emmons
|
32 |
* http://www.skia.net/
|
@@ -54,7 +54,7 @@
|
|
54 |
color: #B9BDB6 !important;
|
55 |
}
|
56 |
|
57 |
-
.syntaxhighlighter.printing .line .content
|
58 |
{
|
59 |
border: 0 !important;
|
60 |
}
|
@@ -105,71 +105,71 @@
|
|
105 |
************************************/
|
106 |
.syntaxhighlighter .plain,
|
107 |
.syntaxhighlighter .plain a
|
108 |
-
{
|
109 |
color: #D3D3D3 !important;
|
110 |
}
|
111 |
|
112 |
.syntaxhighlighter .comments,
|
113 |
.syntaxhighlighter .comments a
|
114 |
-
{
|
115 |
color: #FF7D27 !important;
|
116 |
}
|
117 |
|
118 |
.syntaxhighlighter .string,
|
119 |
.syntaxhighlighter .string a
|
120 |
{
|
121 |
-
color: #FF9E7B !important;
|
122 |
}
|
123 |
|
124 |
.syntaxhighlighter .keyword
|
125 |
-
{
|
126 |
-
color: #00FFFF !important;
|
127 |
}
|
128 |
|
129 |
-
.syntaxhighlighter .preprocessor
|
130 |
-
{
|
131 |
-
color: #AEC4DE !important;
|
132 |
}
|
133 |
|
134 |
-
.syntaxhighlighter .variable
|
135 |
-
{
|
136 |
-
color: #FFAA3E !important;
|
137 |
}
|
138 |
|
139 |
.syntaxhighlighter .value
|
140 |
-
{
|
141 |
-
color: #090 !important;
|
142 |
}
|
143 |
|
144 |
.syntaxhighlighter .functions
|
145 |
-
{
|
146 |
-
color: #81CEF9 !important;
|
147 |
}
|
148 |
|
149 |
.syntaxhighlighter .constants
|
150 |
-
{
|
151 |
-
color: #FF9E7B !important;
|
152 |
}
|
153 |
|
154 |
.syntaxhighlighter .script
|
155 |
-
{
|
156 |
background-color: #990000 !important;
|
157 |
}
|
158 |
|
159 |
.syntaxhighlighter .color1,
|
160 |
.syntaxhighlighter .color1 a
|
161 |
-
{
|
162 |
-
color: #EBDB8D !important;
|
163 |
}
|
164 |
|
165 |
.syntaxhighlighter .color2,
|
166 |
.syntaxhighlighter .color2 a
|
167 |
-
{
|
168 |
-
color: #FF7D27 !important;
|
169 |
}
|
170 |
|
171 |
.syntaxhighlighter .color3,
|
172 |
.syntaxhighlighter .color3 a
|
173 |
-
{
|
174 |
-
color: #AEC4DE !important;
|
175 |
}
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
/**
|
31 |
* Emacs SyntaxHighlighter theme based on theme by Joshua Emmons
|
32 |
* http://www.skia.net/
|
54 |
color: #B9BDB6 !important;
|
55 |
}
|
56 |
|
57 |
+
.syntaxhighlighter.printing .line .content
|
58 |
{
|
59 |
border: 0 !important;
|
60 |
}
|
105 |
************************************/
|
106 |
.syntaxhighlighter .plain,
|
107 |
.syntaxhighlighter .plain a
|
108 |
+
{
|
109 |
color: #D3D3D3 !important;
|
110 |
}
|
111 |
|
112 |
.syntaxhighlighter .comments,
|
113 |
.syntaxhighlighter .comments a
|
114 |
+
{
|
115 |
color: #FF7D27 !important;
|
116 |
}
|
117 |
|
118 |
.syntaxhighlighter .string,
|
119 |
.syntaxhighlighter .string a
|
120 |
{
|
121 |
+
color: #FF9E7B !important;
|
122 |
}
|
123 |
|
124 |
.syntaxhighlighter .keyword
|
125 |
+
{
|
126 |
+
color: #00FFFF !important;
|
127 |
}
|
128 |
|
129 |
+
.syntaxhighlighter .preprocessor
|
130 |
+
{
|
131 |
+
color: #AEC4DE !important;
|
132 |
}
|
133 |
|
134 |
+
.syntaxhighlighter .variable
|
135 |
+
{
|
136 |
+
color: #FFAA3E !important;
|
137 |
}
|
138 |
|
139 |
.syntaxhighlighter .value
|
140 |
+
{
|
141 |
+
color: #090 !important;
|
142 |
}
|
143 |
|
144 |
.syntaxhighlighter .functions
|
145 |
+
{
|
146 |
+
color: #81CEF9 !important;
|
147 |
}
|
148 |
|
149 |
.syntaxhighlighter .constants
|
150 |
+
{
|
151 |
+
color: #FF9E7B !important;
|
152 |
}
|
153 |
|
154 |
.syntaxhighlighter .script
|
155 |
+
{
|
156 |
background-color: #990000 !important;
|
157 |
}
|
158 |
|
159 |
.syntaxhighlighter .color1,
|
160 |
.syntaxhighlighter .color1 a
|
161 |
+
{
|
162 |
+
color: #EBDB8D !important;
|
163 |
}
|
164 |
|
165 |
.syntaxhighlighter .color2,
|
166 |
.syntaxhighlighter .color2 a
|
167 |
+
{
|
168 |
+
color: #FF7D27 !important;
|
169 |
}
|
170 |
|
171 |
.syntaxhighlighter .color3,
|
172 |
.syntaxhighlighter .color3 a
|
173 |
+
{
|
174 |
+
color: #AEC4DE !important;
|
175 |
}
|
syntaxhighlighter2/styles/shThemeFadeToGrey.css
CHANGED
@@ -1,32 +1,32 @@
|
|
1 |
-
/**
|
2 |
-
* SyntaxHighlighter
|
3 |
-
* http://alexgorbatchev.com/
|
4 |
-
*
|
5 |
-
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
-
*
|
8 |
-
* @version
|
9 |
-
* 2.1.364 (October 15 2009)
|
10 |
-
*
|
11 |
-
* @copyright
|
12 |
-
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
-
*
|
14 |
-
* @license
|
15 |
-
* This file is part of SyntaxHighlighter.
|
16 |
-
*
|
17 |
-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
-
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
-
* the Free Software Foundation, either version 3 of the License, or
|
20 |
-
* (at your option) any later version.
|
21 |
-
*
|
22 |
-
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
* GNU General Public License for more details.
|
26 |
-
*
|
27 |
-
* You should have received a copy of the GNU General Public License
|
28 |
-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
-
*/
|
30 |
/**
|
31 |
* Fade to Grey SyntaxHighlighter theme based on theme by Brasten Sager
|
32 |
* http://www.ibrasten.com/
|
@@ -54,7 +54,7 @@
|
|
54 |
color: #B9BDB6 !important;
|
55 |
}
|
56 |
|
57 |
-
.syntaxhighlighter.printing .line .content
|
58 |
{
|
59 |
border: 0 !important;
|
60 |
}
|
@@ -105,73 +105,73 @@
|
|
105 |
************************************/
|
106 |
.syntaxhighlighter .plain,
|
107 |
.syntaxhighlighter .plain a
|
108 |
-
{
|
109 |
color: #FFFFFF !important;
|
110 |
}
|
111 |
|
112 |
.syntaxhighlighter .comments,
|
113 |
.syntaxhighlighter .comments a
|
114 |
-
{
|
115 |
color: #696854 !important;
|
116 |
}
|
117 |
|
118 |
.syntaxhighlighter .string,
|
119 |
.syntaxhighlighter .string a
|
120 |
{
|
121 |
-
color: #E3E658 !important;
|
122 |
}
|
123 |
|
124 |
.syntaxhighlighter .keyword
|
125 |
-
{
|
126 |
-
color: #D01D33 !important;
|
127 |
}
|
128 |
|
129 |
-
.syntaxhighlighter .preprocessor
|
130 |
-
{
|
131 |
-
color: #435A5F !important;
|
132 |
}
|
133 |
|
134 |
-
.syntaxhighlighter .variable
|
135 |
-
{
|
136 |
-
color: #898989 !important;
|
137 |
}
|
138 |
|
139 |
.syntaxhighlighter .value
|
140 |
-
{
|
141 |
-
color: #090 !important;
|
142 |
}
|
143 |
|
144 |
.syntaxhighlighter .functions
|
145 |
-
{
|
146 |
color: #AAAAAA !important;
|
147 |
font-weight: bold !important;
|
148 |
}
|
149 |
|
150 |
.syntaxhighlighter .constants
|
151 |
-
{
|
152 |
-
color: #96DAFF !important;
|
153 |
}
|
154 |
|
155 |
.syntaxhighlighter .script
|
156 |
-
{
|
157 |
background-color: #C3C3C3 !important;
|
158 |
color: #000 !important;
|
159 |
}
|
160 |
|
161 |
.syntaxhighlighter .color1,
|
162 |
.syntaxhighlighter .color1 a
|
163 |
-
{
|
164 |
-
color: #FFC074 !important;
|
165 |
}
|
166 |
|
167 |
.syntaxhighlighter .color2,
|
168 |
.syntaxhighlighter .color2 a
|
169 |
-
{
|
170 |
-
color: #4A8CDB !important;
|
171 |
}
|
172 |
|
173 |
.syntaxhighlighter .color3,
|
174 |
.syntaxhighlighter .color3 a
|
175 |
-
{
|
176 |
-
color: #96DAFF !important;
|
177 |
}
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
/**
|
31 |
* Fade to Grey SyntaxHighlighter theme based on theme by Brasten Sager
|
32 |
* http://www.ibrasten.com/
|
54 |
color: #B9BDB6 !important;
|
55 |
}
|
56 |
|
57 |
+
.syntaxhighlighter.printing .line .content
|
58 |
{
|
59 |
border: 0 !important;
|
60 |
}
|
105 |
************************************/
|
106 |
.syntaxhighlighter .plain,
|
107 |
.syntaxhighlighter .plain a
|
108 |
+
{
|
109 |
color: #FFFFFF !important;
|
110 |
}
|
111 |
|
112 |
.syntaxhighlighter .comments,
|
113 |
.syntaxhighlighter .comments a
|
114 |
+
{
|
115 |
color: #696854 !important;
|
116 |
}
|
117 |
|
118 |
.syntaxhighlighter .string,
|
119 |
.syntaxhighlighter .string a
|
120 |
{
|
121 |
+
color: #E3E658 !important;
|
122 |
}
|
123 |
|
124 |
.syntaxhighlighter .keyword
|
125 |
+
{
|
126 |
+
color: #D01D33 !important;
|
127 |
}
|
128 |
|
129 |
+
.syntaxhighlighter .preprocessor
|
130 |
+
{
|
131 |
+
color: #435A5F !important;
|
132 |
}
|
133 |
|
134 |
+
.syntaxhighlighter .variable
|
135 |
+
{
|
136 |
+
color: #898989 !important;
|
137 |
}
|
138 |
|
139 |
.syntaxhighlighter .value
|
140 |
+
{
|
141 |
+
color: #090 !important;
|
142 |
}
|
143 |
|
144 |
.syntaxhighlighter .functions
|
145 |
+
{
|
146 |
color: #AAAAAA !important;
|
147 |
font-weight: bold !important;
|
148 |
}
|
149 |
|
150 |
.syntaxhighlighter .constants
|
151 |
+
{
|
152 |
+
color: #96DAFF !important;
|
153 |
}
|
154 |
|
155 |
.syntaxhighlighter .script
|
156 |
+
{
|
157 |
background-color: #C3C3C3 !important;
|
158 |
color: #000 !important;
|
159 |
}
|
160 |
|
161 |
.syntaxhighlighter .color1,
|
162 |
.syntaxhighlighter .color1 a
|
163 |
+
{
|
164 |
+
color: #FFC074 !important;
|
165 |
}
|
166 |
|
167 |
.syntaxhighlighter .color2,
|
168 |
.syntaxhighlighter .color2 a
|
169 |
+
{
|
170 |
+
color: #4A8CDB !important;
|
171 |
}
|
172 |
|
173 |
.syntaxhighlighter .color3,
|
174 |
.syntaxhighlighter .color3 a
|
175 |
+
{
|
176 |
+
color: #96DAFF !important;
|
177 |
}
|
syntaxhighlighter2/styles/shThemeMidnight.css
CHANGED
@@ -1,32 +1,32 @@
|
|
1 |
-
/**
|
2 |
-
* SyntaxHighlighter
|
3 |
-
* http://alexgorbatchev.com/
|
4 |
-
*
|
5 |
-
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
-
*
|
8 |
-
* @version
|
9 |
-
* 2.1.364 (October 15 2009)
|
10 |
-
*
|
11 |
-
* @copyright
|
12 |
-
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
-
*
|
14 |
-
* @license
|
15 |
-
* This file is part of SyntaxHighlighter.
|
16 |
-
*
|
17 |
-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
-
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
-
* the Free Software Foundation, either version 3 of the License, or
|
20 |
-
* (at your option) any later version.
|
21 |
-
*
|
22 |
-
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
* GNU General Public License for more details.
|
26 |
-
*
|
27 |
-
* You should have received a copy of the GNU General Public License
|
28 |
-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
-
*/
|
30 |
/**
|
31 |
* Midnight SyntaxHighlighter theme based on theme by J.D. Myers
|
32 |
* http://webdesign.lsnjd.com/
|
@@ -54,7 +54,7 @@
|
|
54 |
color: #B9BDB6 !important;
|
55 |
}
|
56 |
|
57 |
-
.syntaxhighlighter.printing .line .content
|
58 |
{
|
59 |
border: 0 !important;
|
60 |
}
|
@@ -105,71 +105,71 @@
|
|
105 |
************************************/
|
106 |
.syntaxhighlighter .plain,
|
107 |
.syntaxhighlighter .plain a
|
108 |
-
{
|
109 |
color: #D1EDFF !important;
|
110 |
}
|
111 |
|
112 |
.syntaxhighlighter .comments,
|
113 |
.syntaxhighlighter .comments a
|
114 |
-
{
|
115 |
color: #428BDD !important;
|
116 |
}
|
117 |
|
118 |
.syntaxhighlighter .string,
|
119 |
.syntaxhighlighter .string a
|
120 |
{
|
121 |
-
color: #1DC116 !important;
|
122 |
}
|
123 |
|
124 |
.syntaxhighlighter .keyword
|
125 |
-
{
|
126 |
-
color: #B43D3D !important;
|
127 |
}
|
128 |
|
129 |
-
.syntaxhighlighter .preprocessor
|
130 |
-
{
|
131 |
-
color: #8AA6C1 !important;
|
132 |
}
|
133 |
|
134 |
-
.syntaxhighlighter .variable
|
135 |
-
{
|
136 |
-
color: #FFAA3E !important;
|
137 |
}
|
138 |
|
139 |
.syntaxhighlighter .value
|
140 |
-
{
|
141 |
-
color: #F7E741 !important;
|
142 |
}
|
143 |
|
144 |
.syntaxhighlighter .functions
|
145 |
-
{
|
146 |
-
color: #FFAA3E !important;
|
147 |
}
|
148 |
|
149 |
.syntaxhighlighter .constants
|
150 |
-
{
|
151 |
-
color: #E0E8FF !important;
|
152 |
}
|
153 |
|
154 |
.syntaxhighlighter .script
|
155 |
-
{
|
156 |
background-color: #404040 !important;
|
157 |
}
|
158 |
|
159 |
.syntaxhighlighter .color1,
|
160 |
.syntaxhighlighter .color1 a
|
161 |
-
{
|
162 |
-
color: #F8BB00 !important;
|
163 |
}
|
164 |
|
165 |
.syntaxhighlighter .color2,
|
166 |
.syntaxhighlighter .color2 a
|
167 |
-
{
|
168 |
-
color: #FFFFFF !important;
|
169 |
}
|
170 |
|
171 |
.syntaxhighlighter .color3,
|
172 |
.syntaxhighlighter .color3 a
|
173 |
-
{
|
174 |
-
color: #FFAA3E !important;
|
175 |
}
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
/**
|
31 |
* Midnight SyntaxHighlighter theme based on theme by J.D. Myers
|
32 |
* http://webdesign.lsnjd.com/
|
54 |
color: #B9BDB6 !important;
|
55 |
}
|
56 |
|
57 |
+
.syntaxhighlighter.printing .line .content
|
58 |
{
|
59 |
border: 0 !important;
|
60 |
}
|
105 |
************************************/
|
106 |
.syntaxhighlighter .plain,
|
107 |
.syntaxhighlighter .plain a
|
108 |
+
{
|
109 |
color: #D1EDFF !important;
|
110 |
}
|
111 |
|
112 |
.syntaxhighlighter .comments,
|
113 |
.syntaxhighlighter .comments a
|
114 |
+
{
|
115 |
color: #428BDD !important;
|
116 |
}
|
117 |
|
118 |
.syntaxhighlighter .string,
|
119 |
.syntaxhighlighter .string a
|
120 |
{
|
121 |
+
color: #1DC116 !important;
|
122 |
}
|
123 |
|
124 |
.syntaxhighlighter .keyword
|
125 |
+
{
|
126 |
+
color: #B43D3D !important;
|
127 |
}
|
128 |
|
129 |
+
.syntaxhighlighter .preprocessor
|
130 |
+
{
|
131 |
+
color: #8AA6C1 !important;
|
132 |
}
|
133 |
|
134 |
+
.syntaxhighlighter .variable
|
135 |
+
{
|
136 |
+
color: #FFAA3E !important;
|
137 |
}
|
138 |
|
139 |
.syntaxhighlighter .value
|
140 |
+
{
|
141 |
+
color: #F7E741 !important;
|
142 |
}
|
143 |
|
144 |
.syntaxhighlighter .functions
|
145 |
+
{
|
146 |
+
color: #FFAA3E !important;
|
147 |
}
|
148 |
|
149 |
.syntaxhighlighter .constants
|
150 |
+
{
|
151 |
+
color: #E0E8FF !important;
|
152 |
}
|
153 |
|
154 |
.syntaxhighlighter .script
|
155 |
+
{
|
156 |
background-color: #404040 !important;
|
157 |
}
|
158 |
|
159 |
.syntaxhighlighter .color1,
|
160 |
.syntaxhighlighter .color1 a
|
161 |
+
{
|
162 |
+
color: #F8BB00 !important;
|
163 |
}
|
164 |
|
165 |
.syntaxhighlighter .color2,
|
166 |
.syntaxhighlighter .color2 a
|
167 |
+
{
|
168 |
+
color: #FFFFFF !important;
|
169 |
}
|
170 |
|
171 |
.syntaxhighlighter .color3,
|
172 |
.syntaxhighlighter .color3 a
|
173 |
+
{
|
174 |
+
color: #FFAA3E !important;
|
175 |
}
|
syntaxhighlighter2/styles/shThemeRDark.css
CHANGED
@@ -1,32 +1,32 @@
|
|
1 |
-
/**
|
2 |
-
* SyntaxHighlighter
|
3 |
-
* http://alexgorbatchev.com/
|
4 |
-
*
|
5 |
-
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
-
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
-
*
|
8 |
-
* @version
|
9 |
-
* 2.1.364 (October 15 2009)
|
10 |
-
*
|
11 |
-
* @copyright
|
12 |
-
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
-
*
|
14 |
-
* @license
|
15 |
-
* This file is part of SyntaxHighlighter.
|
16 |
-
*
|
17 |
-
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
-
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
-
* the Free Software Foundation, either version 3 of the License, or
|
20 |
-
* (at your option) any later version.
|
21 |
-
*
|
22 |
-
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
-
* GNU General Public License for more details.
|
26 |
-
*
|
27 |
-
* You should have received a copy of the GNU General Public License
|
28 |
-
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
-
*/
|
30 |
/**
|
31 |
* RDark SyntaxHighlighter theme based on theme by Radu Dineiu
|
32 |
* http://www.vim.org/scripts/script.php?script_id=1732
|
@@ -54,7 +54,7 @@
|
|
54 |
color: #B9BDB6 !important;
|
55 |
}
|
56 |
|
57 |
-
.syntaxhighlighter.printing .line .content
|
58 |
{
|
59 |
border: 0 !important;
|
60 |
}
|
@@ -105,71 +105,71 @@
|
|
105 |
************************************/
|
106 |
.syntaxhighlighter .plain,
|
107 |
.syntaxhighlighter .plain a
|
108 |
-
{
|
109 |
color: #B9BDB6 !important;
|
110 |
}
|
111 |
|
112 |
.syntaxhighlighter .comments,
|
113 |
.syntaxhighlighter .comments a
|
114 |
-
{
|
115 |
color: #878A85 !important;
|
116 |
}
|
117 |
|
118 |
.syntaxhighlighter .string,
|
119 |
.syntaxhighlighter .string a
|
120 |
{
|
121 |
-
color: #5CE638 !important;
|
122 |
}
|
123 |
|
124 |
.syntaxhighlighter .keyword
|
125 |
-
{
|
126 |
-
color: #5BA1CF !important;
|
127 |
}
|
128 |
|
129 |
-
.syntaxhighlighter .preprocessor
|
130 |
-
{
|
131 |
-
color: #435A5F !important;
|
132 |
}
|
133 |
|
134 |
-
.syntaxhighlighter .variable
|
135 |
-
{
|
136 |
-
color: #FFAA3E !important;
|
137 |
}
|
138 |
|
139 |
.syntaxhighlighter .value
|
140 |
-
{
|
141 |
-
color: #090 !important;
|
142 |
}
|
143 |
|
144 |
.syntaxhighlighter .functions
|
145 |
-
{
|
146 |
-
color: #FFAA3E !important;
|
147 |
}
|
148 |
|
149 |
.syntaxhighlighter .constants
|
150 |
-
{
|
151 |
-
color: #E0E8FF !important;
|
152 |
}
|
153 |
|
154 |
.syntaxhighlighter .script
|
155 |
-
{
|
156 |
background-color: #435A5F !important;
|
157 |
}
|
158 |
|
159 |
.syntaxhighlighter .color1,
|
160 |
.syntaxhighlighter .color1 a
|
161 |
-
{
|
162 |
-
color: #E0E8FF !important;
|
163 |
}
|
164 |
|
165 |
.syntaxhighlighter .color2,
|
166 |
.syntaxhighlighter .color2 a
|
167 |
-
{
|
168 |
-
color: #FFFFFF !important;
|
169 |
}
|
170 |
|
171 |
.syntaxhighlighter .color3,
|
172 |
.syntaxhighlighter .color3 a
|
173 |
-
{
|
174 |
-
color: #FFAA3E !important;
|
175 |
}
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
/**
|
31 |
* RDark SyntaxHighlighter theme based on theme by Radu Dineiu
|
32 |
* http://www.vim.org/scripts/script.php?script_id=1732
|
54 |
color: #B9BDB6 !important;
|
55 |
}
|
56 |
|
57 |
+
.syntaxhighlighter.printing .line .content
|
58 |
{
|
59 |
border: 0 !important;
|
60 |
}
|
105 |
************************************/
|
106 |
.syntaxhighlighter .plain,
|
107 |
.syntaxhighlighter .plain a
|
108 |
+
{
|
109 |
color: #B9BDB6 !important;
|
110 |
}
|
111 |
|
112 |
.syntaxhighlighter .comments,
|
113 |
.syntaxhighlighter .comments a
|
114 |
+
{
|
115 |
color: #878A85 !important;
|
116 |
}
|
117 |
|
118 |
.syntaxhighlighter .string,
|
119 |
.syntaxhighlighter .string a
|
120 |
{
|
121 |
+
color: #5CE638 !important;
|
122 |
}
|
123 |
|
124 |
.syntaxhighlighter .keyword
|
125 |
+
{
|
126 |
+
color: #5BA1CF !important;
|
127 |
}
|
128 |
|
129 |
+
.syntaxhighlighter .preprocessor
|
130 |
+
{
|
131 |
+
color: #435A5F !important;
|
132 |
}
|
133 |
|
134 |
+
.syntaxhighlighter .variable
|
135 |
+
{
|
136 |
+
color: #FFAA3E !important;
|
137 |
}
|
138 |
|
139 |
.syntaxhighlighter .value
|
140 |
+
{
|
141 |
+
color: #090 !important;
|
142 |
}
|
143 |
|
144 |
.syntaxhighlighter .functions
|
145 |
+
{
|
146 |
+
color: #FFAA3E !important;
|
147 |
}
|
148 |
|
149 |
.syntaxhighlighter .constants
|
150 |
+
{
|
151 |
+
color: #E0E8FF !important;
|
152 |
}
|
153 |
|
154 |
.syntaxhighlighter .script
|
155 |
+
{
|
156 |
background-color: #435A5F !important;
|
157 |
}
|
158 |
|
159 |
.syntaxhighlighter .color1,
|
160 |
.syntaxhighlighter .color1 a
|
161 |
+
{
|
162 |
+
color: #E0E8FF !important;
|
163 |
}
|
164 |
|
165 |
.syntaxhighlighter .color2,
|
166 |
.syntaxhighlighter .color2 a
|
167 |
+
{
|
168 |
+
color: #FFFFFF !important;
|
169 |
}
|
170 |
|
171 |
.syntaxhighlighter .color3,
|
172 |
.syntaxhighlighter .color3 a
|
173 |
+
{
|
174 |
+
color: #FFAA3E !important;
|
175 |
}
|
syntaxhighlighter3/scripts/shBrushCpp.js
CHANGED
@@ -46,7 +46,8 @@
|
|
46 |
'jmp_buf mbstate_t _off_t _onexit_t _PNH ptrdiff_t _purecall_handler ' +
|
47 |
'sig_atomic_t size_t _stat __stat64 _stati64 terminate_function ' +
|
48 |
'time_t __time64_t _timeb __timeb64 tm uintptr_t _utimbuf ' +
|
49 |
-
'va_list wchar_t wctrans_t wctype_t wint_t signed'
|
|
|
50 |
|
51 |
var keywords = 'alignas alignof auto break case catch class const constexpr decltype __finally __exception __try ' +
|
52 |
'const_cast consteval concept continue private public protected __declspec ' +
|
46 |
'jmp_buf mbstate_t _off_t _onexit_t _PNH ptrdiff_t _purecall_handler ' +
|
47 |
'sig_atomic_t size_t _stat __stat64 _stati64 terminate_function ' +
|
48 |
'time_t __time64_t _timeb __timeb64 tm uintptr_t _utimbuf ' +
|
49 |
+
'va_list wchar_t wctrans_t wctype_t wint_t signed ' +
|
50 |
+
'int8_t int16_t int32_t int64_t uint8_t uint16_t uint32_t uint64_t';
|
51 |
|
52 |
var keywords = 'alignas alignof auto break case catch class const constexpr decltype __finally __exception __try ' +
|
53 |
'const_cast consteval concept continue private public protected __declspec ' +
|