.*)$'));
146 | if (match && match.language) {
147 | language = match.language;
148 | }
149 | }
150 | preList[i].className = 'brush: ' + language;
151 | preList[i].innerHTML = code.innerHTML;
152 | }
153 | }
154 | SyntaxHighlighter.autoloader(
155 | 'applescript {$currentPath}scripts/shBrushAppleScript.js',
156 | 'ahk autohotkey {$currentPath}scripts/shBrushAhk.js',
157 | 'actionscript3 as3 {$currentPath}scripts/shBrushAS3.js',
158 | 'bash shell {$currentPath}scripts/shBrushBash.js',
159 | 'bat cmd batch {$currentPath}scripts/shBrushBat.js',
160 | 'coldfusion cf {$currentPath}scripts/shBrushColdFusion.js',
161 | 'cpp c {$currentPath}scripts/shBrushCpp.js',
162 | 'c# c-sharp csharp {$currentPath}scripts/shBrushCSharp.js',
163 | 'css {$currentPath}scripts/shBrushCss.js',
164 | 'delphi pascal pas {$currentPath}scripts/shBrushDelphi.js',
165 | 'diff patch {$currentPath}scripts/shBrushDiff.js',
166 | 'erl erlang {$currentPath}scripts/shBrushErlang.js',
167 | 'groovy {$currentPath}scripts/shBrushGroovy.js',
168 | 'java {$currentPath}scripts/shBrushJava.js',
169 | 'jfx javafx {$currentPath}scripts/shBrushJavaFX.js',
170 | 'js jscript javascript {$currentPath}scripts/shBrushJScript.js',
171 | 'perl pl {$currentPath}scripts/shBrushPerl.js',
172 | 'php {$currentPath}scripts/shBrushPhp.js',
173 | 'text plain {$currentPath}scripts/shBrushPlain.js',
174 | 'powershell ps {$currentPath}scripts/shBrushPowerShell.js',
175 | 'py python {$currentPath}scripts/shBrushPython.js',
176 | 'ruby rails ror rb {$currentPath}scripts/shBrushRuby.js',
177 | 'sass scss {$currentPath}scripts/shBrushSass.js',
178 | 'scala {$currentPath}scripts/shBrushScala.js',
179 | 'sql {$currentPath}scripts/shBrushSql.js',
180 | 'vb vbnet {$currentPath}scripts/shBrushVb.js',
181 | 'xml xhtml xslt html {$currentPath}scripts/shBrushXml.js'
182 | );
183 | SyntaxHighlighter.defaults['auto-links'] = $autoLinks;
184 | SyntaxHighlighter.defaults['collapse'] = $collapse;
185 | SyntaxHighlighter.defaults['gutter'] = $gutter;
186 | SyntaxHighlighter.defaults['smart-tabs'] = $smartTabs;
187 | SyntaxHighlighter.defaults['tab-size'] = $tabSize;
188 | SyntaxHighlighter.defaults['toolbar'] = $toolbar;
189 | SyntaxHighlighter.all();
190 | }
191 |
192 | EOF;
193 | echo "\n";
194 | }
195 |
196 | }
197 |
198 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | SyntaxHighlighter-For-Typecho
2 | =============================
3 |
4 | 著名代码高亮插件[SyntaxHighlighter][2] Typecho移植版,同时支持0.8、0.9、1.0
5 |
6 | 本插件基于[Tolbkni Kao][1]的Syntax Highlighter for Typecho 0.8修改
7 |
8 | typecho 0.9新版发布了,就冲这个Markdown也要体验一下。就是因为这个Markdown,以前用的代码高亮插件失效了,同时原作者已经不再使用typecho了,所以只好花一点时间,修改一下原作者的插件。说是修改,其实已经改了大部分内容了。
9 |
10 | ### 插件目录请命名为 SyntaxHighlighter
11 |
12 | typecho 0.9以上版本使用方法:
13 |
14 | ```cpp
15 | 这里填写你的C++代码
16 | 同时上面的cpp也可以换成你想要的语言,比如说javascript
17 | ```
18 |
19 | typecho 0.8及以下使用方法:
20 |
21 |
22 | <html>
23 | <head>这是一个测试标题</head>
24 | <body>
25 | Hello, everyone.
26 | </body>
27 | </html>
28 |
29 |
30 | 主要原理是通过替换Markdown输出的``为``从而使Syntax Highlighter能正常渲染。
31 |
32 | 最后需要注意一个问题,开启代码折叠又没开工具栏的时候,代码会消失,这可能是Syntax Highlighter遗留下来的BUG。所以请开启代码折叠的同时,也把工具栏开启了。
33 |
34 | 更多的配置选项,请参考[官方网站][3]。
35 |
36 | [1]: https://blog.imtk.me/
37 | [2]: https://github.com/alexgorbatchev/SyntaxHighlighter
38 | [3]: http://alexgorbatchev.com/SyntaxHighlighter/manual/configuration/
--------------------------------------------------------------------------------
/changelog.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tinpont/SyntaxHighlighter-For-Typecho/c96226b0abd944dbd6da0f05846655ff876294b6/changelog.txt
--------------------------------------------------------------------------------
/scripts/shAutoloader.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | (function() {
18 |
19 | var sh = SyntaxHighlighter;
20 |
21 | /**
22 | * Provides functionality to dynamically load only the brushes that a needed to render the current page.
23 | *
24 | * There are two syntaxes that autoload understands. For example:
25 | *
26 | * SyntaxHighlighter.autoloader(
27 | * [ 'applescript', 'Scripts/shBrushAppleScript.js' ],
28 | * [ 'actionscript3', 'as3', 'Scripts/shBrushAS3.js' ]
29 | * );
30 | *
31 | * or a more easily comprehendable one:
32 | *
33 | * SyntaxHighlighter.autoloader(
34 | * 'applescript Scripts/shBrushAppleScript.js',
35 | * 'actionscript3 as3 Scripts/shBrushAS3.js'
36 | * );
37 | */
38 | sh.autoloader = function()
39 | {
40 | var list = arguments,
41 | elements = sh.findElements(),
42 | brushes = {},
43 | scripts = {},
44 | all = SyntaxHighlighter.all,
45 | allCalled = false,
46 | allParams = null,
47 | i
48 | ;
49 |
50 | SyntaxHighlighter.all = function(params)
51 | {
52 | allParams = params;
53 | allCalled = true;
54 | };
55 |
56 | function addBrush(aliases, url)
57 | {
58 | for (var i = 0; i < aliases.length; i++)
59 | brushes[aliases[i]] = url;
60 | };
61 |
62 | function getAliases(item)
63 | {
64 | return item.pop
65 | ? item
66 | : item.split(/\s+/)
67 | ;
68 | }
69 |
70 | // create table of aliases and script urls
71 | for (i = 0; i < list.length; i++)
72 | {
73 | var aliases = getAliases(list[i]),
74 | url = aliases.pop()
75 | ;
76 |
77 | addBrush(aliases, url);
78 | }
79 |
80 | // dynamically add tags to the document body
81 | for (i = 0; i < elements.length; i++)
82 | {
83 | var url = brushes[elements[i].params.brush];
84 |
85 | if(url && scripts[url] === undefined)
86 | {
87 | if(elements[i].params['html-script'] === 'true')
88 | {
89 | if(scripts[brushes['xml']] === undefined) {
90 | loadScript(brushes['xml']);
91 | scripts[url] = false;
92 | }
93 | }
94 |
95 | scripts[url] = false;
96 | loadScript(url);
97 | }
98 | }
99 |
100 | function loadScript(url)
101 | {
102 | var script = document.createElement('script'),
103 | done = false
104 | ;
105 |
106 | script.src = url;
107 | script.type = 'text/javascript';
108 | script.language = 'javascript';
109 | script.onload = script.onreadystatechange = function()
110 | {
111 | if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete'))
112 | {
113 | done = true;
114 | scripts[url] = true;
115 | checkAll();
116 |
117 | // Handle memory leak in IE
118 | script.onload = script.onreadystatechange = null;
119 | script.parentNode.removeChild(script);
120 | }
121 | };
122 |
123 | // sync way of adding script tags to the page
124 | document.body.appendChild(script);
125 | };
126 |
127 | function checkAll()
128 | {
129 | for(var url in scripts)
130 | if (scripts[url] == false)
131 | return;
132 |
133 | if (allCalled)
134 | SyntaxHighlighter.highlight(allParams);
135 | };
136 | };
137 |
138 | })();
139 |
--------------------------------------------------------------------------------
/scripts/shBrushAS3.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | ;(function()
18 | {
19 | // CommonJS
20 | SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21 |
22 | function Brush()
23 | {
24 | // Created by Peter Atoria @ http://iAtoria.com
25 |
26 | var inits = 'class interface function package';
27 |
28 | var keywords = '-Infinity ...rest Array as AS3 Boolean break case catch const continue Date decodeURI ' +
29 | 'decodeURIComponent default delete do dynamic each else encodeURI encodeURIComponent escape ' +
30 | 'extends false final finally flash_proxy for get if implements import in include Infinity ' +
31 | 'instanceof int internal is isFinite isNaN isXMLName label namespace NaN native new null ' +
32 | 'Null Number Object object_proxy override parseFloat parseInt private protected public ' +
33 | 'return set static String super switch this throw true try typeof uint undefined unescape ' +
34 | 'use void while with'
35 | ;
36 |
37 | this.regexList = [
38 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
39 | { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
40 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
41 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
42 | { regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers
43 | { regex: new RegExp(this.getKeywords(inits), 'gm'), css: 'color3' }, // initializations
44 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
45 | { regex: new RegExp('var', 'gm'), css: 'variable' }, // variable
46 | { regex: new RegExp('trace', 'gm'), css: 'color1' } // trace
47 | ];
48 |
49 | this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags);
50 | };
51 |
52 | Brush.prototype = new SyntaxHighlighter.Highlighter();
53 | Brush.aliases = ['actionscript3', 'as3'];
54 |
55 | SyntaxHighlighter.brushes.AS3 = Brush;
56 |
57 | // CommonJS
58 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
59 | })();
60 |
--------------------------------------------------------------------------------
/scripts/shBrushAppleScript.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | ;(function()
18 | {
19 | // CommonJS
20 | SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21 |
22 | function Brush()
23 | {
24 | // AppleScript brush by David Chambers
25 | // http://davidchambersdesign.com/
26 | var keywords = 'after before beginning continue copy each end every from return get global in local named of set some that the then times to where whose with without';
27 | var ordinals = 'first second third fourth fifth sixth seventh eighth ninth tenth last front back middle';
28 | var specials = 'activate add alias ask attachment boolean class constant delete duplicate empty exists id integer list make message modal modified new no pi properties quit real record remove rest result reveal reverse run running save string word yes';
29 |
30 | this.regexList = [
31 |
32 | { regex: /(--|#).*$/gm,
33 | css: 'comments' },
34 |
35 | { regex: /\(\*(?:[\s\S]*?\(\*[\s\S]*?\*\))*[\s\S]*?\*\)/gm, // support nested comments
36 | css: 'comments' },
37 |
38 | { regex: /"[\s\S]*?"/gm,
39 | css: 'string' },
40 |
41 | { regex: /(?:,|:|¬|'s\b|\(|\)|\{|\}|«|\b\w*»)/g, // operators
42 | css: 'color1' },
43 |
44 | { regex: /(-)?(\d)+(\.(\d)?)?(E\+(\d)+)?/g, // numbers
45 | css: 'color1' },
46 |
47 | { regex: /(?:&(amp;|gt;|lt;)?|=|� |>|<|≥|>=|≤|<=|\*|\+|-|\/|÷|\^)/g,
48 | css: 'color2' },
49 |
50 | { regex: /\b(?:and|as|div|mod|not|or|return(?!\s&)(ing)?|equals|(is(n't| not)? )?equal( to)?|does(n't| not) equal|(is(n't| not)? )?(greater|less) than( or equal( to)?)?|(comes|does(n't| not) come) (after|before)|is(n't| not)?( in)? (back|front) of|is(n't| not)? behind|is(n't| not)?( (in|contained by))?|does(n't| not) contain|contain(s)?|(start|begin|end)(s)? with|((but|end) )?(consider|ignor)ing|prop(erty)?|(a )?ref(erence)?( to)?|repeat (until|while|with)|((end|exit) )?repeat|((else|end) )?if|else|(end )?(script|tell|try)|(on )?error|(put )?into|(of )?(it|me)|its|my|with (timeout( of)?|transaction)|end (timeout|transaction))\b/g,
51 | css: 'keyword' },
52 |
53 | { regex: /\b\d+(st|nd|rd|th)\b/g, // ordinals
54 | css: 'keyword' },
55 |
56 | { regex: /\b(?:about|above|against|around|at|below|beneath|beside|between|by|(apart|aside) from|(instead|out) of|into|on(to)?|over|since|thr(ough|u)|under)\b/g,
57 | css: 'color3' },
58 |
59 | { regex: /\b(?:adding folder items to|after receiving|clipboard info|set the clipboard to|(the )?clipboard|entire contents|document( (edited|file|nib name))?|file( (name|type))?|(info )?for|giving up after|(name )?extension|return(ed)?|second(?! item)(s)?|list (disks|folder)|(Unicode )?text|(disk )?item(s)?|((current|list) )?view|((container|key) )?window|case|diacriticals|hyphens|numeric strings|punctuation|white space|folder creation|application(s( folder)?| (processes|scripts position|support))?|((desktop )?(pictures )?|(documents|downloads|favorites|home|keychain|library|movies|music|public|scripts|sites|system|users|utilities|workflows) )folder|desktop|Folder Action scripts|font(s| panel)?|help|internet plugins|modem scripts|(system )?preferences|printer descriptions|scripting (additions|components)|shared (documents|libraries)|startup (disk|items)|temporary items|trash|on server|in AppleTalk zone|((as|long|short) )?user name|user (ID|locale)|(with )?password|in (bundle( with identifier)?|directory)|(close|open for) access|read|write( permission)?|(g|s)et eof|starting at|hidden( answer)?|open(ed| (location|untitled))?|error (handling|reporting)|administrator privileges|altering line endings|get volume settings|(alert|boot|input|mount|output|set) volume|output muted|(fax|random )?number|round(ing)?|up|down|toward zero|to nearest|as taught in school|system (attribute|info)|((AppleScript( Studio)?|system) )?version|(home )?directory|(IPv4|primary Ethernet) address|CPU (type|speed)|physical memory|time (stamp|to GMT)|replacing|ASCII (character|number)|localized string|from table|offset|summarize|beep|delay|say|(empty|multiple) selections allowed|(of|preferred) type|invisibles|showing( package contents)?|editable URL|(File|FTP|News|Media|Web) [Ss]ervers|Telnet hosts|Directory services|Remote applications|waiting until completion|saving( (in|to))?|path (for|to( (((current|frontmost) )?application|resource))?)|(background|RGB) color|(OK|cancel) button name|cancel button|button(s)?|cubic ((centi)?met(re|er)s|yards|feet|inches)|square ((kilo)?met(re|er)s|miles|yards|feet)|(centi|kilo)?met(re|er)s|miles|yards|feet|inches|lit(re|er)s|gallons|quarts|(kilo)?grams|ounces|pounds|degrees (Celsius|Fahrenheit|Kelvin)|print( (dialog|settings))?|clos(e(able)?|ing)|(de)?miniaturized|miniaturizable|zoom(ed|able)|attribute run|action (method|property|title)|phone|email|((start|end)ing|home) page|((birth|creation|current|custom|modification) )?date|((((phonetic )?(first|last|middle))|computer|host|maiden|related) |nick)?name|aim|icq|jabber|msn|yahoo|address(es)?|save addressbook|should enable action|city|country( code)?|formatte(r|d address)|(palette )?label|state|street|zip|AIM [Hh]andle(s)?|my card|select(ion| all)?|unsaved|(alpha )?value|entr(y|ies)|(ICQ|Jabber|MSN) handle|person|people|company|department|icon image|job title|note|organization|suffix|vcard|url|copies|collating|pages (across|down)|request print time|target( printer)?|((GUI Scripting|Script menu) )?enabled|show Computer scripts|(de)?activated|awake from nib|became (key|main)|call method|of (class|object)|center|clicked toolbar item|closed|for document|exposed|(can )?hide|idle|keyboard (down|up)|event( (number|type))?|launch(ed)?|load (image|movie|nib|sound)|owner|log|mouse (down|dragged|entered|exited|moved|up)|move|column|localization|resource|script|register|drag (info|types)|resigned (active|key|main)|resiz(e(d)?|able)|right mouse (down|dragged|up)|scroll wheel|(at )?index|should (close|open( untitled)?|quit( after last window closed)?|zoom)|((proposed|screen) )?bounds|show(n)?|behind|in front of|size (mode|to fit)|update(d| toolbar item)?|was (hidden|miniaturized)|will (become active|close|finish launching|hide|miniaturize|move|open|quit|(resign )?active|((maximum|minimum|proposed) )?size|show|zoom)|bundle|data source|movie|pasteboard|sound|tool(bar| tip)|(color|open|save) panel|coordinate system|frontmost|main( (bundle|menu|window))?|((services|(excluded from )?windows) )?menu|((executable|frameworks|resource|scripts|shared (frameworks|support)) )?path|(selected item )?identifier|data|content(s| view)?|character(s)?|click count|(command|control|option|shift) key down|context|delta (x|y|z)|key( code)?|location|pressure|unmodified characters|types|(first )?responder|playing|(allowed|selectable) identifiers|allows customization|(auto saves )?configuration|visible|image( name)?|menu form representation|tag|user(-| )defaults|associated file name|(auto|needs) display|current field editor|floating|has (resize indicator|shadow)|hides when deactivated|level|minimized (image|title)|opaque|position|release when closed|sheet|title(d)?)\b/g,
60 | css: 'color4' },
61 |
62 | { regex: /\b(?:tracks|paragraph|text item(s)?)\b/g,
63 | css: 'classes' },
64 |
65 | { regex: /\b(?:AppleScript|album|video kind|grouping|length|text item delimiters|quoted form|POSIX path(?= of))\b/g,
66 | css: 'properties' },
67 |
68 | { regex: /\b(?:run|exists|count)\b/g,
69 | css: 'commandNames' },
70 |
71 | { regex: /\b(?:POSIX (file|path))\b/g,
72 | css: 'additionClasses' },
73 |
74 | { regex: /\b(?:message|with (data|icon( (caution|note|stop))?|parameter(s)?|prompt|properties|seed|title)|regexp|string result|using( delimiters)?|default (answer|button|color|country code|entr(y|ies)|identifiers|items|name|location|script editor))\b/g,
75 | css: 'additionParameterNames' },
76 |
77 | { regex: /\b(?:display(ing| (alert|dialog|mode))?|choose( ((remote )?application|color|folder|from list|URL))?|(do( shell)?|load|run|store) script|re_compile|find text)\b/g,
78 | css: 'additionCommandNames' },
79 |
80 | { regex: /\b(?:xxx)\b/g,
81 | css: 'parameterNames' },
82 |
83 | { regex: /\b(?:true|false|none)\b/g,
84 | css: 'enumeratedValues' },
85 |
86 |
87 | { regex: new RegExp(this.getKeywords(specials), 'gm'), css: 'color3' },
88 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' },
89 | { regex: new RegExp(this.getKeywords(ordinals), 'gm'), css: 'keyword' }
90 | ];
91 | };
92 |
93 | Brush.prototype = new SyntaxHighlighter.Highlighter();
94 | Brush.aliases = ['applescript'];
95 |
96 | SyntaxHighlighter.brushes.AppleScript = Brush;
97 |
98 | // CommonJS
99 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
100 | })();
--------------------------------------------------------------------------------
/scripts/shBrushBash.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | ;(function()
18 | {
19 | // CommonJS
20 | SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21 |
22 | function Brush()
23 | {
24 | function hereDocProcess(match, regexInfo)
25 | {
26 | var constructor = SyntaxHighlighter.Match,
27 | result = []
28 | ;
29 | if (match.here_doc != null)
30 | result.push(new constructor(match.here_doc, match.index + match[0].indexOf(match.here_doc), 'string'));
31 |
32 | if (match.full_tag != null)
33 | result.push(new constructor(match.full_tag, match.index, 'preprocessor'));
34 |
35 | if (match.end_tag != null)
36 | result.push(new constructor(match.end_tag, match.index + match[0].lastIndexOf(match.end_tag), 'preprocessor'));
37 | return result;
38 | }
39 | var keywords = 'if fi then elif else for do done until while break continue case esac function return in eq ne ge le';
40 | var commands = 'alias apropos awk basename base64 bash bc bg builtin bzip2 cal cat cd cfdisk chgrp chmod chown chroot' +
41 | 'cksum clear cmp comm command cp cron crontab crypt csplit cut date dc dd ddrescue declare df ' +
42 | 'diff diff3 dig dir dircolors dirname dirs du echo egrep eject enable env ethtool eval ' +
43 | 'exec exit expand export expr false fdformat fdisk fg fgrep file find fmt fold format ' +
44 | 'free fsck ftp gawk gcc gdb getconf getopts grep groups gzip hash head history hostname id ifconfig ' +
45 | 'import install join kill less let ln local locate logname logout look lpc lpr lprint ' +
46 | 'lprintd lprintq lprm ls lsof make man mkdir mkfifo mkisofs mknod more mount mtools ' +
47 | 'mv nasm nc ndisasm netstat nice nl nohup nslookup objdump od open op passwd paste pathchk ping popd pr printcap ' +
48 | 'printenv printf ps pushd pwd quota quotacheck quotactl ram rcp read readonly renice ' +
49 | 'remsync rm rmdir rsync screen scp sdiff sed select seq set sftp shift shopt shutdown ' +
50 | 'sleep sort source split ssh strace strings su sudo sum symlink sync tail tar tee test time ' +
51 | 'times touch top traceroute trap tr true tsort tty type ulimit umask umount unalias ' +
52 | 'uname unexpand uniq units unset unshar useradd usermod users uuencode uudecode v vdir ' +
53 | 'vi watch wc whereis which who whoami Wget xargs xxd yes chsh'
54 | ;
55 |
56 | this.regexList = [
57 | { regex: /^#!.*$/gm, css: 'preprocessor bold' },
58 | { regex: /\/[\w-\/]+/gm, css: 'plain' },
59 | { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments
60 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
61 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
62 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
63 | { regex: new RegExp(this.getKeywords(commands), 'gm'), css: 'functions' }, // commands
64 | { regex: new XRegExp("(?(<|<){2}(?\\w+)) .*$(?[\\s\\S]*)(?^\\k$)",'gm'), func: hereDocProcess }
65 | ];
66 | }
67 |
68 | Brush.prototype = new SyntaxHighlighter.Highlighter();
69 | Brush.aliases = ['bash', 'shell', 'sh'];
70 |
71 | SyntaxHighlighter.brushes.Bash = Brush;
72 |
73 | // CommonJS
74 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
75 | })();
76 |
--------------------------------------------------------------------------------
/scripts/shBrushCSharp.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | ;(function()
18 | {
19 | // CommonJS
20 | SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21 |
22 | function Brush()
23 | {
24 | var keywords = 'abstract as async await base bool break byte case catch char checked class const ' +
25 | 'continue decimal default delegate do double else enum event explicit volatile ' +
26 | 'extern false finally fixed float for foreach get goto if implicit in int ' +
27 | 'interface internal is lock long namespace new null object operator out ' +
28 | 'override params private protected public readonly ref return sbyte sealed set ' +
29 | 'short sizeof stackalloc static string struct switch this throw true try ' +
30 | 'typeof uint ulong unchecked unsafe ushort using virtual void while var ' +
31 | 'from group by into select let where orderby join on equals ascending descending';
32 |
33 | function fixComments(match, regexInfo)
34 | {
35 | var css = (match[0].indexOf("///") == 0)
36 | ? 'color1'
37 | : 'comments'
38 | ;
39 |
40 | return [new SyntaxHighlighter.Match(match[0], match.index, css)];
41 | }
42 |
43 | this.regexList = [
44 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, func : fixComments }, // one line comments
45 | { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
46 | { regex: /@"(?:[^"]|"")*"/g, css: 'string' }, // @-quoted strings
47 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
48 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
49 | { regex: /^\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
50 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // c# keyword
51 | { regex: /\bpartial(?=\s+(?:class|interface|struct)\b)/g, css: 'keyword' }, // contextual keyword: 'partial'
52 | { regex: /\byield(?=\s+(?:return|break)\b)/g, css: 'keyword' } // contextual keyword: 'yield'
53 | ];
54 |
55 | this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
56 | };
57 |
58 | Brush.prototype = new SyntaxHighlighter.Highlighter();
59 | Brush.aliases = ['c#', 'c-sharp', 'csharp'];
60 |
61 | SyntaxHighlighter.brushes.CSharp = Brush;
62 |
63 | // CommonJS
64 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
65 | })();
66 |
--------------------------------------------------------------------------------
/scripts/shBrushColdFusion.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | ;(function()
18 | {
19 | // CommonJS
20 | SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21 |
22 | function Brush()
23 | {
24 | // Contributed by Jen
25 | // http://www.jensbits.com/2009/05/14/coldfusion-brush-for-syntaxhighlighter-plus
26 |
27 | var funcs = 'Abs ACos AddSOAPRequestHeader AddSOAPResponseHeader AjaxLink AjaxOnLoad ArrayAppend ArrayAvg ArrayClear ArrayDeleteAt ' +
28 | 'ArrayInsertAt ArrayIsDefined ArrayIsEmpty ArrayLen ArrayMax ArrayMin ArraySet ArraySort ArraySum ArraySwap ArrayToList ' +
29 | 'Asc ASin Atn BinaryDecode BinaryEncode BitAnd BitMaskClear BitMaskRead BitMaskSet BitNot BitOr BitSHLN BitSHRN BitXor ' +
30 | 'Ceiling CharsetDecode CharsetEncode Chr CJustify Compare CompareNoCase Cos CreateDate CreateDateTime CreateObject ' +
31 | 'CreateODBCDate CreateODBCDateTime CreateODBCTime CreateTime CreateTimeSpan CreateUUID DateAdd DateCompare DateConvert ' +
32 | 'DateDiff DateFormat DatePart Day DayOfWeek DayOfWeekAsString DayOfYear DaysInMonth DaysInYear DE DecimalFormat DecrementValue ' +
33 | 'Decrypt DecryptBinary DeleteClientVariable DeserializeJSON DirectoryExists DollarFormat DotNetToCFType Duplicate Encrypt ' +
34 | 'EncryptBinary Evaluate Exp ExpandPath FileClose FileCopy FileDelete FileExists FileIsEOF FileMove FileOpen FileRead ' +
35 | 'FileReadBinary FileReadLine FileSetAccessMode FileSetAttribute FileSetLastModified FileWrite Find FindNoCase FindOneOf ' +
36 | 'FirstDayOfMonth Fix FormatBaseN GenerateSecretKey GetAuthUser GetBaseTagData GetBaseTagList GetBaseTemplatePath ' +
37 | 'GetClientVariablesList GetComponentMetaData GetContextRoot GetCurrentTemplatePath GetDirectoryFromPath GetEncoding ' +
38 | 'GetException GetFileFromPath GetFileInfo GetFunctionList GetGatewayHelper GetHttpRequestData GetHttpTimeString ' +
39 | 'GetK2ServerDocCount GetK2ServerDocCountLimit GetLocale GetLocaleDisplayName GetLocalHostIP GetMetaData GetMetricData ' +
40 | 'GetPageContext GetPrinterInfo GetProfileSections GetProfileString GetReadableImageFormats GetSOAPRequest GetSOAPRequestHeader ' +
41 | 'GetSOAPResponse GetSOAPResponseHeader GetTempDirectory GetTempFile GetTemplatePath GetTickCount GetTimeZoneInfo GetToken ' +
42 | 'GetUserRoles GetWriteableImageFormats Hash Hour HTMLCodeFormat HTMLEditFormat IIf ImageAddBorder ImageBlur ImageClearRect ' +
43 | 'ImageCopy ImageCrop ImageDrawArc ImageDrawBeveledRect ImageDrawCubicCurve ImageDrawLine ImageDrawLines ImageDrawOval ' +
44 | 'ImageDrawPoint ImageDrawQuadraticCurve ImageDrawRect ImageDrawRoundRect ImageDrawText ImageFlip ImageGetBlob ImageGetBufferedImage ' +
45 | 'ImageGetEXIFTag ImageGetHeight ImageGetIPTCTag ImageGetWidth ImageGrayscale ImageInfo ImageNegative ImageNew ImageOverlay ImagePaste ' +
46 | 'ImageRead ImageReadBase64 ImageResize ImageRotate ImageRotateDrawingAxis ImageScaleToFit ImageSetAntialiasing ImageSetBackgroundColor ' +
47 | 'ImageSetDrawingColor ImageSetDrawingStroke ImageSetDrawingTransparency ImageSharpen ImageShear ImageShearDrawingAxis ImageTranslate ' +
48 | 'ImageTranslateDrawingAxis ImageWrite ImageWriteBase64 ImageXORDrawingMode IncrementValue InputBaseN Insert Int IsArray IsBinary ' +
49 | 'IsBoolean IsCustomFunction IsDate IsDDX IsDebugMode IsDefined IsImage IsImageFile IsInstanceOf IsJSON IsLeapYear IsLocalHost ' +
50 | 'IsNumeric IsNumericDate IsObject IsPDFFile IsPDFObject IsQuery IsSimpleValue IsSOAPRequest IsStruct IsUserInAnyRole IsUserInRole ' +
51 | 'IsUserLoggedIn IsValid IsWDDX IsXML IsXmlAttribute IsXmlDoc IsXmlElem IsXmlNode IsXmlRoot JavaCast JSStringFormat LCase Left Len ' +
52 | 'ListAppend ListChangeDelims ListContains ListContainsNoCase ListDeleteAt ListFind ListFindNoCase ListFirst ListGetAt ListInsertAt ' +
53 | 'ListLast ListLen ListPrepend ListQualify ListRest ListSetAt ListSort ListToArray ListValueCount ListValueCountNoCase LJustify Log ' +
54 | 'Log10 LSCurrencyFormat LSDateFormat LSEuroCurrencyFormat LSIsCurrency LSIsDate LSIsNumeric LSNumberFormat LSParseCurrency LSParseDateTime ' +
55 | 'LSParseEuroCurrency LSParseNumber LSTimeFormat LTrim Max Mid Min Minute Month MonthAsString Now NumberFormat ParagraphFormat ParseDateTime ' +
56 | 'Pi PrecisionEvaluate PreserveSingleQuotes Quarter QueryAddColumn QueryAddRow QueryConvertForGrid QueryNew QuerySetCell QuotedValueList Rand ' +
57 | 'Randomize RandRange REFind REFindNoCase ReleaseComObject REMatch REMatchNoCase RemoveChars RepeatString Replace ReplaceList ReplaceNoCase ' +
58 | 'REReplace REReplaceNoCase Reverse Right RJustify Round RTrim Second SendGatewayMessage SerializeJSON SetEncoding SetLocale SetProfileString ' +
59 | 'SetVariable Sgn Sin Sleep SpanExcluding SpanIncluding Sqr StripCR StructAppend StructClear StructCopy StructCount StructDelete StructFind ' +
60 | 'StructFindKey StructFindValue StructGet StructInsert StructIsEmpty StructKeyArray StructKeyExists StructKeyList StructKeyList StructNew ' +
61 | 'StructSort StructUpdate Tan TimeFormat ToBase64 ToBinary ToScript ToString Trim UCase URLDecode URLEncodedFormat URLSessionFormat Val ' +
62 | 'ValueList VerifyClient Week Wrap Wrap WriteOutput XmlChildPos XmlElemNew XmlFormat XmlGetNodeType XmlNew XmlParse XmlSearch XmlTransform ' +
63 | 'XmlValidate Year YesNoFormat';
64 |
65 | var keywords = 'cfabort cfajaximport cfajaxproxy cfapplet cfapplication cfargument cfassociate cfbreak cfcache cfcalendar ' +
66 | 'cfcase cfcatch cfchart cfchartdata cfchartseries cfcol cfcollection cfcomponent cfcontent cfcookie cfdbinfo ' +
67 | 'cfdefaultcase cfdirectory cfdiv cfdocument cfdocumentitem cfdocumentsection cfdump cfelse cfelseif cferror ' +
68 | 'cfexchangecalendar cfexchangeconnection cfexchangecontact cfexchangefilter cfexchangemail cfexchangetask ' +
69 | 'cfexecute cfexit cffeed cffile cfflush cfform cfformgroup cfformitem cfftp cffunction cfgrid cfgridcolumn ' +
70 | 'cfgridrow cfgridupdate cfheader cfhtmlhead cfhttp cfhttpparam cfif cfimage cfimport cfinclude cfindex ' +
71 | 'cfinput cfinsert cfinterface cfinvoke cfinvokeargument cflayout cflayoutarea cfldap cflocation cflock cflog ' +
72 | 'cflogin cfloginuser cflogout cfloop cfmail cfmailparam cfmailpart cfmenu cfmenuitem cfmodule cfNTauthenticate ' +
73 | 'cfobject cfobjectcache cfoutput cfparam cfpdf cfpdfform cfpdfformparam cfpdfparam cfpdfsubform cfpod cfpop ' +
74 | 'cfpresentation cfpresentationslide cfpresenter cfprint cfprocessingdirective cfprocparam cfprocresult ' +
75 | 'cfproperty cfquery cfqueryparam cfregistry cfreport cfreportparam cfrethrow cfreturn cfsavecontent cfschedule ' +
76 | 'cfscript cfsearch cfselect cfset cfsetting cfsilent cfslider cfsprydataset cfstoredproc cfswitch cftable ' +
77 | 'cftextarea cfthread cfthrow cftimer cftooltip cftrace cftransaction cftree cftreeitem cftry cfupdate cfwddx ' +
78 | 'cfwindow cfxml cfzip cfzipparam';
79 |
80 | var operators = 'all and any between cross in join like not null or outer some';
81 |
82 | this.regexList = [
83 | { regex: new RegExp('--(.*)$', 'gm'), css: 'comments' }, // one line and multiline comments
84 | { regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, // single quoted strings
85 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
86 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
87 | { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // functions
88 | { regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // operators and such
89 | { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
90 | ];
91 | }
92 |
93 | Brush.prototype = new SyntaxHighlighter.Highlighter();
94 | Brush.aliases = ['coldfusion','cf'];
95 |
96 | SyntaxHighlighter.brushes.ColdFusion = Brush;
97 |
98 | // CommonJS
99 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
100 | })();
101 |
--------------------------------------------------------------------------------
/scripts/shBrushCpp.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | ;(function()
18 | {
19 | // CommonJS
20 | SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21 |
22 | function Brush()
23 | {
24 | // Copyright 2006 Shin, YoungJin
25 |
26 | var datatypes = 'ATOM BOOL BOOLEAN BYTE CHAR COLORREF DWORD DWORDLONG DWORD_PTR ' +
27 | 'DWORD32 DWORD64 FLOAT HACCEL HALF_PTR HANDLE HBITMAP HBRUSH ' +
28 | 'HCOLORSPACE HCONV HCONVLIST HCURSOR HDC HDDEDATA HDESK HDROP HDWP ' +
29 | 'HENHMETAFILE HFILE HFONT HGDIOBJ HGLOBAL HHOOK HICON HINSTANCE HKEY ' +
30 | 'HKL HLOCAL HMENU HMETAFILE HMODULE HMONITOR HPALETTE HPEN HRESULT ' +
31 | 'HRGN HRSRC HSZ HWINSTA HWND INT INT_PTR INT32 INT64 LANGID LCID LCTYPE ' +
32 | 'LGRPID LONG LONGLONG LONG_PTR LONG32 LONG64 LPARAM LPBOOL LPBYTE LPCOLORREF ' +
33 | 'LPCSTR LPCTSTR LPCVOID LPCWSTR LPDWORD LPHANDLE LPINT LPLONG LPSTR LPTSTR ' +
34 | 'LPVOID LPWORD LPWSTR LRESULT PBOOL PBOOLEAN PBYTE PCHAR PCSTR PCTSTR PCWSTR ' +
35 | 'PDWORDLONG PDWORD_PTR PDWORD32 PDWORD64 PFLOAT PHALF_PTR PHANDLE PHKEY PINT ' +
36 | 'PINT_PTR PINT32 PINT64 PLCID PLONG PLONGLONG PLONG_PTR PLONG32 PLONG64 POINTER_32 ' +
37 | 'POINTER_64 PSHORT PSIZE_T PSSIZE_T PSTR PTBYTE PTCHAR PTSTR PUCHAR PUHALF_PTR ' +
38 | 'PUINT PUINT_PTR PUINT32 PUINT64 PULONG PULONGLONG PULONG_PTR PULONG32 PULONG64 ' +
39 | 'PUSHORT PVOID PWCHAR PWORD PWSTR SC_HANDLE SC_LOCK SERVICE_STATUS_HANDLE SHORT ' +
40 | 'SIZE_T SSIZE_T TBYTE TCHAR UCHAR UHALF_PTR UINT UINT_PTR UINT32 UINT64 ULONG ' +
41 | 'ULONGLONG ULONG_PTR ULONG32 ULONG64 USHORT USN VOID WCHAR WORD WPARAM WPARAM WPARAM ' +
42 | 'char char16_t char32_t bool short int __int32 __int64 __int8 __int16 long float double __wchar_t ' +
43 | 'clock_t _complex _dev_t _diskfree_t div_t ldiv_t _exception _EXCEPTION_POINTERS ' +
44 | 'FILE _finddata_t _finddatai64_t _wfinddata_t _wfinddatai64_t __finddata64_t ' +
45 | '__wfinddata64_t _FPIEEE_RECORD fpos_t _HEAPINFO _HFILE lconv intptr_t ' +
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 continue private public protected __declspec ' +
53 | 'default delete deprecated dllexport dllimport do dynamic_cast ' +
54 | 'else enum explicit extern if for friend goto inline ' +
55 | 'mutable naked namespace new noinline noreturn nothrow noexcept nullptr ' +
56 | 'ref register reinterpret_cast return selectany ' +
57 | 'sizeof static static_cast static_assert struct switch template this ' +
58 | 'thread thread_local throw true false try typedef typeid typename union ' +
59 | 'using uuid virtual void volatile whcar_t while';
60 |
61 | var functions = 'assert isalnum isalpha iscntrl isdigit isgraph islower isprint' +
62 | 'ispunct isspace isupper isxdigit tolower toupper errno localeconv ' +
63 | 'setlocale acos asin atan atan2 ceil cos cosh exp fabs floor fmod ' +
64 | 'frexp ldexp log log10 modf pow sin sinh sqrt tan tanh jmp_buf ' +
65 | 'longjmp setjmp raise signal sig_atomic_t va_arg va_end va_start ' +
66 | 'clearerr fclose feof ferror fflush fgetc fgetpos fgets fopen ' +
67 | 'fprintf fputc fputs fread freopen fscanf fseek fsetpos ftell ' +
68 | 'fwrite getc getchar gets perror printf putc putchar puts remove ' +
69 | 'rename rewind scanf setbuf setvbuf sprintf sscanf tmpfile tmpnam ' +
70 | 'ungetc vfprintf vprintf vsprintf abort abs atexit atof atoi atol ' +
71 | 'bsearch calloc div exit free getenv labs ldiv malloc mblen mbstowcs ' +
72 | 'mbtowc qsort rand realloc srand strtod strtol strtoul system ' +
73 | 'wcstombs wctomb memchr memcmp memcpy memmove memset strcat strchr ' +
74 | 'strcmp strcoll strcpy strcspn strerror strlen strncat strncmp ' +
75 | 'strncpy strpbrk strrchr strspn strstr strtok strxfrm asctime ' +
76 | 'clock ctime difftime gmtime localtime mktime strftime time';
77 |
78 | this.regexList = [
79 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
80 | { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
81 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
82 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
83 | { regex: /^ *#.*/gm, css: 'preprocessor' },
84 | { regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'color1 bold' },
85 | { regex: new RegExp(this.getKeywords(functions), 'gm'), css: 'functions bold' },
86 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword bold' }
87 | ];
88 | };
89 |
90 | Brush.prototype = new SyntaxHighlighter.Highlighter();
91 | Brush.aliases = ['cpp', 'cc', 'c++', 'c', 'h', 'hpp', 'h++'];
92 |
93 | SyntaxHighlighter.brushes.Cpp = Brush;
94 |
95 | // CommonJS
96 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
97 | })();
98 |
--------------------------------------------------------------------------------
/scripts/shBrushCss.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | ;(function()
18 | {
19 | // CommonJS
20 | SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21 |
22 | function Brush()
23 | {
24 | function getKeywordsCSS(str)
25 | {
26 | return '\\b([a-z_]|)' + str.replace(/ /g, '(?=:)\\b|\\b([a-z_\\*]|\\*|)') + '(?=:)\\b';
27 | };
28 |
29 | function getValuesCSS(str)
30 | {
31 | return '\\b' + str.replace(/ /g, '(?!-)(?!:)\\b|\\b()') + '\:\\b';
32 | };
33 |
34 | var keywords = 'ascent azimuth background-attachment background-color background-image background-position ' +
35 | 'background-repeat background baseline bbox border-collapse border-color border-spacing border-style border-top ' +
36 | 'border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color ' +
37 | 'border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width ' +
38 | 'border-bottom-width border-left-width border-width border bottom cap-height caption-side centerline clear clip color ' +
39 | 'content counter-increment counter-reset cue-after cue-before cue cursor definition-src descent direction display ' +
40 | 'elevation empty-cells float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font ' +
41 | 'height left letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top ' +
42 | 'margin-right margin-bottom margin-left margin marker-offset marks mathline max-height max-width min-height min-width orphans ' +
43 | 'outline-color outline-style outline-width outline overflow padding-top padding-right padding-bottom padding-left padding page ' +
44 | 'page-break-after page-break-before page-break-inside pause pause-after pause-before pitch pitch-range play-during position ' +
45 | 'quotes right richness size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress ' +
46 | 'table-layout text-align top text-decoration text-indent text-shadow text-transform unicode-bidi unicode-range units-per-em ' +
47 | 'vertical-align visibility voice-family volume white-space widows width widths word-spacing x-height z-index';
48 |
49 | var values = 'above absolute all always aqua armenian attr aural auto avoid baseline behind below bidi-override black blink block blue bold bolder '+
50 | 'both bottom braille capitalize caption center center-left center-right circle close-quote code collapse compact condensed '+
51 | 'continuous counter counters crop cross crosshair cursive dashed decimal decimal-leading-zero default digits disc dotted double '+
52 | 'embed embossed e-resize expanded extra-condensed extra-expanded fantasy far-left far-right fast faster fixed format fuchsia '+
53 | 'gray green groove handheld hebrew help hidden hide high higher icon inline-table inline inset inside invert italic '+
54 | 'justify landscape large larger left-side left leftwards level lighter lime line-through list-item local loud lower-alpha '+
55 | 'lowercase lower-greek lower-latin lower-roman lower low ltr marker maroon medium message-box middle mix move narrower '+
56 | 'navy ne-resize no-close-quote none no-open-quote no-repeat normal nowrap n-resize nw-resize oblique olive once open-quote outset '+
57 | 'outside overline pointer portrait pre print projection purple red relative repeat repeat-x repeat-y rgb ridge right right-side '+
58 | 'rightwards rtl run-in screen scroll semi-condensed semi-expanded separate se-resize show silent silver slower slow '+
59 | 'small small-caps small-caption smaller soft solid speech spell-out square s-resize static status-bar sub super sw-resize '+
60 | 'table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group teal '+
61 | 'text-bottom text-top thick thin top transparent tty tv ultra-condensed ultra-expanded underline upper-alpha uppercase upper-latin '+
62 | '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';
63 |
64 | var fonts = '[mM]onospace [tT]ahoma [vV]erdana [aA]rial [hH]elvetica [sS]ans-serif [sS]erif [cC]ourier mono sans serif';
65 |
66 | this.regexList = [
67 | { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
68 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
69 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
70 | { regex: /\#[a-fA-F0-9]{3,6}/g, css: 'value' }, // html colors
71 | { regex: /(-?\d+)(\.\d+)?(px|em|pt|\:|\%|)/g, css: 'value' }, // sizes
72 | { regex: /!important/g, css: 'color3' }, // !important
73 | { regex: new RegExp(getKeywordsCSS(keywords), 'gm'), css: 'keyword' }, // keywords
74 | { regex: new RegExp(getValuesCSS(values), 'g'), css: 'value' }, // values
75 | { regex: new RegExp(this.getKeywords(fonts), 'g'), css: 'color1' } // fonts
76 | ];
77 |
78 | this.forHtmlScript({
79 | left: /(<|<)\s*style.*?(>|>)/gi,
80 | right: /(<|<)\/\s*style\s*(>|>)/gi
81 | });
82 | };
83 |
84 | Brush.prototype = new SyntaxHighlighter.Highlighter();
85 | Brush.aliases = ['css'];
86 |
87 | SyntaxHighlighter.brushes.CSS = Brush;
88 |
89 | // CommonJS
90 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
91 | })();
92 |
--------------------------------------------------------------------------------
/scripts/shBrushDelphi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | ;(function()
18 | {
19 | // CommonJS
20 | SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21 |
22 | function Brush()
23 | {
24 | var keywords = 'abs addr and ansichar ansistring array as asm begin boolean byte cardinal ' +
25 | 'case char class comp const constructor currency destructor div do double ' +
26 | 'downto else end except exports extended false file finalization finally ' +
27 | 'for function goto if implementation in inherited int64 initialization ' +
28 | 'integer interface is label library longint longword mod nil not object ' +
29 | 'of on or packed pansichar pansistring pchar pcurrency pdatetime pextended ' +
30 | 'pint64 pointer private procedure program property pshortstring pstring ' +
31 | 'pvariant pwidechar pwidestring protected public published raise real real48 ' +
32 | 'record repeat set shl shortint shortstring shr single smallint string then ' +
33 | 'threadvar to true try type unit until uses val var varirnt while widechar ' +
34 | 'widestring with word write writeln xor';
35 |
36 | this.regexList = [
37 | { regex: /\(\*[\s\S]*?\*\)/gm, css: 'comments' }, // multiline comments (* *)
38 | { regex: /{(?!\$)[\s\S]*?}/gm, css: 'comments' }, // multiline comments { }
39 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line
40 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
41 | { regex: /\{\$[a-zA-Z]+ .+\}/g, css: 'color1' }, // compiler Directives and Region tags
42 | { regex: /\b[\d\.]+\b/g, css: 'value' }, // numbers 12345
43 | { regex: /\$[a-zA-Z0-9]+\b/g, css: 'value' }, // numbers $F5D3
44 | { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
45 | ];
46 | };
47 |
48 | Brush.prototype = new SyntaxHighlighter.Highlighter();
49 | Brush.aliases = ['delphi', 'pascal', 'pas'];
50 |
51 | SyntaxHighlighter.brushes.Delphi = Brush;
52 |
53 | // CommonJS
54 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
55 | })();
56 |
--------------------------------------------------------------------------------
/scripts/shBrushDiff.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | ;(function()
18 | {
19 | // CommonJS
20 | SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21 |
22 | function Brush()
23 | {
24 | this.regexList = [
25 | { regex: /^\+\+\+ .*$/gm, css: 'color2' }, // new file
26 | { regex: /^\-\-\- .*$/gm, css: 'color2' }, // old file
27 | { regex: /^\s.*$/gm, css: 'color1' }, // unchanged
28 | { regex: /^@@.*@@.*$/gm, css: 'variable' }, // location
29 | { regex: /^\+.*$/gm, css: 'string' }, // additions
30 | { regex: /^\-.*$/gm, css: 'color3' } // deletions
31 | ];
32 | };
33 |
34 | Brush.prototype = new SyntaxHighlighter.Highlighter();
35 | Brush.aliases = ['diff', 'patch'];
36 |
37 | SyntaxHighlighter.brushes.Diff = Brush;
38 |
39 | // CommonJS
40 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
41 | })();
42 |
--------------------------------------------------------------------------------
/scripts/shBrushErlang.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | ;(function()
18 | {
19 | // CommonJS
20 | SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21 |
22 | function Brush()
23 | {
24 | // Contributed by Jean-Lou Dupont
25 | // http://jldupont.blogspot.com/2009/06/erlang-syntax-highlighter.html
26 |
27 | // According to: http://erlang.org/doc/reference_manual/introduction.html#1.5
28 | var keywords = 'after and andalso band begin bnot bor bsl bsr bxor '+
29 | 'case catch cond div end fun if let not of or orelse '+
30 | 'query receive rem try when xor'+
31 | // additional
32 | ' module export import define';
33 |
34 | this.regexList = [
35 | { regex: new RegExp("[A-Z][A-Za-z0-9_]+", 'g'), css: 'constants' },
36 | { regex: new RegExp("\\%.+", 'gm'), css: 'comments' },
37 | { regex: new RegExp("\\?[A-Za-z0-9_]+", 'g'), css: 'preprocessor' },
38 | { regex: new RegExp("[a-z0-9_]+:[a-z0-9_]+", 'g'), css: 'functions' },
39 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
40 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
41 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
42 | ];
43 | };
44 |
45 | Brush.prototype = new SyntaxHighlighter.Highlighter();
46 | Brush.aliases = ['erl', 'erlang'];
47 |
48 | SyntaxHighlighter.brushes.Erlang = Brush;
49 |
50 | // CommonJS
51 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
52 | })();
53 |
--------------------------------------------------------------------------------
/scripts/shBrushGroovy.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | ;(function()
18 | {
19 | // CommonJS
20 | SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21 |
22 | function Brush()
23 | {
24 | // Contributed by Andres Almiray
25 | // http://jroller.com/aalmiray/entry/nice_source_code_syntax_highlighter
26 |
27 | var keywords = 'as assert break case catch class continue def default do else extends finally ' +
28 | 'if in implements import instanceof interface new package property return switch ' +
29 | 'throw throws try while public protected private static';
30 | var types = 'void boolean byte char short int long float double';
31 | var constants = 'null';
32 | var methods = 'allProperties count get size '+
33 | 'collect each eachProperty eachPropertyName eachWithIndex find findAll ' +
34 | 'findIndexOf grep inject max min reverseEach sort ' +
35 | 'asImmutable asSynchronized flatten intersect join pop reverse subMap toList ' +
36 | 'padRight padLeft contains eachMatch toCharacter toLong toUrl tokenize ' +
37 | 'eachFile eachFileRecurse eachB yte eachLine readBytes readLine getText ' +
38 | 'splitEachLine withReader append encodeBase64 decodeBase64 filterLine ' +
39 | 'transformChar transformLine withOutputStream withPrintWriter withStream ' +
40 | 'withStreams withWriter withWriterAppend write writeLine '+
41 | 'dump inspect invokeMethod print println step times upto use waitForOrKill '+
42 | 'getText';
43 |
44 | this.regexList = [
45 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
46 | { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
47 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
48 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
49 | { regex: /""".*"""/g, css: 'string' }, // GStrings
50 | { regex: new RegExp('\\b([\\d]+(\\.[\\d]+)?|0x[a-f0-9]+)\\b', 'gi'), css: 'value' }, // numbers
51 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // goovy keyword
52 | { regex: new RegExp(this.getKeywords(types), 'gm'), css: 'color1' }, // goovy/java type
53 | { regex: new RegExp(this.getKeywords(constants), 'gm'), css: 'constants' }, // constants
54 | { regex: new RegExp(this.getKeywords(methods), 'gm'), css: 'functions' } // methods
55 | ];
56 |
57 | this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
58 | }
59 |
60 | Brush.prototype = new SyntaxHighlighter.Highlighter();
61 | Brush.aliases = ['groovy'];
62 |
63 | SyntaxHighlighter.brushes.Groovy = Brush;
64 |
65 | // CommonJS
66 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
67 | })();
68 |
--------------------------------------------------------------------------------
/scripts/shBrushHaxe.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | ;(function ()
18 | {
19 | // CommonJS
20 | SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21 |
22 | function Brush ()
23 | {
24 |
25 | var inits = 'class interface package macro enum typedef extends implements dynamic in for if while else do try switch case catch';
26 |
27 | var keywords = 'return break continue new throw cast using import function public private inline static untyped callback true false null Int Float String Void Std Bool Dynamic Array Vector';
28 |
29 | this.regexList = [
30 | { regex:SyntaxHighlighter.regexLib.singleLineCComments , css:'comments' },
31 | // one line comments
32 | { regex:SyntaxHighlighter.regexLib.multiLineCComments , css:'comments' },
33 | // multiline comments
34 | { regex:SyntaxHighlighter.regexLib.doubleQuotedString , css:'string' },
35 | // double quoted strings
36 | { regex:SyntaxHighlighter.regexLib.singleQuotedString , css:'string' },
37 | // single quoted strings
38 | { regex:/\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi , css:'value' },
39 | // numbers
40 | { regex:new RegExp ( this.getKeywords ( inits ) , 'gm' ) , css:'color3' },
41 | // initializations
42 | { regex:new RegExp ( this.getKeywords ( keywords ) , 'gm' ) , css:'keyword' },
43 | // keywords
44 | { regex:new RegExp ( 'var' , 'gm' ) , css:'variable' },
45 | // variable
46 | { regex:new RegExp ( 'trace' , 'gm' ) , css:'color1' },
47 | //compiler conditionals
48 | { regex:new RegExp ( '#if' , 'gm' ) , css:'comments' },
49 | { regex:new RegExp ( '#elseif' , 'gm' ) , css:'comments' },
50 | { regex:new RegExp ( '#end' , 'gm' ) , css:'comments' },
51 | { regex:new RegExp ( '#error' , 'gm' ) , css:'comments' }
52 | ];
53 |
54 | //standard compiler conditionals flags
55 | var flags = [
56 | "debug", "error", "cpp", "js", "neko", "php", "flash", "flash8", "flash9", "flash10", "flash10", "mobile", "desktop", "web", "ios", "android", "iphone"
57 | ];
58 |
59 | //append the flags to the array with a ! operator
60 | var i;
61 | var length = flags.length;
62 | for ( i = 0 ; i <= length - 1 ; i ++ )
63 | {
64 | this.regexList.push ( {regex:new RegExp ( flags[i] , 'gm' ) , css:'comments'} );
65 | this.regexList.push ( {regex:new RegExp ( '!' + flags[i] , 'gm' ) , css:'comments'} );
66 | }
67 |
68 | this.forHtmlScript ( SyntaxHighlighter.regexLib.scriptScriptTags );
69 | }
70 |
71 | ;
72 |
73 | Brush.prototype = new SyntaxHighlighter.Highlighter ();
74 | Brush.aliases = ['haxe', 'hx'];
75 |
76 | SyntaxHighlighter.brushes.Haxe = Brush;
77 |
78 | // CommonJS
79 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
80 | }) ();
81 |
--------------------------------------------------------------------------------
/scripts/shBrushJScript.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | ;(function()
18 | {
19 | // CommonJS
20 | SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21 |
22 | function Brush()
23 | {
24 | var keywords = 'break case catch class continue ' +
25 | 'default delete do else enum export extends false ' +
26 | 'for function if implements import in instanceof ' +
27 | 'interface let new null package private protected ' +
28 | 'static return super switch ' +
29 | 'this throw true try typeof var while with yield';
30 |
31 | var r = SyntaxHighlighter.regexLib;
32 |
33 | this.regexList = [
34 | { regex: r.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings
35 | { regex: r.multiLineSingleQuotedString, css: 'string' }, // single quoted strings
36 | { regex: r.singleLineCComments, css: 'comments' }, // one line comments
37 | { regex: r.multiLineCComments, css: 'comments' }, // multiline comments
38 | { regex: /\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
39 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords
40 | ];
41 |
42 | this.forHtmlScript(r.scriptScriptTags);
43 | };
44 |
45 | Brush.prototype = new SyntaxHighlighter.Highlighter();
46 | Brush.aliases = ['js', 'jscript', 'javascript', 'json'];
47 |
48 | SyntaxHighlighter.brushes.JScript = Brush;
49 |
50 | // CommonJS
51 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
52 | })();
53 |
--------------------------------------------------------------------------------
/scripts/shBrushJava.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | ;(function()
18 | {
19 | // CommonJS
20 | SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21 |
22 | function Brush()
23 | {
24 | var keywords = 'abstract assert boolean break byte case catch char class const ' +
25 | 'continue default do double else enum extends ' +
26 | 'false final finally float for goto if implements import ' +
27 | 'instanceof int interface long native new null ' +
28 | 'package private protected public return ' +
29 | 'short static strictfp super switch synchronized this throw throws true ' +
30 | 'transient try void volatile while';
31 |
32 | this.regexList = [
33 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
34 | { regex: /\/\*([^\*][\s\S]*?)?\*\//gm, css: 'comments' }, // multiline comments
35 | { regex: /\/\*(?!\*\/)\*[\s\S]*?\*\//gm, css: 'preprocessor' }, // documentation comments
36 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
37 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
38 | { regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers
39 | { regex: /(?!\@interface\b)\@[\$\w]+\b/g, css: 'color1' }, // annotation @anno
40 | { regex: /\@interface\b/g, css: 'color2' }, // @interface keyword
41 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // java keyword
42 | ];
43 |
44 | this.forHtmlScript({
45 | left : /(<|<)%[@!=]?/g,
46 | right : /%(>|>)/g
47 | });
48 | };
49 |
50 | Brush.prototype = new SyntaxHighlighter.Highlighter();
51 | Brush.aliases = ['java'];
52 |
53 | SyntaxHighlighter.brushes.Java = Brush;
54 |
55 | // CommonJS
56 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
57 | })();
58 |
--------------------------------------------------------------------------------
/scripts/shBrushJavaFX.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | ;(function()
18 | {
19 | // CommonJS
20 | SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21 |
22 | function Brush()
23 | {
24 | // Contributed by Patrick Webster
25 | // http://patrickwebster.blogspot.com/2009/04/javafx-brush-for-syntaxhighlighter.html
26 | var datatypes = 'Boolean Byte Character Double Duration '
27 | + 'Float Integer Long Number Short String Void'
28 | ;
29 |
30 | var keywords = 'abstract after and as assert at before bind bound break catch class '
31 | + 'continue def delete else exclusive extends false finally first for from '
32 | + 'function if import in indexof init insert instanceof into inverse last '
33 | + 'lazy mixin mod nativearray new not null on or override package postinit '
34 | + 'protected public public-init public-read replace return reverse sizeof '
35 | + 'step super then this throw true try tween typeof var where while with '
36 | + 'attribute let private readonly static trigger'
37 | ;
38 |
39 | this.regexList = [
40 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' },
41 | { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' },
42 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
43 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
44 | { regex: /(-?\.?)(\b(\d*\.?\d+|\d+\.?\d*)(e[+-]?\d+)?|0x[a-f\d]+)\b\.?/gi, css: 'color2' }, // numbers
45 | { regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'variable' }, // datatypes
46 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
47 | ];
48 | this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
49 | };
50 |
51 | Brush.prototype = new SyntaxHighlighter.Highlighter();
52 | Brush.aliases = ['jfx', 'javafx'];
53 |
54 | SyntaxHighlighter.brushes.JavaFX = Brush;
55 |
56 | // CommonJS
57 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
58 | })();
59 |
--------------------------------------------------------------------------------
/scripts/shBrushPerl.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | ;(function()
18 | {
19 | // CommonJS
20 | SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21 |
22 | function Brush()
23 | {
24 | // Contributed by David Simmons-Duffin and Marty Kube
25 |
26 | var funcs =
27 | 'abs accept alarm atan2 bind binmode chdir chmod chomp chop chown chr ' +
28 | 'chroot close closedir connect cos crypt defined delete each endgrent ' +
29 | 'endhostent endnetent endprotoent endpwent endservent eof exec exists ' +
30 | 'exp fcntl fileno flock fork format formline getc getgrent getgrgid ' +
31 | 'getgrnam gethostbyaddr gethostbyname gethostent getlogin getnetbyaddr ' +
32 | 'getnetbyname getnetent getpeername getpgrp getppid getpriority ' +
33 | 'getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid ' +
34 | 'getservbyname getservbyport getservent getsockname getsockopt glob ' +
35 | 'gmtime grep hex index int ioctl join keys kill lc lcfirst length link ' +
36 | 'listen localtime lock log lstat map mkdir msgctl msgget msgrcv msgsnd ' +
37 | 'oct open opendir ord pack pipe pop pos print printf prototype push ' +
38 | 'quotemeta rand read readdir readline readlink readpipe recv rename ' +
39 | 'reset reverse rewinddir rindex rmdir scalar seek seekdir select semctl ' +
40 | 'semget semop send setgrent sethostent setnetent setpgrp setpriority ' +
41 | 'setprotoent setpwent setservent setsockopt shift shmctl shmget shmread ' +
42 | 'shmwrite shutdown sin sleep socket socketpair sort splice split sprintf ' +
43 | 'sqrt srand stat study substr symlink syscall sysopen sysread sysseek ' +
44 | 'system syswrite tell telldir time times tr truncate uc ucfirst umask ' +
45 | 'undef unlink unpack unshift utime values vec wait waitpid warn write ' +
46 | // feature
47 | 'say';
48 |
49 | var keywords =
50 | 'bless caller continue dbmclose dbmopen die do dump else elsif eval exit ' +
51 | 'for foreach goto if import last local my next no our package redo ref ' +
52 | 'require return sub tie tied unless untie until use wantarray while ' +
53 | // feature
54 | 'given when default ' +
55 | // Try::Tiny
56 | 'try catch finally ' +
57 | // Moose
58 | 'has extends with before after around override augment';
59 |
60 | this.regexList = [
61 | { regex: /(<<|<<)((\w+)|(['"])(.+?)\4)[\s\S]+?\n\3\5\n/g, css: 'string' }, // here doc (maybe html encoded)
62 | { regex: /#.*$/gm, css: 'comments' },
63 | { regex: /^#!.*\n/g, css: 'preprocessor' }, // shebang
64 | { regex: /-?\w+(?=\s*=(>|>))/g, css: 'string' }, // fat comma
65 |
66 | // is this too much?
67 | { regex: /\bq[qwxr]?\([\s\S]*?\)/g, css: 'string' }, // quote-like operators ()
68 | { regex: /\bq[qwxr]?\{[\s\S]*?\}/g, css: 'string' }, // quote-like operators {}
69 | { regex: /\bq[qwxr]?\[[\s\S]*?\]/g, css: 'string' }, // quote-like operators []
70 | { regex: /\bq[qwxr]?(<|<)[\s\S]*?(>|>)/g, css: 'string' }, // quote-like operators <>
71 | { regex: /\bq[qwxr]?([^\w({<[])[\s\S]*?\1/g, css: 'string' }, // quote-like operators non-paired
72 |
73 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
74 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
75 | // currently ignoring single quote package separator and utf8 names
76 | { regex: /(?:&|[$@%*]|\$#)\$?[a-zA-Z_](\w+|::)*/g, css: 'variable' },
77 | { regex: /\b__(?:END|DATA)__\b[\s\S]*$/g, css: 'comments' },
78 |
79 | // don't capture the newline after =cut so that =cut\n\n=head1 will start a new pod section
80 | { regex: /(^|\n)=\w[\s\S]*?(\n=cut\s*(?=\n)|$)/g, css: 'comments' }, // pod
81 |
82 | { regex: new RegExp(this.getKeywords(funcs), 'gm'), css: 'functions' },
83 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
84 | ];
85 |
86 | this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
87 | }
88 |
89 | Brush.prototype = new SyntaxHighlighter.Highlighter();
90 | Brush.aliases = ['perl', 'Perl', 'pl'];
91 |
92 | SyntaxHighlighter.brushes.Perl = Brush;
93 |
94 | // CommonJS
95 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
96 | })();
97 |
--------------------------------------------------------------------------------
/scripts/shBrushPhp.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | ;(function()
18 | {
19 | // CommonJS
20 | SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21 |
22 | function Brush()
23 | {
24 | var funcs = 'abs acos acosh addcslashes addslashes ' +
25 | 'array_change_key_case array_chunk array_combine array_count_values array_diff '+
26 | 'array_diff_assoc array_diff_key array_diff_uassoc array_diff_ukey array_fill '+
27 | 'array_filter array_flip array_intersect array_intersect_assoc array_intersect_key '+
28 | 'array_intersect_uassoc array_intersect_ukey array_key_exists array_keys array_map '+
29 | 'array_merge array_merge_recursive array_multisort array_pad array_pop array_product '+
30 | 'array_push array_rand array_reduce array_reverse array_search array_shift '+
31 | 'array_slice array_splice array_sum array_udiff array_udiff_assoc '+
32 | 'array_udiff_uassoc array_uintersect array_uintersect_assoc '+
33 | 'array_uintersect_uassoc array_unique array_unshift array_values array_walk '+
34 | 'array_walk_recursive atan atan2 atanh base64_decode base64_encode base_convert '+
35 | 'basename bcadd bccomp bcdiv bcmod bcmul bindec bindtextdomain bzclose bzcompress '+
36 | 'bzdecompress bzerrno bzerror bzerrstr bzflush bzopen bzread bzwrite ceil chdir '+
37 | 'checkdate checkdnsrr chgrp chmod chop chown chr chroot chunk_split class_exists '+
38 | 'closedir closelog copy cos cosh count count_chars date decbin dechex decoct '+
39 | 'deg2rad delete ebcdic2ascii echo empty end ereg ereg_replace eregi eregi_replace error_log '+
40 | 'error_reporting escapeshellarg escapeshellcmd eval exec exit exp explode extension_loaded '+
41 | 'feof fflush fgetc fgetcsv fgets fgetss file_exists file_get_contents file_put_contents '+
42 | 'fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype '+
43 | 'floatval flock floor flush fmod fnmatch fopen fpassthru fprintf fputcsv fputs fread fscanf '+
44 | 'fseek fsockopen fstat ftell ftok getallheaders getcwd getdate getenv gethostbyaddr gethostbyname '+
45 | 'gethostbynamel getimagesize getlastmod getmxrr getmygid getmyinode getmypid getmyuid getopt '+
46 | 'getprotobyname getprotobynumber getrandmax getrusage getservbyname getservbyport gettext '+
47 | 'gettimeofday gettype glob gmdate gmmktime ini_alter ini_get ini_get_all ini_restore ini_set '+
48 | 'interface_exists intval ip2long is_a is_array is_bool is_callable is_dir is_double '+
49 | 'is_executable is_file is_finite is_float is_infinite is_int is_integer is_link is_long '+
50 | 'is_nan is_null is_numeric is_object is_readable is_real is_resource is_scalar is_soap_fault '+
51 | 'is_string is_subclass_of is_uploaded_file is_writable is_writeable mkdir mktime nl2br '+
52 | 'parse_ini_file parse_str parse_url passthru pathinfo print readlink realpath rewind rewinddir rmdir '+
53 | 'round str_ireplace str_pad str_repeat str_replace str_rot13 str_shuffle str_split '+
54 | 'str_word_count strcasecmp strchr strcmp strcoll strcspn strftime strip_tags stripcslashes '+
55 | 'stripos stripslashes stristr strlen strnatcasecmp strnatcmp strncasecmp strncmp strpbrk '+
56 | 'strpos strptime strrchr strrev strripos strrpos strspn strstr strtok strtolower strtotime '+
57 | 'strtoupper strtr strval substr substr_compare';
58 |
59 | var keywords = 'abstract and array as break case catch cfunction class clone const continue declare default die do ' +
60 | 'else elseif enddeclare endfor endforeach endif endswitch endwhile extends final finally for foreach ' +
61 | 'function global goto if implements include include_once interface instanceof insteadof namespace new ' +
62 | 'old_function or private protected public return require require_once static switch ' +
63 | 'trait throw try use var while xor yield ';
64 |
65 | var constants = '__FILE__ __LINE__ __METHOD__ __FUNCTION__ __CLASS__';
66 |
67 | this.regexList = [
68 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
69 | { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
70 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
71 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
72 | { regex: /\$\w+/g, css: 'variable' }, // variables
73 | { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // common functions
74 | { regex: new RegExp(this.getKeywords(constants), 'gmi'), css: 'constants' }, // constants
75 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keyword
76 | ];
77 |
78 | this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
79 | };
80 |
81 | Brush.prototype = new SyntaxHighlighter.Highlighter();
82 | Brush.aliases = ['php'];
83 |
84 | SyntaxHighlighter.brushes.Php = Brush;
85 |
86 | // CommonJS
87 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
88 | })();
89 |
--------------------------------------------------------------------------------
/scripts/shBrushPlain.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | ;(function()
18 | {
19 | // CommonJS
20 | SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21 |
22 | function Brush()
23 | {
24 | };
25 |
26 | Brush.prototype = new SyntaxHighlighter.Highlighter();
27 | Brush.aliases = ['text', 'plain'];
28 |
29 | SyntaxHighlighter.brushes.Plain = Brush;
30 |
31 | // CommonJS
32 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
33 | })();
34 |
--------------------------------------------------------------------------------
/scripts/shBrushPowerShell.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | ;(function()
18 | {
19 | // CommonJS
20 | SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21 |
22 | function Brush()
23 | {
24 | // Contributed by Joel 'Jaykul' Bennett, http://PoshCode.org | http://HuddledMasses.org
25 | var keywords = 'while validateset validaterange validatepattern validatelength validatecount ' +
26 | 'until trap switch return ref process param parameter in if global: '+
27 | 'function foreach for finally filter end elseif else dynamicparam do default ' +
28 | 'continue cmdletbinding break begin alias \\? % #script #private #local #global '+
29 | 'mandatory parametersetname position valuefrompipeline ' +
30 | 'valuefrompipelinebypropertyname valuefromremainingarguments helpmessage ';
31 |
32 | var operators = ' and as band bnot bor bxor casesensitive ccontains ceq cge cgt cle ' +
33 | 'clike clt cmatch cne cnotcontains cnotlike cnotmatch contains ' +
34 | 'creplace eq exact f file ge gt icontains ieq ige igt ile ilike ilt ' +
35 | 'imatch ine inotcontains inotlike inotmatch ireplace is isnot le like ' +
36 | 'lt match ne not notcontains notlike notmatch or regex replace wildcard';
37 |
38 | var verbs = 'write where wait use update unregister undo trace test tee take suspend ' +
39 | 'stop start split sort skip show set send select scroll resume restore ' +
40 | 'restart resolve resize reset rename remove register receive read push ' +
41 | 'pop ping out new move measure limit join invoke import group get format ' +
42 | 'foreach export expand exit enter enable disconnect disable debug cxnew ' +
43 | 'copy convertto convertfrom convert connect complete compare clear ' +
44 | 'checkpoint aggregate add';
45 |
46 | // I can't find a way to match the comment based help in multi-line comments, because SH won't highlight in highlights, and javascript doesn't support lookbehind
47 | var commenthelp = ' component description example externalhelp forwardhelpcategory forwardhelptargetname forwardhelptargetname functionality inputs link notes outputs parameter remotehelprunspace role synopsis';
48 |
49 | this.regexList = [
50 | { regex: new RegExp('^\\s*#[#\\s]*\\.('+this.getKeywords(commenthelp)+').*$', 'gim'), css: 'preprocessor help bold' }, // comment-based help
51 | { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments
52 | { regex: /(<|<)#[\s\S]*?#(>|>)/gm, css: 'comments here' }, // multi-line comments
53 |
54 | { regex: new RegExp('@"\\n[\\s\\S]*?\\n"@', 'gm'), css: 'script string here' }, // double quoted here-strings
55 | { regex: new RegExp("@'\\n[\\s\\S]*?\\n'@", 'gm'), css: 'script string single here' }, // single quoted here-strings
56 | { regex: new RegExp('"(?:\\$\\([^\\)]*\\)|[^"]|`"|"")*[^`]"','g'), css: 'string' }, // double quoted strings
57 | { regex: new RegExp("'(?:[^']|'')*'", 'g'), css: 'string single' }, // single quoted strings
58 |
59 | { regex: new RegExp('[\\$|@|@@](?:(?:global|script|private|env):)?[A-Z0-9_]+', 'gi'), css: 'variable' }, // $variables
60 | { regex: new RegExp('(?:\\b'+verbs.replace(/ /g, '\\b|\\b')+')-[a-zA-Z_][a-zA-Z0-9_]*', 'gmi'), css: 'functions' }, // functions and cmdlets
61 | { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' }, // keywords
62 | { regex: new RegExp('-'+this.getKeywords(operators), 'gmi'), css: 'operator value' }, // operators
63 | { regex: new RegExp('\\[[A-Z_\\[][A-Z0-9_. `,\\[\\]]*\\]', 'gi'), css: 'constants' }, // .Net [Type]s
64 | { regex: new RegExp('\\s+-(?!'+this.getKeywords(operators)+')[a-zA-Z_][a-zA-Z0-9_]*', 'gmi'), css: 'color1' }, // parameters
65 | ];
66 | };
67 |
68 | Brush.prototype = new SyntaxHighlighter.Highlighter();
69 | Brush.aliases = ['powershell', 'ps', 'posh'];
70 |
71 | SyntaxHighlighter.brushes.PowerShell = Brush;
72 |
73 | // CommonJS
74 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
75 | })();
76 |
--------------------------------------------------------------------------------
/scripts/shBrushPython.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | ;(function()
18 | {
19 | // CommonJS
20 | SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21 |
22 | function Brush()
23 | {
24 | // Contributed by Gheorghe Milas and Ahmad Sherif
25 |
26 | var keywords = 'and assert break class continue def del elif else ' +
27 | 'except exec finally for from global if import in is ' +
28 | 'lambda not or pass raise return try yield while';
29 |
30 | var funcs = '__import__ abs all any apply basestring bin bool buffer callable ' +
31 | 'chr classmethod cmp coerce compile complex delattr dict dir ' +
32 | 'divmod enumerate eval execfile file filter float format frozenset ' +
33 | 'getattr globals hasattr hash help hex id input int intern ' +
34 | 'isinstance issubclass iter len list locals long map max min next ' +
35 | 'object oct open ord pow print property range raw_input reduce ' +
36 | 'reload repr reversed round set setattr slice sorted staticmethod ' +
37 | 'str sum super tuple type type unichr unicode vars xrange zip';
38 |
39 | var special = 'None True False self cls class_';
40 |
41 | this.regexList = [
42 | { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' },
43 | { regex: /^\s*@\w+/gm, css: 'decorator' },
44 | { regex: /(['\"]{3})([^\1])*?\1/gm, css: 'comments' },
45 | { regex: /"(?!")(?:\.|\\\"|[^\""\n])*"/gm, css: 'string' },
46 | { regex: /'(?!')(?:\.|(\\\')|[^\''\n])*'/gm, css: 'string' },
47 | { regex: /\+|\-|\*|\/|\%|=|==/gm, css: 'keyword' },
48 | { regex: /\b\d+\.?\w*/g, css: 'value' },
49 | { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' },
50 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' },
51 | { regex: new RegExp(this.getKeywords(special), 'gm'), css: 'color1' }
52 | ];
53 |
54 | this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
55 | };
56 |
57 | Brush.prototype = new SyntaxHighlighter.Highlighter();
58 | Brush.aliases = ['py', 'python'];
59 |
60 | SyntaxHighlighter.brushes.Python = Brush;
61 |
62 | // CommonJS
63 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
64 | })();
65 |
--------------------------------------------------------------------------------
/scripts/shBrushRuby.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | ;(function()
18 | {
19 | // CommonJS
20 | SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21 |
22 | function Brush()
23 | {
24 | // Contributed by Erik Peterson.
25 |
26 | var keywords = 'alias and BEGIN begin break case class def define_method defined do each else elsif ' +
27 | 'END end ensure false for if in module new next nil not or raise redo rescue retry return ' +
28 | 'self super then throw true undef unless until when while yield';
29 |
30 | var builtins = 'Array Bignum Binding Class Continuation Dir Exception FalseClass File::Stat File Fixnum Fload ' +
31 | 'Hash Integer IO MatchData Method Module NilClass Numeric Object Proc Range Regexp String Struct::TMS Symbol ' +
32 | 'ThreadGroup Thread Time TrueClass';
33 |
34 | this.regexList = [
35 | { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments
36 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
37 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
38 | { regex: /\b[A-Z0-9_]+\b/g, css: 'constants' }, // constants
39 | { regex: /:[a-z][A-Za-z0-9_]*/g, css: 'color2' }, // symbols
40 | { regex: /(\$|@@|@)\w+/g, css: 'variable bold' }, // $global, @instance, and @@class variables
41 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
42 | { regex: new RegExp(this.getKeywords(builtins), 'gm'), css: 'color1' } // builtins
43 | ];
44 |
45 | this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
46 | };
47 |
48 | Brush.prototype = new SyntaxHighlighter.Highlighter();
49 | Brush.aliases = ['ruby', 'rails', 'ror', 'rb'];
50 |
51 | SyntaxHighlighter.brushes.Ruby = Brush;
52 |
53 | // CommonJS
54 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
55 | })();
56 |
--------------------------------------------------------------------------------
/scripts/shBrushSass.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | ;(function()
18 | {
19 | // CommonJS
20 | SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21 |
22 | function Brush()
23 | {
24 | function getKeywordsCSS(str)
25 | {
26 | return '\\b([a-z_]|)' + str.replace(/ /g, '(?=:)\\b|\\b([a-z_\\*]|\\*|)') + '(?=:)\\b';
27 | };
28 |
29 | function getValuesCSS(str)
30 | {
31 | return '\\b' + str.replace(/ /g, '(?!-)(?!:)\\b|\\b()') + '\:\\b';
32 | };
33 |
34 | function getKeywordsPrependedBy(keywords, by)
35 | {
36 | return '(?:' + keywords.replace(/^\s+|\s+$/g, '').replace(/\s+/g, '|' + by + '\\b').replace(/^/, by + '\\b') + ')\\b';
37 | }
38 |
39 | var keywords = 'ascent azimuth background-attachment background-color background-image background-position ' +
40 | 'background-repeat background baseline bbox border-collapse border-color border-spacing border-style border-top ' +
41 | 'border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color ' +
42 | 'border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width ' +
43 | 'border-bottom-width border-left-width border-width border bottom cap-height caption-side centerline clear clip color ' +
44 | 'content counter-increment counter-reset cue-after cue-before cue cursor definition-src descent direction display ' +
45 | 'elevation empty-cells float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font ' +
46 | 'height left letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top ' +
47 | 'margin-right margin-bottom margin-left margin marker-offset marks mathline max-height max-width min-height min-width orphans ' +
48 | 'outline-color outline-style outline-width outline overflow padding-top padding-right padding-bottom padding-left padding page ' +
49 | 'page-break-after page-break-before page-break-inside pause pause-after pause-before pitch pitch-range play-during position ' +
50 | 'quotes right richness size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress ' +
51 | 'table-layout text-align top text-decoration text-indent text-shadow text-transform unicode-bidi unicode-range units-per-em ' +
52 | 'vertical-align visibility voice-family volume white-space widows width widths word-spacing x-height z-index zoom';
53 |
54 | var values = 'above absolute all always aqua armenian attr aural auto avoid baseline behind below bidi-override black blink block blue bold bolder '+
55 | 'both bottom braille capitalize caption center center-left center-right circle close-quote code collapse compact condensed '+
56 | 'continuous counter counters crop cross crosshair cursive dashed decimal decimal-leading-zero digits disc dotted double '+
57 | 'embed embossed e-resize expanded extra-condensed extra-expanded fantasy far-left far-right fast faster fixed format fuchsia '+
58 | 'gray green groove handheld hebrew help hidden hide high higher icon inline-table inline inset inside invert italic '+
59 | 'justify landscape large larger left-side left leftwards level lighter lime line-through list-item local loud lower-alpha '+
60 | 'lowercase lower-greek lower-latin lower-roman lower low ltr marker maroon medium message-box middle mix move narrower '+
61 | 'navy ne-resize no-close-quote none no-open-quote no-repeat normal nowrap n-resize nw-resize oblique olive once open-quote outset '+
62 | 'outside overline pointer portrait pre print projection purple red relative repeat repeat-x repeat-y rgb ridge right right-side '+
63 | 'rightwards rtl run-in screen scroll semi-condensed semi-expanded separate se-resize show silent silver slower slow '+
64 | 'small small-caps small-caption smaller soft solid speech spell-out square s-resize static status-bar sub super sw-resize '+
65 | 'table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group teal '+
66 | 'text-bottom text-top thick thin top transparent tty tv ultra-condensed ultra-expanded underline upper-alpha uppercase upper-latin '+
67 | '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';
68 |
69 | var fonts = '[mM]onospace [tT]ahoma [vV]erdana [aA]rial [hH]elvetica [sS]ans-serif [sS]erif [cC]ourier mono sans serif';
70 |
71 | var statements = 'important default';
72 | var preprocessor = 'import extend debug warn if else for while mixin function include content media';
73 |
74 | var r = SyntaxHighlighter.regexLib;
75 |
76 | this.regexList = [
77 | { regex: r.multiLineCComments, css: 'comments' }, // multiline comments
78 | { regex: r.singleLineCComments, css: 'comments' }, // singleline comments
79 | { regex: r.doubleQuotedString, css: 'string' }, // double quoted strings
80 | { regex: r.singleQuotedString, css: 'string' }, // single quoted strings
81 | { regex: /\#[a-fA-F0-9]{3,6}/g, css: 'value' }, // html colors
82 | { regex: /\b(-?\d+)(\.\d+)?(px|em|rem|pt|\:|\%|)\b/g, css: 'value' }, // sizes
83 | { regex: /\$[\w-]+/g, css: 'variable' }, // variables
84 | { regex: new RegExp(getKeywordsPrependedBy(statements, '!'), 'g'), css: 'color3' }, // statements
85 | { regex: new RegExp(getKeywordsPrependedBy(preprocessor, '@'), 'g'), css: 'preprocessor' }, // preprocessor
86 | { regex: new RegExp(getKeywordsCSS(keywords), 'gm'), css: 'keyword' }, // keywords
87 | { regex: new RegExp(getValuesCSS(values), 'g'), css: 'value' }, // values
88 | { regex: new RegExp(this.getKeywords(fonts), 'g'), css: 'color1' } // fonts
89 | ];
90 | };
91 |
92 | Brush.prototype = new SyntaxHighlighter.Highlighter();
93 | Brush.aliases = ['sass', 'scss'];
94 |
95 | SyntaxHighlighter.brushes.Sass = Brush;
96 |
97 | // CommonJS
98 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
99 | })();
100 |
--------------------------------------------------------------------------------
/scripts/shBrushScala.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | ;(function()
18 | {
19 | // CommonJS
20 | SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21 |
22 | function Brush()
23 | {
24 | // Contributed by Yegor Jbanov and David Bernard.
25 |
26 | var keywords = 'val sealed case def true trait implicit forSome import match object null finally super ' +
27 | 'override try lazy for var catch throw type extends class while with new final yield abstract ' +
28 | 'else do if return protected private this package false';
29 |
30 | var keyops = '[_:=><%#@]+';
31 |
32 | this.regexList = [
33 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
34 | { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
35 | { regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // multi-line strings
36 | { regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double-quoted string
37 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
38 | { regex: /0x[a-f0-9]+|\d+(\.\d+)?/gi, css: 'value' }, // numbers
39 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
40 | { regex: new RegExp(keyops, 'gm'), css: 'keyword' } // scala keyword
41 | ];
42 | }
43 |
44 | Brush.prototype = new SyntaxHighlighter.Highlighter();
45 | Brush.aliases = ['scala'];
46 |
47 | SyntaxHighlighter.brushes.Scala = Brush;
48 |
49 | // CommonJS
50 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
51 | })();
52 |
--------------------------------------------------------------------------------
/scripts/shBrushSql.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | ;(function()
18 | {
19 | // CommonJS
20 | SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21 |
22 | function Brush()
23 | {
24 | var funcs = 'abs avg case cast coalesce convert count current_timestamp ' +
25 | 'current_user day isnull left lower month nullif replace right ' +
26 | 'session_user space substring sum system_user upper user year';
27 |
28 | var keywords = 'absolute action add after alter as asc at authorization begin bigint ' +
29 | 'binary bit by cascade char character check checkpoint close collate ' +
30 | 'column commit committed connect connection constraint contains continue ' +
31 | 'create cube current current_date current_time cursor database date ' +
32 | 'deallocate dec decimal declare default delete desc distinct double drop ' +
33 | 'dynamic else end end-exec escape except exec execute false fetch first ' +
34 | 'float for force foreign forward free from full function global goto grant ' +
35 | 'group grouping having hour ignore index inner insensitive insert instead ' +
36 | 'int integer intersect into is isolation key last level load local max min ' +
37 | 'minute modify move name national nchar next no numeric of off on only ' +
38 | 'open option order out output partial password precision prepare primary ' +
39 | 'prior privileges procedure public read real references relative repeatable ' +
40 | 'restrict return returns revoke rollback rollup rows rule schema scroll ' +
41 | 'second section select sequence serializable set size smallint static ' +
42 | 'statistics table temp temporary then time timestamp to top transaction ' +
43 | 'translation trigger true truncate uncommitted union unique update values ' +
44 | 'varchar varying view when where with work';
45 |
46 | var operators = 'all and any between cross in join like not null or outer some';
47 |
48 | this.regexList = [
49 | { regex: /--(.*)$/gm, css: 'comments' }, // one line comments
50 | { regex: /\/\*([^\*][\s\S]*?)?\*\//gm, css: 'comments' }, // multi line comments
51 | { regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings
52 | { regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // single quoted strings
53 | { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'color2' }, // functions
54 | { regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // operators and such
55 | { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
56 | ];
57 | };
58 |
59 | Brush.prototype = new SyntaxHighlighter.Highlighter();
60 | Brush.aliases = ['sql'];
61 |
62 | SyntaxHighlighter.brushes.Sql = Brush;
63 |
64 | // CommonJS
65 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
66 | })();
67 |
68 |
--------------------------------------------------------------------------------
/scripts/shBrushTAP.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | /**
18 | * SyntaxHighlighter
19 | * http://alexgorbatchev.com/SyntaxHighlighter
20 | *
21 | * @license
22 | * Dual licensed under the MIT and GPL licenses.
23 | */
24 | ;(function()
25 | {
26 | // CommonJS
27 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
28 |
29 | function Brush() {
30 | // Contributed by Chad Granum
31 | this.regexList = [
32 | // Plan
33 | { regex: new RegExp('^1..\\d+', 'gm'), css: 'plain bold italic' },
34 |
35 | // Match ok, not ok, and with test numbers
36 | { regex: new RegExp('^ok( \\d+)?', 'gm'), css: 'keyword' },
37 | { regex: new RegExp('^not ok( \\d+)?', 'gm'), css: 'color3 bold' },
38 |
39 | // Directives
40 | { regex: new RegExp('(?!^\\s*)#.*$', 'gm'), css: 'variable bold' },
41 |
42 | // Diagnostics
43 | { regex: new RegExp('^#.*$', 'gm'), css: 'comments bold' },
44 |
45 | // comments
46 | { regex: new RegExp('^(?!(not )?ok)[^1].*$', 'gm'), css: 'comments' },
47 |
48 | // Quoted items in messages
49 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
50 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
51 | ];
52 | }
53 |
54 | Brush.prototype = new SyntaxHighlighter.Highlighter();
55 | Brush.aliases = ['tap', 'Tap', 'TAP'];
56 |
57 | SyntaxHighlighter.brushes.TAP = Brush;
58 |
59 | // CommonJS
60 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
61 | })();
62 |
63 |
--------------------------------------------------------------------------------
/scripts/shBrushTypeScript.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | // Brush for the TypeScript language
18 | // Based on the JavaScript brush - shBrushJScript.js - with some minor alterations
19 |
20 | ; (function ()
21 | {
22 | // CommonJS
23 | SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
24 |
25 | function Brush()
26 | {
27 | var keywords = 'break case catch class continue ' +
28 | 'default delete do else enum export extends false ' +
29 | 'for function if implements import in instanceof ' +
30 | 'interface let new null package private protected ' +
31 | 'static return super switch ' +
32 | 'this throw true try typeof var while with yield' +
33 | ' any bool declare get module number public set string'; // TypeScript-specific, everything above is common with JavaScript
34 |
35 | var r = SyntaxHighlighter.regexLib;
36 |
37 | this.regexList = [
38 | { regex: r.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings
39 | { regex: r.multiLineSingleQuotedString, css: 'string' }, // single quoted strings
40 | { regex: r.singleLineCComments, css: 'comments' }, // one line comments
41 | { regex: r.multiLineCComments, css: 'comments' }, // multiline comments
42 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords
43 | ];
44 |
45 | this.forHtmlScript(r.scriptScriptTags);
46 | };
47 |
48 | Brush.prototype = new SyntaxHighlighter.Highlighter();
49 | Brush.aliases = ['ts', 'typescript'];
50 |
51 | SyntaxHighlighter.brushes.TypeScript = Brush;
52 |
53 | // CommonJS
54 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
55 | })();
56 |
--------------------------------------------------------------------------------
/scripts/shBrushVb.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | ;(function()
18 | {
19 | // CommonJS
20 | SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21 |
22 | function Brush()
23 | {
24 | var keywords = 'AddHandler AddressOf AndAlso Alias And Ansi As Assembly Auto ' +
25 | 'Boolean ByRef Byte ByVal Call Case Catch CBool CByte CChar CDate ' +
26 | 'CDec CDbl Char CInt Class CLng CObj Const CShort CSng CStr CType ' +
27 | 'Date Decimal Declare Default Delegate Dim DirectCast Do Double Each ' +
28 | 'Else ElseIf End Enum Erase Error Event Exit False Finally For Friend ' +
29 | 'Function Get GetType GoSub GoTo Handles If Implements Imports In ' +
30 | 'Inherits Integer Interface Is Let Lib Like Long Loop Me Mod Module ' +
31 | 'MustInherit MustOverride MyBase MyClass Namespace New Next Not Nothing ' +
32 | 'NotInheritable NotOverridable Object On Option Optional Or OrElse ' +
33 | 'Overloads Overridable Overrides ParamArray Preserve Private Property ' +
34 | 'Protected Public RaiseEvent ReadOnly ReDim REM RemoveHandler Resume ' +
35 | 'Return Select Set Shadows Shared Short Single Static Step Stop String ' +
36 | 'Structure Sub SyncLock Then Throw To True Try TypeOf Unicode Until ' +
37 | 'Variant When While With WithEvents WriteOnly Xor';
38 |
39 | this.regexList = [
40 | { regex: /'.*$/gm, css: 'comments' }, // one line comments
41 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
42 | { regex: /^\s*#.*$/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
43 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // vb keyword
44 | ];
45 |
46 | this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
47 | };
48 |
49 | Brush.prototype = new SyntaxHighlighter.Highlighter();
50 | Brush.aliases = ['vb', 'vbnet'];
51 |
52 | SyntaxHighlighter.brushes.Vb = Brush;
53 |
54 | // CommonJS
55 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
56 | })();
57 |
--------------------------------------------------------------------------------
/scripts/shBrushXml.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | ;(function()
18 | {
19 | // CommonJS
20 | SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21 |
22 | function Brush()
23 | {
24 | function process(match, regexInfo)
25 | {
26 | var constructor = SyntaxHighlighter.Match,
27 | code = match[0],
28 | tag = XRegExp.exec(code, XRegExp('(<|<)[\\s\\/\\?!]*(?[:\\w-\\.]+)', 'xg')),
29 | result = []
30 | ;
31 |
32 | if (match.attributes != null)
33 | {
34 | var attributes,
35 | pos = 0,
36 | regex = XRegExp('(? [\\w:.-]+)' +
37 | '\\s*=\\s*' +
38 | '(? ".*?"|\'.*?\'|\\w+)',
39 | 'xg');
40 |
41 | while ((attributes = XRegExp.exec(code, regex, pos)) != null)
42 | {
43 | result.push(new constructor(attributes.name, match.index + attributes.index, 'color1'));
44 | result.push(new constructor(attributes.value, match.index + attributes.index + attributes[0].indexOf(attributes.value), 'string'));
45 | pos = attributes.index + attributes[0].length;
46 | }
47 | }
48 |
49 | if (tag != null)
50 | result.push(
51 | new constructor(tag.name, match.index + tag[0].indexOf(tag.name), 'keyword')
52 | );
53 |
54 | return result;
55 | }
56 |
57 | this.regexList = [
58 | { regex: XRegExp('(\\<|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\\>|>)', 'gm'), css: 'color2' }, //
59 | { regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, //
60 | { regex: XRegExp('(<|<)[\\s\\/\\?!]*(\\w+)(?.*?)[\\s\\/\\?]*(>|>)', 'sg'), func: process }
61 | ];
62 | };
63 |
64 | Brush.prototype = new SyntaxHighlighter.Highlighter();
65 | Brush.aliases = ['xml', 'xhtml', 'xslt', 'html', 'plist'];
66 |
67 | SyntaxHighlighter.brushes.Xml = Brush;
68 |
69 | // CommonJS
70 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
71 | })();
72 |
--------------------------------------------------------------------------------
/scripts/shCore.min.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | var XRegExp;if(XRegExp=XRegExp||function(e){"use strict";function t(e,t,n){var r;for(r in c.prototype)c.prototype.hasOwnProperty(r)&&(e[r]=c.prototype[r]);return e.xregexp={captureNames:t,isNative:!!n},e}function n(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.extended?"x":"")+(e.sticky?"y":"")}function r(e,r,i){if(!c.isRegExp(e))throw new TypeError("type RegExp expected");var a=p.replace.call(n(e)+(r||""),E,"");return i&&(a=p.replace.call(a,RegExp("["+i+"]+","g"),"")),e=e.xregexp&&!e.xregexp.isNative?t(c(e.source,a),e.xregexp.captureNames?e.xregexp.captureNames.slice(0):null):t(RegExp(e.source,a),null,!0)}function i(e,t){var n=e.length;if(Array.prototype.lastIndexOf)return e.lastIndexOf(t);for(;n--;)if(e[n]===t)return n;return-1}function a(e,t){return Object.prototype.toString.call(e).toLowerCase()==="[object "+t+"]"}function l(e){return e=e||{},"all"===e||e.all?e={natives:!0,extensibility:!0}:a(e,"string")&&(e=c.forEach(e,/[^\s,]+/,function(e){this[e]=!0},{})),e}function s(e,t,n,r){var i,a,l=m.length,s=null;R=!0;try{for(;l--;)if(a=m[l],!("all"!==a.scope&&a.scope!==n||a.trigger&&!a.trigger.call(r))&&(a.pattern.lastIndex=t,i=d.exec.call(a.pattern,e),i&&i.index===t)){s={output:a.handler.call(r,i,n),match:i};break}}catch(o){throw o}finally{R=!1}return s}function o(e){c.addToken=g[e?"on":"off"],f.extensibility=e}function u(e){RegExp.prototype.exec=(e?d:p).exec,RegExp.prototype.test=(e?d:p).test,String.prototype.match=(e?d:p).match,String.prototype.replace=(e?d:p).replace,String.prototype.split=(e?d:p).split,f.natives=e}var c,g,h,f={natives:!1,extensibility:!1},p={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},d={},x={},m=[],v="default",b="class",y={"default":/^(?:\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|c[A-Za-z]|[\s\S])|\(\?[:=!]|[?*+]\?|{\d+(?:,\d*)?}\??)/,"class":/^(?:\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|c[A-Za-z]|[\s\S]))/},w=/\$(?:{([\w$]+)}|(\d\d?|[\s\S]))/g,E=/([\s\S])(?=[\s\S]*\1)/g,S=/^(?:[?*+]|{\d+(?:,\d*)?})\??/,N=p.exec.call(/()??/,"")[1]===e,H=RegExp.prototype.sticky!==e,R=!1,T="gim"+(H?"y":"");return c=function(n,i){if(c.isRegExp(n)){if(i!==e)throw new TypeError("can't supply flags when constructing one RegExp from another");return r(n)}if(R)throw Error("can't call the XRegExp constructor within token definition functions");var a,l,o,u=[],g=v,h={hasNamedCapture:!1,captureNames:[],hasFlag:function(e){return i.indexOf(e)>-1}},f=0;if(n=n===e?"":n+"",i=i===e?"":i+"",p.match.call(i,E))throw new SyntaxError("invalid duplicate regular expression flag");for(n=p.replace.call(n,/^\(\?([\w$]+)\)/,function(e,t){if(p.test.call(/[gy]/,t))throw new SyntaxError("can't use flag g or y in mode modifier");return i=p.replace.call(i+t,E,""),""}),c.forEach(i,/[\s\S]/,function(e){if(0>T.indexOf(e[0]))throw new SyntaxError("invalid regular expression flag "+e[0])});n.length>f;)a=s(n,f,g,h),a?(u.push(a.output),f+=a.match[0].length||1):(l=p.exec.call(y[g],n.slice(f)),l?(u.push(l[0]),f+=l[0].length):(o=n.charAt(f),"["===o?g=b:"]"===o&&(g=v),u.push(o),++f));return t(RegExp(u.join(""),p.replace.call(i,/[^gimy]+/g,"")),h.hasNamedCapture?h.captureNames:null)},g={on:function(e,t,n){n=n||{},e&&m.push({pattern:r(e,"g"+(H?"y":"")),handler:t,scope:n.scope||v,trigger:n.trigger||null}),n.customFlags&&(T=p.replace.call(T+n.customFlags,E,""))},off:function(){throw Error("extensibility must be installed before using addToken")}},c.addToken=g.off,c.cache=function(e,t){var n=e+"/"+(t||"");return x[n]||(x[n]=c(e,t))},c.escape=function(e){return p.replace.call(e,/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},c.exec=function(e,t,n,i){var a,l=r(t,"g"+(i&&H?"y":""),i===!1?"y":"");return l.lastIndex=n=n||0,a=d.exec.call(l,e),i&&a&&a.index!==n&&(a=null),t.global&&(t.lastIndex=a?l.lastIndex:0),a},c.forEach=function(e,t,n,r){for(var i,a=0,l=-1;i=c.exec(e,t,a);)n.call(r,i,++l,e,t),a=i.index+(i[0].length||1);return r},c.globalize=function(e){return r(e,"g")},c.install=function(e){e=l(e),!f.natives&&e.natives&&u(!0),!f.extensibility&&e.extensibility&&o(!0)},c.isInstalled=function(e){return!!f[e]},c.isRegExp=function(e){return a(e,"regexp")},c.matchChain=function(e,t){return function n(e,r){var i,a=t[r].regex?t[r]:{regex:t[r]},l=[],s=function(e){l.push(a.backref?e[a.backref]||"":e[0])};for(i=0;e.length>i;++i)c.forEach(e[i],a.regex,s);return r!==t.length-1&&l.length?n(l,r+1):l}([e],0)},c.replace=function(t,n,i,a){var l,s=c.isRegExp(n),o=n;return s?(a===e&&n.global&&(a="all"),o=r(n,"all"===a?"g":"","all"===a?"":"g")):"all"===a&&(o=RegExp(c.escape(n+""),"g")),l=d.replace.call(t+"",o,i),s&&n.global&&(n.lastIndex=0),l},c.split=function(e,t,n){return d.split.call(e,t,n)},c.test=function(e,t,n,r){return!!c.exec(e,t,n,r)},c.uninstall=function(e){e=l(e),f.natives&&e.natives&&u(!1),f.extensibility&&e.extensibility&&o(!1)},c.union=function(e,t){var n,r,i,l,s=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*]/g,o=0,u=function(e,t,i){var a=r[o-n];if(t){if(++o,a)return"(?<"+a+">"}else if(i)return"\\"+(+i+n);return e},g=[];if(!a(e,"array")||!e.length)throw new TypeError("patterns must be a nonempty array");for(l=0;e.length>l;++l)i=e[l],c.isRegExp(i)?(n=o,r=i.xregexp&&i.xregexp.captureNames||[],g.push(c(i.source).source.replace(s,u))):g.push(c.escape(i));return c(g.join("|"),t)},c.version="2.0.0",d.exec=function(t){var r,a,l,s,o;if(this.global||(s=this.lastIndex),r=p.exec.apply(this,arguments)){if(!N&&r.length>1&&i(r,"")>-1&&(l=RegExp(this.source,p.replace.call(n(this),"g","")),p.replace.call((t+"").slice(r.index),l,function(){var t;for(t=1;arguments.length-2>t;++t)arguments[t]===e&&(r[t]=e)})),this.xregexp&&this.xregexp.captureNames)for(o=1;r.length>o;++o)a=this.xregexp.captureNames[o-1],a&&(r[a]=r[o]);this.global&&!r[0].length&&this.lastIndex>r.index&&(this.lastIndex=r.index)}return this.global||(this.lastIndex=s),r},d.test=function(e){return!!d.exec.call(this,e)},d.match=function(e){if(c.isRegExp(e)){if(e.global){var t=p.match.apply(this,arguments);return e.lastIndex=0,t}}else e=RegExp(e);return d.exec.call(e,this)},d.replace=function(e,t){var n,r,l,s,o=c.isRegExp(e);return o?(e.xregexp&&(n=e.xregexp.captureNames),e.global||(s=e.lastIndex)):e+="",a(t,"function")?r=p.replace.call(this+"",e,function(){var r,i=arguments;if(n)for(i[0]=new String(i[0]),r=0;n.length>r;++r)n[r]&&(i[0][n[r]]=i[r+1]);return o&&e.global&&(e.lastIndex=i[i.length-2]+i[0].length),t.apply(null,i)}):(l=this+"",r=p.replace.call(l,e,function(){var e=arguments;return p.replace.call(t+"",w,function(t,r,a){var l;if(r){if(l=+r,e.length-3>=l)return e[l]||"";if(l=n?i(n,r):-1,0>l)throw new SyntaxError("backreference to undefined group "+t);return e[l+1]||""}if("$"===a)return"$";if("&"===a||0===+a)return e[0];if("`"===a)return e[e.length-1].slice(0,e[e.length-2]);if("'"===a)return e[e.length-1].slice(e[e.length-2]+e[0].length);if(a=+a,!isNaN(a)){if(a>e.length-3)throw new SyntaxError("backreference to undefined group "+t);return e[a]||""}throw new SyntaxError("invalid token "+t)})})),o&&(e.lastIndex=e.global?0:s),r},d.split=function(t,n){if(!c.isRegExp(t))return p.split.apply(this,arguments);var r,i=this+"",a=t.lastIndex,l=[],s=0;return n=(n===e?-1:n)>>>0,c.forEach(i,t,function(e){e.index+e[0].length>s&&(l.push(i.slice(s,e.index)),e.length>1&&e.indexn?l.slice(0,n):l},h=g.on,h(/\\([ABCE-RTUVXYZaeg-mopqyz]|c(?![A-Za-z])|u(?![\dA-Fa-f]{4})|x(?![\dA-Fa-f]{2}))/,function(e,t){if("B"===e[1]&&t===v)return e[0];throw new SyntaxError("invalid escape "+e[0])},{scope:"all"}),h(/\[(\^?)]/,function(e){return e[1]?"[\\s\\S]":"\\b\\B"}),h(/(?:\(\?#[^)]*\))+/,function(e){return p.test.call(S,e.input.slice(e.index+e[0].length))?"":"(?:)"}),h(/\\k<([\w$]+)>/,function(e){var t=isNaN(e[1])?i(this.captureNames,e[1])+1:+e[1],n=e.index+e[0].length;if(!t||t>this.captureNames.length)throw new SyntaxError("backreference to undefined group "+e[0]);return"\\"+t+(n===e.input.length||isNaN(e.input.charAt(n))?"":"(?:)")}),h(/(?:\s+|#.*)+/,function(e){return p.test.call(S,e.input.slice(e.index+e[0].length))?"":"(?:)"},{trigger:function(){return this.hasFlag("x")},customFlags:"x"}),h(/\./,function(){return"[\\s\\S]"},{trigger:function(){return this.hasFlag("s")},customFlags:"s"}),h(/\(\?P?<([\w$]+)>/,function(e){if(!isNaN(e[1]))throw new SyntaxError("can't use integer as capture name "+e[0]);return this.captureNames.push(e[1]),this.hasNamedCapture=!0,"("}),h(/\\(\d+)/,function(e,t){if(!(t===v&&/^[1-9]/.test(e[1])&&+e[1]<=this.captureNames.length)&&"0"!==e[1])throw new SyntaxError("can't use octal escape or backreference to undefined group "+e[0]);return e[0]},{scope:"all"}),h(/\((?!\?)/,function(){return this.hasFlag("n")?"(?:":(this.captureNames.push(null),"(")},{customFlags:"n"}),"undefined"!=typeof exports&&(exports.XRegExp=c),c}(),SyntaxHighlighter===void 0)var SyntaxHighlighter=function(){function e(e,t){return-1!=e.className.indexOf(t)}function t(t,n){e(t,n)||(t.className+=" "+n)}function n(e,t){e.className=e.className.replace(t,"")}function r(e){for(var t=[],n=0,r=e.length;r>n;n++)t.push(e[n]);return t}function i(e){return e.split(/\r?\n/)}function a(e){var t="highlighter_";return 0==e.indexOf(t)?e:t+e}function l(e){return M.vars.highlighters[a(e)]}function s(e){return document.getElementById(a(e))}function o(e){M.vars.highlighters[a(e.id)]=e}function u(e,t,n){if(null==e)return null;var r,i,a=1!=n?e.childNodes:[e.parentNode],l={"#":"id",".":"className"}[t.substr(0,1)]||"nodeName";if(r="nodeName"!=l?t.substr(1):t.toUpperCase(),-1!=(e[l]||"").indexOf(r))return e;for(var s=0,o=a.length;a&&o>s&&null==i;s++)i=u(a[s],t,n);return i}function c(e,t){return u(e,t,!0)}function g(e,t,n){n=Math.max(n||0,0);for(var r=n,i=e.length;i>r;r++)if(e[r]==t)return r;return-1}function h(e){return(e||"")+(""+Math.round(1e6*Math.random()))}function f(e,t){var n,r={};for(n in e)r[n]=e[n];for(n in t)r[n]=t[n];return r}function p(e){var t={"true":!0,"false":!1}[e];return null==t?e:t}function d(e,t,n,r,i){var a=(screen.width-n)/2,l=(screen.height-r)/2;i+=", left="+a+", top="+l+", width="+n+", height="+r,i=i.replace(/^,/,"");var s=window.open(e,t,i);return s.focus(),s}function x(e,t,n,r){function i(e){e=e||window.event,e.target||(e.target=e.srcElement,e.preventDefault=function(){this.returnValue=!1}),n.call(r||window,e)}e.attachEvent?e.attachEvent("on"+t,i):e.addEventListener(t,i,!1)}function m(e){window.alert(M.config.strings.alert+e)}function v(e,t){var n=M.vars.discoveredBrushes,r=null;if(null==n){n={};for(var i in M.brushes){var a=M.brushes[i],l=a.aliases;if(null!=l){a.brushName=i.toLowerCase();for(var s=0,o=l.length;o>s;s++)n[l[s]]=i}}M.vars.discoveredBrushes=n}return r=M.brushes[n[e]],null==r&&t&&m(M.config.strings.noBrush+e),r}function b(e,t){for(var n=i(e),r=0,a=n.length;a>r;r++)n[r]=t(n[r],r);return n.join("\r\n")}function y(e){return e.replace(/^[ ]*[\n]+|[\n]*[ ]*$/g,"")}function w(e){for(var t,n={},r=XRegExp("^\\[(?(.*?))\\]$"),i=0,a=XRegExp("(?[\\w-]+)\\s*:\\s*(?[\\w%#-]+|\\[.*?\\]|\".*?\"|'.*?')\\s*;?","g");null!=(t=XRegExp.exec(e,a,i));){var l=t.value.replace(/^['"]|['"]$/g,"");if(null!=l&&r.test(l)){var s=XRegExp.exec(l,r);l=s.values.length>0?s.values.split(/\s*,\s*/):[]}n[t.name]=l,i=t.index+t[0].length}return n}function E(e,t){return null==e||0==e.length||"\n"==e?e:(e=e.replace(/n;n++)t+=M.config.space;return t+" "}),null!=t&&(e=b(e,function(e){if(0==e.length)return"";var n="";return e=e.replace(/^( | )+/,function(e){return n=e,""}),0==e.length?n:n+''+e+"
"})),e)}function S(e,t){for(var n=""+e;t>n.length;)n="0"+n;return n}function N(e,t){for(var n="",r=0;t>r;r++)n+=" ";return e.replace(/\t/g,n)}function H(e,t){function n(e,t,n){return e.substr(0,t)+a.substr(0,n)+e.substr(t+1,e.length)}for(var r=(i(e)," "),a="",l=0;50>l;l++)a+=" ";return e=b(e,function(e){if(-1==e.indexOf(r))return e;for(var i=0;-1!=(i=e.indexOf(r));){var a=t-i%t;e=n(e,i,a)}return e})}function R(e){var t=/
|<br\s*\/?>/gi;return 1==M.config.bloggerMode&&(e=e.replace(t,"\n")),1==M.config.stripBrs&&(e=e.replace(t,"")),e}function T(e){return e.replace(/^\s+|\s+$/g,"")}function P(e){for(var t=i(R(e)),n=/^\s*/,r=1e3,a=0,l=t.length;l>a&&r>0;a++){var s=t[a];if(0!=T(s).length){var o=n.exec(s);if(null==o)return e;r=Math.min(o[0].length,r)}}if(r>0)for(var a=0,l=t.length;l>a;a++)t[a]=t[a].substr(r);return t.join("\n")}function k(e,t){return e.indext.index?1:e.lengtht.length?1:0}function C(e,t){function n(e){return e[0]}var r=null,i=[],a=t.func?t.func:n;for(pos=0;null!=(r=XRegExp.exec(e,t.regex,pos));){var l=a(r,t);"string"==typeof l&&(l=[new M.Match(l,r.index,t.css)]),i=i.concat(l),pos=r.index+r[0].length}return i}function L(e){var t=/(.*)((>|<).*)/;return e.replace(M.regexLib.url,function(e){var n="",r=null;return(r=t.exec(e))&&(e=r[1],n=r[2]),''+e+""+n})}function I(){for(var e=document.getElementsByTagName("script"),t=[],n=0,r=e.length;r>n;n++)"syntaxhighlighter"==e[n].type&&t.push(e[n]);return t}function A(e){var t="",r=T(e),i=!1,a=t.length,l=n.length;0==r.indexOf(t)&&(r=r.substring(a),i=!0);var s=r.length;return r.indexOf(n)==s-l&&(r=r.substring(0,s-l),i=!0),i?r:e}function X(e){var r,i=e.target,a=c(i,".syntaxhighlighter"),s=c(i,".container"),o=document.createElement("textarea");if(s&&a&&!u(s,"textarea")){r=l(a.id),t(a,"source");for(var g=s.childNodes,h=[],f=0,p=g.length;p>f;f++)h.push(g[f].innerText||g[f].textContent);h=h.join("\r"),h=h.replace(/\u00a0/g," "),o.appendChild(document.createTextNode(h)),s.appendChild(o),o.focus(),o.select(),x(o,"blur",function(){o.parentNode.removeChild(o),n(a,"source")})}}"undefined"!=typeof require&&XRegExp===void 0&&(XRegExp=require("xregexp").XRegExp);var M={defaults:{"class-name":"","first-line":1,"pad-line-numbers":!1,highlight:null,title:null,"smart-tabs":!0,"tab-size":4,gutter:!0,toolbar:!0,"quick-code":!0,collapse:!1,"auto-links":!0,light:!1,unindent:!0,"html-script":!1},config:{space:" ",useScriptTags:!0,bloggerMode:!1,stripBrs:!1,tagName:"pre",strings:{expandSource:"expand source",help:"?",alert:"SyntaxHighlighter\n\n",noBrush:"Can't find brush for: ",brushNotHtmlScript:"Brush wasn't configured for html-script option: ",aboutDialog:'About SyntaxHighlighterSyntaxHighlighter
version 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
JavaScript code syntax highlighter.
Copyright 2004-2013 Alex Gorbatchev.
If you like this script, please
donate to
keep development active!
'}},vars:{discoveredBrushes:null,highlighters:{}},brushes:{},regexLib:{multiLineCComments:XRegExp("/\\*.*?\\*/","gs"),singleLineCComments:/\/\/.*$/gm,singleLinePerlComments:/#.*$/gm,doubleQuotedString:/"([^\\"\n]|\\.)*"/g,singleQuotedString:/'([^\\'\n]|\\.)*'/g,multiLineDoubleQuotedString:XRegExp('"([^\\\\"]|\\\\.)*"',"gs"),multiLineSingleQuotedString:XRegExp("'([^\\\\']|\\\\.)*'","gs"),xmlComments:XRegExp("(<|<)!--.*?--(>|>)","gs"),url:/\w+:\/\/[\w-.\/?%&=:@;#]*/g,phpScriptTags:{left:/(<|<)\?(?:=|php)?/g,right:/\?(>|>)/g,eof:!0},aspScriptTags:{left:/(<|<)%=?/g,right:/%(>|>)/g},scriptScriptTags:{left:/(<|<)\s*script.*?(>|>)/gi,right:/(<|<)\/\s*script\s*(>|>)/gi}},toolbar:{getHtml:function(e){function t(e,t){return M.toolbar.getButtonHtml(e,t,M.config.strings[t])}for(var n='',r=M.toolbar.items,i=r.list,a=0,l=i.length;l>a;a++)n+=(r[i[a]].getHtml||t)(e,i[a]);return n+="
"},getButtonHtml:function(e,t,n){return''+n+""},handler:function(e){function t(e){var t=RegExp(e+"_(\\w+)"),n=t.exec(r);return n?n[1]:null}var n=e.target,r=n.className||"",i=l(c(n,".syntaxhighlighter").id),a=t("command");i&&a&&M.toolbar.items[a].execute(i),e.preventDefault()},items:{list:["expandSource","help"],expandSource:{getHtml:function(e){if(1!=e.getParam("collapse"))return"";var t=e.getParam("title");return M.toolbar.getButtonHtml(e,"expandSource",t?t:M.config.strings.expandSource)},execute:function(e){var t=s(e.id);n(t,"collapsed")}},help:{execute:function(){var e=d("","_blank",500,250,"scrollbars=0"),t=e.document;t.write(M.config.strings.aboutDialog),t.close(),e.focus()}}}},findElements:function(e,t){var n=t?[t]:r(document.getElementsByTagName(M.config.tagName)),i=M.config,a=[];if(i.useScriptTags&&(n=n.concat(I())),0===n.length)return a;for(var l=0,s=n.length;s>l;l++){var o={target:n[l],params:f(e,w(n[l].className))};null!=o.params.brush&&a.push(o)}return a},highlight:function(e,t){var n=this.findElements(e,t),r="innerHTML",i=null,a=M.config;if(0!==n.length)for(var l=0,s=n.length;s>l;l++){var o,t=n[l],u=t.target,c=t.params,g=c.brush;if(null!=g){if("true"==c["html-script"]||1==M.defaults["html-script"])i=new M.HtmlScript(g),g="htmlscript";else{var h=v(g);if(!h)continue;i=new h}o=u[r],a.useScriptTags&&(o=A(o)),""!=(u.title||"")&&(c.title=u.title),c.brush=g,i.init(c),t=i.getDiv(o),""!=(u.id||"")&&(t.id=u.id),u.parentNode.replaceChild(t,u)}}},all:function(e){x(window,"load",function(){M.highlight(e)})}};return M.Match=function(e,t,n){this.value=e,this.index=t,this.length=e.length,this.css=n,this.brushName=null},M.Match.prototype.toString=function(){return this.value},M.HtmlScript=function(e){function t(e,t){for(var n=0,r=e.length;r>n;n++)e[n].index+=t}function n(e){for(var n,a=e.code,l=[],s=r.regexList,o=e.index+e.left.length,u=r.htmlScript,c=0,g=s.length;g>c;c++)n=C(a,s[c]),t(n,o),l=l.concat(n);null!=u.left&&null!=e.left&&(n=C(e.left,u.left),t(n,e.index),l=l.concat(n)),null!=u.right&&null!=e.right&&(n=C(e.right,u.right),t(n,e.index+e[0].lastIndexOf(e.right)),l=l.concat(n));for(var h=0,g=l.length;g>h;h++)l[h].brushName=i.brushName;return l}var r,i=v(e),a=new M.brushes.Xml,l=this,s="getDiv getHtml init".split(" ");if(null!=i){r=new i;for(var o=0,u=s.length;u>o;o++)(function(){var e=s[o];l[e]=function(){return a[e].apply(a,arguments)}})();return null==r.htmlScript?(m(M.config.strings.brushNotHtmlScript+e),void 0):(a.regexList.push({regex:r.htmlScript.code,func:n}),void 0)}},M.Highlighter=function(){},M.Highlighter.prototype={getParam:function(e,t){var n=this.params[e];return p(null==n?t:n)},create:function(e){return document.createElement(e)},findMatches:function(e,t){var n=[];if(null!=e)for(var r=0,i=e.length;i>r;r++)"object"==typeof e[r]&&(n=n.concat(C(t,e[r])));return this.removeNestedMatches(n.sort(k))},removeNestedMatches:function(e){for(var t=0,n=e.length;n>t;t++)if(null!==e[t])for(var r=e[t],i=r.index+r.length,a=t+1,n=e.length;n>a&&null!==e[t];a++){var l=e[a];if(null!==l){if(l.index>i)break;l.index==r.index&&l.length>r.length?e[t]=null:l.index>=r.index&&i>l.index&&(e[a]=null)}}return e},figureOutLineNumbers:function(e){var t=[],n=parseInt(this.getParam("first-line"));return b(e,function(e,r){t.push(r+n)}),t},isLineHighlighted:function(e){var t=this.getParam("highlight",[]);return"object"!=typeof t&&null==t.push&&(t=[t]),-1!=g(t,""+e)},getLineHtml:function(e,t,n){var r=["line","number"+t,"index"+e,"alt"+(""+(0==t%2?1:2))];return this.isLineHighlighted(t)&&r.push("highlighted"),0==t&&r.push("break"),''+n+"
"},getLineNumbersHtml:function(e,t){var n="",r=i(e).length,a=parseInt(this.getParam("first-line")),l=this.getParam("pad-line-numbers");1==l?l=(""+(a+r-1)).length:1==isNaN(l)&&(l=0);for(var s=0;r>s;s++){var o=t?t[s]:a+s,e=0==o?M.config.space:S(o,l);n+=this.getLineHtml(s,o,e)}return n},getCodeLinesHtml:function(e,t){e=T(e);for(var n=i(e),r=(this.getParam("pad-line-numbers"),parseInt(this.getParam("first-line"))),e="",a=this.getParam("brush"),l=0,s=n.length;s>l;l++){var o=n[l],u=/^( |\s)+/.exec(o),c=null,g=t?t[l]:r+l;null!=u&&(c=""+u[0],o=o.substr(c.length),c=c.replace(" ",M.config.space)),o=T(o),0==o.length&&(o=M.config.space),e+=this.getLineHtml(l,g,(null!=c?''+c+"
":"")+o)}return e},getTitleHtml:function(e){return e?""+e+"":""},getMatchesHtml:function(e,t){function n(e){var t=e?e.brushName||a:a;return t?t+" ":""}for(var r=0,i="",a=this.getParam("brush",""),l=0,s=t.length;s>l;l++){var o,u=t[l];null!==u&&0!==u.length&&(o=n(u),i+=E(e.substr(r,u.index-r),o+"plain")+E(u.value,o+u.css),r=u.index+u.length+(u.offset||0))}return i+=E(e.substr(r),n()+"plain")},getHtml:function(e){var t,n,r,i="",l=["syntaxhighlighter"];return 1==this.getParam("light")&&(this.params.toolbar=this.params.gutter=!1),className="syntaxhighlighter",1==this.getParam("collapse")&&l.push("collapsed"),0==(gutter=this.getParam("gutter"))&&l.push("nogutter"),l.push(this.getParam("class-name")),l.push(this.getParam("brush")),e=y(e).replace(/\r/g," "),t=this.getParam("tab-size"),e=1==this.getParam("smart-tabs")?H(e,t):N(e,t),this.getParam("unindent")&&(e=P(e)),gutter&&(r=this.figureOutLineNumbers(e)),n=this.findMatches(this.regexList,e),i=this.getMatchesHtml(e,n),i=this.getCodeLinesHtml(i,r),this.getParam("auto-links")&&(i=L(i)),"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.match(/MSIE/)&&l.push("ie"),i=''+(this.getParam("toolbar")?M.toolbar.getHtml(this):"")+'
'+this.getTitleHtml(this.getParam("title"))+""+""+(gutter?''+this.getLineNumbersHtml(e)+" | ":"")+''+' '+i+" "+" | "+"
"+""+"
"+"
"},getDiv:function(e){null===e&&(e=""),this.code=e;var t=this.create("div");return t.innerHTML=this.getHtml(e),this.getParam("toolbar")&&x(u(t,".toolbar"),"click",M.toolbar.handler),this.getParam("quick-code")&&x(u(t,".code"),"dblclick",X),t},init:function(e){this.id=h(),o(this),this.params=f(M.defaults,e||{}),1==this.getParam("light")&&(this.params.toolbar=this.params.gutter=!1)},getKeywords:function(e){return e=e.replace(/^\s+|\s+$/g,"").replace(/\s+/g,"|"),"\\b(?:"+e+")\\b"},forHtmlScript:function(e){var t={end:e.right.source};e.eof&&(t.end="(?:(?:"+t.end+")|$)"),this.htmlScript={left:{regex:e.left,css:"script"},right:{regex:e.right,css:"script"},code:XRegExp("(?"+e.left.source+")"+"(?.*?)"+"(?"+t.end+")","sgi")}}},M}();"undefined"!=typeof exports?exports.SyntaxHighlighter=SyntaxHighlighter:null;
--------------------------------------------------------------------------------
/scripts/shLegacy.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Thu, 09 Jan 2014 10:15:21 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | var dp = {
18 | SyntaxHighlighter : {}
19 | };
20 |
21 | dp.SyntaxHighlighter = {
22 | parseParams: function(
23 | input,
24 | showGutter,
25 | showControls,
26 | collapseAll,
27 | firstLine,
28 | showColumns
29 | )
30 | {
31 | function getValue(list, name)
32 | {
33 | var regex = XRegExp('^' + name + '\\[(?\\w+)\\]$', 'gi'),
34 | match = null
35 | ;
36 |
37 | for (var i = 0; i < list.length; i++)
38 | if ((match = XRegExp.exec(list[i], regex)) != null)
39 | return match.value;
40 |
41 | return null;
42 | };
43 |
44 | function defaultValue(value, def)
45 | {
46 | return value != null ? value : def;
47 | };
48 |
49 | function asString(value)
50 | {
51 | return value != null ? value.toString() : null;
52 | };
53 |
54 | var parts = input.split(':'),
55 | brushName = parts[0],
56 | options = {},
57 | straight = { 'true' : true }
58 | reverse = { 'true' : false },
59 | result = null,
60 | defaults = SyntaxHighlighter.defaults
61 | ;
62 |
63 | for (var i in parts)
64 | options[parts[i]] = 'true';
65 |
66 | showGutter = asString(defaultValue(showGutter, defaults.gutter));
67 | showControls = asString(defaultValue(showControls, defaults.toolbar));
68 | collapseAll = asString(defaultValue(collapseAll, defaults.collapse));
69 | showColumns = asString(defaultValue(showColumns, defaults.ruler));
70 | firstLine = asString(defaultValue(firstLine, defaults['first-line']));
71 |
72 | return {
73 | brush : brushName,
74 | gutter : defaultValue(reverse[options.nogutter], showGutter),
75 | toolbar : defaultValue(reverse[options.nocontrols], showControls),
76 | collapse : defaultValue(straight[options.collapse], collapseAll),
77 | // ruler : defaultValue(straight[options.showcolumns], showColumns),
78 | 'first-line' : defaultValue(getValue(parts, 'firstline'), firstLine)
79 | };
80 | },
81 |
82 | HighlightAll: function(
83 | name,
84 | showGutter /* optional */,
85 | showControls /* optional */,
86 | collapseAll /* optional */,
87 | firstLine /* optional */,
88 | showColumns /* optional */
89 | )
90 | {
91 | function findValue()
92 | {
93 | var a = arguments;
94 |
95 | for (var i = 0; i < a.length; i++)
96 | {
97 | if (a[i] === null)
98 | continue;
99 |
100 | if (typeof(a[i]) == 'string' && a[i] != '')
101 | return a[i] + '';
102 |
103 | if (typeof(a[i]) == 'object' && a[i].value != '')
104 | return a[i].value + '';
105 | }
106 |
107 | return null;
108 | };
109 |
110 | function findTagsByName(list, name, tagName)
111 | {
112 | var tags = document.getElementsByTagName(tagName);
113 |
114 | for (var i = 0; i < tags.length; i++)
115 | if (tags[i].getAttribute('name') == name)
116 | list.push(tags[i]);
117 | }
118 |
119 | var elements = [],
120 | highlighter = null,
121 | registered = {},
122 | propertyName = 'innerHTML'
123 | ;
124 |
125 | // for some reason IE doesn't find by name, however it does see them just fine by tag name...
126 | findTagsByName(elements, name, 'pre');
127 | findTagsByName(elements, name, 'textarea');
128 |
129 | if (elements.length === 0)
130 | return;
131 |
132 | for (var i = 0; i < elements.length; i++)
133 | {
134 | var element = elements[i],
135 | params = findValue(
136 | element.attributes['class'], element.className,
137 | element.attributes['language'], element.language
138 | ),
139 | language = ''
140 | ;
141 |
142 | if (params === null)
143 | continue;
144 |
145 | params = dp.SyntaxHighlighter.parseParams(
146 | params,
147 | showGutter,
148 | showControls,
149 | collapseAll,
150 | firstLine,
151 | showColumns
152 | );
153 |
154 | SyntaxHighlighter.highlight(params, element);
155 | }
156 | }
157 | };
158 |
--------------------------------------------------------------------------------
/styles/shCoreDefault.css:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Sat, 11 Jan 2014 12:27:26 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | .syntaxhighlighter a,.syntaxhighlighter div,.syntaxhighlighter code,.syntaxhighlighter table,.syntaxhighlighter table td,.syntaxhighlighter table tr,.syntaxhighlighter table tbody,.syntaxhighlighter table thead,.syntaxhighlighter table caption,.syntaxhighlighter textarea{-moz-border-radius:0 0 0 0 !important;-webkit-border-radius:0 0 0 0 !important;background:none !important;border:0 !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0 !important;outline:0 !important;overflow:visible !important;padding:0 !important;position:static !important;right:auto !important;text-align:left !important;top:auto !important;vertical-align:baseline !important;width:auto !important;box-sizing:content-box !important;font-family:"Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace !important;font-weight:normal !important;font-style:normal !important;font-size:1em !important;min-height:inherit !important;min-height:auto !important;}
18 | .syntaxhighlighter{width:100% !important;word-wrap:normal !important;margin:1em 0 1em 0 !important;position:relative !important;overflow:auto !important;font-size:1em !important;}
19 | .syntaxhighlighter.source{overflow:hidden !important;}
20 | .syntaxhighlighter .bold{font-weight:bold !important;}
21 | .syntaxhighlighter .italic{font-style:italic !important;}
22 | .syntaxhighlighter .line{white-space:pre !important;}
23 | .syntaxhighlighter table{width:100% !important;margin:1px 0 !important;}
24 | .syntaxhighlighter table caption{text-align:left !important;padding:0.5em 0 0.5em 1em !important;}
25 | .syntaxhighlighter table td.code{width:100% !important;}
26 | .syntaxhighlighter table td.code .container{position:relative !important;}
27 | .syntaxhighlighter table td.code .container textarea{box-sizing:border-box !important;position:absolute !important;left:0 !important;top:0 !important;width:100% !important;height:100% !important;border:none !important;background:white !important;padding-left:1em !important;overflow:hidden !important;white-space:pre !important;word-wrap:normal !important;}
28 | .syntaxhighlighter table td.gutter .line{text-align:right !important;padding:0 0.5em 0 1em !important;}
29 | .syntaxhighlighter table td.code .line{padding:0 1em !important;}
30 | .syntaxhighlighter.nogutter td.code .container textarea,.syntaxhighlighter.nogutter td.code .line{padding-left:0em !important;}
31 | .syntaxhighlighter.show{display:block !important;}
32 | .syntaxhighlighter.collapsed table{display:none !important;}
33 | .syntaxhighlighter.collapsed .toolbar{padding:0.1em 0.8em 0em 0.8em !important;font-size:1em !important;position:static !important;width:auto !important;height:auto !important;}
34 | .syntaxhighlighter.collapsed .toolbar span{display:inline !important;margin-right:1em !important;}
35 | .syntaxhighlighter.collapsed .toolbar span a{padding:0 !important;display:none !important;}
36 | .syntaxhighlighter.collapsed .toolbar span a.expandSource{display:inline !important;}
37 | .syntaxhighlighter .toolbar{position:absolute !important;right:1px !important;top:1px !important;width:11px !important;height:11px !important;font-size:10px !important;z-index:10 !important;}
38 | .syntaxhighlighter .toolbar span.title{display:inline !important;}
39 | .syntaxhighlighter .toolbar a{display:block !important;text-align:center !important;text-decoration:none !important;padding-top:1px !important;}
40 | .syntaxhighlighter .toolbar a.expandSource{display:none !important;}
41 | .syntaxhighlighter.ie{font-size:0.9em !important;padding:1px 0 1px 0 !important;}
42 | .syntaxhighlighter.ie .toolbar{line-height:8px !important;}
43 | .syntaxhighlighter.ie .toolbar a{padding-top:0px !important;}
44 | .syntaxhighlighter.printing .line.alt1 .content,.syntaxhighlighter.printing .line.alt2 .content,.syntaxhighlighter.printing .line.highlighted .number,.syntaxhighlighter.printing .line.highlighted.alt1 .content,.syntaxhighlighter.printing .line.highlighted.alt2 .content{background:none !important;}
45 | .syntaxhighlighter.printing .line .number{color:#bbbbbb !important;}
46 | .syntaxhighlighter.printing .line .content{color:black !important;}
47 | .syntaxhighlighter.printing .toolbar{display:none !important;}
48 | .syntaxhighlighter.printing a{text-decoration:none !important;}
49 | .syntaxhighlighter.printing .plain,.syntaxhighlighter.printing .plain a{color:black !important;}
50 | .syntaxhighlighter.printing .comments,.syntaxhighlighter.printing .comments a{color:#008200 !important;}
51 | .syntaxhighlighter.printing .string,.syntaxhighlighter.printing .string a{color:blue !important;}
52 | .syntaxhighlighter.printing .keyword{color:#006699 !important;font-weight:bold !important;}
53 | .syntaxhighlighter.printing .preprocessor{color:gray !important;}
54 | .syntaxhighlighter.printing .variable{color:#aa7700 !important;}
55 | .syntaxhighlighter.printing .value{color:#009900 !important;}
56 | .syntaxhighlighter.printing .functions{color:deeppink !important;}
57 | .syntaxhighlighter.printing .constants{color:#0066cc !important;}
58 | .syntaxhighlighter.printing .script{font-weight:bold !important;}
59 | .syntaxhighlighter.printing .color1,.syntaxhighlighter.printing .color1 a{color:gray !important;}
60 | .syntaxhighlighter.printing .color2,.syntaxhighlighter.printing .color2 a{color:deeppink !important;}
61 | .syntaxhighlighter.printing .color3,.syntaxhighlighter.printing .color3 a{color:red !important;}
62 | .syntaxhighlighter.printing .break,.syntaxhighlighter.printing .break a{color:black !important;}
63 | .syntaxhighlighter{background-color:white !important;}
64 | .syntaxhighlighter .line.alt1{background-color:white !important;}
65 | .syntaxhighlighter .line.alt2{background-color:white !important;}
66 | .syntaxhighlighter .line.highlighted.alt1,.syntaxhighlighter .line.highlighted.alt2{background-color:#e0e0e0 !important;}
67 | .syntaxhighlighter .line.highlighted.number{color:black !important;}
68 | .syntaxhighlighter table caption{color:black !important;}
69 | .syntaxhighlighter table td.code .container textarea{background:white;color:black;}
70 | .syntaxhighlighter .gutter{color:#afafaf !important;}
71 | .syntaxhighlighter .gutter .line{border-right:3px solid #6ce26c !important;}
72 | .syntaxhighlighter .gutter .line.highlighted{background-color:#6ce26c !important;color:white !important;}
73 | .syntaxhighlighter.printing .line .content{border:none !important;}
74 | .syntaxhighlighter.collapsed{overflow:visible !important;}
75 | .syntaxhighlighter.collapsed .toolbar{color:blue !important;background:white !important;border:1px solid #6ce26c !important;}
76 | .syntaxhighlighter.collapsed .toolbar a{color:blue !important;}
77 | .syntaxhighlighter.collapsed .toolbar a:hover{color:red !important;}
78 | .syntaxhighlighter .toolbar{color:white !important;background:#6ce26c !important;border:none !important;}
79 | .syntaxhighlighter .toolbar a{color:white !important;}
80 | .syntaxhighlighter .toolbar a:hover{color:black !important;}
81 | .syntaxhighlighter .plain,.syntaxhighlighter .plain a{color:black !important;}
82 | .syntaxhighlighter .comments,.syntaxhighlighter .comments a{color:#008200 !important;}
83 | .syntaxhighlighter .string,.syntaxhighlighter .string a{color:blue !important;}
84 | .syntaxhighlighter .keyword{color:#006699 !important;}
85 | .syntaxhighlighter .preprocessor{color:grey !important;}
86 | .syntaxhighlighter .variable{color:#aa7700 !important;}
87 | .syntaxhighlighter .value{color:#009900 !important;}
88 | .syntaxhighlighter .functions{color:deeppink !important;}
89 | .syntaxhighlighter .constants{color:#0066cc !important;}
90 | .syntaxhighlighter .script{font-weight:bold !important;color:#006699 !important;background-color:none !important;}
91 | .syntaxhighlighter .color1,.syntaxhighlighter .color1 a{color:grey !important;}
92 | .syntaxhighlighter .color2,.syntaxhighlighter .color2 a{color:deeppink !important;}
93 | .syntaxhighlighter .color3,.syntaxhighlighter .color3 a{color:red !important;}
94 | .syntaxhighlighter .keyword{font-weight:bold !important;}
95 |
--------------------------------------------------------------------------------
/styles/shCoreDjango.css:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Sat, 11 Jan 2014 12:27:26 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | .syntaxhighlighter a,.syntaxhighlighter div,.syntaxhighlighter code,.syntaxhighlighter table,.syntaxhighlighter table td,.syntaxhighlighter table tr,.syntaxhighlighter table tbody,.syntaxhighlighter table thead,.syntaxhighlighter table caption,.syntaxhighlighter textarea{-moz-border-radius:0 0 0 0 !important;-webkit-border-radius:0 0 0 0 !important;background:none !important;border:0 !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0 !important;outline:0 !important;overflow:visible !important;padding:0 !important;position:static !important;right:auto !important;text-align:left !important;top:auto !important;vertical-align:baseline !important;width:auto !important;box-sizing:content-box !important;font-family:"Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace !important;font-weight:normal !important;font-style:normal !important;font-size:1em !important;min-height:inherit !important;min-height:auto !important;}
18 | .syntaxhighlighter{width:100% !important;word-wrap:normal !important;margin:1em 0 1em 0 !important;position:relative !important;overflow:auto !important;font-size:1em !important;}
19 | .syntaxhighlighter.source{overflow:hidden !important;}
20 | .syntaxhighlighter .bold{font-weight:bold !important;}
21 | .syntaxhighlighter .italic{font-style:italic !important;}
22 | .syntaxhighlighter .line{white-space:pre !important;}
23 | .syntaxhighlighter table{width:100% !important;margin:1px 0 !important;}
24 | .syntaxhighlighter table caption{text-align:left !important;padding:0.5em 0 0.5em 1em !important;}
25 | .syntaxhighlighter table td.code{width:100% !important;}
26 | .syntaxhighlighter table td.code .container{position:relative !important;}
27 | .syntaxhighlighter table td.code .container textarea{box-sizing:border-box !important;position:absolute !important;left:0 !important;top:0 !important;width:100% !important;height:100% !important;border:none !important;background:white !important;padding-left:1em !important;overflow:hidden !important;white-space:pre !important;word-wrap:normal !important;}
28 | .syntaxhighlighter table td.gutter .line{text-align:right !important;padding:0 0.5em 0 1em !important;}
29 | .syntaxhighlighter table td.code .line{padding:0 1em !important;}
30 | .syntaxhighlighter.nogutter td.code .container textarea,.syntaxhighlighter.nogutter td.code .line{padding-left:0em !important;}
31 | .syntaxhighlighter.show{display:block !important;}
32 | .syntaxhighlighter.collapsed table{display:none !important;}
33 | .syntaxhighlighter.collapsed .toolbar{padding:0.1em 0.8em 0em 0.8em !important;font-size:1em !important;position:static !important;width:auto !important;height:auto !important;}
34 | .syntaxhighlighter.collapsed .toolbar span{display:inline !important;margin-right:1em !important;}
35 | .syntaxhighlighter.collapsed .toolbar span a{padding:0 !important;display:none !important;}
36 | .syntaxhighlighter.collapsed .toolbar span a.expandSource{display:inline !important;}
37 | .syntaxhighlighter .toolbar{position:absolute !important;right:1px !important;top:1px !important;width:11px !important;height:11px !important;font-size:10px !important;z-index:10 !important;}
38 | .syntaxhighlighter .toolbar span.title{display:inline !important;}
39 | .syntaxhighlighter .toolbar a{display:block !important;text-align:center !important;text-decoration:none !important;padding-top:1px !important;}
40 | .syntaxhighlighter .toolbar a.expandSource{display:none !important;}
41 | .syntaxhighlighter.ie{font-size:0.9em !important;padding:1px 0 1px 0 !important;}
42 | .syntaxhighlighter.ie .toolbar{line-height:8px !important;}
43 | .syntaxhighlighter.ie .toolbar a{padding-top:0px !important;}
44 | .syntaxhighlighter.printing .line.alt1 .content,.syntaxhighlighter.printing .line.alt2 .content,.syntaxhighlighter.printing .line.highlighted .number,.syntaxhighlighter.printing .line.highlighted.alt1 .content,.syntaxhighlighter.printing .line.highlighted.alt2 .content{background:none !important;}
45 | .syntaxhighlighter.printing .line .number{color:#bbbbbb !important;}
46 | .syntaxhighlighter.printing .line .content{color:black !important;}
47 | .syntaxhighlighter.printing .toolbar{display:none !important;}
48 | .syntaxhighlighter.printing a{text-decoration:none !important;}
49 | .syntaxhighlighter.printing .plain,.syntaxhighlighter.printing .plain a{color:black !important;}
50 | .syntaxhighlighter.printing .comments,.syntaxhighlighter.printing .comments a{color:#008200 !important;}
51 | .syntaxhighlighter.printing .string,.syntaxhighlighter.printing .string a{color:blue !important;}
52 | .syntaxhighlighter.printing .keyword{color:#006699 !important;font-weight:bold !important;}
53 | .syntaxhighlighter.printing .preprocessor{color:gray !important;}
54 | .syntaxhighlighter.printing .variable{color:#aa7700 !important;}
55 | .syntaxhighlighter.printing .value{color:#009900 !important;}
56 | .syntaxhighlighter.printing .functions{color:deeppink !important;}
57 | .syntaxhighlighter.printing .constants{color:#0066cc !important;}
58 | .syntaxhighlighter.printing .script{font-weight:bold !important;}
59 | .syntaxhighlighter.printing .color1,.syntaxhighlighter.printing .color1 a{color:gray !important;}
60 | .syntaxhighlighter.printing .color2,.syntaxhighlighter.printing .color2 a{color:deeppink !important;}
61 | .syntaxhighlighter.printing .color3,.syntaxhighlighter.printing .color3 a{color:red !important;}
62 | .syntaxhighlighter.printing .break,.syntaxhighlighter.printing .break a{color:black !important;}
63 | .syntaxhighlighter{background-color:#0a2b1d !important;}
64 | .syntaxhighlighter .line.alt1{background-color:#0a2b1d !important;}
65 | .syntaxhighlighter .line.alt2{background-color:#0a2b1d !important;}
66 | .syntaxhighlighter .line.highlighted.alt1,.syntaxhighlighter .line.highlighted.alt2{background-color:#233729 !important;}
67 | .syntaxhighlighter .line.highlighted.number{color:white !important;}
68 | .syntaxhighlighter table caption{color:#f8f8f8 !important;}
69 | .syntaxhighlighter table td.code .container textarea{background:#0a2b1d;color:#f8f8f8;}
70 | .syntaxhighlighter .gutter{color:#497958 !important;}
71 | .syntaxhighlighter .gutter .line{border-right:3px solid #41a83e !important;}
72 | .syntaxhighlighter .gutter .line.highlighted{background-color:#41a83e !important;color:#0a2b1d !important;}
73 | .syntaxhighlighter.printing .line .content{border:none !important;}
74 | .syntaxhighlighter.collapsed{overflow:visible !important;}
75 | .syntaxhighlighter.collapsed .toolbar{color:#96dd3b !important;background:black !important;border:1px solid #41a83e !important;}
76 | .syntaxhighlighter.collapsed .toolbar a{color:#96dd3b !important;}
77 | .syntaxhighlighter.collapsed .toolbar a:hover{color:white !important;}
78 | .syntaxhighlighter .toolbar{color:white !important;background:#41a83e !important;border:none !important;}
79 | .syntaxhighlighter .toolbar a{color:white !important;}
80 | .syntaxhighlighter .toolbar a:hover{color:#ffe862 !important;}
81 | .syntaxhighlighter .plain,.syntaxhighlighter .plain a{color:#f8f8f8 !important;}
82 | .syntaxhighlighter .comments,.syntaxhighlighter .comments a{color:#336442 !important;}
83 | .syntaxhighlighter .string,.syntaxhighlighter .string a{color:#9df39f !important;}
84 | .syntaxhighlighter .keyword{color:#96dd3b !important;}
85 | .syntaxhighlighter .preprocessor{color:#91bb9e !important;}
86 | .syntaxhighlighter .variable{color:#ffaa3e !important;}
87 | .syntaxhighlighter .value{color:#f7e741 !important;}
88 | .syntaxhighlighter .functions{color:#ffaa3e !important;}
89 | .syntaxhighlighter .constants{color:#e0e8ff !important;}
90 | .syntaxhighlighter .script{font-weight:bold !important;color:#96dd3b !important;background-color:none !important;}
91 | .syntaxhighlighter .color1,.syntaxhighlighter .color1 a{color:#eb939a !important;}
92 | .syntaxhighlighter .color2,.syntaxhighlighter .color2 a{color:#91bb9e !important;}
93 | .syntaxhighlighter .color3,.syntaxhighlighter .color3 a{color:#edef7d !important;}
94 | .syntaxhighlighter .comments{font-style:italic !important;}
95 | .syntaxhighlighter .keyword{font-weight:bold !important;}
96 |
--------------------------------------------------------------------------------
/styles/shCoreEclipse.css:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Sat, 11 Jan 2014 12:27:26 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | .syntaxhighlighter a,.syntaxhighlighter div,.syntaxhighlighter code,.syntaxhighlighter table,.syntaxhighlighter table td,.syntaxhighlighter table tr,.syntaxhighlighter table tbody,.syntaxhighlighter table thead,.syntaxhighlighter table caption,.syntaxhighlighter textarea{-moz-border-radius:0 0 0 0 !important;-webkit-border-radius:0 0 0 0 !important;background:none !important;border:0 !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0 !important;outline:0 !important;overflow:visible !important;padding:0 !important;position:static !important;right:auto !important;text-align:left !important;top:auto !important;vertical-align:baseline !important;width:auto !important;box-sizing:content-box !important;font-family:"Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace !important;font-weight:normal !important;font-style:normal !important;font-size:1em !important;min-height:inherit !important;min-height:auto !important;}
18 | .syntaxhighlighter{width:100% !important;word-wrap:normal !important;margin:1em 0 1em 0 !important;position:relative !important;overflow:auto !important;font-size:1em !important;}
19 | .syntaxhighlighter.source{overflow:hidden !important;}
20 | .syntaxhighlighter .bold{font-weight:bold !important;}
21 | .syntaxhighlighter .italic{font-style:italic !important;}
22 | .syntaxhighlighter .line{white-space:pre !important;}
23 | .syntaxhighlighter table{width:100% !important;margin:1px 0 !important;}
24 | .syntaxhighlighter table caption{text-align:left !important;padding:0.5em 0 0.5em 1em !important;}
25 | .syntaxhighlighter table td.code{width:100% !important;}
26 | .syntaxhighlighter table td.code .container{position:relative !important;}
27 | .syntaxhighlighter table td.code .container textarea{box-sizing:border-box !important;position:absolute !important;left:0 !important;top:0 !important;width:100% !important;height:100% !important;border:none !important;background:white !important;padding-left:1em !important;overflow:hidden !important;white-space:pre !important;word-wrap:normal !important;}
28 | .syntaxhighlighter table td.gutter .line{text-align:right !important;padding:0 0.5em 0 1em !important;}
29 | .syntaxhighlighter table td.code .line{padding:0 1em !important;}
30 | .syntaxhighlighter.nogutter td.code .container textarea,.syntaxhighlighter.nogutter td.code .line{padding-left:0em !important;}
31 | .syntaxhighlighter.show{display:block !important;}
32 | .syntaxhighlighter.collapsed table{display:none !important;}
33 | .syntaxhighlighter.collapsed .toolbar{padding:0.1em 0.8em 0em 0.8em !important;font-size:1em !important;position:static !important;width:auto !important;height:auto !important;}
34 | .syntaxhighlighter.collapsed .toolbar span{display:inline !important;margin-right:1em !important;}
35 | .syntaxhighlighter.collapsed .toolbar span a{padding:0 !important;display:none !important;}
36 | .syntaxhighlighter.collapsed .toolbar span a.expandSource{display:inline !important;}
37 | .syntaxhighlighter .toolbar{position:absolute !important;right:1px !important;top:1px !important;width:11px !important;height:11px !important;font-size:10px !important;z-index:10 !important;}
38 | .syntaxhighlighter .toolbar span.title{display:inline !important;}
39 | .syntaxhighlighter .toolbar a{display:block !important;text-align:center !important;text-decoration:none !important;padding-top:1px !important;}
40 | .syntaxhighlighter .toolbar a.expandSource{display:none !important;}
41 | .syntaxhighlighter.ie{font-size:0.9em !important;padding:1px 0 1px 0 !important;}
42 | .syntaxhighlighter.ie .toolbar{line-height:8px !important;}
43 | .syntaxhighlighter.ie .toolbar a{padding-top:0px !important;}
44 | .syntaxhighlighter.printing .line.alt1 .content,.syntaxhighlighter.printing .line.alt2 .content,.syntaxhighlighter.printing .line.highlighted .number,.syntaxhighlighter.printing .line.highlighted.alt1 .content,.syntaxhighlighter.printing .line.highlighted.alt2 .content{background:none !important;}
45 | .syntaxhighlighter.printing .line .number{color:#bbbbbb !important;}
46 | .syntaxhighlighter.printing .line .content{color:black !important;}
47 | .syntaxhighlighter.printing .toolbar{display:none !important;}
48 | .syntaxhighlighter.printing a{text-decoration:none !important;}
49 | .syntaxhighlighter.printing .plain,.syntaxhighlighter.printing .plain a{color:black !important;}
50 | .syntaxhighlighter.printing .comments,.syntaxhighlighter.printing .comments a{color:#008200 !important;}
51 | .syntaxhighlighter.printing .string,.syntaxhighlighter.printing .string a{color:blue !important;}
52 | .syntaxhighlighter.printing .keyword{color:#006699 !important;font-weight:bold !important;}
53 | .syntaxhighlighter.printing .preprocessor{color:gray !important;}
54 | .syntaxhighlighter.printing .variable{color:#aa7700 !important;}
55 | .syntaxhighlighter.printing .value{color:#009900 !important;}
56 | .syntaxhighlighter.printing .functions{color:deeppink !important;}
57 | .syntaxhighlighter.printing .constants{color:#0066cc !important;}
58 | .syntaxhighlighter.printing .script{font-weight:bold !important;}
59 | .syntaxhighlighter.printing .color1,.syntaxhighlighter.printing .color1 a{color:gray !important;}
60 | .syntaxhighlighter.printing .color2,.syntaxhighlighter.printing .color2 a{color:deeppink !important;}
61 | .syntaxhighlighter.printing .color3,.syntaxhighlighter.printing .color3 a{color:red !important;}
62 | .syntaxhighlighter.printing .break,.syntaxhighlighter.printing .break a{color:black !important;}
63 | .syntaxhighlighter{background-color:white !important;}
64 | .syntaxhighlighter .line.alt1{background-color:white !important;}
65 | .syntaxhighlighter .line.alt2{background-color:white !important;}
66 | .syntaxhighlighter .line.highlighted.alt1,.syntaxhighlighter .line.highlighted.alt2{background-color:#c3defe !important;}
67 | .syntaxhighlighter .line.highlighted.number{color:white !important;}
68 | .syntaxhighlighter table caption{color:black !important;}
69 | .syntaxhighlighter table td.code .container textarea{background:white;color:black;}
70 | .syntaxhighlighter .gutter{color:#787878 !important;}
71 | .syntaxhighlighter .gutter .line{border-right:3px solid #d4d0c8 !important;}
72 | .syntaxhighlighter .gutter .line.highlighted{background-color:#d4d0c8 !important;color:white !important;}
73 | .syntaxhighlighter.printing .line .content{border:none !important;}
74 | .syntaxhighlighter.collapsed{overflow:visible !important;}
75 | .syntaxhighlighter.collapsed .toolbar{color:#3f5fbf !important;background:white !important;border:1px solid #d4d0c8 !important;}
76 | .syntaxhighlighter.collapsed .toolbar a{color:#3f5fbf !important;}
77 | .syntaxhighlighter.collapsed .toolbar a:hover{color:#aa7700 !important;}
78 | .syntaxhighlighter .toolbar{color:#a0a0a0 !important;background:#d4d0c8 !important;border:none !important;}
79 | .syntaxhighlighter .toolbar a{color:#a0a0a0 !important;}
80 | .syntaxhighlighter .toolbar a:hover{color:red !important;}
81 | .syntaxhighlighter .plain,.syntaxhighlighter .plain a{color:black !important;}
82 | .syntaxhighlighter .comments,.syntaxhighlighter .comments a{color:#3f5fbf !important;}
83 | .syntaxhighlighter .string,.syntaxhighlighter .string a{color:#2a00ff !important;}
84 | .syntaxhighlighter .keyword{color:#7f0055 !important;}
85 | .syntaxhighlighter .preprocessor{color:#646464 !important;}
86 | .syntaxhighlighter .variable{color:#aa7700 !important;}
87 | .syntaxhighlighter .value{color:#009900 !important;}
88 | .syntaxhighlighter .functions{color:deeppink !important;}
89 | .syntaxhighlighter .constants{color:#0066cc !important;}
90 | .syntaxhighlighter .script{font-weight:bold !important;color:#7f0055 !important;background-color:none !important;}
91 | .syntaxhighlighter .color1,.syntaxhighlighter .color1 a{color:grey !important;}
92 | .syntaxhighlighter .color2,.syntaxhighlighter .color2 a{color:deeppink !important;}
93 | .syntaxhighlighter .color3,.syntaxhighlighter .color3 a{color:red !important;}
94 | .syntaxhighlighter .keyword{font-weight:bold !important;}
95 | .syntaxhighlighter .xml .keyword{color:#3f7f7f !important;font-weight:normal !important;}
96 | .syntaxhighlighter .xml .color1,.syntaxhighlighter .xml .color1 a{color:#7f007f !important;}
97 | .syntaxhighlighter .xml .string{font-style:italic !important;color:#2a00ff !important;}
98 |
--------------------------------------------------------------------------------
/styles/shCoreEmacs.css:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Sat, 11 Jan 2014 12:27:26 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | .syntaxhighlighter a,.syntaxhighlighter div,.syntaxhighlighter code,.syntaxhighlighter table,.syntaxhighlighter table td,.syntaxhighlighter table tr,.syntaxhighlighter table tbody,.syntaxhighlighter table thead,.syntaxhighlighter table caption,.syntaxhighlighter textarea{-moz-border-radius:0 0 0 0 !important;-webkit-border-radius:0 0 0 0 !important;background:none !important;border:0 !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0 !important;outline:0 !important;overflow:visible !important;padding:0 !important;position:static !important;right:auto !important;text-align:left !important;top:auto !important;vertical-align:baseline !important;width:auto !important;box-sizing:content-box !important;font-family:"Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace !important;font-weight:normal !important;font-style:normal !important;font-size:1em !important;min-height:inherit !important;min-height:auto !important;}
18 | .syntaxhighlighter{width:100% !important;word-wrap:normal !important;margin:1em 0 1em 0 !important;position:relative !important;overflow:auto !important;font-size:1em !important;}
19 | .syntaxhighlighter.source{overflow:hidden !important;}
20 | .syntaxhighlighter .bold{font-weight:bold !important;}
21 | .syntaxhighlighter .italic{font-style:italic !important;}
22 | .syntaxhighlighter .line{white-space:pre !important;}
23 | .syntaxhighlighter table{width:100% !important;margin:1px 0 !important;}
24 | .syntaxhighlighter table caption{text-align:left !important;padding:0.5em 0 0.5em 1em !important;}
25 | .syntaxhighlighter table td.code{width:100% !important;}
26 | .syntaxhighlighter table td.code .container{position:relative !important;}
27 | .syntaxhighlighter table td.code .container textarea{box-sizing:border-box !important;position:absolute !important;left:0 !important;top:0 !important;width:100% !important;height:100% !important;border:none !important;background:white !important;padding-left:1em !important;overflow:hidden !important;white-space:pre !important;word-wrap:normal !important;}
28 | .syntaxhighlighter table td.gutter .line{text-align:right !important;padding:0 0.5em 0 1em !important;}
29 | .syntaxhighlighter table td.code .line{padding:0 1em !important;}
30 | .syntaxhighlighter.nogutter td.code .container textarea,.syntaxhighlighter.nogutter td.code .line{padding-left:0em !important;}
31 | .syntaxhighlighter.show{display:block !important;}
32 | .syntaxhighlighter.collapsed table{display:none !important;}
33 | .syntaxhighlighter.collapsed .toolbar{padding:0.1em 0.8em 0em 0.8em !important;font-size:1em !important;position:static !important;width:auto !important;height:auto !important;}
34 | .syntaxhighlighter.collapsed .toolbar span{display:inline !important;margin-right:1em !important;}
35 | .syntaxhighlighter.collapsed .toolbar span a{padding:0 !important;display:none !important;}
36 | .syntaxhighlighter.collapsed .toolbar span a.expandSource{display:inline !important;}
37 | .syntaxhighlighter .toolbar{position:absolute !important;right:1px !important;top:1px !important;width:11px !important;height:11px !important;font-size:10px !important;z-index:10 !important;}
38 | .syntaxhighlighter .toolbar span.title{display:inline !important;}
39 | .syntaxhighlighter .toolbar a{display:block !important;text-align:center !important;text-decoration:none !important;padding-top:1px !important;}
40 | .syntaxhighlighter .toolbar a.expandSource{display:none !important;}
41 | .syntaxhighlighter.ie{font-size:0.9em !important;padding:1px 0 1px 0 !important;}
42 | .syntaxhighlighter.ie .toolbar{line-height:8px !important;}
43 | .syntaxhighlighter.ie .toolbar a{padding-top:0px !important;}
44 | .syntaxhighlighter.printing .line.alt1 .content,.syntaxhighlighter.printing .line.alt2 .content,.syntaxhighlighter.printing .line.highlighted .number,.syntaxhighlighter.printing .line.highlighted.alt1 .content,.syntaxhighlighter.printing .line.highlighted.alt2 .content{background:none !important;}
45 | .syntaxhighlighter.printing .line .number{color:#bbbbbb !important;}
46 | .syntaxhighlighter.printing .line .content{color:black !important;}
47 | .syntaxhighlighter.printing .toolbar{display:none !important;}
48 | .syntaxhighlighter.printing a{text-decoration:none !important;}
49 | .syntaxhighlighter.printing .plain,.syntaxhighlighter.printing .plain a{color:black !important;}
50 | .syntaxhighlighter.printing .comments,.syntaxhighlighter.printing .comments a{color:#008200 !important;}
51 | .syntaxhighlighter.printing .string,.syntaxhighlighter.printing .string a{color:blue !important;}
52 | .syntaxhighlighter.printing .keyword{color:#006699 !important;font-weight:bold !important;}
53 | .syntaxhighlighter.printing .preprocessor{color:gray !important;}
54 | .syntaxhighlighter.printing .variable{color:#aa7700 !important;}
55 | .syntaxhighlighter.printing .value{color:#009900 !important;}
56 | .syntaxhighlighter.printing .functions{color:deeppink !important;}
57 | .syntaxhighlighter.printing .constants{color:#0066cc !important;}
58 | .syntaxhighlighter.printing .script{font-weight:bold !important;}
59 | .syntaxhighlighter.printing .color1,.syntaxhighlighter.printing .color1 a{color:gray !important;}
60 | .syntaxhighlighter.printing .color2,.syntaxhighlighter.printing .color2 a{color:deeppink !important;}
61 | .syntaxhighlighter.printing .color3,.syntaxhighlighter.printing .color3 a{color:red !important;}
62 | .syntaxhighlighter.printing .break,.syntaxhighlighter.printing .break a{color:black !important;}
63 | .syntaxhighlighter{background-color:black !important;}
64 | .syntaxhighlighter .line.alt1{background-color:black !important;}
65 | .syntaxhighlighter .line.alt2{background-color:black !important;}
66 | .syntaxhighlighter .line.highlighted.alt1,.syntaxhighlighter .line.highlighted.alt2{background-color:#2a3133 !important;}
67 | .syntaxhighlighter .line.highlighted.number{color:white !important;}
68 | .syntaxhighlighter table caption{color:lightgrey !important;}
69 | .syntaxhighlighter table td.code .container textarea{background:black;color:lightgrey;}
70 | .syntaxhighlighter .gutter{color:lightgrey !important;}
71 | .syntaxhighlighter .gutter .line{border-right:3px solid #990000 !important;}
72 | .syntaxhighlighter .gutter .line.highlighted{background-color:#990000 !important;color:black !important;}
73 | .syntaxhighlighter.printing .line .content{border:none !important;}
74 | .syntaxhighlighter.collapsed{overflow:visible !important;}
75 | .syntaxhighlighter.collapsed .toolbar{color:#ebdb8d !important;background:black !important;border:1px solid #990000 !important;}
76 | .syntaxhighlighter.collapsed .toolbar a{color:#ebdb8d !important;}
77 | .syntaxhighlighter.collapsed .toolbar a:hover{color:#ff7d27 !important;}
78 | .syntaxhighlighter .toolbar{color:white !important;background:#990000 !important;border:none !important;}
79 | .syntaxhighlighter .toolbar a{color:white !important;}
80 | .syntaxhighlighter .toolbar a:hover{color:#9ccff4 !important;}
81 | .syntaxhighlighter .plain,.syntaxhighlighter .plain a{color:lightgrey !important;}
82 | .syntaxhighlighter .comments,.syntaxhighlighter .comments a{color:#ff7d27 !important;}
83 | .syntaxhighlighter .string,.syntaxhighlighter .string a{color:#ff9e7b !important;}
84 | .syntaxhighlighter .keyword{color:cyan !important;}
85 | .syntaxhighlighter .preprocessor{color:#aec4de !important;}
86 | .syntaxhighlighter .variable{color:#ffaa3e !important;}
87 | .syntaxhighlighter .value{color:#009900 !important;}
88 | .syntaxhighlighter .functions{color:#81cef9 !important;}
89 | .syntaxhighlighter .constants{color:#ff9e7b !important;}
90 | .syntaxhighlighter .script{font-weight:bold !important;color:cyan !important;background-color:none !important;}
91 | .syntaxhighlighter .color1,.syntaxhighlighter .color1 a{color:#ebdb8d !important;}
92 | .syntaxhighlighter .color2,.syntaxhighlighter .color2 a{color:#ff7d27 !important;}
93 | .syntaxhighlighter .color3,.syntaxhighlighter .color3 a{color:#aec4de !important;}
94 |
--------------------------------------------------------------------------------
/styles/shCoreFadeToGrey.css:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Sat, 11 Jan 2014 12:27:26 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | .syntaxhighlighter a,.syntaxhighlighter div,.syntaxhighlighter code,.syntaxhighlighter table,.syntaxhighlighter table td,.syntaxhighlighter table tr,.syntaxhighlighter table tbody,.syntaxhighlighter table thead,.syntaxhighlighter table caption,.syntaxhighlighter textarea{-moz-border-radius:0 0 0 0 !important;-webkit-border-radius:0 0 0 0 !important;background:none !important;border:0 !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0 !important;outline:0 !important;overflow:visible !important;padding:0 !important;position:static !important;right:auto !important;text-align:left !important;top:auto !important;vertical-align:baseline !important;width:auto !important;box-sizing:content-box !important;font-family:"Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace !important;font-weight:normal !important;font-style:normal !important;font-size:1em !important;min-height:inherit !important;min-height:auto !important;}
18 | .syntaxhighlighter{width:100% !important;word-wrap:normal !important;margin:1em 0 1em 0 !important;position:relative !important;overflow:auto !important;font-size:1em !important;}
19 | .syntaxhighlighter.source{overflow:hidden !important;}
20 | .syntaxhighlighter .bold{font-weight:bold !important;}
21 | .syntaxhighlighter .italic{font-style:italic !important;}
22 | .syntaxhighlighter .line{white-space:pre !important;}
23 | .syntaxhighlighter table{width:100% !important;margin:1px 0 !important;}
24 | .syntaxhighlighter table caption{text-align:left !important;padding:0.5em 0 0.5em 1em !important;}
25 | .syntaxhighlighter table td.code{width:100% !important;}
26 | .syntaxhighlighter table td.code .container{position:relative !important;}
27 | .syntaxhighlighter table td.code .container textarea{box-sizing:border-box !important;position:absolute !important;left:0 !important;top:0 !important;width:100% !important;height:100% !important;border:none !important;background:white !important;padding-left:1em !important;overflow:hidden !important;white-space:pre !important;word-wrap:normal !important;}
28 | .syntaxhighlighter table td.gutter .line{text-align:right !important;padding:0 0.5em 0 1em !important;}
29 | .syntaxhighlighter table td.code .line{padding:0 1em !important;}
30 | .syntaxhighlighter.nogutter td.code .container textarea,.syntaxhighlighter.nogutter td.code .line{padding-left:0em !important;}
31 | .syntaxhighlighter.show{display:block !important;}
32 | .syntaxhighlighter.collapsed table{display:none !important;}
33 | .syntaxhighlighter.collapsed .toolbar{padding:0.1em 0.8em 0em 0.8em !important;font-size:1em !important;position:static !important;width:auto !important;height:auto !important;}
34 | .syntaxhighlighter.collapsed .toolbar span{display:inline !important;margin-right:1em !important;}
35 | .syntaxhighlighter.collapsed .toolbar span a{padding:0 !important;display:none !important;}
36 | .syntaxhighlighter.collapsed .toolbar span a.expandSource{display:inline !important;}
37 | .syntaxhighlighter .toolbar{position:absolute !important;right:1px !important;top:1px !important;width:11px !important;height:11px !important;font-size:10px !important;z-index:10 !important;}
38 | .syntaxhighlighter .toolbar span.title{display:inline !important;}
39 | .syntaxhighlighter .toolbar a{display:block !important;text-align:center !important;text-decoration:none !important;padding-top:1px !important;}
40 | .syntaxhighlighter .toolbar a.expandSource{display:none !important;}
41 | .syntaxhighlighter.ie{font-size:0.9em !important;padding:1px 0 1px 0 !important;}
42 | .syntaxhighlighter.ie .toolbar{line-height:8px !important;}
43 | .syntaxhighlighter.ie .toolbar a{padding-top:0px !important;}
44 | .syntaxhighlighter.printing .line.alt1 .content,.syntaxhighlighter.printing .line.alt2 .content,.syntaxhighlighter.printing .line.highlighted .number,.syntaxhighlighter.printing .line.highlighted.alt1 .content,.syntaxhighlighter.printing .line.highlighted.alt2 .content{background:none !important;}
45 | .syntaxhighlighter.printing .line .number{color:#bbbbbb !important;}
46 | .syntaxhighlighter.printing .line .content{color:black !important;}
47 | .syntaxhighlighter.printing .toolbar{display:none !important;}
48 | .syntaxhighlighter.printing a{text-decoration:none !important;}
49 | .syntaxhighlighter.printing .plain,.syntaxhighlighter.printing .plain a{color:black !important;}
50 | .syntaxhighlighter.printing .comments,.syntaxhighlighter.printing .comments a{color:#008200 !important;}
51 | .syntaxhighlighter.printing .string,.syntaxhighlighter.printing .string a{color:blue !important;}
52 | .syntaxhighlighter.printing .keyword{color:#006699 !important;font-weight:bold !important;}
53 | .syntaxhighlighter.printing .preprocessor{color:gray !important;}
54 | .syntaxhighlighter.printing .variable{color:#aa7700 !important;}
55 | .syntaxhighlighter.printing .value{color:#009900 !important;}
56 | .syntaxhighlighter.printing .functions{color:deeppink !important;}
57 | .syntaxhighlighter.printing .constants{color:#0066cc !important;}
58 | .syntaxhighlighter.printing .script{font-weight:bold !important;}
59 | .syntaxhighlighter.printing .color1,.syntaxhighlighter.printing .color1 a{color:gray !important;}
60 | .syntaxhighlighter.printing .color2,.syntaxhighlighter.printing .color2 a{color:deeppink !important;}
61 | .syntaxhighlighter.printing .color3,.syntaxhighlighter.printing .color3 a{color:red !important;}
62 | .syntaxhighlighter.printing .break,.syntaxhighlighter.printing .break a{color:black !important;}
63 | .syntaxhighlighter{background-color:#121212 !important;}
64 | .syntaxhighlighter .line.alt1{background-color:#121212 !important;}
65 | .syntaxhighlighter .line.alt2{background-color:#121212 !important;}
66 | .syntaxhighlighter .line.highlighted.alt1,.syntaxhighlighter .line.highlighted.alt2{background-color:#2c2c29 !important;}
67 | .syntaxhighlighter .line.highlighted.number{color:white !important;}
68 | .syntaxhighlighter table caption{color:white !important;}
69 | .syntaxhighlighter table td.code .container textarea{background:#121212;color:white;}
70 | .syntaxhighlighter .gutter{color:#afafaf !important;}
71 | .syntaxhighlighter .gutter .line{border-right:3px solid #3185b9 !important;}
72 | .syntaxhighlighter .gutter .line.highlighted{background-color:#3185b9 !important;color:#121212 !important;}
73 | .syntaxhighlighter.printing .line .content{border:none !important;}
74 | .syntaxhighlighter.collapsed{overflow:visible !important;}
75 | .syntaxhighlighter.collapsed .toolbar{color:#3185b9 !important;background:black !important;border:1px solid #3185b9 !important;}
76 | .syntaxhighlighter.collapsed .toolbar a{color:#3185b9 !important;}
77 | .syntaxhighlighter.collapsed .toolbar a:hover{color:#d01d33 !important;}
78 | .syntaxhighlighter .toolbar{color:white !important;background:#3185b9 !important;border:none !important;}
79 | .syntaxhighlighter .toolbar a{color:white !important;}
80 | .syntaxhighlighter .toolbar a:hover{color:#96daff !important;}
81 | .syntaxhighlighter .plain,.syntaxhighlighter .plain a{color:white !important;}
82 | .syntaxhighlighter .comments,.syntaxhighlighter .comments a{color:#696854 !important;}
83 | .syntaxhighlighter .string,.syntaxhighlighter .string a{color:#e3e658 !important;}
84 | .syntaxhighlighter .keyword{color:#d01d33 !important;}
85 | .syntaxhighlighter .preprocessor{color:#435a5f !important;}
86 | .syntaxhighlighter .variable{color:#898989 !important;}
87 | .syntaxhighlighter .value{color:#009900 !important;}
88 | .syntaxhighlighter .functions{color:#aaaaaa !important;}
89 | .syntaxhighlighter .constants{color:#96daff !important;}
90 | .syntaxhighlighter .script{font-weight:bold !important;color:#d01d33 !important;background-color:none !important;}
91 | .syntaxhighlighter .color1,.syntaxhighlighter .color1 a{color:#ffc074 !important;}
92 | .syntaxhighlighter .color2,.syntaxhighlighter .color2 a{color:#4a8cdb !important;}
93 | .syntaxhighlighter .color3,.syntaxhighlighter .color3 a{color:#96daff !important;}
94 | .syntaxhighlighter .functions{font-weight:bold !important;}
95 |
--------------------------------------------------------------------------------
/styles/shCoreMDUltra.css:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Sat, 11 Jan 2014 12:27:26 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | .syntaxhighlighter a,.syntaxhighlighter div,.syntaxhighlighter code,.syntaxhighlighter table,.syntaxhighlighter table td,.syntaxhighlighter table tr,.syntaxhighlighter table tbody,.syntaxhighlighter table thead,.syntaxhighlighter table caption,.syntaxhighlighter textarea{-moz-border-radius:0 0 0 0 !important;-webkit-border-radius:0 0 0 0 !important;background:none !important;border:0 !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0 !important;outline:0 !important;overflow:visible !important;padding:0 !important;position:static !important;right:auto !important;text-align:left !important;top:auto !important;vertical-align:baseline !important;width:auto !important;box-sizing:content-box !important;font-family:"Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace !important;font-weight:normal !important;font-style:normal !important;font-size:1em !important;min-height:inherit !important;min-height:auto !important;}
18 | .syntaxhighlighter{width:100% !important;word-wrap:normal !important;margin:1em 0 1em 0 !important;position:relative !important;overflow:auto !important;font-size:1em !important;}
19 | .syntaxhighlighter.source{overflow:hidden !important;}
20 | .syntaxhighlighter .bold{font-weight:bold !important;}
21 | .syntaxhighlighter .italic{font-style:italic !important;}
22 | .syntaxhighlighter .line{white-space:pre !important;}
23 | .syntaxhighlighter table{width:100% !important;margin:1px 0 !important;}
24 | .syntaxhighlighter table caption{text-align:left !important;padding:0.5em 0 0.5em 1em !important;}
25 | .syntaxhighlighter table td.code{width:100% !important;}
26 | .syntaxhighlighter table td.code .container{position:relative !important;}
27 | .syntaxhighlighter table td.code .container textarea{box-sizing:border-box !important;position:absolute !important;left:0 !important;top:0 !important;width:100% !important;height:100% !important;border:none !important;background:white !important;padding-left:1em !important;overflow:hidden !important;white-space:pre !important;word-wrap:normal !important;}
28 | .syntaxhighlighter table td.gutter .line{text-align:right !important;padding:0 0.5em 0 1em !important;}
29 | .syntaxhighlighter table td.code .line{padding:0 1em !important;}
30 | .syntaxhighlighter.nogutter td.code .container textarea,.syntaxhighlighter.nogutter td.code .line{padding-left:0em !important;}
31 | .syntaxhighlighter.show{display:block !important;}
32 | .syntaxhighlighter.collapsed table{display:none !important;}
33 | .syntaxhighlighter.collapsed .toolbar{padding:0.1em 0.8em 0em 0.8em !important;font-size:1em !important;position:static !important;width:auto !important;height:auto !important;}
34 | .syntaxhighlighter.collapsed .toolbar span{display:inline !important;margin-right:1em !important;}
35 | .syntaxhighlighter.collapsed .toolbar span a{padding:0 !important;display:none !important;}
36 | .syntaxhighlighter.collapsed .toolbar span a.expandSource{display:inline !important;}
37 | .syntaxhighlighter .toolbar{position:absolute !important;right:1px !important;top:1px !important;width:11px !important;height:11px !important;font-size:10px !important;z-index:10 !important;}
38 | .syntaxhighlighter .toolbar span.title{display:inline !important;}
39 | .syntaxhighlighter .toolbar a{display:block !important;text-align:center !important;text-decoration:none !important;padding-top:1px !important;}
40 | .syntaxhighlighter .toolbar a.expandSource{display:none !important;}
41 | .syntaxhighlighter.ie{font-size:0.9em !important;padding:1px 0 1px 0 !important;}
42 | .syntaxhighlighter.ie .toolbar{line-height:8px !important;}
43 | .syntaxhighlighter.ie .toolbar a{padding-top:0px !important;}
44 | .syntaxhighlighter.printing .line.alt1 .content,.syntaxhighlighter.printing .line.alt2 .content,.syntaxhighlighter.printing .line.highlighted .number,.syntaxhighlighter.printing .line.highlighted.alt1 .content,.syntaxhighlighter.printing .line.highlighted.alt2 .content{background:none !important;}
45 | .syntaxhighlighter.printing .line .number{color:#bbbbbb !important;}
46 | .syntaxhighlighter.printing .line .content{color:black !important;}
47 | .syntaxhighlighter.printing .toolbar{display:none !important;}
48 | .syntaxhighlighter.printing a{text-decoration:none !important;}
49 | .syntaxhighlighter.printing .plain,.syntaxhighlighter.printing .plain a{color:black !important;}
50 | .syntaxhighlighter.printing .comments,.syntaxhighlighter.printing .comments a{color:#008200 !important;}
51 | .syntaxhighlighter.printing .string,.syntaxhighlighter.printing .string a{color:blue !important;}
52 | .syntaxhighlighter.printing .keyword{color:#006699 !important;font-weight:bold !important;}
53 | .syntaxhighlighter.printing .preprocessor{color:gray !important;}
54 | .syntaxhighlighter.printing .variable{color:#aa7700 !important;}
55 | .syntaxhighlighter.printing .value{color:#009900 !important;}
56 | .syntaxhighlighter.printing .functions{color:deeppink !important;}
57 | .syntaxhighlighter.printing .constants{color:#0066cc !important;}
58 | .syntaxhighlighter.printing .script{font-weight:bold !important;}
59 | .syntaxhighlighter.printing .color1,.syntaxhighlighter.printing .color1 a{color:gray !important;}
60 | .syntaxhighlighter.printing .color2,.syntaxhighlighter.printing .color2 a{color:deeppink !important;}
61 | .syntaxhighlighter.printing .color3,.syntaxhighlighter.printing .color3 a{color:red !important;}
62 | .syntaxhighlighter.printing .break,.syntaxhighlighter.printing .break a{color:black !important;}
63 | .syntaxhighlighter{background-color:#222222 !important;}
64 | .syntaxhighlighter .line.alt1{background-color:#222222 !important;}
65 | .syntaxhighlighter .line.alt2{background-color:#222222 !important;}
66 | .syntaxhighlighter .line.highlighted.alt1,.syntaxhighlighter .line.highlighted.alt2{background-color:#253e5a !important;}
67 | .syntaxhighlighter .line.highlighted.number{color:white !important;}
68 | .syntaxhighlighter table caption{color:lime !important;}
69 | .syntaxhighlighter table td.code .container textarea{background:#222222;color:lime;}
70 | .syntaxhighlighter .gutter{color:#38566f !important;}
71 | .syntaxhighlighter .gutter .line{border-right:3px solid #435a5f !important;}
72 | .syntaxhighlighter .gutter .line.highlighted{background-color:#435a5f !important;color:#222222 !important;}
73 | .syntaxhighlighter.printing .line .content{border:none !important;}
74 | .syntaxhighlighter.collapsed{overflow:visible !important;}
75 | .syntaxhighlighter.collapsed .toolbar{color:#428bdd !important;background:black !important;border:1px solid #435a5f !important;}
76 | .syntaxhighlighter.collapsed .toolbar a{color:#428bdd !important;}
77 | .syntaxhighlighter.collapsed .toolbar a:hover{color:lime !important;}
78 | .syntaxhighlighter .toolbar{color:#aaaaff !important;background:#435a5f !important;border:none !important;}
79 | .syntaxhighlighter .toolbar a{color:#aaaaff !important;}
80 | .syntaxhighlighter .toolbar a:hover{color:#9ccff4 !important;}
81 | .syntaxhighlighter .plain,.syntaxhighlighter .plain a{color:lime !important;}
82 | .syntaxhighlighter .comments,.syntaxhighlighter .comments a{color:#428bdd !important;}
83 | .syntaxhighlighter .string,.syntaxhighlighter .string a{color:lime !important;}
84 | .syntaxhighlighter .keyword{color:#aaaaff !important;}
85 | .syntaxhighlighter .preprocessor{color:#8aa6c1 !important;}
86 | .syntaxhighlighter .variable{color:cyan !important;}
87 | .syntaxhighlighter .value{color:#f7e741 !important;}
88 | .syntaxhighlighter .functions{color:#ff8000 !important;}
89 | .syntaxhighlighter .constants{color:yellow !important;}
90 | .syntaxhighlighter .script{font-weight:bold !important;color:#aaaaff !important;background-color:none !important;}
91 | .syntaxhighlighter .color1,.syntaxhighlighter .color1 a{color:red !important;}
92 | .syntaxhighlighter .color2,.syntaxhighlighter .color2 a{color:yellow !important;}
93 | .syntaxhighlighter .color3,.syntaxhighlighter .color3 a{color:#ffaa3e !important;}
94 |
--------------------------------------------------------------------------------
/styles/shCoreMidnight.css:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Sat, 11 Jan 2014 12:27:26 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | .syntaxhighlighter a,.syntaxhighlighter div,.syntaxhighlighter code,.syntaxhighlighter table,.syntaxhighlighter table td,.syntaxhighlighter table tr,.syntaxhighlighter table tbody,.syntaxhighlighter table thead,.syntaxhighlighter table caption,.syntaxhighlighter textarea{-moz-border-radius:0 0 0 0 !important;-webkit-border-radius:0 0 0 0 !important;background:none !important;border:0 !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0 !important;outline:0 !important;overflow:visible !important;padding:0 !important;position:static !important;right:auto !important;text-align:left !important;top:auto !important;vertical-align:baseline !important;width:auto !important;box-sizing:content-box !important;font-family:"Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace !important;font-weight:normal !important;font-style:normal !important;font-size:1em !important;min-height:inherit !important;min-height:auto !important;}
18 | .syntaxhighlighter{width:100% !important;word-wrap:normal !important;margin:1em 0 1em 0 !important;position:relative !important;overflow:auto !important;font-size:1em !important;}
19 | .syntaxhighlighter.source{overflow:hidden !important;}
20 | .syntaxhighlighter .bold{font-weight:bold !important;}
21 | .syntaxhighlighter .italic{font-style:italic !important;}
22 | .syntaxhighlighter .line{white-space:pre !important;}
23 | .syntaxhighlighter table{width:100% !important;margin:1px 0 !important;}
24 | .syntaxhighlighter table caption{text-align:left !important;padding:0.5em 0 0.5em 1em !important;}
25 | .syntaxhighlighter table td.code{width:100% !important;}
26 | .syntaxhighlighter table td.code .container{position:relative !important;}
27 | .syntaxhighlighter table td.code .container textarea{box-sizing:border-box !important;position:absolute !important;left:0 !important;top:0 !important;width:100% !important;height:100% !important;border:none !important;background:white !important;padding-left:1em !important;overflow:hidden !important;white-space:pre !important;word-wrap:normal !important;}
28 | .syntaxhighlighter table td.gutter .line{text-align:right !important;padding:0 0.5em 0 1em !important;}
29 | .syntaxhighlighter table td.code .line{padding:0 1em !important;}
30 | .syntaxhighlighter.nogutter td.code .container textarea,.syntaxhighlighter.nogutter td.code .line{padding-left:0em !important;}
31 | .syntaxhighlighter.show{display:block !important;}
32 | .syntaxhighlighter.collapsed table{display:none !important;}
33 | .syntaxhighlighter.collapsed .toolbar{padding:0.1em 0.8em 0em 0.8em !important;font-size:1em !important;position:static !important;width:auto !important;height:auto !important;}
34 | .syntaxhighlighter.collapsed .toolbar span{display:inline !important;margin-right:1em !important;}
35 | .syntaxhighlighter.collapsed .toolbar span a{padding:0 !important;display:none !important;}
36 | .syntaxhighlighter.collapsed .toolbar span a.expandSource{display:inline !important;}
37 | .syntaxhighlighter .toolbar{position:absolute !important;right:1px !important;top:1px !important;width:11px !important;height:11px !important;font-size:10px !important;z-index:10 !important;}
38 | .syntaxhighlighter .toolbar span.title{display:inline !important;}
39 | .syntaxhighlighter .toolbar a{display:block !important;text-align:center !important;text-decoration:none !important;padding-top:1px !important;}
40 | .syntaxhighlighter .toolbar a.expandSource{display:none !important;}
41 | .syntaxhighlighter.ie{font-size:0.9em !important;padding:1px 0 1px 0 !important;}
42 | .syntaxhighlighter.ie .toolbar{line-height:8px !important;}
43 | .syntaxhighlighter.ie .toolbar a{padding-top:0px !important;}
44 | .syntaxhighlighter.printing .line.alt1 .content,.syntaxhighlighter.printing .line.alt2 .content,.syntaxhighlighter.printing .line.highlighted .number,.syntaxhighlighter.printing .line.highlighted.alt1 .content,.syntaxhighlighter.printing .line.highlighted.alt2 .content{background:none !important;}
45 | .syntaxhighlighter.printing .line .number{color:#bbbbbb !important;}
46 | .syntaxhighlighter.printing .line .content{color:black !important;}
47 | .syntaxhighlighter.printing .toolbar{display:none !important;}
48 | .syntaxhighlighter.printing a{text-decoration:none !important;}
49 | .syntaxhighlighter.printing .plain,.syntaxhighlighter.printing .plain a{color:black !important;}
50 | .syntaxhighlighter.printing .comments,.syntaxhighlighter.printing .comments a{color:#008200 !important;}
51 | .syntaxhighlighter.printing .string,.syntaxhighlighter.printing .string a{color:blue !important;}
52 | .syntaxhighlighter.printing .keyword{color:#006699 !important;font-weight:bold !important;}
53 | .syntaxhighlighter.printing .preprocessor{color:gray !important;}
54 | .syntaxhighlighter.printing .variable{color:#aa7700 !important;}
55 | .syntaxhighlighter.printing .value{color:#009900 !important;}
56 | .syntaxhighlighter.printing .functions{color:deeppink !important;}
57 | .syntaxhighlighter.printing .constants{color:#0066cc !important;}
58 | .syntaxhighlighter.printing .script{font-weight:bold !important;}
59 | .syntaxhighlighter.printing .color1,.syntaxhighlighter.printing .color1 a{color:gray !important;}
60 | .syntaxhighlighter.printing .color2,.syntaxhighlighter.printing .color2 a{color:deeppink !important;}
61 | .syntaxhighlighter.printing .color3,.syntaxhighlighter.printing .color3 a{color:red !important;}
62 | .syntaxhighlighter.printing .break,.syntaxhighlighter.printing .break a{color:black !important;}
63 | .syntaxhighlighter{background-color:#0f192a !important;}
64 | .syntaxhighlighter .line.alt1{background-color:#0f192a !important;}
65 | .syntaxhighlighter .line.alt2{background-color:#0f192a !important;}
66 | .syntaxhighlighter .line.highlighted.alt1,.syntaxhighlighter .line.highlighted.alt2{background-color:#253e5a !important;}
67 | .syntaxhighlighter .line.highlighted.number{color:#38566f !important;}
68 | .syntaxhighlighter table caption{color:#d1edff !important;}
69 | .syntaxhighlighter table td.code .container textarea{background:#0f192a;color:#d1edff;}
70 | .syntaxhighlighter .gutter{color:#afafaf !important;}
71 | .syntaxhighlighter .gutter .line{border-right:3px solid #435a5f !important;}
72 | .syntaxhighlighter .gutter .line.highlighted{background-color:#435a5f !important;color:#0f192a !important;}
73 | .syntaxhighlighter.printing .line .content{border:none !important;}
74 | .syntaxhighlighter.collapsed{overflow:visible !important;}
75 | .syntaxhighlighter.collapsed .toolbar{color:#428bdd !important;background:black !important;border:1px solid #435a5f !important;}
76 | .syntaxhighlighter.collapsed .toolbar a{color:#428bdd !important;}
77 | .syntaxhighlighter.collapsed .toolbar a:hover{color:#1dc116 !important;}
78 | .syntaxhighlighter .toolbar{color:#d1edff !important;background:#435a5f !important;border:none !important;}
79 | .syntaxhighlighter .toolbar a{color:#d1edff !important;}
80 | .syntaxhighlighter .toolbar a:hover{color:#8aa6c1 !important;}
81 | .syntaxhighlighter .plain,.syntaxhighlighter .plain a{color:#d1edff !important;}
82 | .syntaxhighlighter .comments,.syntaxhighlighter .comments a{color:#428bdd !important;}
83 | .syntaxhighlighter .string,.syntaxhighlighter .string a{color:#1dc116 !important;}
84 | .syntaxhighlighter .keyword{color:#b43d3d !important;}
85 | .syntaxhighlighter .preprocessor{color:#8aa6c1 !important;}
86 | .syntaxhighlighter .variable{color:#ffaa3e !important;}
87 | .syntaxhighlighter .value{color:#f7e741 !important;}
88 | .syntaxhighlighter .functions{color:#ffaa3e !important;}
89 | .syntaxhighlighter .constants{color:#e0e8ff !important;}
90 | .syntaxhighlighter .script{font-weight:bold !important;color:#b43d3d !important;background-color:none !important;}
91 | .syntaxhighlighter .color1,.syntaxhighlighter .color1 a{color:#f8bb00 !important;}
92 | .syntaxhighlighter .color2,.syntaxhighlighter .color2 a{color:white !important;}
93 | .syntaxhighlighter .color3,.syntaxhighlighter .color3 a{color:#ffaa3e !important;}
94 |
--------------------------------------------------------------------------------
/styles/shCoreRDark.css:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/SyntaxHighlighter
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7 | *
8 | * @version
9 | * 3.0.83 (Sat, 11 Jan 2014 12:27:26 GMT)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2013 Alex Gorbatchev.
13 | *
14 | * @license
15 | * Dual licensed under the MIT and GPL licenses.
16 | */
17 | .syntaxhighlighter a,.syntaxhighlighter div,.syntaxhighlighter code,.syntaxhighlighter table,.syntaxhighlighter table td,.syntaxhighlighter table tr,.syntaxhighlighter table tbody,.syntaxhighlighter table thead,.syntaxhighlighter table caption,.syntaxhighlighter textarea{-moz-border-radius:0 0 0 0 !important;-webkit-border-radius:0 0 0 0 !important;background:none !important;border:0 !important;bottom:auto !important;float:none !important;height:auto !important;left:auto !important;line-height:1.1em !important;margin:0 !important;outline:0 !important;overflow:visible !important;padding:0 !important;position:static !important;right:auto !important;text-align:left !important;top:auto !important;vertical-align:baseline !important;width:auto !important;box-sizing:content-box !important;font-family:"Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace !important;font-weight:normal !important;font-style:normal !important;font-size:1em !important;min-height:inherit !important;min-height:auto !important;}
18 | .syntaxhighlighter{width:100% !important;word-wrap:normal !important;margin:1em 0 1em 0 !important;position:relative !important;overflow:auto !important;font-size:1em !important;}
19 | .syntaxhighlighter.source{overflow:hidden !important;}
20 | .syntaxhighlighter .bold{font-weight:bold !important;}
21 | .syntaxhighlighter .italic{font-style:italic !important;}
22 | .syntaxhighlighter .line{white-space:pre !important;}
23 | .syntaxhighlighter table{width:100% !important;margin:1px 0 !important;}
24 | .syntaxhighlighter table caption{text-align:left !important;padding:0.5em 0 0.5em 1em !important;}
25 | .syntaxhighlighter table td.code{width:100% !important;}
26 | .syntaxhighlighter table td.code .container{position:relative !important;}
27 | .syntaxhighlighter table td.code .container textarea{box-sizing:border-box !important;position:absolute !important;left:0 !important;top:0 !important;width:100% !important;height:100% !important;border:none !important;background:white !important;padding-left:1em !important;overflow:hidden !important;white-space:pre !important;word-wrap:normal !important;}
28 | .syntaxhighlighter table td.gutter .line{text-align:right !important;padding:0 0.5em 0 1em !important;}
29 | .syntaxhighlighter table td.code .line{padding:0 1em !important;}
30 | .syntaxhighlighter.nogutter td.code .container textarea,.syntaxhighlighter.nogutter td.code .line{padding-left:0em !important;}
31 | .syntaxhighlighter.show{display:block !important;}
32 | .syntaxhighlighter.collapsed table{display:none !important;}
33 | .syntaxhighlighter.collapsed .toolbar{padding:0.1em 0.8em 0em 0.8em !important;font-size:1em !important;position:static !important;width:auto !important;height:auto !important;}
34 | .syntaxhighlighter.collapsed .toolbar span{display:inline !important;margin-right:1em !important;}
35 | .syntaxhighlighter.collapsed .toolbar span a{padding:0 !important;display:none !important;}
36 | .syntaxhighlighter.collapsed .toolbar span a.expandSource{display:inline !important;}
37 | .syntaxhighlighter .toolbar{position:absolute !important;right:1px !important;top:1px !important;width:11px !important;height:11px !important;font-size:10px !important;z-index:10 !important;}
38 | .syntaxhighlighter .toolbar span.title{display:inline !important;}
39 | .syntaxhighlighter .toolbar a{display:block !important;text-align:center !important;text-decoration:none !important;padding-top:1px !important;}
40 | .syntaxhighlighter .toolbar a.expandSource{display:none !important;}
41 | .syntaxhighlighter.ie{font-size:0.9em !important;padding:1px 0 1px 0 !important;}
42 | .syntaxhighlighter.ie .toolbar{line-height:8px !important;}
43 | .syntaxhighlighter.ie .toolbar a{padding-top:0px !important;}
44 | .syntaxhighlighter.printing .line.alt1 .content,.syntaxhighlighter.printing .line.alt2 .content,.syntaxhighlighter.printing .line.highlighted .number,.syntaxhighlighter.printing .line.highlighted.alt1 .content,.syntaxhighlighter.printing .line.highlighted.alt2 .content{background:none !important;}
45 | .syntaxhighlighter.printing .line .number{color:#bbbbbb !important;}
46 | .syntaxhighlighter.printing .line .content{color:black !important;}
47 | .syntaxhighlighter.printing .toolbar{display:none !important;}
48 | .syntaxhighlighter.printing a{text-decoration:none !important;}
49 | .syntaxhighlighter.printing .plain,.syntaxhighlighter.printing .plain a{color:black !important;}
50 | .syntaxhighlighter.printing .comments,.syntaxhighlighter.printing .comments a{color:#008200 !important;}
51 | .syntaxhighlighter.printing .string,.syntaxhighlighter.printing .string a{color:blue !important;}
52 | .syntaxhighlighter.printing .keyword{color:#006699 !important;font-weight:bold !important;}
53 | .syntaxhighlighter.printing .preprocessor{color:gray !important;}
54 | .syntaxhighlighter.printing .variable{color:#aa7700 !important;}
55 | .syntaxhighlighter.printing .value{color:#009900 !important;}
56 | .syntaxhighlighter.printing .functions{color:deeppink !important;}
57 | .syntaxhighlighter.printing .constants{color:#0066cc !important;}
58 | .syntaxhighlighter.printing .script{font-weight:bold !important;}
59 | .syntaxhighlighter.printing .color1,.syntaxhighlighter.printing .color1 a{color:gray !important;}
60 | .syntaxhighlighter.printing .color2,.syntaxhighlighter.printing .color2 a{color:deeppink !important;}
61 | .syntaxhighlighter.printing .color3,.syntaxhighlighter.printing .color3 a{color:red !important;}
62 | .syntaxhighlighter.printing .break,.syntaxhighlighter.printing .break a{color:black !important;}
63 | .syntaxhighlighter{background-color:#1b2426 !important;}
64 | .syntaxhighlighter .line.alt1{background-color:#1b2426 !important;}
65 | .syntaxhighlighter .line.alt2{background-color:#1b2426 !important;}
66 | .syntaxhighlighter .line.highlighted.alt1,.syntaxhighlighter .line.highlighted.alt2{background-color:#323e41 !important;}
67 | .syntaxhighlighter .line.highlighted.number{color:#b9bdb6 !important;}
68 | .syntaxhighlighter table caption{color:#b9bdb6 !important;}
69 | .syntaxhighlighter table td.code .container textarea{background:#1b2426;color:#b9bdb6;}
70 | .syntaxhighlighter .gutter{color:#afafaf !important;}
71 | .syntaxhighlighter .gutter .line{border-right:3px solid #435a5f !important;}
72 | .syntaxhighlighter .gutter .line.highlighted{background-color:#435a5f !important;color:#1b2426 !important;}
73 | .syntaxhighlighter.printing .line .content{border:none !important;}
74 | .syntaxhighlighter.collapsed{overflow:visible !important;}
75 | .syntaxhighlighter.collapsed .toolbar{color:#5ba1cf !important;background:black !important;border:1px solid #435a5f !important;}
76 | .syntaxhighlighter.collapsed .toolbar a{color:#5ba1cf !important;}
77 | .syntaxhighlighter.collapsed .toolbar a:hover{color:#5ce638 !important;}
78 | .syntaxhighlighter .toolbar{color:white !important;background:#435a5f !important;border:none !important;}
79 | .syntaxhighlighter .toolbar a{color:white !important;}
80 | .syntaxhighlighter .toolbar a:hover{color:#e0e8ff !important;}
81 | .syntaxhighlighter .plain,.syntaxhighlighter .plain a{color:#b9bdb6 !important;}
82 | .syntaxhighlighter .comments,.syntaxhighlighter .comments a{color:#878a85 !important;}
83 | .syntaxhighlighter .string,.syntaxhighlighter .string a{color:#5ce638 !important;}
84 | .syntaxhighlighter .keyword{color:#5ba1cf !important;}
85 | .syntaxhighlighter .preprocessor{color:#435a5f !important;}
86 | .syntaxhighlighter .variable{color:#ffaa3e !important;}
87 | .syntaxhighlighter .value{color:#009900 !important;}
88 | .syntaxhighlighter .functions{color:#ffaa3e !important;}
89 | .syntaxhighlighter .constants{color:#e0e8ff !important;}
90 | .syntaxhighlighter .script{font-weight:bold !important;color:#5ba1cf !important;background-color:none !important;}
91 | .syntaxhighlighter .color1,.syntaxhighlighter .color1 a{color:#e0e8ff !important;}
92 | .syntaxhighlighter .color2,.syntaxhighlighter .color2 a{color:white !important;}
93 | .syntaxhighlighter .color3,.syntaxhighlighter .color3 a{color:#ffaa3e !important;}
94 |
--------------------------------------------------------------------------------