├── package.json ├── support └── syntaxhighlighter │ ├── styles │ ├── help.png │ ├── printer.png │ ├── magnifier.png │ ├── page_white_code.png │ ├── page_white_copy.png │ ├── shThemeEmacs.css │ ├── shThemeMidnight.css │ ├── shThemeDjango.css │ ├── shThemeRDark.css │ ├── shThemeFadeToGrey.css │ ├── shThemeEclipse.css │ ├── shThemeDefault.css │ ├── shThemeBarebones.css │ └── shCore.css │ ├── scripts │ ├── clipboard.swf │ ├── shBrushPlain.js │ ├── shBrushDiff.js │ ├── shBrushErlang.js │ ├── shBrushJS.js │ ├── shBrushScala.js │ ├── shBrushHTML.js │ ├── shBrushJava.js │ ├── shBrushRuby.js │ ├── shLegacy.js │ ├── shBrushJavaFX.js │ ├── shBrushVB.js │ ├── shBrushDelphi.js │ ├── shBrushAS3.js │ ├── shBrushPython.js │ ├── shBrushCSharp.js │ ├── shBrushBash.js │ ├── shBrushGroovy.js │ ├── shBrushSQL.js │ ├── shBrushPerl.js │ ├── shBrushPowerShell.js │ ├── shBrushCpp.js │ ├── shBrushCSS.js │ ├── shBrushColdFusion.js │ ├── shCore.js │ └── shBrushPHP.js │ ├── barebones.js │ ├── src │ └── shLegacy.js │ └── LGPLv3.txt ├── widgets └── bb_content │ └── shortcodes │ ├── bb_syntaxhighlight_large.png │ ├── bb_syntaxhighlight_small.png │ └── bb_syntaxhighlight.php └── README.md /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id" : "2", 3 | "version" : "1.3", 4 | "files" : { 5 | "support/*" : "support", 6 | "widgets/*" : "widgets" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /support/syntaxhighlighter/styles/help.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cubiclesoft/barebones-cms-shortcode-bb_syntaxhighlight/master/support/syntaxhighlighter/styles/help.png -------------------------------------------------------------------------------- /support/syntaxhighlighter/styles/printer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cubiclesoft/barebones-cms-shortcode-bb_syntaxhighlight/master/support/syntaxhighlighter/styles/printer.png -------------------------------------------------------------------------------- /support/syntaxhighlighter/scripts/clipboard.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cubiclesoft/barebones-cms-shortcode-bb_syntaxhighlight/master/support/syntaxhighlighter/scripts/clipboard.swf -------------------------------------------------------------------------------- /support/syntaxhighlighter/styles/magnifier.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cubiclesoft/barebones-cms-shortcode-bb_syntaxhighlight/master/support/syntaxhighlighter/styles/magnifier.png -------------------------------------------------------------------------------- /support/syntaxhighlighter/barebones.js: -------------------------------------------------------------------------------- 1 | SyntaxHighlighter.config.clipboardSwf = Gx__RootURL + '/' + Gx__SupportPath + '/syntaxhighlighter/scripts/clipboard.swf'; 2 | SyntaxHighlighter.all(); 3 | -------------------------------------------------------------------------------- /support/syntaxhighlighter/styles/page_white_code.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cubiclesoft/barebones-cms-shortcode-bb_syntaxhighlight/master/support/syntaxhighlighter/styles/page_white_code.png -------------------------------------------------------------------------------- /support/syntaxhighlighter/styles/page_white_copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cubiclesoft/barebones-cms-shortcode-bb_syntaxhighlight/master/support/syntaxhighlighter/styles/page_white_copy.png -------------------------------------------------------------------------------- /widgets/bb_content/shortcodes/bb_syntaxhighlight_large.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cubiclesoft/barebones-cms-shortcode-bb_syntaxhighlight/master/widgets/bb_content/shortcodes/bb_syntaxhighlight_large.png -------------------------------------------------------------------------------- /widgets/bb_content/shortcodes/bb_syntaxhighlight_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cubiclesoft/barebones-cms-shortcode-bb_syntaxhighlight/master/widgets/bb_content/shortcodes/bb_syntaxhighlight_small.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Barebones CMS - Syntax Highlighter shortcode 2 | ============================================ 3 | 4 | Adds a new shortcode to the content editor that makes it easy to embed highlighted source code (PHP, Javascript, C/C++, etc.) that leverages a third-party Javascript library with some modifications to improve certain languages. Designed to show various source code examples in a user-friendly fashion. 5 | 6 | Leverages Alex Gorbatchev's third-party library SyntaxHighlighter (ver 2.1.382). (http://alexgorbatchev.com/wiki/SyntaxHighlighter) 7 | 8 | License 9 | ------- 10 | 11 | Same as Barebones CMS. MIT or LGPL (your choice). 12 | 13 | Automated Installation 14 | ---------------------- 15 | 16 | To install this shortcode, use the built-in Barebones CMS extension installer. 17 | 18 | Once installed, click "Configure Security" from within the content widget options list to set up the new shortcode's security options. 19 | 20 | Manual Installation 21 | ------------------- 22 | 23 | Upload the 'support' and 'widgets' subdirectories to your Barebones CMS installation. 24 | 25 | Once installed, click "Configure Security" from within the content widget options list to set up the new shortcode's security options. 26 | -------------------------------------------------------------------------------- /support/syntaxhighlighter/scripts/shBrushPlain.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.1.382 (June 24 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.Plain = function() 31 | { 32 | }; 33 | 34 | SyntaxHighlighter.brushes.Plain.prototype = new SyntaxHighlighter.Highlighter(); 35 | SyntaxHighlighter.brushes.Plain.aliases = ['text', 'plain']; 36 | -------------------------------------------------------------------------------- /support/syntaxhighlighter/scripts/shBrushDiff.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.1.382 (June 24 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.Diff = function() 31 | { 32 | this.regexList = [ 33 | { regex: /^\+\+\+.*$/gm, css: 'color2' }, 34 | { regex: /^\-\-\-.*$/gm, css: 'color2' }, 35 | { regex: /^\s.*$/gm, css: 'color1' }, 36 | { regex: /^@@.*@@$/gm, css: 'variable' }, 37 | { regex: /^\+[^\+]{1}.*$/gm, css: 'string' }, 38 | { regex: /^\-[^\-]{1}.*$/gm, css: 'comments' } 39 | ]; 40 | }; 41 | 42 | SyntaxHighlighter.brushes.Diff.prototype = new SyntaxHighlighter.Highlighter(); 43 | SyntaxHighlighter.brushes.Diff.aliases = ['diff', 'patch']; 44 | -------------------------------------------------------------------------------- /support/syntaxhighlighter/scripts/shBrushErlang.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.1.382 (June 24 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.Erlang = function() 31 | { 32 | // Contributed by Jean-Lou Dupont 33 | // http://jldupont.blogspot.com/2009/06/erlang-syntax-highlighter.html 34 | 35 | // According to: http://erlang.org/doc/reference_manual/introduction.html#1.5 36 | var keywords = 'after and andalso band begin bnot bor bsl bsr bxor '+ 37 | 'case catch cond div end fun if let not of or orelse '+ 38 | 'query receive rem try when xor'+ 39 | // additional 40 | ' module export import define'; 41 | 42 | this.regexList = [ 43 | { regex: new RegExp("[A-Z][A-Za-z0-9_]+", 'g'), css: 'constants' }, 44 | { regex: new RegExp("\\%.+", 'gm'), css: 'comments' }, 45 | { regex: new RegExp("\\?[A-Za-z0-9_]+", 'g'), css: 'preprocessor' }, 46 | { regex: new RegExp("[a-z0-9_]+:[a-z0-9_]+", 'g'), css: 'functions' }, 47 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, 48 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, 49 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } 50 | ]; 51 | }; 52 | 53 | SyntaxHighlighter.brushes.Erlang.prototype = new SyntaxHighlighter.Highlighter(); 54 | SyntaxHighlighter.brushes.Erlang.aliases = ['erl', 'erlang']; 55 | -------------------------------------------------------------------------------- /support/syntaxhighlighter/scripts/shBrushJS.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.1.364 (October 15 2009) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.JScript = function() 31 | { 32 | var keywords = 'break case catch continue ' + 33 | 'default delete do else false ' + 34 | 'for function if in instanceof ' + 35 | 'new null return super switch ' + 36 | 'this throw true try typeof var while with' 37 | ; 38 | 39 | this.regexList = [ 40 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments 41 | { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments 42 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings 43 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings 44 | { regex: /\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion 45 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords 46 | ]; 47 | 48 | this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags); 49 | }; 50 | 51 | SyntaxHighlighter.brushes.JScript.prototype = new SyntaxHighlighter.Highlighter(); 52 | SyntaxHighlighter.brushes.JScript.aliases = ['js', 'jscript', 'javascript']; 53 | -------------------------------------------------------------------------------- /support/syntaxhighlighter/scripts/shBrushScala.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.1.382 (June 24 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.Scala = function() 31 | { 32 | // Contributed by Yegor Jbanov and David Bernard. 33 | 34 | var keywords = 'val sealed case def true trait implicit forSome import match object null finally super ' + 35 | 'override try lazy for var catch throw type extends class while with new final yield abstract ' + 36 | 'else do if return protected private this package false'; 37 | 38 | var keyops = '[_:=><%#@]+'; 39 | 40 | this.regexList = [ 41 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments 42 | { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments 43 | { regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // multi-line strings 44 | { regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double-quoted string 45 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings 46 | { regex: /0x[a-f0-9]+|\d+(\.\d+)?/gi, css: 'value' }, // numbers 47 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords 48 | { regex: new RegExp(keyops, 'gm'), css: 'keyword' } // scala keyword 49 | ]; 50 | } 51 | 52 | SyntaxHighlighter.brushes.Scala.prototype = new SyntaxHighlighter.Highlighter(); 53 | SyntaxHighlighter.brushes.Scala.aliases = ['scala']; 54 | -------------------------------------------------------------------------------- /support/syntaxhighlighter/scripts/shBrushHTML.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.1.382 (June 24 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.Xml = function() 31 | { 32 | function process(match, regexInfo) 33 | { 34 | var constructor = SyntaxHighlighter.Match, 35 | code = match[0], 36 | tag = new XRegExp('(<|<)[\\s\\/\\?]*(?[:\\w-\\.]+)', 'xg').exec(code), 37 | result = [] 38 | ; 39 | 40 | if (match.attributes != null) 41 | { 42 | var attributes, 43 | regex = new XRegExp('(? [\\w:\\-\\.]+)' + 44 | '\\s*=\\s*' + 45 | '(? ".*?"|\'.*?\'|\\w+)', 46 | 'xg'); 47 | 48 | while ((attributes = regex.exec(code)) != null) 49 | { 50 | result.push(new constructor(attributes.name, match.index + attributes.index, 'color1')); 51 | result.push(new constructor(attributes.value, match.index + attributes.index + attributes[0].indexOf(attributes.value), 'string')); 52 | } 53 | } 54 | 55 | if (tag != null) 56 | result.push( 57 | new constructor(tag.name, match.index + tag[0].indexOf(tag.name), 'keyword') 58 | ); 59 | 60 | return result; 61 | } 62 | 63 | this.regexList = [ 64 | { regex: new XRegExp('(\\<|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\\>|>)', 'gm'), css: 'color2' }, // 65 | { regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, // 66 | { regex: new XRegExp('(<|<)[\\s\\/\\?]*(\\w+)(?.*?)[\\s\\/\\?]*(>|>)', 'sg'), func: process } 67 | ]; 68 | }; 69 | 70 | SyntaxHighlighter.brushes.Xml.prototype = new SyntaxHighlighter.Highlighter(); 71 | SyntaxHighlighter.brushes.Xml.aliases = ['xml', 'xhtml', 'xslt', 'html']; 72 | -------------------------------------------------------------------------------- /support/syntaxhighlighter/scripts/shBrushJava.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.1.382 (June 24 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.Java = function() 31 | { 32 | var keywords = 'abstract assert boolean break byte case catch char class const ' + 33 | 'continue default do double else enum extends ' + 34 | 'false final finally float for goto if implements import ' + 35 | 'instanceof int interface long native new null ' + 36 | 'package private protected public return ' + 37 | 'short static strictfp super switch synchronized this throw throws true ' + 38 | 'transient try void volatile while'; 39 | 40 | this.regexList = [ 41 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments 42 | { regex: /\/\*([^\*][\s\S]*)?\*\//gm, css: 'comments' }, // multiline comments 43 | { regex: /\/\*(?!\*\/)\*[\s\S]*?\*\//gm, css: 'preprocessor' }, // documentation comments 44 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings 45 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings 46 | { regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers 47 | { regex: /(?!\@interface\b)\@[\$\w]+\b/g, css: 'color1' }, // annotation @anno 48 | { regex: /\@interface\b/g, css: 'color2' }, // @interface keyword 49 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // java keyword 50 | ]; 51 | 52 | this.forHtmlScript({ 53 | left : /(<|<)%[@!=]?/g, 54 | right : /%(>|>)/g 55 | }); 56 | }; 57 | 58 | SyntaxHighlighter.brushes.Java.prototype = new SyntaxHighlighter.Highlighter(); 59 | SyntaxHighlighter.brushes.Java.aliases = ['java']; 60 | -------------------------------------------------------------------------------- /support/syntaxhighlighter/scripts/shBrushRuby.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.1.382 (June 24 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.Ruby = function() 31 | { 32 | // Contributed by Erik Peterson. 33 | 34 | var keywords = 'alias and BEGIN begin break case class def define_method defined do each else elsif ' + 35 | 'END end ensure false for if in module new next nil not or raise redo rescue retry return ' + 36 | 'self super then throw true undef unless until when while yield'; 37 | 38 | var builtins = 'Array Bignum Binding Class Continuation Dir Exception FalseClass File::Stat File Fixnum Fload ' + 39 | 'Hash Integer IO MatchData Method Module NilClass Numeric Object Proc Range Regexp String Struct::TMS Symbol ' + 40 | 'ThreadGroup Thread Time TrueClass'; 41 | 42 | this.regexList = [ 43 | { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments 44 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings 45 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings 46 | { regex: /\b[A-Z0-9_]+\b/g, css: 'constants' }, // constants 47 | { regex: /:[a-z][A-Za-z0-9_]*/g, css: 'color2' }, // symbols 48 | { regex: /(\$|@@|@)\w+/g, css: 'variable bold' }, // $global, @instance, and @@class variables 49 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords 50 | { regex: new RegExp(this.getKeywords(builtins), 'gm'), css: 'color1' } // builtins 51 | ]; 52 | 53 | this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); 54 | }; 55 | 56 | SyntaxHighlighter.brushes.Ruby.prototype = new SyntaxHighlighter.Highlighter(); 57 | SyntaxHighlighter.brushes.Ruby.aliases = ['ruby', 'rails', 'ror', 'rb']; 58 | -------------------------------------------------------------------------------- /support/syntaxhighlighter/scripts/shLegacy.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.1.382 (June 24 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('1 y={d:{}};y.d={F:6(S,l,q,k,m,n){6 J(z,Y){1 V=16 15("^"+Y+"\\\\[(?\\\\w+)\\\\]$","14"),x=2;h(1 i=0;i. 29 | */ 30 | SyntaxHighlighter.brushes.JavaFX = function() 31 | { 32 | // Contributed by Patrick Webster 33 | // http://patrickwebster.blogspot.com/2009/04/javafx-brush-for-syntaxhighlighter.html 34 | var datatypes = 'Boolean Byte Character Double Duration ' 35 | + 'Float Integer Long Number Short String Void' 36 | ; 37 | 38 | var keywords = 'abstract after and as assert at before bind bound break catch class ' 39 | + 'continue def delete else exclusive extends false finally first for from ' 40 | + 'function if import in indexof init insert instanceof into inverse last ' 41 | + 'lazy mixin mod nativearray new not null on or override package postinit ' 42 | + 'protected public public-init public-read replace return reverse sizeof ' 43 | + 'step super then this throw true try tween typeof var where while with ' 44 | + 'attribute let private readonly static trigger' 45 | ; 46 | 47 | this.regexList = [ 48 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, 49 | { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, 50 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, 51 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, 52 | { regex: /(-?\.?)(\b(\d*\.?\d+|\d+\.?\d*)(e[+-]?\d+)?|0x[a-f\d]+)\b\.?/gi, css: 'color2' }, // numbers 53 | { regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'variable' }, // datatypes 54 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } 55 | ]; 56 | this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); 57 | }; 58 | 59 | SyntaxHighlighter.brushes.JavaFX.prototype = new SyntaxHighlighter.Highlighter(); 60 | SyntaxHighlighter.brushes.JavaFX.aliases = ['jfx', 'javafx']; 61 | -------------------------------------------------------------------------------- /support/syntaxhighlighter/scripts/shBrushVB.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.1.382 (June 24 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.Vb = function() 31 | { 32 | var keywords = 'AddHandler AddressOf AndAlso Alias And Ansi As Assembly Auto ' + 33 | 'Boolean ByRef Byte ByVal Call Case Catch CBool CByte CChar CDate ' + 34 | 'CDec CDbl Char CInt Class CLng CObj Const CShort CSng CStr CType ' + 35 | 'Date Decimal Declare Default Delegate Dim DirectCast Do Double Each ' + 36 | 'Else ElseIf End Enum Erase Error Event Exit False Finally For Friend ' + 37 | 'Function Get GetType GoSub GoTo Handles If Implements Imports In ' + 38 | 'Inherits Integer Interface Is Let Lib Like Long Loop Me Mod Module ' + 39 | 'MustInherit MustOverride MyBase MyClass Namespace New Next Not Nothing ' + 40 | 'NotInheritable NotOverridable Object On Option Optional Or OrElse ' + 41 | 'Overloads Overridable Overrides ParamArray Preserve Private Property ' + 42 | 'Protected Public RaiseEvent ReadOnly ReDim REM RemoveHandler Resume ' + 43 | 'Return Select Set Shadows Shared Short Single Static Step Stop String ' + 44 | 'Structure Sub SyncLock Then Throw To True Try TypeOf Unicode Until ' + 45 | 'Variant When While With WithEvents WriteOnly Xor'; 46 | 47 | this.regexList = [ 48 | { regex: /'.*$/gm, css: 'comments' }, // one line comments 49 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings 50 | { regex: /^\s*#.*$/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion 51 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // vb keyword 52 | ]; 53 | 54 | this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); 55 | }; 56 | 57 | SyntaxHighlighter.brushes.Vb.prototype = new SyntaxHighlighter.Highlighter(); 58 | SyntaxHighlighter.brushes.Vb.aliases = ['vb', 'vbnet']; 59 | -------------------------------------------------------------------------------- /support/syntaxhighlighter/scripts/shBrushDelphi.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.1.382 (June 24 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.Delphi = function() 31 | { 32 | var keywords = 'abs addr and ansichar ansistring array as asm begin boolean byte cardinal ' + 33 | 'case char class comp const constructor currency destructor div do double ' + 34 | 'downto else end except exports extended false file finalization finally ' + 35 | 'for function goto if implementation in inherited int64 initialization ' + 36 | 'integer interface is label library longint longword mod nil not object ' + 37 | 'of on or packed pansichar pansistring pchar pcurrency pdatetime pextended ' + 38 | 'pint64 pointer private procedure program property pshortstring pstring ' + 39 | 'pvariant pwidechar pwidestring protected public published raise real real48 ' + 40 | 'record repeat set shl shortint shortstring shr single smallint string then ' + 41 | 'threadvar to true try type unit until uses val var varirnt while widechar ' + 42 | 'widestring with word write writeln xor'; 43 | 44 | this.regexList = [ 45 | { regex: /\(\*[\s\S]*?\*\)/gm, css: 'comments' }, // multiline comments (* *) 46 | { regex: /{(?!\$)[\s\S]*?}/gm, css: 'comments' }, // multiline comments { } 47 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line 48 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings 49 | { regex: /\{\$[a-zA-Z]+ .+\}/g, css: 'color1' }, // compiler Directives and Region tags 50 | { regex: /\b[\d\.]+\b/g, css: 'value' }, // numbers 12345 51 | { regex: /\$[a-zA-Z0-9]+\b/g, css: 'value' }, // numbers $F5D3 52 | { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword 53 | ]; 54 | }; 55 | 56 | SyntaxHighlighter.brushes.Delphi.prototype = new SyntaxHighlighter.Highlighter(); 57 | SyntaxHighlighter.brushes.Delphi.aliases = ['delphi', 'pascal', 'pas']; 58 | -------------------------------------------------------------------------------- /support/syntaxhighlighter/scripts/shBrushAS3.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.1.382 (June 24 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.AS3 = function() 31 | { 32 | // Created by Peter Atoria @ http://iAtoria.com 33 | 34 | var inits = 'class interface function package'; 35 | 36 | var keywords = '-Infinity ...rest Array as AS3 Boolean break case catch const continue Date decodeURI ' + 37 | 'decodeURIComponent default delete do dynamic each else encodeURI encodeURIComponent escape ' + 38 | 'extends false final finally flash_proxy for get if implements import in include Infinity ' + 39 | 'instanceof int internal is isFinite isNaN isXMLName label namespace NaN native new null ' + 40 | 'Null Number Object object_proxy override parseFloat parseInt private protected public ' + 41 | 'return set static String super switch this throw true try typeof uint undefined unescape ' + 42 | 'use void while with' 43 | ; 44 | 45 | this.regexList = [ 46 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments 47 | { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments 48 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings 49 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings 50 | { regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers 51 | { regex: new RegExp(this.getKeywords(inits), 'gm'), css: 'color3' }, // initializations 52 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords 53 | { regex: new RegExp('var', 'gm'), css: 'variable' }, // variable 54 | { regex: new RegExp('trace', 'gm'), css: 'color1' } // trace 55 | ]; 56 | 57 | this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags); 58 | }; 59 | 60 | SyntaxHighlighter.brushes.AS3.prototype = new SyntaxHighlighter.Highlighter(); 61 | SyntaxHighlighter.brushes.AS3.aliases = ['actionscript3', 'as3']; 62 | -------------------------------------------------------------------------------- /support/syntaxhighlighter/scripts/shBrushPython.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.1.382 (June 24 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.Python = function() 31 | { 32 | // Contributed by Gheorghe Milas and Ahmad Sherif 33 | 34 | var keywords = 'and assert break class continue def del elif else ' + 35 | 'except exec finally for from global if import in is ' + 36 | 'lambda not or pass print raise return try yield while'; 37 | 38 | var funcs = '__import__ abs all any apply basestring bin bool buffer callable ' + 39 | 'chr classmethod cmp coerce compile complex delattr dict dir ' + 40 | 'divmod enumerate eval execfile file filter float format frozenset ' + 41 | 'getattr globals hasattr hash help hex id input int intern ' + 42 | 'isinstance issubclass iter len list locals long map max min next ' + 43 | 'object oct open ord pow print property range raw_input reduce ' + 44 | 'reload repr reversed round set setattr slice sorted staticmethod ' + 45 | 'str sum super tuple type type unichr unicode vars xrange zip'; 46 | 47 | var special = 'None True False self cls class_'; 48 | 49 | this.regexList = [ 50 | { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, 51 | { regex: /^\s*@\w+/gm, css: 'decorator' }, 52 | { regex: /(['\"]{3})([^\1])*?\1/gm, css: 'comments' }, 53 | { regex: /"(?!")(?:\.|\\\"|[^\""\n])*"/gm, css: 'string' }, 54 | { regex: /'(?!')(?:\.|(\\\')|[^\''\n])*'/gm, css: 'string' }, 55 | { regex: /\+|\-|\*|\/|\%|=|==/gm, css: 'keyword' }, 56 | { regex: /\b\d+\.?\w*/g, css: 'value' }, 57 | { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, 58 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, 59 | { regex: new RegExp(this.getKeywords(special), 'gm'), css: 'color1' } 60 | ]; 61 | 62 | this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); 63 | }; 64 | 65 | SyntaxHighlighter.brushes.Python.prototype = new SyntaxHighlighter.Highlighter(); 66 | SyntaxHighlighter.brushes.Python.aliases = ['py', 'python']; 67 | -------------------------------------------------------------------------------- /support/syntaxhighlighter/scripts/shBrushCSharp.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.1.382 (June 24 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.CSharp = function() 31 | { 32 | var keywords = 'abstract as base bool break byte case catch char checked class const ' + 33 | 'continue decimal default delegate do double else enum event explicit ' + 34 | 'extern false finally fixed float for foreach get goto if implicit in int ' + 35 | 'interface internal is lock long namespace new null object operator out ' + 36 | 'override params private protected public readonly ref return sbyte sealed set ' + 37 | 'short sizeof stackalloc static string struct switch this throw true try ' + 38 | 'typeof uint ulong unchecked unsafe ushort using virtual void while'; 39 | 40 | function fixComments(match, regexInfo) 41 | { 42 | var css = (match[0].indexOf("///") == 0) 43 | ? 'color1' 44 | : 'comments' 45 | ; 46 | 47 | return [new SyntaxHighlighter.Match(match[0], match.index, css)]; 48 | } 49 | 50 | this.regexList = [ 51 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, func : fixComments }, // one line comments 52 | { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments 53 | { regex: /@"(?:[^"]|"")*"/g, css: 'string' }, // @-quoted strings 54 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings 55 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings 56 | { regex: /^\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion 57 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // c# keyword 58 | { regex: /\bpartial(?=\s+(?:class|interface|struct)\b)/g, css: 'keyword' }, // contextual keyword: 'partial' 59 | { regex: /\byield(?=\s+(?:return|break)\b)/g, css: 'keyword' } // contextual keyword: 'yield' 60 | ]; 61 | 62 | this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); 63 | }; 64 | 65 | SyntaxHighlighter.brushes.CSharp.prototype = new SyntaxHighlighter.Highlighter(); 66 | SyntaxHighlighter.brushes.CSharp.aliases = ['c#', 'c-sharp', 'csharp']; 67 | 68 | -------------------------------------------------------------------------------- /support/syntaxhighlighter/scripts/shBrushBash.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.1.382 (June 24 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.Bash = function() 31 | { 32 | var keywords = 'if fi then elif else for do done until while break continue case function return in eq ne gt lt ge le'; 33 | var commands = 'alias apropos awk basename bash bc bg builtin bzip2 cal cat cd cfdisk chgrp chmod chown chroot' + 34 | 'cksum clear cmp comm command cp cron crontab csplit cut date dc dd ddrescue declare df ' + 35 | 'diff diff3 dig dir dircolors dirname dirs du echo egrep eject enable env ethtool eval ' + 36 | 'exec exit expand export expr false fdformat fdisk fg fgrep file find fmt fold format ' + 37 | 'free fsck ftp gawk getopts grep groups gzip hash head history hostname id ifconfig ' + 38 | 'import install join kill less let ln local locate logname logout look lpc lpr lprint ' + 39 | 'lprintd lprintq lprm ls lsof make man mkdir mkfifo mkisofs mknod more mount mtools ' + 40 | 'mv netstat nice nl nohup nslookup open op passwd paste pathchk ping popd pr printcap ' + 41 | 'printenv printf ps pushd pwd quota quotacheck quotactl ram rcp read readonly renice ' + 42 | 'remsync rm rmdir rsync screen scp sdiff sed select seq set sftp shift shopt shutdown ' + 43 | 'sleep sort source split ssh strace su sudo sum symlink sync tail tar tee test time ' + 44 | 'times touch top traceroute trap tr true tsort tty type ulimit umask umount unalias ' + 45 | 'uname unexpand uniq units unset unshar useradd usermod users uuencode uudecode v vdir ' + 46 | 'vi watch wc whereis which who whoami Wget xargs yes' 47 | ; 48 | 49 | this.findMatches = function(regexList, code) 50 | { 51 | code = code.replace(/>/g, '>').replace(/</g, '<'); 52 | this.code = code; 53 | return SyntaxHighlighter.Highlighter.prototype.findMatches.apply(this, [regexList, code]); 54 | }; 55 | 56 | this.regexList = [ 57 | { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments 58 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings 59 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings 60 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords 61 | { regex: new RegExp(this.getKeywords(commands), 'gm'), css: 'functions' } // commands 62 | ]; 63 | } 64 | 65 | SyntaxHighlighter.brushes.Bash.prototype = new SyntaxHighlighter.Highlighter(); 66 | SyntaxHighlighter.brushes.Bash.aliases = ['bash', 'shell']; 67 | -------------------------------------------------------------------------------- /support/syntaxhighlighter/scripts/shBrushGroovy.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.1.382 (June 24 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.Groovy = function() 31 | { 32 | // Contributed by Andres Almiray 33 | // http://jroller.com/aalmiray/entry/nice_source_code_syntax_highlighter 34 | 35 | var keywords = 'as assert break case catch class continue def default do else extends finally ' + 36 | 'if in implements import instanceof interface new package property return switch ' + 37 | 'throw throws try while public protected private static'; 38 | var types = 'void boolean byte char short int long float double'; 39 | var constants = 'null'; 40 | var methods = 'allProperties count get size '+ 41 | 'collect each eachProperty eachPropertyName eachWithIndex find findAll ' + 42 | 'findIndexOf grep inject max min reverseEach sort ' + 43 | 'asImmutable asSynchronized flatten intersect join pop reverse subMap toList ' + 44 | 'padRight padLeft contains eachMatch toCharacter toLong toUrl tokenize ' + 45 | 'eachFile eachFileRecurse eachB yte eachLine readBytes readLine getText ' + 46 | 'splitEachLine withReader append encodeBase64 decodeBase64 filterLine ' + 47 | 'transformChar transformLine withOutputStream withPrintWriter withStream ' + 48 | 'withStreams withWriter withWriterAppend write writeLine '+ 49 | 'dump inspect invokeMethod print println step times upto use waitForOrKill '+ 50 | 'getText'; 51 | 52 | this.regexList = [ 53 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments 54 | { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments 55 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings 56 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings 57 | { regex: /""".*"""/g, css: 'string' }, // GStrings 58 | { regex: new RegExp('\\b([\\d]+(\\.[\\d]+)?|0x[a-f0-9]+)\\b', 'gi'), css: 'value' }, // numbers 59 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // goovy keyword 60 | { regex: new RegExp(this.getKeywords(types), 'gm'), css: 'color1' }, // goovy/java type 61 | { regex: new RegExp(this.getKeywords(constants), 'gm'), css: 'constants' }, // constants 62 | { regex: new RegExp(this.getKeywords(methods), 'gm'), css: 'functions' } // methods 63 | ]; 64 | 65 | this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); 66 | } 67 | 68 | SyntaxHighlighter.brushes.Groovy.prototype = new SyntaxHighlighter.Highlighter(); 69 | SyntaxHighlighter.brushes.Groovy.aliases = ['groovy']; 70 | -------------------------------------------------------------------------------- /support/syntaxhighlighter/scripts/shBrushSQL.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.1.382 (June 24 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.Sql = function() 31 | { 32 | var funcs = 'abs avg case cast coalesce convert count current_timestamp ' + 33 | 'current_user day isnull left lower month nullif replace right ' + 34 | 'session_user space substring sum system_user upper user year'; 35 | 36 | var keywords = 'absolute action add after alter as asc at authorization begin bigint ' + 37 | 'binary bit by cascade char character check checkpoint close collate ' + 38 | 'column commit committed connect connection constraint contains continue ' + 39 | 'create cube current current_date current_time cursor database date ' + 40 | 'deallocate dec decimal declare default delete desc distinct double drop ' + 41 | 'dynamic else end end-exec escape except exec execute false fetch first ' + 42 | 'float for force foreign forward free from full function global goto grant ' + 43 | 'group grouping having hour ignore index inner insensitive insert instead ' + 44 | 'int integer intersect into is isolation key last level load local max min ' + 45 | 'minute modify move name national nchar next no numeric of off on only ' + 46 | 'open option order out output partial password precision prepare primary ' + 47 | 'prior privileges procedure public read real references relative repeatable ' + 48 | 'restrict return returns revoke rollback rollup rows rule schema scroll ' + 49 | 'second section select sequence serializable set size smallint static ' + 50 | 'statistics table temp temporary then time timestamp to top transaction ' + 51 | 'translation trigger true truncate uncommitted union unique update values ' + 52 | 'varchar varying view when where with work'; 53 | 54 | var operators = 'all and any between cross in join like not null or outer some'; 55 | 56 | this.regexList = [ 57 | { regex: /--(.*)$/gm, css: 'comments' }, // one line and multiline comments 58 | { regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings 59 | { regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // single quoted strings 60 | { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'color2' }, // functions 61 | { regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // operators and such 62 | { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword 63 | ]; 64 | }; 65 | 66 | SyntaxHighlighter.brushes.Sql.prototype = new SyntaxHighlighter.Highlighter(); 67 | SyntaxHighlighter.brushes.Sql.aliases = ['sql']; 68 | 69 | -------------------------------------------------------------------------------- /support/syntaxhighlighter/scripts/shBrushPerl.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.1.382 (June 24 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.Perl = function() 31 | { 32 | // Contributed by David Simmons-Duffin and Marty Kube 33 | 34 | var funcs = 35 | 'abs accept alarm atan2 bind binmode chdir chmod chomp chop chown chr ' + 36 | 'chroot close closedir connect cos crypt defined delete each endgrent ' + 37 | 'endhostent endnetent endprotoent endpwent endservent eof exec exists ' + 38 | 'exp fcntl fileno flock fork format formline getc getgrent getgrgid ' + 39 | 'getgrnam gethostbyaddr gethostbyname gethostent getlogin getnetbyaddr ' + 40 | 'getnetbyname getnetent getpeername getpgrp getppid getpriority ' + 41 | 'getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid ' + 42 | 'getservbyname getservbyport getservent getsockname getsockopt glob ' + 43 | 'gmtime grep hex index int ioctl join keys kill lc lcfirst length link ' + 44 | 'listen localtime lock log lstat map mkdir msgctl msgget msgrcv msgsnd ' + 45 | 'oct open opendir ord pack pipe pop pos print printf prototype push ' + 46 | 'quotemeta rand read readdir readline readlink readpipe recv rename ' + 47 | 'reset reverse rewinddir rindex rmdir scalar seek seekdir select semctl ' + 48 | 'semget semop send setgrent sethostent setnetent setpgrp setpriority ' + 49 | 'setprotoent setpwent setservent setsockopt shift shmctl shmget shmread ' + 50 | 'shmwrite shutdown sin sleep socket socketpair sort splice split sprintf ' + 51 | 'sqrt srand stat study substr symlink syscall sysopen sysread sysseek ' + 52 | 'system syswrite tell telldir time times tr truncate uc ucfirst umask ' + 53 | 'undef unlink unpack unshift utime values vec wait waitpid warn write'; 54 | 55 | var keywords = 56 | 'bless caller continue dbmclose dbmopen die do dump else elsif eval exit ' + 57 | 'for foreach goto if import last local my next no our package redo ref ' + 58 | 'require return sub tie tied unless untie until use wantarray while'; 59 | 60 | this.regexList = [ 61 | { regex: new RegExp('#[^!].*$', 'gm'), css: 'comments' }, 62 | { regex: new RegExp('^\\s*#!.*$', 'gm'), css: 'preprocessor' }, // shebang 63 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, 64 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, 65 | { regex: new RegExp('(\\$|@|%)\\w+', 'g'), css: 'variable' }, 66 | { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, 67 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } 68 | ]; 69 | 70 | this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags); 71 | } 72 | 73 | SyntaxHighlighter.brushes.Perl.prototype = new SyntaxHighlighter.Highlighter(); 74 | SyntaxHighlighter.brushes.Perl.aliases = ['perl', 'Perl', 'pl']; -------------------------------------------------------------------------------- /support/syntaxhighlighter/styles/shThemeEmacs.css: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.1.364 (October 15 2009) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | /** 31 | * Emacs SyntaxHighlighter theme based on theme by Joshua Emmons 32 | * http://www.skia.net/ 33 | */ 34 | 35 | /************************************ 36 | * Interface elements. 37 | ************************************/ 38 | 39 | .syntaxhighlighter 40 | { 41 | background-color: #000000 !important; 42 | } 43 | 44 | /* Gutter line numbers */ 45 | .syntaxhighlighter .line .number 46 | { 47 | color: #D3D3D3 !important; 48 | } 49 | 50 | /* Add border to the lines */ 51 | .syntaxhighlighter .line .content 52 | { 53 | border-left: 3px solid #990000 !important; 54 | color: #B9BDB6 !important; 55 | } 56 | 57 | .syntaxhighlighter.printing .line .content 58 | { 59 | border: 0 !important; 60 | } 61 | 62 | /* First line */ 63 | .syntaxhighlighter .line.alt1 64 | { 65 | } 66 | 67 | /* Second line */ 68 | .syntaxhighlighter .line.alt2 69 | { 70 | background-color: #0f0f0f !important; 71 | } 72 | 73 | /* Highlighed line number */ 74 | .syntaxhighlighter .line.highlighted .number 75 | { 76 | background-color: #435A5F !important; 77 | color: #fff !important; 78 | } 79 | 80 | /* Highlighed line */ 81 | .syntaxhighlighter .line.highlighted.alt1, 82 | .syntaxhighlighter .line.highlighted.alt2 83 | { 84 | background-color: #435A5F !important; 85 | } 86 | 87 | .syntaxhighlighter .toolbar 88 | { 89 | background-color: #000000 !important; 90 | border: #000000 solid 1px !important; 91 | } 92 | 93 | .syntaxhighlighter .toolbar a 94 | { 95 | color: #646763 !important; 96 | } 97 | 98 | .syntaxhighlighter .toolbar a:hover 99 | { 100 | color: #9CCFF4 !important; 101 | } 102 | 103 | /************************************ 104 | * Actual syntax highlighter colors. 105 | ************************************/ 106 | .syntaxhighlighter .plain, 107 | .syntaxhighlighter .plain a 108 | { 109 | color: #D3D3D3 !important; 110 | } 111 | 112 | .syntaxhighlighter .comments, 113 | .syntaxhighlighter .comments a 114 | { 115 | color: #FF7D27 !important; 116 | } 117 | 118 | .syntaxhighlighter .string, 119 | .syntaxhighlighter .string a 120 | { 121 | color: #FF9E7B !important; 122 | } 123 | 124 | .syntaxhighlighter .keyword 125 | { 126 | color: #00FFFF !important; 127 | } 128 | 129 | .syntaxhighlighter .preprocessor 130 | { 131 | color: #AEC4DE !important; 132 | } 133 | 134 | .syntaxhighlighter .variable 135 | { 136 | color: #FFAA3E !important; 137 | } 138 | 139 | .syntaxhighlighter .value 140 | { 141 | color: #090 !important; 142 | } 143 | 144 | .syntaxhighlighter .functions 145 | { 146 | color: #81CEF9 !important; 147 | } 148 | 149 | .syntaxhighlighter .constants 150 | { 151 | color: #FF9E7B !important; 152 | } 153 | 154 | .syntaxhighlighter .script 155 | { 156 | background-color: #990000 !important; 157 | } 158 | 159 | .syntaxhighlighter .color1, 160 | .syntaxhighlighter .color1 a 161 | { 162 | color: #EBDB8D !important; 163 | } 164 | 165 | .syntaxhighlighter .color2, 166 | .syntaxhighlighter .color2 a 167 | { 168 | color: #FF7D27 !important; 169 | } 170 | 171 | .syntaxhighlighter .color3, 172 | .syntaxhighlighter .color3 a 173 | { 174 | color: #AEC4DE !important; 175 | } 176 | -------------------------------------------------------------------------------- /support/syntaxhighlighter/styles/shThemeMidnight.css: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.1.364 (October 15 2009) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | /** 31 | * Midnight SyntaxHighlighter theme based on theme by J.D. Myers 32 | * http://webdesign.lsnjd.com/ 33 | */ 34 | 35 | /************************************ 36 | * Interface elements. 37 | ************************************/ 38 | 39 | .syntaxhighlighter 40 | { 41 | background-color: #0F192A !important; 42 | } 43 | 44 | /* Gutter line numbers */ 45 | .syntaxhighlighter .line .number 46 | { 47 | color: #38566F !important; 48 | } 49 | 50 | /* Add border to the lines */ 51 | .syntaxhighlighter .line .content 52 | { 53 | border-left: 3px solid #435A5F !important; 54 | color: #B9BDB6 !important; 55 | } 56 | 57 | .syntaxhighlighter.printing .line .content 58 | { 59 | border: 0 !important; 60 | } 61 | 62 | /* First line */ 63 | .syntaxhighlighter .line.alt1 64 | { 65 | background-color: #0F192A !important; 66 | } 67 | 68 | /* Second line */ 69 | .syntaxhighlighter .line.alt2 70 | { 71 | background-color: #0F192A !important; 72 | } 73 | 74 | /* Highlighed line number */ 75 | .syntaxhighlighter .line.highlighted .number 76 | { 77 | background-color: #253E5A !important; 78 | color: #fff !important; 79 | } 80 | 81 | /* Highlighed line */ 82 | .syntaxhighlighter .line.highlighted.alt1, 83 | .syntaxhighlighter .line.highlighted.alt2 84 | { 85 | background-color: #253E5A !important; 86 | } 87 | 88 | .syntaxhighlighter .toolbar 89 | { 90 | background-color: #0F192A !important; 91 | } 92 | 93 | .syntaxhighlighter .toolbar a 94 | { 95 | color: #38566F !important; 96 | } 97 | 98 | .syntaxhighlighter .toolbar a:hover 99 | { 100 | color: #8AA6C1 !important; 101 | } 102 | 103 | /************************************ 104 | * Actual syntax highlighter colors. 105 | ************************************/ 106 | .syntaxhighlighter .plain, 107 | .syntaxhighlighter .plain a 108 | { 109 | color: #D1EDFF !important; 110 | } 111 | 112 | .syntaxhighlighter .comments, 113 | .syntaxhighlighter .comments a 114 | { 115 | color: #428BDD !important; 116 | } 117 | 118 | .syntaxhighlighter .string, 119 | .syntaxhighlighter .string a 120 | { 121 | color: #1DC116 !important; 122 | } 123 | 124 | .syntaxhighlighter .keyword 125 | { 126 | color: #B43D3D !important; 127 | } 128 | 129 | .syntaxhighlighter .preprocessor 130 | { 131 | color: #8AA6C1 !important; 132 | } 133 | 134 | .syntaxhighlighter .variable 135 | { 136 | color: #FFAA3E !important; 137 | } 138 | 139 | .syntaxhighlighter .value 140 | { 141 | color: #F7E741 !important; 142 | } 143 | 144 | .syntaxhighlighter .functions 145 | { 146 | color: #FFAA3E !important; 147 | } 148 | 149 | .syntaxhighlighter .constants 150 | { 151 | color: #E0E8FF !important; 152 | } 153 | 154 | .syntaxhighlighter .script 155 | { 156 | background-color: #404040 !important; 157 | } 158 | 159 | .syntaxhighlighter .color1, 160 | .syntaxhighlighter .color1 a 161 | { 162 | color: #F8BB00 !important; 163 | } 164 | 165 | .syntaxhighlighter .color2, 166 | .syntaxhighlighter .color2 a 167 | { 168 | color: #FFFFFF !important; 169 | } 170 | 171 | .syntaxhighlighter .color3, 172 | .syntaxhighlighter .color3 a 173 | { 174 | color: #FFAA3E !important; 175 | } 176 | -------------------------------------------------------------------------------- /support/syntaxhighlighter/styles/shThemeDjango.css: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.1.364 (October 15 2009) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | /** 31 | * Django SyntaxHighlighter theme 32 | */ 33 | 34 | /************************************ 35 | * Interface elements. 36 | ************************************/ 37 | 38 | .syntaxhighlighter 39 | { 40 | background-color: #0B2F20 !important; 41 | } 42 | 43 | /* Gutter line numbers */ 44 | .syntaxhighlighter .line .number 45 | { 46 | color: #497958 !important; 47 | } 48 | 49 | /* Add border to the lines */ 50 | .syntaxhighlighter .line .content 51 | { 52 | border-left: 3px solid #41A83E !important; 53 | color: #B9BDB6 !important; 54 | } 55 | 56 | .syntaxhighlighter.printing .line .content 57 | { 58 | border: 0 !important; 59 | } 60 | 61 | /* First line */ 62 | .syntaxhighlighter .line.alt1 63 | { 64 | } 65 | 66 | /* Second line */ 67 | .syntaxhighlighter .line.alt2 68 | { 69 | background-color: #0a2b1d !important; 70 | } 71 | 72 | /* Highlighed line number */ 73 | .syntaxhighlighter .line.highlighted .number 74 | { 75 | background-color: #336442 !important; 76 | color: #fff !important; 77 | } 78 | 79 | /* Highlighed line */ 80 | .syntaxhighlighter .line.highlighted.alt1, 81 | .syntaxhighlighter .line.highlighted.alt2 82 | { 83 | background-color: #336442 !important; 84 | } 85 | 86 | .syntaxhighlighter .toolbar 87 | { 88 | background-color: #245032 !important; 89 | border: #0B2F20 solid 1px !important; 90 | } 91 | 92 | .syntaxhighlighter .toolbar a 93 | { 94 | color: #C4B14A !important; 95 | } 96 | 97 | .syntaxhighlighter .toolbar a:hover 98 | { 99 | color: #FFE862 !important; 100 | } 101 | 102 | /************************************ 103 | * Actual syntax highlighter colors. 104 | ************************************/ 105 | .syntaxhighlighter .plain, 106 | .syntaxhighlighter .plain a 107 | { 108 | color: #F8F8F8 !important; 109 | } 110 | 111 | .syntaxhighlighter .comments, 112 | .syntaxhighlighter .comments a 113 | { 114 | color: #336442 !important; 115 | font-style: italic !important; 116 | } 117 | 118 | .syntaxhighlighter .string, 119 | .syntaxhighlighter .string a 120 | { 121 | color: #9DF39F !important; 122 | } 123 | 124 | .syntaxhighlighter .keyword 125 | { 126 | color: #96DD3B !important; 127 | font-weight: bold !important; 128 | } 129 | 130 | .syntaxhighlighter .preprocessor 131 | { 132 | color: #91BB9E !important; 133 | } 134 | 135 | .syntaxhighlighter .variable 136 | { 137 | color: #FFAA3E !important; 138 | } 139 | 140 | .syntaxhighlighter .value 141 | { 142 | color: #F7E741 !important; 143 | } 144 | 145 | .syntaxhighlighter .functions 146 | { 147 | color: #FFAA3E !important; 148 | } 149 | 150 | .syntaxhighlighter .constants 151 | { 152 | color: #E0E8FF !important; 153 | } 154 | 155 | .syntaxhighlighter .script 156 | { 157 | background-color: #497958 !important; 158 | } 159 | 160 | .syntaxhighlighter .color1, 161 | .syntaxhighlighter .color1 a 162 | { 163 | color: #EB939A !important; 164 | } 165 | 166 | .syntaxhighlighter .color2, 167 | .syntaxhighlighter .color2 a 168 | { 169 | color: #91BB9E !important; 170 | } 171 | 172 | .syntaxhighlighter .color3, 173 | .syntaxhighlighter .color3 a 174 | { 175 | color: #EDEF7D !important; 176 | } 177 | -------------------------------------------------------------------------------- /support/syntaxhighlighter/styles/shThemeRDark.css: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.1.364 (October 15 2009) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | /** 31 | * RDark SyntaxHighlighter theme based on theme by Radu Dineiu 32 | * http://www.vim.org/scripts/script.php?script_id=1732 33 | */ 34 | 35 | /************************************ 36 | * Interface elements. 37 | ************************************/ 38 | 39 | .syntaxhighlighter 40 | { 41 | background-color: #1B2426 !important; 42 | } 43 | 44 | /* Gutter line numbers */ 45 | .syntaxhighlighter .line .number 46 | { 47 | color: #B9BDB6 !important; 48 | } 49 | 50 | /* Add border to the lines */ 51 | .syntaxhighlighter .line .content 52 | { 53 | border-left: 3px solid #435A5F !important; 54 | color: #B9BDB6 !important; 55 | } 56 | 57 | .syntaxhighlighter.printing .line .content 58 | { 59 | border: 0 !important; 60 | } 61 | 62 | /* First line */ 63 | .syntaxhighlighter .line.alt1 64 | { 65 | background-color: #1B2426 !important; 66 | } 67 | 68 | /* Second line */ 69 | .syntaxhighlighter .line.alt2 70 | { 71 | background-color: #1B2426 !important; 72 | } 73 | 74 | /* Highlighed line number */ 75 | .syntaxhighlighter .line.highlighted .number 76 | { 77 | background-color: #435A5F !important; 78 | color: #fff !important; 79 | } 80 | 81 | /* Highlighed line */ 82 | .syntaxhighlighter .line.highlighted.alt1, 83 | .syntaxhighlighter .line.highlighted.alt2 84 | { 85 | background-color: #435A5F !important; 86 | } 87 | 88 | .syntaxhighlighter .toolbar 89 | { 90 | background-color: #1B2426 !important; 91 | } 92 | 93 | .syntaxhighlighter .toolbar a 94 | { 95 | color: #646763 !important; 96 | } 97 | 98 | .syntaxhighlighter .toolbar a:hover 99 | { 100 | color: #E0E8FF !important; 101 | } 102 | 103 | /************************************ 104 | * Actual syntax highlighter colors. 105 | ************************************/ 106 | .syntaxhighlighter .plain, 107 | .syntaxhighlighter .plain a 108 | { 109 | color: #B9BDB6 !important; 110 | } 111 | 112 | .syntaxhighlighter .comments, 113 | .syntaxhighlighter .comments a 114 | { 115 | color: #878A85 !important; 116 | } 117 | 118 | .syntaxhighlighter .string, 119 | .syntaxhighlighter .string a 120 | { 121 | color: #5CE638 !important; 122 | } 123 | 124 | .syntaxhighlighter .keyword 125 | { 126 | color: #5BA1CF !important; 127 | } 128 | 129 | .syntaxhighlighter .preprocessor 130 | { 131 | color: #435A5F !important; 132 | } 133 | 134 | .syntaxhighlighter .variable 135 | { 136 | color: #FFAA3E !important; 137 | } 138 | 139 | .syntaxhighlighter .value 140 | { 141 | color: #090 !important; 142 | } 143 | 144 | .syntaxhighlighter .functions 145 | { 146 | color: #FFAA3E !important; 147 | } 148 | 149 | .syntaxhighlighter .constants 150 | { 151 | color: #E0E8FF !important; 152 | } 153 | 154 | .syntaxhighlighter .script 155 | { 156 | background-color: #435A5F !important; 157 | } 158 | 159 | .syntaxhighlighter .color1, 160 | .syntaxhighlighter .color1 a 161 | { 162 | color: #E0E8FF !important; 163 | } 164 | 165 | .syntaxhighlighter .color2, 166 | .syntaxhighlighter .color2 a 167 | { 168 | color: #FFFFFF !important; 169 | } 170 | 171 | .syntaxhighlighter .color3, 172 | .syntaxhighlighter .color3 a 173 | { 174 | color: #FFAA3E !important; 175 | } 176 | -------------------------------------------------------------------------------- /support/syntaxhighlighter/styles/shThemeFadeToGrey.css: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.1.364 (October 15 2009) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | /** 31 | * Fade to Grey SyntaxHighlighter theme based on theme by Brasten Sager 32 | * http://www.ibrasten.com/ 33 | */ 34 | 35 | /************************************ 36 | * Interface elements. 37 | ************************************/ 38 | 39 | .syntaxhighlighter 40 | { 41 | background-color: #121212 !important; 42 | } 43 | 44 | /* Gutter line numbers */ 45 | .syntaxhighlighter .line .number 46 | { 47 | color: #C3C3C3 !important; 48 | } 49 | 50 | /* Add border to the lines */ 51 | .syntaxhighlighter .line .content 52 | { 53 | border-left: 3px solid #3185B9 !important; 54 | color: #B9BDB6 !important; 55 | } 56 | 57 | .syntaxhighlighter.printing .line .content 58 | { 59 | border: 0 !important; 60 | } 61 | 62 | /* First line */ 63 | .syntaxhighlighter .line.alt1 64 | { 65 | } 66 | 67 | /* Second line */ 68 | .syntaxhighlighter .line.alt2 69 | { 70 | background-color: #000000 !important; 71 | } 72 | 73 | /* Highlighed line number */ 74 | .syntaxhighlighter .line.highlighted .number 75 | { 76 | background-color: #3A3A00 !important; 77 | color: #fff !important; 78 | } 79 | 80 | /* Highlighed line */ 81 | .syntaxhighlighter .line.highlighted.alt1, 82 | .syntaxhighlighter .line.highlighted.alt2 83 | { 84 | background-color: #3A3A00 !important; 85 | } 86 | 87 | .syntaxhighlighter .toolbar 88 | { 89 | background-color: #000000 !important; 90 | border: #000000 solid 1px !important; 91 | } 92 | 93 | .syntaxhighlighter .toolbar a 94 | { 95 | color: #808080 !important; 96 | } 97 | 98 | .syntaxhighlighter .toolbar a:hover 99 | { 100 | color: #96DAFF !important; 101 | } 102 | 103 | /************************************ 104 | * Actual syntax highlighter colors. 105 | ************************************/ 106 | .syntaxhighlighter .plain, 107 | .syntaxhighlighter .plain a 108 | { 109 | color: #FFFFFF !important; 110 | } 111 | 112 | .syntaxhighlighter .comments, 113 | .syntaxhighlighter .comments a 114 | { 115 | color: #696854 !important; 116 | } 117 | 118 | .syntaxhighlighter .string, 119 | .syntaxhighlighter .string a 120 | { 121 | color: #E3E658 !important; 122 | } 123 | 124 | .syntaxhighlighter .keyword 125 | { 126 | color: #D01D33 !important; 127 | } 128 | 129 | .syntaxhighlighter .preprocessor 130 | { 131 | color: #435A5F !important; 132 | } 133 | 134 | .syntaxhighlighter .variable 135 | { 136 | color: #898989 !important; 137 | } 138 | 139 | .syntaxhighlighter .value 140 | { 141 | color: #090 !important; 142 | } 143 | 144 | .syntaxhighlighter .functions 145 | { 146 | color: #AAAAAA !important; 147 | font-weight: bold !important; 148 | } 149 | 150 | .syntaxhighlighter .constants 151 | { 152 | color: #96DAFF !important; 153 | } 154 | 155 | .syntaxhighlighter .script 156 | { 157 | background-color: #C3C3C3 !important; 158 | color: #000 !important; 159 | } 160 | 161 | .syntaxhighlighter .color1, 162 | .syntaxhighlighter .color1 a 163 | { 164 | color: #FFC074 !important; 165 | } 166 | 167 | .syntaxhighlighter .color2, 168 | .syntaxhighlighter .color2 a 169 | { 170 | color: #4A8CDB !important; 171 | } 172 | 173 | .syntaxhighlighter .color3, 174 | .syntaxhighlighter .color3 a 175 | { 176 | color: #96DAFF !important; 177 | } 178 | -------------------------------------------------------------------------------- /support/syntaxhighlighter/scripts/shBrushPowerShell.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.1.382 (June 24 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | SyntaxHighlighter.brushes.PowerShell = function() 31 | { 32 | // Contributes by B.v.Zanten, Getronics 33 | // http://confluence.atlassian.com/display/CONFEXT/New+Code+Macro 34 | 35 | var keywords = 'Add-Content Add-History Add-Member Add-PSSnapin Clear(-Content)? Clear-Item ' + 36 | 'Clear-ItemProperty Clear-Variable Compare-Object ConvertFrom-SecureString Convert-Path ' + 37 | 'ConvertTo-Html ConvertTo-SecureString Copy(-Item)? Copy-ItemProperty Export-Alias ' + 38 | 'Export-Clixml Export-Console Export-Csv ForEach(-Object)? Format-Custom Format-List ' + 39 | 'Format-Table Format-Wide Get-Acl Get-Alias Get-AuthenticodeSignature Get-ChildItem Get-Command ' + 40 | 'Get-Content Get-Credential Get-Culture Get-Date Get-EventLog Get-ExecutionPolicy ' + 41 | 'Get-Help Get-History Get-Host Get-Item Get-ItemProperty Get-Location Get-Member ' + 42 | 'Get-PfxCertificate Get-Process Get-PSDrive Get-PSProvider Get-PSSnapin Get-Service ' + 43 | 'Get-TraceSource Get-UICulture Get-Unique Get-Variable Get-WmiObject Group-Object ' + 44 | 'Import-Alias Import-Clixml Import-Csv Invoke-Expression Invoke-History Invoke-Item ' + 45 | 'Join-Path Measure-Command Measure-Object Move(-Item)? Move-ItemProperty New-Alias ' + 46 | 'New-Item New-ItemProperty New-Object New-PSDrive New-Service New-TimeSpan ' + 47 | 'New-Variable Out-Default Out-File Out-Host Out-Null Out-Printer Out-String Pop-Location ' + 48 | 'Push-Location Read-Host Remove-Item Remove-ItemProperty Remove-PSDrive Remove-PSSnapin ' + 49 | 'Remove-Variable Rename-Item Rename-ItemProperty Resolve-Path Restart-Service Resume-Service ' + 50 | 'Select-Object Select-String Set-Acl Set-Alias Set-AuthenticodeSignature Set-Content ' + 51 | 'Set-Date Set-ExecutionPolicy Set-Item Set-ItemProperty Set-Location Set-PSDebug ' + 52 | 'Set-Service Set-TraceSource Set(-Variable)? Sort-Object Split-Path Start-Service ' + 53 | 'Start-Sleep Start-Transcript Stop-Process Stop-Service Stop-Transcript Suspend-Service ' + 54 | 'Tee-Object Test-Path Trace-Command Update-FormatData Update-TypeData Where(-Object)? ' + 55 | 'Write-Debug Write-Error Write(-Host)? Write-Output Write-Progress Write-Verbose Write-Warning'; 56 | var alias = 'ac asnp clc cli clp clv cpi cpp cvpa diff epal epcsv fc fl ' + 57 | 'ft fw gal gc gci gcm gdr ghy gi gl gm gp gps group gsv ' + 58 | 'gsnp gu gv gwmi iex ihy ii ipal ipcsv mi mp nal ndr ni nv oh rdr ' + 59 | 'ri rni rnp rp rsnp rv rvpa sal sasv sc select si sl sleep sort sp ' + 60 | 'spps spsv sv tee cat cd cp h history kill lp ls ' + 61 | 'mount mv popd ps pushd pwd r rm rmdir echo cls chdir del dir ' + 62 | 'erase rd ren type % \\?'; 63 | 64 | this.regexList = [ 65 | { regex: /#.*$/gm, css: 'comments' }, // one line comments 66 | { regex: /\$[a-zA-Z0-9]+\b/g, css: 'value' }, // variables $Computer1 67 | { regex: /\-[a-zA-Z]+\b/g, css: 'keyword' }, // Operators -not -and -eq 68 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings 69 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings 70 | { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' }, 71 | { regex: new RegExp(this.getKeywords(alias), 'gmi'), css: 'keyword' } 72 | ]; 73 | }; 74 | 75 | SyntaxHighlighter.brushes.PowerShell.prototype = new SyntaxHighlighter.Highlighter(); 76 | SyntaxHighlighter.brushes.PowerShell.aliases = ['powershell', 'ps']; 77 | -------------------------------------------------------------------------------- /support/syntaxhighlighter/styles/shThemeEclipse.css: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.1.364 (October 15 2009) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | /** 31 | * Eclipse IDE SyntaxHighlighter color theme 32 | * (C) Code-House 33 | * http://blog.code-house.org/2009/10/xml-i-adnotacje-kod-ogolnego-przeznaczenia-i-jpa/ 34 | */ 35 | 36 | .syntaxhighlighter 37 | { 38 | background-color: #fff !important; 39 | } 40 | 41 | /* Highlighed line number */ 42 | .syntaxhighlighter .line.highlighted .number 43 | { 44 | background-color: #c3defe !important; 45 | } 46 | 47 | /* Highlighed line */ 48 | .syntaxhighlighter .line.highlighted.alt1, 49 | .syntaxhighlighter .line.highlighted.alt2 50 | { 51 | background-color: #c3defe !important; 52 | } 53 | 54 | /* Gutter line numbers */ 55 | .syntaxhighlighter .line .number 56 | { 57 | color: #787878 !important; 58 | background-color: #fff !important; 59 | } 60 | 61 | /* Add border to the lines */ 62 | .syntaxhighlighter .line .content 63 | { 64 | border-left: 1px solid #d4d0c8 !important; 65 | color: #000 !important; 66 | } 67 | 68 | .syntaxhighlighter.printing .line .content 69 | { 70 | border: 0 !important; 71 | } 72 | 73 | /* First line */ 74 | .syntaxhighlighter .line.alt1 75 | { 76 | background-color: #fff !important; 77 | } 78 | 79 | /* Second line */ 80 | .syntaxhighlighter .line.alt2 81 | { 82 | background-color: #fff !important; 83 | } 84 | 85 | .syntaxhighlighter .toolbar 86 | { 87 | background-color: #F8F8F8 !important; 88 | border: #E7E5DC solid 1px !important; 89 | } 90 | 91 | .syntaxhighlighter .toolbar a 92 | { 93 | color: #a0a0a0 !important; 94 | } 95 | 96 | .syntaxhighlighter .toolbar a:hover 97 | { 98 | color: red !important; 99 | } 100 | 101 | /************************************ 102 | * Actual syntax highlighter colors. 103 | ************************************/ 104 | .syntaxhighlighter .plain, 105 | .syntaxhighlighter .plain a 106 | { 107 | color: #000 !important; 108 | } 109 | 110 | .syntaxhighlighter .comments, 111 | .syntaxhighlighter .comments a 112 | { 113 | color: #3f5fbf !important; 114 | } 115 | 116 | .syntaxhighlighter .string, 117 | .syntaxhighlighter .string a 118 | { 119 | color: #2a00ff !important; 120 | } 121 | 122 | .syntaxhighlighter .keyword 123 | { 124 | color: #7f0055 !important; 125 | font-weight: bold !important; 126 | } 127 | 128 | .syntaxhighlighter .preprocessor 129 | { 130 | color: #646464 !important; 131 | } 132 | 133 | .syntaxhighlighter .variable 134 | { 135 | color: #a70 !important; 136 | } 137 | 138 | .syntaxhighlighter .value 139 | { 140 | color: #090 !important; 141 | } 142 | 143 | .syntaxhighlighter .functions 144 | { 145 | color: #ff1493 !important; 146 | } 147 | 148 | .syntaxhighlighter .constants 149 | { 150 | color: #0066CC !important; 151 | } 152 | 153 | .syntaxhighlighter .script 154 | { 155 | background-color: yellow !important; 156 | } 157 | 158 | .syntaxhighlighter .color1, 159 | .syntaxhighlighter .color1 a 160 | { 161 | color: #808080 !important; 162 | } 163 | 164 | .syntaxhighlighter .color2, 165 | .syntaxhighlighter .color2 a 166 | { 167 | color: #ff1493 !important; 168 | } 169 | 170 | .syntaxhighlighter .color3, 171 | .syntaxhighlighter .color3 a 172 | { 173 | color: red !important; 174 | } 175 | 176 | 177 | .xml .keyword { 178 | color: #3f7f7f !important; 179 | font-weight: normal !important; 180 | } 181 | 182 | .xml .color1, 183 | .xml .color1 a{ 184 | color: #7f007f !important; 185 | } 186 | 187 | .xml .string { 188 | font-style: italic !important; 189 | color: #2a00ff !important; 190 | } -------------------------------------------------------------------------------- /support/syntaxhighlighter/styles/shThemeDefault.css: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.1.364 (October 15 2009) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | /************************************ 31 | * Default Syntax Highlighter theme. 32 | * 33 | * Interface elements. 34 | ************************************/ 35 | 36 | .syntaxhighlighter 37 | { 38 | background-color: #fff !important; 39 | } 40 | 41 | /* Highlighed line number */ 42 | .syntaxhighlighter .line.highlighted .number 43 | { 44 | color: black !important; 45 | } 46 | 47 | /* Highlighed line */ 48 | .syntaxhighlighter .line.highlighted.alt1, 49 | .syntaxhighlighter .line.highlighted.alt2 50 | { 51 | background-color: #e0e0e0 !important; 52 | } 53 | 54 | /* Gutter line numbers */ 55 | .syntaxhighlighter .line .number 56 | { 57 | color: #afafaf !important; 58 | } 59 | 60 | /* Add border to the lines */ 61 | .syntaxhighlighter .line .content 62 | { 63 | border-left: 3px solid #6CE26C !important; 64 | color: #000 !important; 65 | } 66 | 67 | .syntaxhighlighter.printing .line .content 68 | { 69 | border: 0 !important; 70 | } 71 | 72 | /* First line */ 73 | .syntaxhighlighter .line.alt1 74 | { 75 | background-color: #fff !important; 76 | } 77 | 78 | /* Second line */ 79 | .syntaxhighlighter .line.alt2 80 | { 81 | background-color: #F8F8F8 !important; 82 | } 83 | 84 | .syntaxhighlighter .toolbar 85 | { 86 | background-color: #F8F8F8 !important; 87 | border: #E7E5DC solid 1px !important; 88 | } 89 | 90 | .syntaxhighlighter .toolbar a 91 | { 92 | color: #a0a0a0 !important; 93 | } 94 | 95 | .syntaxhighlighter .toolbar a:hover 96 | { 97 | color: red !important; 98 | } 99 | 100 | /************************************ 101 | * Actual syntax highlighter colors. 102 | ************************************/ 103 | .syntaxhighlighter .plain, 104 | .syntaxhighlighter .plain a 105 | { 106 | color: #000 !important; 107 | } 108 | 109 | .syntaxhighlighter .comments, 110 | .syntaxhighlighter .comments a 111 | { 112 | color: #008200 !important; 113 | } 114 | 115 | .syntaxhighlighter .string, 116 | .syntaxhighlighter .string a 117 | { 118 | color: blue !important; 119 | } 120 | 121 | .syntaxhighlighter .keyword 122 | { 123 | color: #069 !important; 124 | font-weight: bold !important; 125 | } 126 | 127 | .syntaxhighlighter .preprocessor 128 | { 129 | color: gray !important; 130 | } 131 | 132 | .syntaxhighlighter .variable 133 | { 134 | color: #a70 !important; 135 | } 136 | 137 | .syntaxhighlighter .value 138 | { 139 | color: #090 !important; 140 | } 141 | 142 | .syntaxhighlighter .functions 143 | { 144 | color: #ff1493 !important; 145 | } 146 | 147 | .syntaxhighlighter .constants 148 | { 149 | color: #0066CC !important; 150 | } 151 | 152 | .syntaxhighlighter .script 153 | { 154 | background-color: yellow !important; 155 | } 156 | 157 | .syntaxhighlighter .color1, 158 | .syntaxhighlighter .color1 a 159 | { 160 | color: #808080 !important; 161 | } 162 | 163 | .syntaxhighlighter .color2, 164 | .syntaxhighlighter .color2 a 165 | { 166 | color: #ff1493 !important; 167 | } 168 | 169 | .syntaxhighlighter .color3, 170 | .syntaxhighlighter .color3 a 171 | { 172 | color: red !important; 173 | } 174 | 175 | div.syntaxhighlighter code.php-comment { 176 | color: #189216 !important; 177 | } 178 | 179 | div.syntaxhighlighter code.php-constant { 180 | color: #9F627A !important; 181 | } 182 | 183 | div.syntaxhighlighter code.php-custfunc { 184 | color: #1A63CB !important; 185 | } 186 | 187 | div.syntaxhighlighter code.php-function { 188 | color: #661CA8 !important; 189 | } 190 | 191 | div.syntaxhighlighter code.php-keyword { 192 | color: #851650 !important; 193 | } 194 | 195 | div.syntaxhighlighter code.php-numval { 196 | color: #1C06FD !important; 197 | } 198 | 199 | div.syntaxhighlighter code.php-tag { 200 | color: #D70E0D !important; 201 | } 202 | 203 | div.syntaxhighlighter code.php-string { 204 | color: #E67411 !important; 205 | } 206 | 207 | div.syntaxhighlighter code.php-variable { 208 | color: #80590A !important; 209 | } 210 | 211 | div.syntaxhighlighter code.php-varinstr { 212 | color: #C44C1A !important; 213 | } 214 | -------------------------------------------------------------------------------- /support/syntaxhighlighter/styles/shThemeBarebones.css: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.1.364 (October 15 2009) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | /************************************ 31 | * Default Syntax Highlighter theme. 32 | * 33 | * Interface elements. 34 | ************************************/ 35 | 36 | .syntaxhighlighter 37 | { 38 | background-color: #fff !important; 39 | } 40 | 41 | /* Highlighed line number */ 42 | .syntaxhighlighter .line.highlighted .number 43 | { 44 | color: black !important; 45 | } 46 | 47 | /* Highlighed line */ 48 | .syntaxhighlighter .line.highlighted.alt1 49 | { 50 | background-color: #FFFFD8 !important; 51 | } 52 | 53 | .syntaxhighlighter .line.highlighted.alt2 54 | { 55 | background-color: #F4F4CC !important; 56 | } 57 | 58 | /* Gutter line numbers */ 59 | .syntaxhighlighter .line .number 60 | { 61 | color: #afafaf !important; 62 | } 63 | 64 | /* Add border to the lines */ 65 | .syntaxhighlighter .line .content 66 | { 67 | border-left: 3px solid #6CE26C !important; 68 | color: #000 !important; 69 | } 70 | 71 | .syntaxhighlighter.printing .line .content 72 | { 73 | border: 0 !important; 74 | } 75 | 76 | /* First line */ 77 | .syntaxhighlighter .line.alt1 78 | { 79 | background-color: #fff !important; 80 | } 81 | 82 | /* Second line */ 83 | .syntaxhighlighter .line.alt2 84 | { 85 | background-color: #F8F8F8 !important; 86 | } 87 | 88 | .syntaxhighlighter .toolbar 89 | { 90 | background-color: #F8F8F8 !important; 91 | border: #E7E5DC solid 1px !important; 92 | } 93 | 94 | .syntaxhighlighter .toolbar a 95 | { 96 | color: #a0a0a0 !important; 97 | } 98 | 99 | .syntaxhighlighter .toolbar a:hover 100 | { 101 | color: red !important; 102 | } 103 | 104 | /************************************ 105 | * Actual syntax highlighter colors. 106 | ************************************/ 107 | .syntaxhighlighter .plain, 108 | .syntaxhighlighter .plain a 109 | { 110 | color: #000 !important; 111 | } 112 | 113 | .syntaxhighlighter .comments, 114 | .syntaxhighlighter .comments a 115 | { 116 | color: #008200 !important; 117 | } 118 | 119 | .syntaxhighlighter .string, 120 | .syntaxhighlighter .string a 121 | { 122 | color: blue !important; 123 | } 124 | 125 | .syntaxhighlighter .keyword 126 | { 127 | color: #069 !important; 128 | font-weight: bold !important; 129 | } 130 | 131 | .syntaxhighlighter .preprocessor 132 | { 133 | color: gray !important; 134 | } 135 | 136 | .syntaxhighlighter .variable 137 | { 138 | color: #a70 !important; 139 | } 140 | 141 | .syntaxhighlighter .value 142 | { 143 | color: #090 !important; 144 | } 145 | 146 | .syntaxhighlighter .functions 147 | { 148 | color: #ff1493 !important; 149 | } 150 | 151 | .syntaxhighlighter .constants 152 | { 153 | color: #0066CC !important; 154 | } 155 | 156 | .syntaxhighlighter .script 157 | { 158 | background-color: yellow !important; 159 | } 160 | 161 | .syntaxhighlighter .color1, 162 | .syntaxhighlighter .color1 a 163 | { 164 | color: #808080 !important; 165 | } 166 | 167 | .syntaxhighlighter .color2, 168 | .syntaxhighlighter .color2 a 169 | { 170 | color: #ff1493 !important; 171 | } 172 | 173 | .syntaxhighlighter .color3, 174 | .syntaxhighlighter .color3 a 175 | { 176 | color: red !important; 177 | } 178 | 179 | div.syntaxhighlighter code.php-comment { 180 | color: #189216 !important; 181 | } 182 | 183 | div.syntaxhighlighter code.php-constant { 184 | color: #9F627A !important; 185 | } 186 | 187 | div.syntaxhighlighter code.php-custfunc { 188 | color: #1A63CB !important; 189 | } 190 | 191 | div.syntaxhighlighter code.php-function { 192 | color: #661CA8 !important; 193 | } 194 | 195 | div.syntaxhighlighter code.php-keyword { 196 | color: #851650 !important; 197 | } 198 | 199 | div.syntaxhighlighter code.php-numval { 200 | color: #1C06FD !important; 201 | } 202 | 203 | div.syntaxhighlighter code.php-tag { 204 | color: #D70E0D !important; 205 | } 206 | 207 | div.syntaxhighlighter code.php-string { 208 | color: #E67411 !important; 209 | } 210 | 211 | div.syntaxhighlighter code.php-variable { 212 | color: #80590A !important; 213 | } 214 | 215 | div.syntaxhighlighter code.php-varinstr { 216 | color: #C44C1A !important; 217 | } 218 | -------------------------------------------------------------------------------- /support/syntaxhighlighter/src/shLegacy.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.1.382 (June 24 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | var dp = { 31 | SyntaxHighlighter : {} 32 | }; 33 | 34 | dp.SyntaxHighlighter = { 35 | parseParams: function( 36 | input, 37 | showGutter, 38 | showControls, 39 | collapseAll, 40 | firstLine, 41 | showColumns 42 | ) 43 | { 44 | function getValue(list, name) 45 | { 46 | var regex = new XRegExp('^' + name + '\\[(?\\w+)\\]$', 'gi'), 47 | match = null 48 | ; 49 | 50 | for (var i = 0; i < list.length; i++) 51 | if ((match = regex.exec(list[i])) != null) 52 | return match.value; 53 | 54 | return null; 55 | }; 56 | 57 | function defaultValue(value, def) 58 | { 59 | return value != null ? value : def; 60 | }; 61 | 62 | function asString(value) 63 | { 64 | return value != null ? value.toString() : null; 65 | }; 66 | 67 | var parts = input.split(':'), 68 | brushName = parts[0], 69 | options = {}, 70 | straight = { 'true' : 'true' } 71 | reverse = { 'true' : 'false' }, 72 | result = null, 73 | defaults = SyntaxHighlighter.defaults 74 | ; 75 | 76 | for (var i in parts) 77 | options[parts[i]] = 'true'; 78 | 79 | showGutter = asString(defaultValue(showGutter, defaults.gutter)); 80 | showControls = asString(defaultValue(showControls, defaults.toolbar)); 81 | collapseAll = asString(defaultValue(collapseAll, defaults.collapse)); 82 | showColumns = asString(defaultValue(showColumns, defaults.ruler)); 83 | firstLine = asString(defaultValue(firstLine, defaults['first-line'])); 84 | 85 | result = { 86 | brush : brushName, 87 | gutter : defaultValue(reverse[options.nogutter], showGutter), 88 | toolbar : defaultValue(reverse[options.nocontrols], showControls), 89 | collapse : defaultValue(straight[options.collapse], collapseAll), 90 | ruler : defaultValue(straight[options.showcolumns], showColumns), 91 | 'first-line' : defaultValue(getValue(parts, 'firstline'), firstLine) 92 | }; 93 | 94 | return result; 95 | }, 96 | 97 | HighlightAll: function( 98 | name, 99 | showGutter /* optional */, 100 | showControls /* optional */, 101 | collapseAll /* optional */, 102 | firstLine /* optional */, 103 | showColumns /* optional */ 104 | ) 105 | { 106 | function findValue() 107 | { 108 | var a = arguments; 109 | 110 | for (var i = 0; i < a.length; i++) 111 | { 112 | if (a[i] === null) 113 | continue; 114 | 115 | if (typeof(a[i]) == 'string' && a[i] != '') 116 | return a[i] + ''; 117 | 118 | if (typeof(a[i]) == 'object' && a[i].value != '') 119 | return a[i].value + ''; 120 | } 121 | 122 | return null; 123 | }; 124 | 125 | function findTagsByName(list, name, tagName) 126 | { 127 | var tags = document.getElementsByTagName(tagName); 128 | 129 | for (var i = 0; i < tags.length; i++) 130 | if (tags[i].getAttribute('name') == name) 131 | list.push(tags[i]); 132 | } 133 | 134 | var elements = [], 135 | highlighter = null, 136 | registered = {}, 137 | propertyName = 'innerHTML' 138 | ; 139 | 140 | // for some reason IE doesn't find
 by name, however it does see them just fine by tag name... 
141 | 		findTagsByName(elements, name, 'pre');
142 | 		findTagsByName(elements, name, 'textarea');
143 | 
144 | 		if (elements.length === 0)
145 | 			return;
146 | 		
147 | 		for (var i = 0; i < elements.length; i++)
148 | 		{
149 | 			var element = elements[i],
150 | 				params = findValue(
151 | 					element.attributes['class'], element.className, 
152 | 					element.attributes['language'], element.language
153 | 					),
154 | 				language = ''
155 | 				;
156 | 			
157 | 			if (params === null) 
158 | 				continue;
159 | 
160 | 			params = dp.SyntaxHighlighter.parseParams(
161 | 				params,
162 | 				showGutter, 
163 | 				showControls, 
164 | 				collapseAll, 
165 | 				firstLine, 
166 | 				showColumns
167 | 				);
168 | 
169 | 			SyntaxHighlighter.highlight(params, element);
170 | 		}
171 | 	}
172 | };
173 | 


--------------------------------------------------------------------------------
/support/syntaxhighlighter/scripts/shBrushCpp.js:
--------------------------------------------------------------------------------
  1 | /**
  2 |  * SyntaxHighlighter
  3 |  * http://alexgorbatchev.com/
  4 |  *
  5 |  * SyntaxHighlighter is donationware. If you are using it, please donate.
  6 |  * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
  7 |  *
  8 |  * @version
  9 |  * 2.1.382 (June 24 2010)
 10 |  * 
 11 |  * @copyright
 12 |  * Copyright (C) 2004-2009 Alex Gorbatchev.
 13 |  *
 14 |  * @license
 15 |  * This file is part of SyntaxHighlighter.
 16 |  * 
 17 |  * SyntaxHighlighter is free software: you can redistribute it and/or modify
 18 |  * it under the terms of the GNU Lesser General Public License as published by
 19 |  * the Free Software Foundation, either version 3 of the License, or
 20 |  * (at your option) any later version.
 21 |  * 
 22 |  * SyntaxHighlighter is distributed in the hope that it will be useful,
 23 |  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 24 |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 25 |  * GNU General Public License for more details.
 26 |  * 
 27 |  * You should have received a copy of the GNU General Public License
 28 |  * along with SyntaxHighlighter.  If not, see .
 29 |  */
 30 | SyntaxHighlighter.brushes.Cpp = function()
 31 | {
 32 | 	// Copyright 2006 Shin, YoungJin
 33 | 	
 34 | 	var datatypes =	'ATOM BOOL BOOLEAN BYTE CHAR COLORREF DWORD DWORDLONG DWORD_PTR ' +
 35 | 					'DWORD32 DWORD64 FLOAT HACCEL HALF_PTR HANDLE HBITMAP HBRUSH ' +
 36 | 					'HCOLORSPACE HCONV HCONVLIST HCURSOR HDC HDDEDATA HDESK HDROP HDWP ' +
 37 | 					'HENHMETAFILE HFILE HFONT HGDIOBJ HGLOBAL HHOOK HICON HINSTANCE HKEY ' +
 38 | 					'HKL HLOCAL HMENU HMETAFILE HMODULE HMONITOR HPALETTE HPEN HRESULT ' +
 39 | 					'HRGN HRSRC HSZ HWINSTA HWND INT INT_PTR INT32 INT64 LANGID LCID LCTYPE ' +
 40 | 					'LGRPID LONG LONGLONG LONG_PTR LONG32 LONG64 LPARAM LPBOOL LPBYTE LPCOLORREF ' +
 41 | 					'LPCSTR LPCTSTR LPCVOID LPCWSTR LPDWORD LPHANDLE LPINT LPLONG LPSTR LPTSTR ' +
 42 | 					'LPVOID LPWORD LPWSTR LRESULT PBOOL PBOOLEAN PBYTE PCHAR PCSTR PCTSTR PCWSTR ' +
 43 | 					'PDWORDLONG PDWORD_PTR PDWORD32 PDWORD64 PFLOAT PHALF_PTR PHANDLE PHKEY PINT ' +
 44 | 					'PINT_PTR PINT32 PINT64 PLCID PLONG PLONGLONG PLONG_PTR PLONG32 PLONG64 POINTER_32 ' +
 45 | 					'POINTER_64 PSHORT PSIZE_T PSSIZE_T PSTR PTBYTE PTCHAR PTSTR PUCHAR PUHALF_PTR ' +
 46 | 					'PUINT PUINT_PTR PUINT32 PUINT64 PULONG PULONGLONG PULONG_PTR PULONG32 PULONG64 ' +
 47 | 					'PUSHORT PVOID PWCHAR PWORD PWSTR SC_HANDLE SC_LOCK SERVICE_STATUS_HANDLE SHORT ' +
 48 | 					'SIZE_T SSIZE_T TBYTE TCHAR UCHAR UHALF_PTR UINT UINT_PTR UINT32 UINT64 ULONG ' +
 49 | 					'ULONGLONG ULONG_PTR ULONG32 ULONG64 USHORT USN VOID WCHAR WORD WPARAM WPARAM WPARAM ' +
 50 | 					'char bool short int __int32 __int64 __int8 __int16 long float double __wchar_t ' +
 51 | 					'clock_t _complex _dev_t _diskfree_t div_t ldiv_t _exception _EXCEPTION_POINTERS ' +
 52 | 					'FILE _finddata_t _finddatai64_t _wfinddata_t _wfinddatai64_t __finddata64_t ' +
 53 | 					'__wfinddata64_t _FPIEEE_RECORD fpos_t _HEAPINFO _HFILE lconv intptr_t ' +
 54 | 					'jmp_buf mbstate_t _off_t _onexit_t _PNH ptrdiff_t _purecall_handler ' +
 55 | 					'sig_atomic_t size_t _stat __stat64 _stati64 terminate_function ' +
 56 | 					'time_t __time64_t _timeb __timeb64 tm uintptr_t _utimbuf ' +
 57 | 					'va_list wchar_t wctrans_t wctype_t wint_t signed';
 58 | 
 59 | 	var keywords =	'break case catch class const __finally __exception __try ' +
 60 | 					'const_cast continue private public protected __declspec ' +
 61 | 					'default delete deprecated dllexport dllimport do dynamic_cast ' +
 62 | 					'else enum explicit extern if for friend goto inline ' +
 63 | 					'mutable naked namespace new noinline noreturn nothrow ' +
 64 | 					'register reinterpret_cast return selectany ' +
 65 | 					'sizeof static static_cast struct switch template this ' +
 66 | 					'thread throw true false try typedef typeid typename union ' +
 67 | 					'using uuid virtual void volatile whcar_t while';
 68 | 					
 69 | 	var functions =	'assert isalnum isalpha iscntrl isdigit isgraph islower isprint' +
 70 | 					'ispunct isspace isupper isxdigit tolower toupper errno localeconv ' +
 71 | 					'setlocale acos asin atan atan2 ceil cos cosh exp fabs floor fmod ' +
 72 | 					'frexp ldexp log log10 modf pow sin sinh sqrt tan tanh jmp_buf ' +
 73 | 					'longjmp setjmp raise signal sig_atomic_t va_arg va_end va_start ' +
 74 | 					'clearerr fclose feof ferror fflush fgetc fgetpos fgets fopen ' +
 75 | 					'fprintf fputc fputs fread freopen fscanf fseek fsetpos ftell ' +
 76 | 					'fwrite getc getchar gets perror printf putc putchar puts remove ' +
 77 | 					'rename rewind scanf setbuf setvbuf sprintf sscanf tmpfile tmpnam ' +
 78 | 					'ungetc vfprintf vprintf vsprintf abort abs atexit atof atoi atol ' +
 79 | 					'bsearch calloc div exit free getenv labs ldiv malloc mblen mbstowcs ' +
 80 | 					'mbtowc qsort rand realloc srand strtod strtol strtoul system ' +
 81 | 					'wcstombs wctomb memchr memcmp memcpy memmove memset strcat strchr ' +
 82 | 					'strcmp strcoll strcpy strcspn strerror strlen strncat strncmp ' +
 83 | 					'strncpy strpbrk strrchr strspn strstr strtok strxfrm asctime ' +
 84 | 					'clock ctime difftime gmtime localtime mktime strftime time';
 85 | 
 86 | 	this.regexList = [
 87 | 		{ regex: SyntaxHighlighter.regexLib.singleLineCComments,	css: 'comments' },			// one line comments
 88 | 		{ regex: SyntaxHighlighter.regexLib.multiLineCComments,		css: 'comments' },			// multiline comments
 89 | 		{ regex: SyntaxHighlighter.regexLib.doubleQuotedString,		css: 'string' },			// strings
 90 | 		{ regex: SyntaxHighlighter.regexLib.singleQuotedString,		css: 'string' },			// strings
 91 | 		{ regex: /^ *#.*/gm,										css: 'preprocessor' },
 92 | 		{ regex: new RegExp(this.getKeywords(datatypes), 'gm'),		css: 'color1 bold' },
 93 | 		{ regex: new RegExp(this.getKeywords(functions), 'gm'),		css: 'functions bold' },
 94 | 		{ regex: new RegExp(this.getKeywords(keywords), 'gm'),		css: 'keyword bold' }
 95 | 		];
 96 | };
 97 | 
 98 | SyntaxHighlighter.brushes.Cpp.prototype	= new SyntaxHighlighter.Highlighter();
 99 | SyntaxHighlighter.brushes.Cpp.aliases	= ['cpp', 'c'];
100 | 


--------------------------------------------------------------------------------
/support/syntaxhighlighter/scripts/shBrushCSS.js:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * SyntaxHighlighter
 3 |  * http://alexgorbatchev.com/
 4 |  *
 5 |  * SyntaxHighlighter is donationware. If you are using it, please donate.
 6 |  * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
 7 |  *
 8 |  * @version
 9 |  * 2.1.382 (June 24 2010)
10 |  * 
11 |  * @copyright
12 |  * Copyright (C) 2004-2009 Alex Gorbatchev.
13 |  *
14 |  * @license
15 |  * This file is part of SyntaxHighlighter.
16 |  * 
17 |  * SyntaxHighlighter is free software: you can redistribute it and/or modify
18 |  * it under the terms of the GNU Lesser General Public License as published by
19 |  * the Free Software Foundation, either version 3 of the License, or
20 |  * (at your option) any later version.
21 |  * 
22 |  * SyntaxHighlighter is distributed in the hope that it will be useful,
23 |  * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25 |  * GNU General Public License for more details.
26 |  * 
27 |  * You should have received a copy of the GNU General Public License
28 |  * along with SyntaxHighlighter.  If not, see .
29 |  */
30 | SyntaxHighlighter.brushes.CSS = function()
31 | {
32 | 	function getKeywordsCSS(str)
33 | 	{
34 | 		return '\\b([a-z_]|)' + str.replace(/ /g, '(?=:)\\b|\\b([a-z_\\*]|\\*|)') + '(?=:)\\b';
35 | 	};
36 | 	
37 | 	function getValuesCSS(str)
38 | 	{
39 | 		return '\\b' + str.replace(/ /g, '(?!-)(?!:)\\b|\\b()') + '\:\\b';
40 | 	};
41 | 
42 | 	var keywords =	'ascent azimuth background-attachment background-color background-image background-position ' +
43 | 					'background-repeat background baseline bbox border-collapse border-color border-spacing border-style border-top ' +
44 | 					'border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color ' +
45 | 					'border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width ' +
46 | 					'border-bottom-width border-left-width border-width border bottom cap-height caption-side centerline clear clip color ' +
47 | 					'content counter-increment counter-reset cue-after cue-before cue cursor definition-src descent direction display ' +
48 | 					'elevation empty-cells float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font ' +
49 | 					'height left letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top ' +
50 | 					'margin-right margin-bottom margin-left margin marker-offset marks mathline max-height max-width min-height min-width orphans ' +
51 | 					'outline-color outline-style outline-width outline overflow padding-top padding-right padding-bottom padding-left padding page ' +
52 | 					'page-break-after page-break-before page-break-inside pause pause-after pause-before pitch pitch-range play-during position ' +
53 | 					'quotes right richness size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress ' +
54 | 					'table-layout text-align top text-decoration text-indent text-shadow text-transform unicode-bidi unicode-range units-per-em ' +
55 | 					'vertical-align visibility voice-family volume white-space widows width widths word-spacing x-height z-index';
56 | 
57 | 	var values =	'above absolute all always aqua armenian attr aural auto avoid baseline behind below bidi-override black blink block blue bold bolder '+
58 | 					'both bottom braille capitalize caption center center-left center-right circle close-quote code collapse compact condensed '+
59 | 					'continuous counter counters crop cross crosshair cursive dashed decimal decimal-leading-zero default digits disc dotted double '+
60 | 					'embed embossed e-resize expanded extra-condensed extra-expanded fantasy far-left far-right fast faster fixed format fuchsia '+
61 | 					'gray green groove handheld hebrew help hidden hide high higher icon inline-table inline inset inside invert italic '+
62 | 					'justify landscape large larger left-side left leftwards level lighter lime line-through list-item local loud lower-alpha '+
63 | 					'lowercase lower-greek lower-latin lower-roman lower low ltr marker maroon medium message-box middle mix move narrower '+
64 | 					'navy ne-resize no-close-quote none no-open-quote no-repeat normal nowrap n-resize nw-resize oblique olive once open-quote outset '+
65 | 					'outside overline pointer portrait pre print projection purple red relative repeat repeat-x repeat-y rgb ridge right right-side '+
66 | 					'rightwards rtl run-in screen scroll semi-condensed semi-expanded separate se-resize show silent silver slower slow '+
67 | 					'small small-caps small-caption smaller soft solid speech spell-out square s-resize static status-bar sub super sw-resize '+
68 | 					'table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group teal '+
69 | 					'text-bottom text-top thick thin top transparent tty tv ultra-condensed ultra-expanded underline upper-alpha uppercase upper-latin '+
70 | 					'upper-roman url visible wait white wider w-resize x-fast x-high x-large x-loud x-low x-slow x-small x-soft xx-large xx-small yellow';
71 | 
72 | 	var fonts =		'[mM]onospace [tT]ahoma [vV]erdana [aA]rial [hH]elvetica [sS]ans-serif [sS]erif [cC]ourier mono sans serif';
73 | 	
74 | 	this.regexList = [
75 | 		{ regex: SyntaxHighlighter.regexLib.multiLineCComments,		css: 'comments' },	// multiline comments
76 | 		{ regex: SyntaxHighlighter.regexLib.doubleQuotedString,		css: 'string' },	// double quoted strings
77 | 		{ regex: SyntaxHighlighter.regexLib.singleQuotedString,		css: 'string' },	// single quoted strings
78 | 		{ regex: /\#[a-fA-F0-9]{3,6}/g,								css: 'value' },		// html colors
79 | 		{ regex: /(-?\d+)(\.\d+)?(px|em|pt|\:|\%|)/g,				css: 'value' },		// sizes
80 | 		{ regex: /!important/g,										css: 'color3' },	// !important
81 | 		{ regex: new RegExp(getKeywordsCSS(keywords), 'gm'),		css: 'keyword' },	// keywords
82 | 		{ regex: new RegExp(getValuesCSS(values), 'g'),				css: 'value' },		// values
83 | 		{ regex: new RegExp(this.getKeywords(fonts), 'g'),			css: 'color1' }		// fonts
84 | 		];
85 | 
86 | 	this.forHtmlScript({ 
87 | 		left: /(<|<)\s*style.*?(>|>)/gi, 
88 | 		right: /(<|<)\/\s*style\s*(>|>)/gi 
89 | 		});
90 | };
91 | 
92 | SyntaxHighlighter.brushes.CSS.prototype	= new SyntaxHighlighter.Highlighter();
93 | SyntaxHighlighter.brushes.CSS.aliases	= ['css'];
94 | 


--------------------------------------------------------------------------------
/support/syntaxhighlighter/LGPLv3.txt:
--------------------------------------------------------------------------------
  1 | 		   GNU LESSER GENERAL PUBLIC LICENSE
  2 |                        Version 3, 29 June 2007
  3 | 
  4 |  Copyright (C) 2007 Free Software Foundation, Inc. 
  5 |  Everyone is permitted to copy and distribute verbatim copies
  6 |  of this license document, but changing it is not allowed.
  7 | 
  8 | 
  9 |   This version of the GNU Lesser General Public License incorporates
 10 | the terms and conditions of version 3 of the GNU General Public
 11 | License, supplemented by the additional permissions listed below.
 12 | 
 13 |   0. Additional Definitions. 
 14 | 
 15 |   As used herein, "this License" refers to version 3 of the GNU Lesser
 16 | General Public License, and the "GNU GPL" refers to version 3 of the GNU
 17 | General Public License.
 18 | 
 19 |   "The Library" refers to a covered work governed by this License,
 20 | other than an Application or a Combined Work as defined below.
 21 | 
 22 |   An "Application" is any work that makes use of an interface provided
 23 | by the Library, but which is not otherwise based on the Library.
 24 | Defining a subclass of a class defined by the Library is deemed a mode
 25 | of using an interface provided by the Library.
 26 | 
 27 |   A "Combined Work" is a work produced by combining or linking an
 28 | Application with the Library.  The particular version of the Library
 29 | with which the Combined Work was made is also called the "Linked
 30 | Version".
 31 | 
 32 |   The "Minimal Corresponding Source" for a Combined Work means the
 33 | Corresponding Source for the Combined Work, excluding any source code
 34 | for portions of the Combined Work that, considered in isolation, are
 35 | based on the Application, and not on the Linked Version.
 36 | 
 37 |   The "Corresponding Application Code" for a Combined Work means the
 38 | object code and/or source code for the Application, including any data
 39 | and utility programs needed for reproducing the Combined Work from the
 40 | Application, but excluding the System Libraries of the Combined Work.
 41 | 
 42 |   1. Exception to Section 3 of the GNU GPL.
 43 | 
 44 |   You may convey a covered work under sections 3 and 4 of this License
 45 | without being bound by section 3 of the GNU GPL.
 46 | 
 47 |   2. Conveying Modified Versions.
 48 | 
 49 |   If you modify a copy of the Library, and, in your modifications, a
 50 | facility refers to a function or data to be supplied by an Application
 51 | that uses the facility (other than as an argument passed when the
 52 | facility is invoked), then you may convey a copy of the modified
 53 | version:
 54 | 
 55 |    a) under this License, provided that you make a good faith effort to
 56 |    ensure that, in the event an Application does not supply the
 57 |    function or data, the facility still operates, and performs
 58 |    whatever part of its purpose remains meaningful, or
 59 | 
 60 |    b) under the GNU GPL, with none of the additional permissions of
 61 |    this License applicable to that copy.
 62 | 
 63 |   3. Object Code Incorporating Material from Library Header Files.
 64 | 
 65 |   The object code form of an Application may incorporate material from
 66 | a header file that is part of the Library.  You may convey such object
 67 | code under terms of your choice, provided that, if the incorporated
 68 | material is not limited to numerical parameters, data structure
 69 | layouts and accessors, or small macros, inline functions and templates
 70 | (ten or fewer lines in length), you do both of the following:
 71 | 
 72 |    a) Give prominent notice with each copy of the object code that the
 73 |    Library is used in it and that the Library and its use are
 74 |    covered by this License.
 75 | 
 76 |    b) Accompany the object code with a copy of the GNU GPL and this license
 77 |    document.
 78 | 
 79 |   4. Combined Works.
 80 | 
 81 |   You may convey a Combined Work under terms of your choice that,
 82 | taken together, effectively do not restrict modification of the
 83 | portions of the Library contained in the Combined Work and reverse
 84 | engineering for debugging such modifications, if you also do each of
 85 | the following:
 86 | 
 87 |    a) Give prominent notice with each copy of the Combined Work that
 88 |    the Library is used in it and that the Library and its use are
 89 |    covered by this License.
 90 | 
 91 |    b) Accompany the Combined Work with a copy of the GNU GPL and this license
 92 |    document.
 93 | 
 94 |    c) For a Combined Work that displays copyright notices during
 95 |    execution, include the copyright notice for the Library among
 96 |    these notices, as well as a reference directing the user to the
 97 |    copies of the GNU GPL and this license document.
 98 | 
 99 |    d) Do one of the following:
100 | 
101 |        0) Convey the Minimal Corresponding Source under the terms of this
102 |        License, and the Corresponding Application Code in a form
103 |        suitable for, and under terms that permit, the user to
104 |        recombine or relink the Application with a modified version of
105 |        the Linked Version to produce a modified Combined Work, in the
106 |        manner specified by section 6 of the GNU GPL for conveying
107 |        Corresponding Source.
108 | 
109 |        1) Use a suitable shared library mechanism for linking with the
110 |        Library.  A suitable mechanism is one that (a) uses at run time
111 |        a copy of the Library already present on the user's computer
112 |        system, and (b) will operate properly with a modified version
113 |        of the Library that is interface-compatible with the Linked
114 |        Version. 
115 | 
116 |    e) Provide Installation Information, but only if you would otherwise
117 |    be required to provide such information under section 6 of the
118 |    GNU GPL, and only to the extent that such information is
119 |    necessary to install and execute a modified version of the
120 |    Combined Work produced by recombining or relinking the
121 |    Application with a modified version of the Linked Version. (If
122 |    you use option 4d0, the Installation Information must accompany
123 |    the Minimal Corresponding Source and Corresponding Application
124 |    Code. If you use option 4d1, you must provide the Installation
125 |    Information in the manner specified by section 6 of the GNU GPL
126 |    for conveying Corresponding Source.)
127 | 
128 |   5. Combined Libraries.
129 | 
130 |   You may place library facilities that are a work based on the
131 | Library side by side in a single library together with other library
132 | facilities that are not Applications and are not covered by this
133 | License, and convey such a combined library under terms of your
134 | choice, if you do both of the following:
135 | 
136 |    a) Accompany the combined library with a copy of the same work based
137 |    on the Library, uncombined with any other library facilities,
138 |    conveyed under the terms of this License.
139 | 
140 |    b) Give prominent notice with the combined library that part of it
141 |    is a work based on the Library, and explaining where to find the
142 |    accompanying uncombined form of the same work.
143 | 
144 |   6. Revised Versions of the GNU Lesser General Public License.
145 | 
146 |   The Free Software Foundation may publish revised and/or new versions
147 | of the GNU Lesser General Public License from time to time. Such new
148 | versions will be similar in spirit to the present version, but may
149 | differ in detail to address new problems or concerns.
150 | 
151 |   Each version is given a distinguishing version number. If the
152 | Library as you received it specifies that a certain numbered version
153 | of the GNU Lesser General Public License "or any later version"
154 | applies to it, you have the option of following the terms and
155 | conditions either of that published version or of any later version
156 | published by the Free Software Foundation. If the Library as you
157 | received it does not specify a version number of the GNU Lesser
158 | General Public License, you may choose any version of the GNU Lesser
159 | General Public License ever published by the Free Software Foundation.
160 | 
161 |   If the Library as you received it specifies that a proxy can decide
162 | whether future versions of the GNU Lesser General Public License shall
163 | apply, that proxy's public statement of acceptance of any version is
164 | permanent authorization for you to choose that version for the
165 | Library.


--------------------------------------------------------------------------------
/support/syntaxhighlighter/styles/shCore.css:
--------------------------------------------------------------------------------
  1 | /**
  2 |  * SyntaxHighlighter
  3 |  * http://alexgorbatchev.com/
  4 |  *
  5 |  * SyntaxHighlighter is donationware. If you are using it, please donate.
  6 |  * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
  7 |  *
  8 |  * @version
  9 |  * 2.1.364 (October 15 2009)
 10 |  *
 11 |  * @copyright
 12 |  * Copyright (C) 2004-2009 Alex Gorbatchev.
 13 |  *
 14 |  * @license
 15 |  * This file is part of SyntaxHighlighter.
 16 |  *
 17 |  * SyntaxHighlighter is free software: you can redistribute it and/or modify
 18 |  * it under the terms of the GNU Lesser General Public License as published by
 19 |  * the Free Software Foundation, either version 3 of the License, or
 20 |  * (at your option) any later version.
 21 |  *
 22 |  * SyntaxHighlighter is distributed in the hope that it will be useful,
 23 |  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 24 |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 25 |  * GNU General Public License for more details.
 26 |  *
 27 |  * You should have received a copy of the GNU General Public License
 28 |  * along with SyntaxHighlighter.  If not, see .
 29 |  */
 30 | .syntaxhighlighter,
 31 | .syntaxhighlighter div,
 32 | .syntaxhighlighter code,
 33 | .syntaxhighlighter table,
 34 | .syntaxhighlighter table td,
 35 | .syntaxhighlighter table tr,
 36 | .syntaxhighlighter table tbody
 37 | {
 38 | 	margin: 0 !important;
 39 | 	padding: 0 !important;
 40 | 	border: 0 !important;
 41 | 	outline: 0 !important;
 42 | 	background: none !important;
 43 | 	text-align: left !important;
 44 | 	float: none !important;
 45 | 	vertical-align: baseline !important;
 46 | 	position: static !important;
 47 | 	left: auto !important;
 48 | 	top: auto !important;
 49 | 	right: auto !important;
 50 | 	bottom: auto !important;
 51 | 	height: auto !important;
 52 | 	width: auto !important;
 53 | 	line-height: 1.1em !important;
 54 | 	font-family: "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
 55 | 	font-weight: normal !important;
 56 | 	font-style: normal !important;
 57 | 	font-size: 1em !important;
 58 | 	min-height: inherit !important; /* For IE8, FF & WebKit */
 59 | 	min-height: auto !important; /* For IE7 */
 60 | }
 61 | 
 62 | .syntaxhighlighter
 63 | {
 64 | 	width: 99% !important; /* 99% fixes IE8 horizontal scrollbar */
 65 | 	margin: 1em 0 1em 0 !important;
 66 | 	padding: 1px !important; /* adds a little border on top and bottom */
 67 | 	position: relative !important;
 68 | }
 69 | 
 70 | .syntaxhighlighter .bold
 71 | {
 72 | 	font-weight: bold !important;
 73 | }
 74 | 
 75 | .syntaxhighlighter .italic
 76 | {
 77 | 	font-style: italic !important;
 78 | }
 79 | 
 80 | .syntaxhighlighter .line
 81 | {
 82 | }
 83 | 
 84 | .syntaxhighlighter .no-wrap .line .content
 85 | {
 86 | 	white-space: pre !important;
 87 | }
 88 | 
 89 | .syntaxhighlighter .line table
 90 | {
 91 | 	border-collapse: collapse !important;
 92 | }
 93 | 
 94 | .syntaxhighlighter .line td
 95 | {
 96 | 	vertical-align: top !important;
 97 | }
 98 | 
 99 | .syntaxhighlighter .line .number
100 | {
101 | 	width: 3em !important;
102 | }
103 | 
104 | .syntaxhighlighter .line .number code
105 | {
106 | 	width: 2.7em !important;
107 | 	padding-right: .3em !important;
108 | 	text-align: right !important;
109 | 	display: block !important;
110 | }
111 | 
112 | .syntaxhighlighter .line .content
113 | {
114 | 	padding-left: .5em !important;
115 | }
116 | 
117 | .syntaxhighlighter .line .spaces
118 | {
119 | }
120 | 
121 | /* Disable border and margin on the lines when no gutter option is set */
122 | .syntaxhighlighter.nogutter .line .content
123 | {
124 | 	border-left: none !important;
125 | }
126 | 
127 | .syntaxhighlighter .bar
128 | {
129 | 	display: none !important;
130 | }
131 | 
132 | .syntaxhighlighter .bar.show
133 | {
134 | 	display: block !important;
135 | }
136 | 
137 | .syntaxhighlighter.collapsed .bar
138 | {
139 | 	display: block !important;
140 | }
141 | 
142 | /* Adjust some properties when collapsed */
143 | 
144 | .syntaxhighlighter.collapsed .lines
145 | {
146 | 	display: none !important;
147 | }
148 | 
149 | .syntaxhighlighter .lines.no-wrap
150 | {
151 | 	overflow: auto !important;
152 | 	overflow-y: hidden !important;
153 | }
154 | 
155 | /* Styles for the toolbar */
156 | 
157 | .syntaxhighlighter .toolbar
158 | {
159 | 	position: absolute !important;
160 | 	right: 0px !important;
161 | 	top: 0px !important;
162 | 	font-size: 1px !important;
163 | 	padding: 8px 8px 8px 0 !important; /* in px because images don't scale with ems */
164 | }
165 | 
166 | .syntaxhighlighter.collapsed .toolbar
167 | {
168 | 	font-size: 80% !important;
169 | 	padding: .2em 0 .5em .5em !important;
170 | 	position: static !important;
171 | }
172 | 
173 | .syntaxhighlighter .toolbar a.item,
174 | .syntaxhighlighter .toolbar .item
175 | {
176 | 	display: block !important;
177 | 	float: left !important;
178 | 	margin-left: 8px !important;
179 | 	background-repeat: no-repeat !important;
180 | 	overflow: hidden !important;
181 | 	text-indent: -5000px !important;
182 | }
183 | 
184 | .syntaxhighlighter.collapsed .toolbar .item
185 | {
186 | 	display: none !important;
187 | }
188 | 
189 | .syntaxhighlighter.collapsed .toolbar .item.expandSource
190 | {
191 | 	background-image: url(magnifier.png) !important;
192 | 	display: inline !important;
193 | 	text-indent: 0 !important;
194 | 	width: auto !important;
195 | 	float: none !important;
196 | 	height: 16px !important;
197 | 	padding-left: 20px !important;
198 | }
199 | 
200 | .syntaxhighlighter .toolbar .item.viewSource
201 | {
202 | 	background-image: url(page_white_code.png) !important;
203 | }
204 | 
205 | .syntaxhighlighter .toolbar .item.printSource
206 | {
207 | 	background-image: url(printer.png) !important;
208 | }
209 | 
210 | .syntaxhighlighter .toolbar .item.copyToClipboard
211 | {
212 | 	text-indent: 0 !important;
213 | 	background: none !important;
214 | 	overflow: visible !important;
215 | }
216 | 
217 | .syntaxhighlighter .toolbar .item.about
218 | {
219 | 	background-image: url(help.png) !important;
220 | }
221 | 
222 | /**
223 |  * Print view.
224 |  * Colors are based on the default theme without background.
225 |  */
226 | 
227 | .syntaxhighlighter.printing,
228 | .syntaxhighlighter.printing .line.alt1 .content,
229 | .syntaxhighlighter.printing .line.alt2 .content,
230 | .syntaxhighlighter.printing .line.highlighted .number,
231 | .syntaxhighlighter.printing .line.highlighted.alt1 .content,
232 | .syntaxhighlighter.printing .line.highlighted.alt2 .content
233 | {
234 | 	background: none !important;
235 | }
236 | 
237 | /* Gutter line numbers */
238 | .syntaxhighlighter.printing .line .number
239 | {
240 | 	color: #bbb !important;
241 | }
242 | 
243 | /* Add border to the lines */
244 | .syntaxhighlighter.printing .line .content
245 | {
246 | 	color: #000 !important;
247 | }
248 | 
249 | /* Toolbar when visible */
250 | .syntaxhighlighter.printing .toolbar
251 | {
252 | 	display: none !important;
253 | }
254 | 
255 | .syntaxhighlighter.printing a
256 | {
257 | 	text-decoration: none !important;
258 | }
259 | 
260 | .syntaxhighlighter.printing .plain,
261 | .syntaxhighlighter.printing .plain a
262 | {
263 | 	color: #000 !important;
264 | }
265 | 
266 | .syntaxhighlighter.printing .comments,
267 | .syntaxhighlighter.printing .comments a
268 | {
269 | 	color: #008200 !important;
270 | }
271 | 
272 | .syntaxhighlighter.printing .string,
273 | .syntaxhighlighter.printing .string a
274 | {
275 | 	color: blue !important;
276 | }
277 | 
278 | .syntaxhighlighter.printing .keyword
279 | {
280 | 	color: #069 !important;
281 | 	font-weight: bold !important;
282 | }
283 | 
284 | .syntaxhighlighter.printing .preprocessor
285 | {
286 | 	color: gray !important;
287 | }
288 | 
289 | .syntaxhighlighter.printing .variable
290 | {
291 | 	color: #a70 !important;
292 | }
293 | 
294 | .syntaxhighlighter.printing .value
295 | {
296 | 	color: #090 !important;
297 | }
298 | 
299 | .syntaxhighlighter.printing .functions
300 | {
301 | 	color: #ff1493 !important;
302 | }
303 | 
304 | .syntaxhighlighter.printing .constants
305 | {
306 | 	color: #0066CC !important;
307 | }
308 | 
309 | .syntaxhighlighter.printing .script
310 | {
311 | 	font-weight: bold !important;
312 | }
313 | 
314 | .syntaxhighlighter.printing .color1,
315 | .syntaxhighlighter.printing .color1 a
316 | {
317 | 	color: #808080 !important;
318 | }
319 | 
320 | .syntaxhighlighter.printing .color2,
321 | .syntaxhighlighter.printing .color2 a
322 | {
323 | 	color: #ff1493 !important;
324 | }
325 | 
326 | .syntaxhighlighter.printing .color3,
327 | .syntaxhighlighter.printing .color3 a
328 | {
329 | 	color: red !important;
330 | }
331 | 


--------------------------------------------------------------------------------
/support/syntaxhighlighter/scripts/shBrushColdFusion.js:
--------------------------------------------------------------------------------
  1 | /**
  2 |  * SyntaxHighlighter
  3 |  * http://alexgorbatchev.com/
  4 |  *
  5 |  * SyntaxHighlighter is donationware. If you are using it, please donate.
  6 |  * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
  7 |  *
  8 |  * @version
  9 |  * 2.1.382 (June 24 2010)
 10 |  * 
 11 |  * @copyright
 12 |  * Copyright (C) 2004-2009 Alex Gorbatchev.
 13 |  *
 14 |  * @license
 15 |  * This file is part of SyntaxHighlighter.
 16 |  * 
 17 |  * SyntaxHighlighter is free software: you can redistribute it and/or modify
 18 |  * it under the terms of the GNU Lesser General Public License as published by
 19 |  * the Free Software Foundation, either version 3 of the License, or
 20 |  * (at your option) any later version.
 21 |  * 
 22 |  * SyntaxHighlighter is distributed in the hope that it will be useful,
 23 |  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 24 |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 25 |  * GNU General Public License for more details.
 26 |  * 
 27 |  * You should have received a copy of the GNU General Public License
 28 |  * along with SyntaxHighlighter.  If not, see .
 29 |  */
 30 | SyntaxHighlighter.brushes.ColdFusion = function()
 31 | {
 32 | 	// Contributed by Jen
 33 | 	// http://www.jensbits.com/2009/05/14/coldfusion-brush-for-syntaxhighlighter-plus
 34 | 	
 35 | 	var funcs	=	'Abs ACos AddSOAPRequestHeader AddSOAPResponseHeader AjaxLink AjaxOnLoad ArrayAppend ArrayAvg ArrayClear ArrayDeleteAt ' + 
 36 | 					'ArrayInsertAt ArrayIsDefined ArrayIsEmpty ArrayLen ArrayMax ArrayMin ArraySet ArraySort ArraySum ArraySwap ArrayToList ' + 
 37 | 					'Asc ASin Atn BinaryDecode BinaryEncode BitAnd BitMaskClear BitMaskRead BitMaskSet BitNot BitOr BitSHLN BitSHRN BitXor ' + 
 38 | 					'Ceiling CharsetDecode CharsetEncode Chr CJustify Compare CompareNoCase Cos CreateDate CreateDateTime CreateObject ' + 
 39 | 					'CreateODBCDate CreateODBCDateTime CreateODBCTime CreateTime CreateTimeSpan CreateUUID DateAdd DateCompare DateConvert ' + 
 40 | 					'DateDiff DateFormat DatePart Day DayOfWeek DayOfWeekAsString DayOfYear DaysInMonth DaysInYear DE DecimalFormat DecrementValue ' + 
 41 | 					'Decrypt DecryptBinary DeleteClientVariable DeserializeJSON DirectoryExists DollarFormat DotNetToCFType Duplicate Encrypt ' + 
 42 | 					'EncryptBinary Evaluate Exp ExpandPath FileClose FileCopy FileDelete FileExists FileIsEOF FileMove FileOpen FileRead ' + 
 43 | 					'FileReadBinary FileReadLine FileSetAccessMode FileSetAttribute FileSetLastModified FileWrite Find FindNoCase FindOneOf ' + 
 44 | 					'FirstDayOfMonth Fix FormatBaseN GenerateSecretKey GetAuthUser GetBaseTagData GetBaseTagList GetBaseTemplatePath ' + 
 45 | 					'GetClientVariablesList GetComponentMetaData GetContextRoot GetCurrentTemplatePath GetDirectoryFromPath GetEncoding ' + 
 46 | 					'GetException GetFileFromPath GetFileInfo GetFunctionList GetGatewayHelper GetHttpRequestData GetHttpTimeString ' + 
 47 | 					'GetK2ServerDocCount GetK2ServerDocCountLimit GetLocale GetLocaleDisplayName GetLocalHostIP GetMetaData GetMetricData ' + 
 48 | 					'GetPageContext GetPrinterInfo GetProfileSections GetProfileString GetReadableImageFormats GetSOAPRequest GetSOAPRequestHeader ' + 
 49 | 					'GetSOAPResponse GetSOAPResponseHeader GetTempDirectory GetTempFile GetTemplatePath GetTickCount GetTimeZoneInfo GetToken ' + 
 50 | 					'GetUserRoles GetWriteableImageFormats Hash Hour HTMLCodeFormat HTMLEditFormat IIf ImageAddBorder ImageBlur ImageClearRect ' + 
 51 | 					'ImageCopy ImageCrop ImageDrawArc ImageDrawBeveledRect ImageDrawCubicCurve ImageDrawLine ImageDrawLines ImageDrawOval ' + 
 52 | 					'ImageDrawPoint ImageDrawQuadraticCurve ImageDrawRect ImageDrawRoundRect ImageDrawText ImageFlip ImageGetBlob ImageGetBufferedImage ' + 
 53 | 					'ImageGetEXIFTag ImageGetHeight ImageGetIPTCTag ImageGetWidth ImageGrayscale ImageInfo ImageNegative ImageNew ImageOverlay ImagePaste ' + 
 54 | 					'ImageRead ImageReadBase64 ImageResize ImageRotate ImageRotateDrawingAxis ImageScaleToFit ImageSetAntialiasing ImageSetBackgroundColor ' + 
 55 | 					'ImageSetDrawingColor ImageSetDrawingStroke ImageSetDrawingTransparency ImageSharpen ImageShear ImageShearDrawingAxis ImageTranslate ' + 
 56 | 					'ImageTranslateDrawingAxis ImageWrite ImageWriteBase64 ImageXORDrawingMode IncrementValue InputBaseN Insert Int IsArray IsBinary ' + 
 57 | 					'IsBoolean IsCustomFunction IsDate IsDDX IsDebugMode IsDefined IsImage IsImageFile IsInstanceOf IsJSON IsLeapYear IsLocalHost ' + 
 58 | 					'IsNumeric IsNumericDate IsObject IsPDFFile IsPDFObject IsQuery IsSimpleValue IsSOAPRequest IsStruct IsUserInAnyRole IsUserInRole ' + 
 59 | 					'IsUserLoggedIn IsValid IsWDDX IsXML IsXmlAttribute IsXmlDoc IsXmlElem IsXmlNode IsXmlRoot JavaCast JSStringFormat LCase Left Len ' + 
 60 | 					'ListAppend ListChangeDelims ListContains ListContainsNoCase ListDeleteAt ListFind ListFindNoCase ListFirst ListGetAt ListInsertAt ' + 
 61 | 					'ListLast ListLen ListPrepend ListQualify ListRest ListSetAt ListSort ListToArray ListValueCount ListValueCountNoCase LJustify Log ' + 
 62 | 					'Log10 LSCurrencyFormat LSDateFormat LSEuroCurrencyFormat LSIsCurrency LSIsDate LSIsNumeric LSNumberFormat LSParseCurrency LSParseDateTime ' + 
 63 | 					'LSParseEuroCurrency LSParseNumber LSTimeFormat LTrim Max Mid Min Minute Month MonthAsString Now NumberFormat ParagraphFormat ParseDateTime ' + 
 64 | 					'Pi PrecisionEvaluate PreserveSingleQuotes Quarter QueryAddColumn QueryAddRow QueryConvertForGrid QueryNew QuerySetCell QuotedValueList Rand ' + 
 65 | 					'Randomize RandRange REFind REFindNoCase ReleaseComObject REMatch REMatchNoCase RemoveChars RepeatString Replace ReplaceList ReplaceNoCase ' + 
 66 | 					'REReplace REReplaceNoCase Reverse Right RJustify Round RTrim Second SendGatewayMessage SerializeJSON SetEncoding SetLocale SetProfileString ' + 
 67 | 					'SetVariable Sgn Sin Sleep SpanExcluding SpanIncluding Sqr StripCR StructAppend StructClear StructCopy StructCount StructDelete StructFind ' + 
 68 | 					'StructFindKey StructFindValue StructGet StructInsert StructIsEmpty StructKeyArray StructKeyExists StructKeyList StructKeyList StructNew ' + 
 69 | 					'StructSort StructUpdate Tan TimeFormat ToBase64 ToBinary ToScript ToString Trim UCase URLDecode URLEncodedFormat URLSessionFormat Val ' + 
 70 | 					'ValueList VerifyClient Week Wrap Wrap WriteOutput XmlChildPos XmlElemNew XmlFormat XmlGetNodeType XmlNew XmlParse XmlSearch XmlTransform ' + 
 71 | 					'XmlValidate Year YesNoFormat';
 72 | 
 73 | 	var keywords =	'cfabort cfajaximport cfajaxproxy cfapplet cfapplication cfargument cfassociate cfbreak cfcache cfcalendar ' + 
 74 | 					'cfcase cfcatch cfchart cfchartdata cfchartseries cfcol cfcollection cfcomponent cfcontent cfcookie cfdbinfo ' + 
 75 | 					'cfdefaultcase cfdirectory cfdiv cfdocument cfdocumentitem cfdocumentsection cfdump cfelse cfelseif cferror ' + 
 76 | 					'cfexchangecalendar cfexchangeconnection cfexchangecontact cfexchangefilter cfexchangemail cfexchangetask ' + 
 77 | 					'cfexecute cfexit cffeed cffile cfflush cfform cfformgroup cfformitem cfftp cffunction cfgrid cfgridcolumn ' + 
 78 | 					'cfgridrow cfgridupdate cfheader cfhtmlhead cfhttp cfhttpparam cfif cfimage cfimport cfinclude cfindex ' + 
 79 | 					'cfinput cfinsert cfinterface cfinvoke cfinvokeargument cflayout cflayoutarea cfldap cflocation cflock cflog ' + 
 80 | 					'cflogin cfloginuser cflogout cfloop cfmail cfmailparam cfmailpart cfmenu cfmenuitem cfmodule cfNTauthenticate ' + 
 81 | 					'cfobject cfobjectcache cfoutput cfparam cfpdf cfpdfform cfpdfformparam cfpdfparam cfpdfsubform cfpod cfpop ' + 
 82 | 					'cfpresentation cfpresentationslide cfpresenter cfprint cfprocessingdirective cfprocparam cfprocresult ' + 
 83 | 					'cfproperty cfquery cfqueryparam cfregistry cfreport cfreportparam cfrethrow cfreturn cfsavecontent cfschedule ' + 
 84 | 					'cfscript cfsearch cfselect cfset cfsetting cfsilent cfslider cfsprydataset cfstoredproc cfswitch cftable ' + 
 85 | 					'cftextarea cfthread cfthrow cftimer cftooltip cftrace cftransaction cftree cftreeitem cftry cfupdate cfwddx ' + 
 86 | 					'cfwindow cfxml cfzip cfzipparam';
 87 | 
 88 | 	var operators =	'all and any between cross in join like not null or outer some';
 89 | 
 90 | 	this.regexList = [
 91 | 		{ regex: new RegExp('--(.*)$', 'gm'),						css: 'comments' },  // one line and multiline comments
 92 | 		{ regex: SyntaxHighlighter.regexLib.xmlComments,			css: 'comments' },    // single quoted strings
 93 | 		{ regex: SyntaxHighlighter.regexLib.doubleQuotedString,		css: 'string' },    // double quoted strings
 94 | 		{ regex: SyntaxHighlighter.regexLib.singleQuotedString,		css: 'string' },    // single quoted strings
 95 | 		{ regex: new RegExp(this.getKeywords(funcs), 'gmi'),		css: 'functions' }, // functions
 96 | 		{ regex: new RegExp(this.getKeywords(operators), 'gmi'),	css: 'color1' },    // operators and such
 97 | 		{ regex: new RegExp(this.getKeywords(keywords), 'gmi'),		css: 'keyword' }    // keyword
 98 | 		];
 99 | }
100 | 
101 | SyntaxHighlighter.brushes.ColdFusion.prototype	= new SyntaxHighlighter.Highlighter();
102 | SyntaxHighlighter.brushes.ColdFusion.aliases	= ['coldfusion','cf'];


--------------------------------------------------------------------------------
/widgets/bb_content/shortcodes/bb_syntaxhighlight.php:
--------------------------------------------------------------------------------
  1 |  "Syntax Highlighter",
  9 | 		"toolbaricon" => $g_fullurl . "/bb_syntaxhighlight_small.png",
 10 | 		"mainicon" => $g_fullurl . "/bb_syntaxhighlight_large.png",
 11 | 		"cache" => true,
 12 | 		"security" => array(
 13 | 			"" => array("Syntax Highlighter", "Defines who can add and edit syntax highlighted code."),
 14 | 			"preview" => array("Preview Highlighted Code", "Defines who can preview syntax highlighted code.")
 15 | 		)
 16 | 	);
 17 | 
 18 | 	class bb_content_shortcode_bb_syntaxhighlight extends BB_ContentShortcodeBase
 19 | 	{
 20 | 		private function GetInfo($sid)
 21 | 		{
 22 | 			global $bb_widget;
 23 | 
 24 | 			$info = $bb_widget->shortcodes[$sid];
 25 | 			if (!isset($info["code"]))  $info["code"] = "";
 26 | 			if (!isset($info["type"]) || !file_exists(ROOT_PATH . "/" . SUPPORT_PATH . "/syntaxhighlighter/scripts/shBrush" . $info["type"] . ".js"))  $info["type"] = "Plain";
 27 | 			if (!isset($info["opt-auto-links"]))  $info["opt-auto-links"] = true;
 28 | 			if (!isset($info["opt-collapse"]))  $info["opt-collapse"] = false;
 29 | 			if (!isset($info["opt-first-line"]))  $info["opt-first-line"] = 1;
 30 | 			if (!isset($info["opt-gutter"]))  $info["opt-gutter"] = true;
 31 | 			if (!isset($info["opt-highlight-prefix"]))  $info["opt-highlight-prefix"] = "";
 32 | 			if (!isset($info["opt-html-script"]))  $info["opt-html-script"] = false;
 33 | 			if (!isset($info["opt-smart-tabs"]))  $info["opt-smart-tabs"] = true;
 34 | 			if (!isset($info["opt-tab-size"]))  $info["opt-tab-size"] = 4;
 35 | 			if (!isset($info["opt-toolbar"]))  $info["opt-toolbar"] = true;
 36 | 			if (!isset($info["opt-wrap-lines"]))  $info["opt-wrap-lines"] = true;
 37 | 
 38 | 			return $info;
 39 | 		}
 40 | 
 41 | 		private function GetAliases($filename)
 42 | 		{
 43 | 			$result = array();
 44 | 			$data = file_get_contents($filename);
 45 | 			if (preg_match('/SyntaxHighlighter\.brushes\..*?\.aliases\s*=\s*(\[.*?\]);/', $data, $matches))
 46 | 			{
 47 | 				$result = json_decode(str_replace("'", "\"", $matches[1]));
 48 | 			}
 49 | 
 50 | 			return $result;
 51 | 		}
 52 | 
 53 | 		public function GenerateShortcode($parent, $sid, $depth)
 54 | 		{
 55 | 			global $bb_widget;
 56 | 
 57 | 			$info = $this->GetInfo($sid);
 58 | 			if ($info["code"] == "")  return "";
 59 | 
 60 | 			$info["code"] = Str::ReplaceNewlines("\n", $info["code"]);
 61 | 
 62 | 			if ($parent !== false && !$parent->IsShortcodeAllowed("bb_syntaxhighlight", "preview"))
 63 | 			{
 64 | 				if ($info["opt-highlight-prefix"] != "")  $info["code"] = str_replace("\n" . $info["opt-highlight-prefix"], "\n", $info["code"]);
 65 | 
 66 | 				return "
" . htmlspecialchars($info["code"]) . "
"; 67 | } 68 | 69 | $filename = ROOT_PATH . "/" . SUPPORT_PATH . "/syntaxhighlighter/scripts/shBrush" . $info["type"] . ".js"; 70 | 71 | $css = $bb_widget->css; 72 | $css[ROOT_URL . "/" . SUPPORT_PATH . "/syntaxhighlighter/styles/shCore.css"] = ROOT_PATH . "/" . SUPPORT_PATH . "/syntaxhighlighter/styles/shCore.css"; 73 | $css[ROOT_URL . "/" . SUPPORT_PATH . "/syntaxhighlighter/styles/shThemeBarebones.css"] = ROOT_PATH . "/" . SUPPORT_PATH . "/syntaxhighlighter/styles/shThemeBarebones.css"; 74 | $bb_widget->css = $css; 75 | 76 | $bb_widget->use_premainjs = true; 77 | 78 | $js = $bb_widget->js; 79 | $js[ROOT_URL . "/" . SUPPORT_PATH . "/syntaxhighlighter/scripts/shCore.js"] = ROOT_PATH . "/" . SUPPORT_PATH . "/syntaxhighlighter/scripts/shCore.js"; 80 | $js[ROOT_URL . "/" . SUPPORT_PATH . "/syntaxhighlighter/scripts/shBrush" . $info["type"] . ".js"] = $filename; 81 | if ($info["opt-html-script"]) $js[ROOT_URL . "/" . SUPPORT_PATH . "/syntaxhighlighter/scripts/shBrushHTML.js"] = ROOT_PATH . "/" . SUPPORT_PATH . "/syntaxhighlighter/scripts/shBrushHTML.js"; 82 | $js[ROOT_URL . "/" . SUPPORT_PATH . "/syntaxhighlighter/barebones.js"] = ROOT_PATH . "/" . SUPPORT_PATH . "/syntaxhighlighter/barebones.js"; 83 | $bb_widget->js = $js; 84 | 85 | $opts = array(); 86 | $aliases = $this->GetAliases($filename); 87 | if (count($aliases)) $opts[] = "brush: " . $aliases[0] . ";"; 88 | if (!$info["opt-auto-links"]) $opts[] = "auto-links: false;"; 89 | if ($info["opt-collapse"]) $opts[] = "collapse: true;"; 90 | if ($info["opt-first-line"] != 1) $opts[] = "first-line: " . (int)$info["opt-first-line"] . ";"; 91 | if (!$info["opt-gutter"]) $opts[] = "gutter: false;"; 92 | if ($info["opt-html-script"]) $opts[] = "html-script: true;"; 93 | if (!$info["opt-smart-tabs"]) $opts[] = "smart-tabs: false;"; 94 | if ($info["opt-tab-size"] != 4) $opts[] = "tab-size: " . (int)$info["opt-tab-size"] . ";"; 95 | if (!$info["opt-toolbar"]) $opts[] = "toolbar: false;"; 96 | if (!$info["opt-wrap-lines"]) $opts[] = "wrap-lines: false;"; 97 | if ($info["opt-highlight-prefix"] != "") 98 | { 99 | $highlight = array(); 100 | $lines = explode("\n", $info["code"]); 101 | foreach ($lines as $num => $line) 102 | { 103 | if (substr($line, 0, strlen($info["opt-highlight-prefix"])) == $info["opt-highlight-prefix"]) 104 | { 105 | $highlight[] = $num + (int)$info["opt-first-line"]; 106 | $lines[$num] = substr($line, strlen($info["opt-highlight-prefix"])); 107 | } 108 | } 109 | if (count($highlight)) 110 | { 111 | $info["code"] = implode("\n", $lines); 112 | $opts[] = "highlight: [" . implode(",", $highlight) . "];"; 113 | } 114 | } 115 | 116 | return "
\n" . htmlspecialchars($info["code"]) . "\n
"; 117 | } 118 | 119 | public function ProcessShortcodeBBAction($parent) 120 | { 121 | global $bb_widget, $bb_widget_id, $bb_def_extmap; 122 | 123 | $info = $this->GetInfo($parent->GetSID()); 124 | 125 | if ($_REQUEST["sc_action"] == "bb_syntaxhighlight_upload_ajaxupload") 126 | { 127 | BB_RunPluginAction("pre_bb_content_shortcode_bb_syntaxhighlight_upload_ajaxupload"); 128 | 129 | $msg = BB_ValidateAJAXUpload(); 130 | if ($msg != "") 131 | { 132 | echo htmlspecialchars(BB_Translate($msg)); 133 | exit(); 134 | } 135 | 136 | $info["code"] = file_get_contents($_FILES["Filedata"]["tmp_name"]); 137 | if (!$parent->SaveShortcode($info)) 138 | { 139 | echo htmlspecialchars(BB_Translate("Unable to save the shortcode.")); 140 | exit(); 141 | } 142 | 143 | echo "OK"; 144 | 145 | BB_RunPluginAction("post_bb_content_shortcode_bb_syntaxhighlight_upload_ajaxupload"); 146 | } 147 | else if ($_REQUEST["sc_action"] == "bb_syntaxhighlight_upload_submit") 148 | { 149 | BB_RunPluginAction("pre_bb_content_shortcode_bb_syntaxhighlight_upload_submit"); 150 | 151 | $fileinfo = BB_IsValidURL($_REQUEST["url"], array("protocol" => "http")); 152 | if (!$fileinfo["success"]) BB_PropertyFormError($fileinfo["error"]); 153 | 154 | $info["code"] = $fileinfo["data"]; 155 | if (!$parent->SaveShortcode($info)) BB_PropertyFormError("Unable to save the shortcode."); 156 | 157 | ?> 158 |
159 | 163 | CreateShortcodeUploader("", array(), "Configure Syntax Highlighter", "Code", "code", "*.*", "All Files"); 170 | } 171 | else if ($_REQUEST["sc_action"] == "bb_syntaxhighlight_edit_load") 172 | { 173 | BB_RunPluginAction("pre_bb_content_shortcode_bb_syntaxhighlight_edit_load"); 174 | 175 | echo rawurlencode($info["code"]); 176 | 177 | BB_RunPluginAction("post_bb_content_shortcode_bb_syntaxhighlight_edit_load"); 178 | } 179 | else if ($_REQUEST["sc_action"] == "bb_syntaxhighlight_edit_save") 180 | { 181 | BB_RunPluginAction("pre_bb_content_shortcode_bb_syntaxhighlight_edit_save"); 182 | 183 | $info["code"] = $_REQUEST["content"]; 184 | if (!$parent->SaveShortcode($info)) echo htmlspecialchars(BB_Translate("Unable to save content. Try again.")); 185 | else 186 | { 187 | echo "OK\n"; 188 | echo ""; 189 | } 190 | 191 | BB_RunPluginAction("post_bb_content_shortcode_bb_syntaxhighlight_edit_save"); 192 | } 193 | else if ($_REQUEST["sc_action"] == "bb_syntaxhighlight_edit") 194 | { 195 | BB_RunPluginAction("pre_bb_content_shortcode_bb_syntaxhighlight_edit"); 196 | 197 | // Attempt to map the Syntax Highlighter selection with an Edit Area syntax highlighter selector. 198 | $filename = ROOT_PATH . "/" . SUPPORT_PATH . "/syntaxhighlighter/scripts/shBrush" . $info["type"] . ".js"; 199 | $aliases = $this->GetAliases($filename); 200 | $syntax = "html"; 201 | foreach ($aliases as $alias) 202 | { 203 | if (isset($bb_def_extmap["." . $alias]) && $bb_def_extmap["." . $alias]["edit"] == "ea") 204 | { 205 | $syntax = $bb_def_extmap["." . $alias]["syntax"]; 206 | break; 207 | } 208 | } 209 | 210 | ?> 211 | 242 | SaveShortcode($info)) BB_PropertyFormError("Unable to save the shortcode."); 276 | 277 | ?> 278 |
279 | 283 | "; 292 | $desc .= $parent->CreateShortcodePropertiesLink(BB_Translate("Upload/Transfer Code"), "bb_syntaxhighlight_upload"); 293 | $desc .= " | " . $parent->CreateShortcodePropertiesLink(BB_Translate("Edit"), "bb_syntaxhighlight_edit"); 294 | 295 | $types = array(); 296 | $dirlist = BB_GetDirectoryList(ROOT_PATH . "/" . SUPPORT_PATH . "/syntaxhighlighter/scripts"); 297 | foreach ($dirlist["files"] as $name) 298 | { 299 | $pos = strrpos($name, "."); 300 | if ($pos !== false && substr($name, $pos) == ".js" && substr($name, 0, 7) == "shBrush") 301 | { 302 | $type = substr($name, 7, $pos - 7); 303 | $aliases = $this->GetAliases(ROOT_PATH . "/" . SUPPORT_PATH . "/syntaxhighlighter/scripts/" . $name); 304 | $types[$type] = $type . " (" . implode(", ", $aliases) . ")"; 305 | } 306 | } 307 | 308 | $options = array( 309 | "title" => "Configure Syntax Highlighter", 310 | "desc" => "Configure the syntax highlighter display options or upload/transfer/edit code.", 311 | "htmldesc" => $desc, 312 | "bb_action" => $_REQUEST["bb_action"], 313 | "hidden" => array( 314 | "sid" => $parent->GetSID(), 315 | "sc_action" => "bb_syntaxhighlight_configure_submit" 316 | ), 317 | "fields" => array( 318 | array( 319 | "title" => "Type", 320 | "type" => "select", 321 | "name" => "type", 322 | "options" => $types, 323 | "select" => $info["type"], 324 | "desc" => "The syntax highlighter (brush) to use for the code." 325 | ), 326 | array( 327 | "title" => "Detect Links", 328 | "type" => "select", 329 | "name" => "opt-auto-links", 330 | "options" => array( 331 | "enable" => "Enable", 332 | "disable" => "Disable" 333 | ), 334 | "select" => ($info["opt-auto-links"] ? "enable" : "disable"), 335 | "desc" => "Automatically detect hyperlinks to let users click them." 336 | ), 337 | array( 338 | "title" => "Initially Collapsed", 339 | "type" => "select", 340 | "name" => "opt-collapse", 341 | "options" => array( 342 | "enable" => "Enable", 343 | "disable" => "Disable" 344 | ), 345 | "select" => ($info["opt-collapse"] ? "enable" : "disable"), 346 | "desc" => "Collapsed code is initially hidden until users click on an expansion link." 347 | ), 348 | array( 349 | "title" => "Gutter", 350 | "type" => "select", 351 | "name" => "opt-gutter", 352 | "options" => array( 353 | "enable" => "Enable", 354 | "disable" => "Disable" 355 | ), 356 | "select" => ($info["opt-gutter"] ? "enable" : "disable"), 357 | "desc" => "The gutter shows a vertical line and line numbers." 358 | ), 359 | array( 360 | "title" => "First Line Number", 361 | "type" => "text", 362 | "name" => "opt-first-line", 363 | "value" => $info["opt-first-line"], 364 | "desc" => "The first line number to display in the gutter." 365 | ), 366 | array( 367 | "title" => "Highlight Prefix", 368 | "type" => "text", 369 | "name" => "opt-highlight-prefix", 370 | "value" => $info["opt-highlight-prefix"], 371 | "desc" => "Highlight specific lines with a different background color by using a unique line prefix." 372 | ), 373 | array( 374 | "title" => "HTML Script", 375 | "type" => "select", 376 | "name" => "opt-html-script", 377 | "options" => array( 378 | "enable" => "Enable", 379 | "disable" => "Disable" 380 | ), 381 | "select" => ($info["opt-html-script"] ? "enable" : "disable"), 382 | "desc" => "The code is a mixture of HTML and some other language (e.g. PHP)." 383 | ), 384 | array( 385 | "title" => "Smart Tabs", 386 | "type" => "select", 387 | "name" => "opt-smart-tabs", 388 | "options" => array( 389 | "enable" => "Enable", 390 | "disable" => "Disable" 391 | ), 392 | "select" => ($info["opt-smart-tabs"] ? "enable" : "disable"), 393 | "desc" => "Smart tabs attempts to keep code aligned when converting tabs to spaces." 394 | ), 395 | array( 396 | "title" => "Tab Size", 397 | "type" => "text", 398 | "name" => "opt-tab-size", 399 | "value" => $info["opt-tab-size"], 400 | "desc" => "Specifies how many spaces to convert each tab to." 401 | ), 402 | array( 403 | "title" => "Toolbar", 404 | "type" => "select", 405 | "name" => "opt-toolbar", 406 | "options" => array( 407 | "enable" => "Enable", 408 | "disable" => "Disable" 409 | ), 410 | "select" => ($info["opt-toolbar"] ? "enable" : "disable"), 411 | "desc" => "A toolbar displays when hovering the mouse over the code." 412 | ), 413 | array( 414 | "title" => "Wrap Lines", 415 | "type" => "select", 416 | "name" => "opt-wrap-lines", 417 | "options" => array( 418 | "enable" => "Enable", 419 | "disable" => "Disable" 420 | ), 421 | "select" => ($info["opt-wrap-lines"] ? "enable" : "disable"), 422 | "desc" => "Automatically wrap the lines so the code is entirely visible on the page." 423 | ) 424 | ), 425 | "submit" => "Save", 426 | "focus" => true 427 | ); 428 | 429 | BB_RunPluginActionInfo("bb_content_shortcode_bb_syntaxhighlight_configure_options", $options); 430 | 431 | BB_PropertyForm($options); 432 | 433 | BB_RunPluginAction("post_bb_content_shortcode_bb_syntaxhighlight_configure"); 434 | } 435 | } 436 | } 437 | ?> -------------------------------------------------------------------------------- /support/syntaxhighlighter/scripts/shCore.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.1.382 (June 24 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | */ 30 | eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('c(!1k.2G){h 2G=l(){h p={6b:{"1o-U":"","84-2d":1,"83-2d-82":I,"1M":v,"8z-8H":I,"1H-2L":4,"3j":I,"1y":I,"67":N,"8B-8o":I,"7X":N,"5h-1n":I,"1F-1m":N},M:{4Q:I,6f:v,5o:16,5k:16,8s:N,8G:N,89:"58",1g:{5p:"54 1j",5b:"9O 1j",5j:"9P 6k 6q",76:"9N C 9M 26 9J 6q 9K",3o:"3o",6F:"?",1x:"2G\\n\\n",6M:"9L\'t 9Q 2V D: ",86:"9R 9W\'t 9X D 1F-1m 9V: ",78:"<1F 9r=\\"2o://5x.6J.6u/9y/9z\\"><6y><9F 2o-9G=\\"9E-9D\\" 60=\\"1X/1F; 9A=9B-8\\" /><39>9C 2G<2Z 1t=\\"3H-9Z:an,ao,am,al-ai;aj-43:#ak;43:#ap;3H-2L:aq;1X-6z:6A;\\">2G6O 2.1.a5 (a6 24 a4)2o://6G.3xa1 a2 a7 f 1m, a8 8P 6k 8N 8R 8S!8W C 8V 8U.8X 8J-8K 8O 9h."},8C:N},1q:{4U:v,9g:v,3D:v,6g:{}},2n:{},8l:{9f:/\\/\\*[\\s\\S]*?\\*\\//3v,9d:/\\/\\/.*$/3v,9e:/#.*$/3v,9j:/"([^\\\\"\\n]|\\\\.)*"/g,9o:/\'([^\\\\\'\\n]|\\\\.)*\'/g,8Y:/"([^\\\\"]|\\\\.)*"/g,9m:/\'([^\\\\\']|\\\\.)*\'/g,9k:/(&X;|<)!--[\\s\\S]*?--(&Y;|>)/3v,3Q:/&X;\\w+:\\/\\/[\\w-.\\/?%&=@:;]*&Y;|\\w+:\\/\\/[\\w-.\\/?%&=@:;]*/g,9c:{F:/(&X;|<)\\?=?/g,19:/\\?(&Y;|>)/g},92:{F:/(&X;|<)%=?/g,19:/%(&Y;|>)/g},91:{F:/(&X;|<)\\s*1m.*?(&Y;|>)/4v,19:/(&X;|<)\\/\\s*1m\\s*(&Y;|>)/4v}},1y:{18:l(3f){h 3C=Q.1N("3c"),5s=p.1y.7d;3C.L="1y";D(h 35 26 5s){h 6h=5s[35],5r=W 6h(3f),1U=5r.18();3f.6a[35]=5r;c(1U==v){1J}c(7I(1U)=="90"){1U=p.1y.6l(1U,3f.1h,35)}1U.L+="5v "+35;3C.2u(1U)}q 3C},6l:l(5K,6m,5D){h a=Q.1N("a"),5M=a.1t,5u=p.M,5L=5u.5o,5N=5u.5k;a.1Q="#"+5D;a.39=5K;a.5g=6m;a.75=5D;a.27=5K;c(38(5L)==N){5M.1W=5L+"73"}c(38(5N)==N){5M.2s=5N+"73"}a.96=l(e){9n{p.1y.7a(f,e||1k.6V,f.5g,f.75)}97(e){p.A.1x(e.77)}q N};q a},7a:l(7f,7e,7b,7h,7c){h 5G=p.1q.6g[7b],5H;c(5G==v||(5H=5G.6a[7h])==v){q v}q 5H.2B(7f,7e,7c)},7d:{5p:l(59){f.18=l(){c(59.T("67")!=I){q}q p.M.1g.5p};f.2B=l(5a,8T,8M){h B=59.B;5a.8v.4u(5a);B.L=B.L.E("5O","")}},5b:l(71){f.18=l(){q p.M.1g.5b};f.2B=l(aV,bV,bW){h 3Y=p.A.3E(71.5f).E(/"+3Y+"");2t.Q.4c()}},5j:l(65){h 3k,bY,5i=65.1h;f.18=l(){h 2Q=p.M;c(2Q.6f==v){q v}l 1I(52){h 5e="";D(h 56 26 52){5e+=""}q 5e};l 2q(5l){h 5n="";D(h 5m 26 5l){5n+=" "+5m+"=\'"+5l[5m]+"\'"}q 5n};h 68={1W:2Q.5o,2s:2Q.5k,1h:5i+"c0",4j:"bQ/x-6Z-6U",39:p.M.1g.5j},5V={bP:"ay",bG:"bH",bF:"5g="+5i,bD:"N"},5W=2Q.6f,3O;c(/bI/i.1R(7j.6B)){3O="<4d"+2q({bJ:"bO:bN-bM-bK-bL-c4",cl:"2o://cj.c7.3x/ce/6Z/ck/6U/c9.ci#6O=9,0,0,0"})+2q(68)+">"+1I(5V)+1I({c8:5W})+""}G{3O=""}3k=Q.1N("B");3k.27=3O;q 3k};f.2B=l(co,cn,63){h 72=63.bA;6S(72){2O"7l":h 64=p.A.2I(p.A.3E(65.5f).E(/&X;/g,"<").E(/&Y;/g,">").E(/&aT;/g,"&"));c(1k.74){1k.74.aU("1X",64)}G{q p.A.2I(64)}2O"aS":p.A.1x(p.M.1g.76);2y;2O"aP":p.A.1x(63.77);2y}}},bB:l(61){f.18=l(){q p.M.1g.3o};f.2B=l(aW,b1,b2){h 29=Q.1N("b0"),1G=v;c(p.1q.3D!=v){Q.2Z.4u(p.1q.3D)}p.1q.3D=29;29.1t.aX="aY:aO;1W:6w;2s:6w;F:-6o;4G:-6o;";Q.2Z.2u(29);1G=29.5Z.Q;6D(1G,1k.Q);1G.3I(""+61.B.27+"");1G.4c();29.5Z.4Y();29.5Z.3o();l 6D(6I,6C){h 2E=6C.4D("4e");D(h i=0;i<2E.u;i++){c(2E[i].6i.70()=="6P"&&/aC\\.1a$/.1R(2E[i].1Q)){6I.3I("<4e 4j=\\"1X/1a\\" 6i=\\"6P\\" 1Q=\\""+2E[i].1Q+"\\">")}}}}},az:l(aA){f.18=l(){q p.M.1g.6F};f.2B=l(aG,aL){h 2t=p.A.4M("","44",aK,aJ,"6s=0"),1G=2t.Q;1G.3I(p.M.1g.78);1G.4c();2t.4Y()}}}},A:{Z:l(4a,6L,3U){3U=3w.aH(3U||0,0);D(h i=3U;i<4a.u;i++){c(4a[i]==6L){q i}}q-1},6d:l(7g){q 7g+3w.aI(3w.b3()*b4).2h()},6c:l(47,46){h 3m={},28;D(28 26 47){3m[28]=47[28]}D(28 26 46){3m[28]=46[28]}q 3m},7t:l(4L){6S(4L){2O"I":q I;2O"N":q N}q 4L},4M:l(3Q,6W,4H,4O,2R){h x=(6T.1W-4H)/2,y=(6T.2s-4O)/2;2R+=", F="+x+", 4G="+y+", 1W="+4H+", 2s="+4O;2R=2R.E(/^,/,"");h 4V=1k.bn(3Q,6W,2R);4V.4Y();q 4V},7y:l(1E,1Y,1Z){c(1E.6X){1E["e"+1Y+1Z]=1Z;1E[1Y+1Z]=l(){1E["e"+1Y+1Z](1k.6V)};1E.6X("bt"+1Y,1E[1Y+1Z])}G{1E.by(1Y,1Z,N)}},1x:l(z){1x(p.M.1g.1x+z)},4P:l(4h,6N){h 2w=p.1q.4U,3W=v;c(2w==v){2w={};D(h 2W 26 p.2n){h 3g=p.2n[2W].bx;c(3g==v){1J}p.2n[2W].U=2W.70();D(h i=0;i<3g.u;i++){2w[3g[i]]=2W}}p.1q.4U=2w}3W=p.2n[2w[4h]];c(3W==v&&6N!=N){p.A.1x(p.M.1g.6M+4h)}q 3W},4x:l(z,6Q){h 2C=z.1O("\\n");D(h i=0;i<2C.u;i++){2C[i]=6Q(2C[i])}q 2C.5A("\\n")},7A:l(z){q z.E(/^[ ]*[\\n]+|[\\n]*[ ]*$/g,"")},8b:l(z){h 42,4E={},4S=W V("^\\\\[(?<4T>(.*?))\\\\]$"),6R=W V("(?[\\\\w-]+)"+"\\\\s*:\\\\s*"+"(?<23>"+"[\\\\w-%#]+|"+"\\\\[.*?\\\\]|"+"\\".*?\\"|"+"\'.*?\'"+")\\\\s*;?","g");2r((42=6R.R(z))!=v){h 2f=42.23.E(/^[\'"]|[\'"]$/g,"");c(2f!=v&&4S.1R(2f)){h m=4S.R(2f);2f=m.4T.u>0?m.4T.1O(/\\s*,\\s*/):[]}4E[42.U]=2f}q 4E},7Q:l(z,1a){c(z==v||z.u==0||z=="\\n"){q z}z=z.E(/"+2j+""})}q z},81:l(79,7i){h 34=79.2h();2r(34.u<7i){34="0"+34}q 34},6p:l(){h 40=Q.1N("B"),3J,3i=0,4y=Q.2Z,1h=p.A.6d("6p"),36="",4A="";40.27=36+"6e\\">"+36+"1n\\">"+36+"2d\\">"+36+"60"+"\\"><4t 1o=\\"b7\\"><4t 1h=\\""+1h+"\\">&2m;"+4A+4A+33+33+33+33;4y.2u(40);3J=Q.b6(1h);c(/bb/i.1R(7j.6B)){h 6v=1k.bh(3J,v);3i=80(6v.bg("1W"))}G{3i=3J.bd}4y.4u(40);q 3i},8c:l(6n,6K){h 1H="";D(h i=0;i<6K;i++){1H+=" "}q 6n.E(/\\t/g,1H)},8D:l(2F,4w){h be=2F.1O("\\n"),1H="\\t",62="";D(h i=0;i<50;i++){62+=" "}l 8u(3n,17,8y){q 3n.22(0,17)+62.22(0,8y)+3n.22(17+1,3n.u)};2F=p.A.4x(2F,l(21){c(21.Z(1H)==-1){q 21}h 17=0;2r((17=21.Z(1H))!=-1){h 8r=4w-17%4w;21=8u(21,17,8r)}q 21});q 2F},3E:l(z){h br=/|&X;br\\s*\\/?&Y;/4v;c(p.M.8s==I){z=z.E(br,"\\n")}c(p.M.8G==I){z=z.E(br,"")}q z},2J:l(z){q z.E(/^\\s+|\\s+$/g,"")},2I:l(z){h 2a=p.A.3E(z).1O("\\n"),bf=W bi(),8g=/^\\s*/,20=bc;D(h i=0;i<2a.u&&20>0;i++){h 4z=2a[i];c(p.A.2J(4z).u==0){1J}h 4C=8g.R(4z);c(4C==v){q z}20=3w.20(4C[0].u,20)}c(20>0){D(h i=0;i<2a.u;i++){2a[i]=2a[i].22(20)}}q 2a.5A("\\n")},7W:l(31,30){c(31.H<30.H){q-1}G{c(31.H>30.H){q 1}G{c(31.u<30.u){q-1}G{c(31.u>30.u){q 1}}}}q 0},2S:l(8i,2Y){l 8p(4B,87){q[W p.4W(4B[0],4B.H,87.1a)]};h b5=0,4s=v,3Z=[],8h=2Y.4K?2Y.4K:8p;2r((4s=2Y.3K.R(8i))!=v){3Z=3Z.2l(8h(4s,2Y))}q 3Z},8m:l(8k){h X="&X;",Y="&Y;";q 8k.E(p.8l.3Q,l(m){h 4k="",4l="";c(m.Z(X)==0){4l=X;m=m.3M(X.u)}c(m.Z(Y)==m.u-Y.u){m=m.3M(0,m.u-Y.u);4k=Y}q 4l+""+m+""+4k})},8a:l(){h 3G=Q.4D("1m"),4i=[];D(h i=0;i<3G.u;i++){c(3G[i].4j=="6e"){4i.K(3G[i])}}q 4i},8t:l(4n){h 4m="",1u=p.A.2J(4n),3L=N;c(1u.Z(4m)==0){1u=1u.3M(4m.u);3L=I}c(1u.Z(3P)==1u.u-3P.u){1u=1u.3M(0,1u.u-3P.u);3L=I}q 3L?1u:4n}},1M:l(8e,4p){l 8f(4r){h 4q=[];D(h i=0;i<4r.u;i++){4q.K(4r[i])}q 4q};h 2k=4p?[4p]:8f(Q.4D(p.M.89)),8q="27",2v=v,4R=p.M;c(4R.4Q){2k=2k.2l(p.A.8a())}c(2k.u===0){q}D(h i=0;i<2k.u;i++){h 2T=2k[i],1T=p.A.8b(2T.L),1L,2D,1P;1T=p.A.6c(8e,1T);1L=1T["2V"];c(1L==v){1J}c(1T["1F-1m"]=="I"||p.6b["1F-1m"]==I){2v=W p.4b(1L);1L="b9"}G{h 3S=p.A.4P(1L);c(3S){1L=3S.U;2v=W 3S()}G{1J}}2D=2T[8q];c(4R.4Q){2D=p.A.8t(2D)}1T["2V-U"]=1L;2v.1M(2D,1T);1P=2v.B;c(p.M.8C){1P=Q.1N("bk");1P.23=2v.B.27;1P.1t.1W="bu";1P.1t.2s="bw"}2T.8v.bz(1P,2T)}},bs:l(7x){p.A.7y(1k,"bm",l(){p.1M(7x)})}};p.4W=l(4X,7B,1a){f.23=4X;f.H=7B;f.u=4X.u;f.1a=1a;f.5S=v};p.4W.1c.2h=l(){q f.23};p.4b=l(4F){h 3t=p.A.4P(4F),2p,4J=W p.2n.bl(),bo=v;c(3t==v){q}2p=W 3t();f.49=4J;c(2p.3N==v){p.A.1x(p.M.1g.86+4F);q}4J.5c.K({3K:2p.3N.C,4K:7E});l 3l(4N,7F){D(h j=0;j<4N.u;j++){4N[j].H+=7F}};l 7E(15,bq){h 7w=15.C,1l=[],4Z=2p.5c,7v=15.H+15.F.u,2P=2p.3N,1p;D(h i=0;i<4Z.u;i++){1p=p.A.2S(7w,4Z[i]);3l(1p,7v);1l=1l.2l(1p)}c(2P.F!=v&&15.F!=v){1p=p.A.2S(15.F,2P.F);3l(1p,15.H);1l=1l.2l(1p)}c(2P.19!=v&&15.19!=v){1p=p.A.2S(15.19,2P.19);3l(1p,15.H+15[0].bp(15.19));1l=1l.2l(1p)}D(h j=0;j<1l.u;j++){1l[j].5S=3t.U}q 1l}};p.4b.1c.1M=l(7k,7p){f.49.1M(7k,7p);f.B=f.49.B};p.7q=l(){};p.7q.1c={T:l(7u,7s){h 48=f.1I[7u];q p.A.7t(48==v?7s:48)},18:l(7H){q Q.1N(7H)},8n:l(32,7Y){h 3A=[];c(32!=v){D(h i=0;i<32.u;i++){c(7I(32[i])=="4d"){3A=3A.2l(p.A.2S(7Y,32[i]))}}}q 3A.aM(p.A.7W)},8F:l(){h 1V=f.2X;D(h i=0;i<1V.u;i++){c(1V[i]===v){1J}h 2z=1V[i],45=2z.H+2z.u;D(h j=i+1;j<1V.u&&1V[i]!==v;j++){h 25=1V[j];c(25===v){1J}G{c(25.H>45){2y}G{c(25.H==2z.H&&25.u>2z.u){f.2X[i]=v}G{c(25.H>=2z.H&&25.H<45){f.2X[j]=v}}}}}}},7Z:l(2U){h 3h=2U.1O("\\n"),3X=80(f.T("84-2d")),2i=f.T("83-2d-82"),7U=f.T("1M",[]),7M=f.T("3j");2U="";c(2i==I){2i=(3X+3h.u-1).2h().u}G{c(38(2i)==I){2i=0}}D(h i=0;i<3h.u;i++){h 1A=3h[i],66=/^(&2m;|\\s)+/.R(1A),51="aE"+(i%2==0?1:2),7N=p.A.81(3X+i,2i),7T=p.A.Z(7U,(3X+i).2h())!=-1,2H=v;c(66!=v){2H=66[0].2h();1A=1A.22(2H.u)}1A=p.A.2J(1A);c(1A.u==0){1A="&2m;"}c(7T){51+=" aN"}2U+=""+"<7P>"+"<7R>"+(7M?"<3T 1o=\\"aZ\\">"+7N+"":"")+"<3T 1o=\\"60\\">"+(2H!=v?""+2H.E(" ","&2m;")+"":"")+1A+""+""+""+""}q 2U},88:l(69,5T){h 17=0,3p="",3r=p.A.7Q,5R=f.T("2V-U","");l 5X(5Y){h 5Q=5Y?(5Y.5S||5R):5R;q 5Q?5Q+" ":""};D(h i=0;i<5T.u;i++){h 1v=5T[i],3y;c(1v===v||1v.u===0){1J}3y=5X(1v);3p+=3r(69.22(17,1v.H-17),3y+"7K")+3r(1v.23,3y+1v.1a);17=1v.H+1v.u}3p+=3r(69.22(17),5X()+"7K");q 3p},1M:l(C,7V){h cg=p.M,1q=p.1q,B,ca,3e,cd="cm";f.1I={};f.B=v;f.1n=v;f.C=v;f.1e=v;f.6a={};f.1h=p.A.6d("ch");1q.6g[f.1h]=f;c(C===v){C=""}f.1I=p.A.6c(p.6b,7V||{});c(f.T("7X")==I){f.1I.1y=f.1I.3j=N}f.B=B=f.18("3c");f.1n=f.18("3c");f.1n.L="1n";L="6e";B.1h=f.1h;c(f.T("67")){L+=" 5O"}c(f.T("3j")==N){L+=" c5"}c(f.T("5h-1n")==N){f.1n.L+=" bC-5h"}L+=" "+f.T("1o-U");L+=" "+f.T("2V-U");B.L=L;f.5f=C;f.C=p.A.7A(C).E(/\\r/g," ");3e=f.T("1H-2L");f.C=f.T("8z-8H")==I?p.A.8D(f.C,3e):p.A.8c(f.C,3e);f.C=p.A.2I(f.C);c(f.T("1y")){f.1e=f.18("3c");f.1e.L="1e";f.1e.2u(p.1y.18(f));B.2u(f.1e);h 1e=f.1e;l 53(){1e.L=1e.L.E("54","")};B.c1=l(){53();1e.L+=" 54"};B.c2=l(){53()}}B.2u(f.1n);f.2X=f.8n(f.5c,f.C);f.8F();C=f.88(f.C,f.2X);C=f.7Z(p.A.2J(C));c(f.T("8B-8o")){C=p.A.8m(C)}f.1n.27=C},9i:l(z){z=z.E(/^\\s+|\\s+$/g,"").E(/\\s+/g,"|");q"\\\\b(?:"+z+")\\\\b"},9l:l(2K){f.3N={F:{3K:2K.F,1a:"1m"},19:{3K:2K.19,1a:"1m"},C:W V("(?"+2K.F.1j+")"+"(?.*?)"+"(?<19>"+2K.19.1j+")","99")}}};q p}()}c(!1k.V){(l(){h 2A={R:10.1c.R,8w:5I.1c.8w,E:5I.1c.E,1O:5I.1c.1O},1D={13:/(?:[^\\\\([#\\s.]+|\\\\(?!k<[\\w$]+>|[7z]{[^}]+})[\\S\\s]?|\\((?=\\?(?!#|<[\\w$]+>)))+|(\\()(?:\\?(?:(#)[^)]*\\)|<([$\\w]+)>))?|\\\\(?:k<([\\w$]+)>|[7z]{([^}]+)})|(\\[\\^?)|([\\S\\s])/g,98:/(?:[^$]+|\\$(?![1-9$&`\']|{[$\\w]+}))+|\\$(?:([1-9]\\d*|[$&`\'])|{([$\\w]+)})/g,3d:/^(?:\\s+|#.*)+/,5B:/^(?:[?*+]|{\\d+(?:,\\d*)?})/,7J:/&&\\[\\^?/g,7O:/]/g},7G=l(5C,5v,5t){D(h i=5t||0;i<5C.u;i++){c(5C[i]===5v){q i}}q-1},8I=/()??/.R("")[1]!==3a,3b={};V=l(1d,1S){c(1d 5U 10){c(1S!==3a){3q 7n("4g\'t 4I 9a 8A 95 7r 10 5t 94")}q 1d.3z()}h 1S=1S||"",7S=1S.Z("s")>-1,7L=1S.Z("x")>-1,5z=N,3R=[],14=[],13=1D.13,J,cc,3V,37,3u;13.O=0;2r(J=2A.R.2e(13,1d)){c(J[2]){c(!1D.5B.1R(1d.1b(13.O))){14.K("(?:)")}}G{c(J[1]){3R.K(J[3]||v);c(J[3]){5z=I}14.K("(")}G{c(J[4]){37=7G(3R,J[4]);14.K(37>-1?"\\\\"+(37+1)+(38(1d.5w(13.O))?"":"(?:)"):J[0])}G{c(J[5]){14.K(3b.7o?3b.7o.7l(J[5],J[0].5w(1)==="P"):J[0])}G{c(J[6]){c(1d.5w(13.O)==="]"){14.K(J[6]==="["?"(?!)":"[\\\\S\\\\s]");13.O++}G{cc=V.8d("&&"+1d.1b(J.H),1D.7J,1D.7O,"",{7D:"\\\\"})[0];14.K(J[6]+cc+"]");13.O+=cc.u+1}}G{c(J[7]){c(7S&&J[7]==="."){14.K("[\\\\S\\\\s]")}G{c(7L&&1D.3d.1R(J[7])){3V=2A.R.2e(1D.3d,1d.1b(13.O-1))[0].u;c(!1D.5B.1R(1d.1b(13.O-1+3V))){14.K("(?:)")}13.O+=3V-1}G{14.K(J[7])}}}G{14.K(J[0])}}}}}}}3u=10(14.5A(""),2A.E.2e(1S,/[9Y]+/g,""));3u.1B={1j:1d,2g:5z?3R:v};q 3u};V.9s=l(U,o){3b[U]=o};10.1c.R=l(z){h 1f=2A.R.2e(f,z),U,i,5y;c(1f){c(8I&&1f.u>1){5y=W 10("^"+f.1j+"$(?!\\\\s)",f.5J());2A.E.2e(1f[0],5y,l(){D(i=1;i<8j.u-2;i++){c(8j[i]===3a){1f[i]=3a}}})}c(f.1B&&f.1B.2g){D(i=1;i<1f.u;i++){U=f.1B.2g[i-1];c(U){1f[U]=1f[i]}}}c(f.3s&&f.O>(1f.H+1f[0].u)){f.O--}}q 1f}})()}10.1c.5J=l(){q(f.3s?"g":"")+(f.aw?"i":"")+(f.8E?"m":"")+(f.3d?"x":"")+(f.a0?"y":"")};10.1c.3z=l(7C){h 5E=W V(f.1j,(7C||"")+f.5J());c(f.1B){5E.1B={1j:f.1B.1j,2g:f.1B.2g?f.1B.2g.1b(0):v}}q 5E};10.1c.2e=l(93,z){q f.R(z)};10.1c.9b=l(9p,8x){q f.R(8x[0])};V.57=l(55,5d){h 5P="/"+55+"/"+(5d||"");q V.57[5P]||(V.57[5P]=W V(55,5d))};V.41=l(z){q z.E(/[-[\\]{}()*+?.\\\\^$|,#\\s]/g,"\\\\$&")};V.8d=l(z,F,11,1i,2N){h 2N=2N||{},2M=2N.7D,12=2N.cb,1i=1i||"",5F=1i.Z("g")>-1,6Y=1i.Z("i")>-1,7m=1i.Z("m")>-1,5q=1i.Z("y")>-1,1i=1i.E(/y/g,""),F=F 5U 10?(F.3s?F:F.3z("g")):W V(F,"g"+1i),11=11 5U 10?(11.3s?11:11.3z("g")):W V(11,"g"+1i),1K=[],2x=0,1s=0,1r=0,1w=0,2c,2b,1z,1C,3B,4f;c(2M){c(2M.u>1){3q aR("4g\'t 4I aB aF 7r 41 85")}c(7m){3q 7n("4g\'t 4I 41 85 8A bv bj 8E ba")}3B=V.41(2M);4f=W 10("^(?:"+3B+"[\\\\S\\\\s]|(?:(?!"+F.1j+"|"+11.1j+")[^"+3B+"])+)+",6Y?"i":"")}2r(I){F.O=11.O=1r+(2M?(4f.R(z.1b(1r))||[""])[0].u:0);1z=F.R(z);1C=11.R(z);c(1z&&1C){c(1z.H<=1C.H){1C=v}G{1z=v}}c(1z||1C){1s=(1z||1C).H;1r=(1z?F:11).O}G{c(!2x){2y}}c(5q&&!2x&&1s>1w){2y}c(1z){c(!2x++){2c=1s;2b=1r}}G{c(1C&&2x){c(!--2x){c(12){c(12[0]&&2c>1w){1K.K([12[0],z.1b(1w,2c),1w,2c])}c(12[1]){1K.K([12[1],z.1b(2c,2b),2c,2b])}c(12[2]){1K.K([12[2],z.1b(2b,1s),2b,1s])}c(12[3]){1K.K([12[3],z.1b(1s,1r),1s,1r])}}G{1K.K(z.1b(2b,1s))}1w=1r;c(!5F){2y}}}G{F.O=11.O=0;3q bE("bZ 8L av 9t as")}}c(1s===1r){1r++}}c(5F&&!5q&&12&&12[0]&&z.u>1w){1K.K([12[0],z.1b(1w),1w,z.u])}F.O=11.O=0;q 1K};',62,769,'||||||||||||if|||this||var||||function||||sh|return||||length|null||||str|utils|div|code|for|replace|left|else|index|true|_121|push|className|config|false|lastIndex||document|exec||getParam|name|XRegExp|new|lt|gt|indexOf|RegExp|_139|vN|part|_11f|_d3||pos|create|right|css|slice|prototype|_119|bar|_129|strings|id|_13a|source|window|_d6|script|lines|class|_da|vars|_145|_144|style|_b5|_103|_146|alert|toolbar|_149|_f4|_x|_14a|lib|obj|html|doc|tab|params|continue|_142|_c3|highlight|createElement|split|_c5|href|test|_11a|_c2|_8|_e7|width|text|_5a|_5b|min|_91|substr|value||_ec|in|innerHTML|_4f|_3c|_98|_148|_147|line|call|_6e|captureNames|toString|_f0|_75|_bc|concat|nbsp|brushes|http|_cd|attributes|while|height|wnd|appendChild|_be|_5f|_143|break|_e9|real|execute|_66|_c4|_40|_88|SyntaxHighlighter|_f9|unindent|trim|_10f|size|_13c|_13b|case|_d9|_28|_55|getMatches|_c1|_ed|brush|_61|matches|_a2|body|m2|m1|_e3|_81|_7a|_5|_80|_124|isNaN|title|undefined|_118|DIV|extended|_10b|_2|_62|_ee|_7d|gutter|_25|offsetMatches|_4e|_8e|print|_fd|throw|_fe|global|_cc|_125|gm|Math|com|_104|addFlags|_e5|_14b|_3|printFrame|fixInputString|_76|_af|font|write|_7c|regex|_b6|substring|htmlScript|_32|_b4|url|_11e|_c6|td|_49|len|_60|_ef|_22|_a7|_7b|escape|_6a|color|_blank|_ea|_4d|_4c|_e1|xmlBrush|_47|HtmlScript|close|object|link|esc|can|_5d|_b0|type|_ad|_ae|_b3|_b2|_73|_b8|_ba|_b9|_a6|span|removeChild|gi|_89|eachLine|_7e|_9d|_82|_a3|_9e|getElementsByTagName|_6b|_cb|top|_53|supply|_ce|func|_50|popup|_d0|_54|findBrush|useScriptTags|_bf|_6c|values|discoveredBrushes|win|Match|_c8|focus|_d7||_f6|_29|hide|show|_133|_2b|cache|pre|_19|_1a|viewSource|regexList|_134|_2a|originalCode|highlighterId|wrap|_27|copyToClipboard|toolbarItemHeight|_2c|_2e|_2d|toolbarItemWidth|expandSource|_141|_7|_4|from|_e|item|charAt|www|r2|_11d|join|quantifier|_113|_b|_12e|_13e|_17|_18|String|getNativeFlags|_9|_f|_d|_10|collapsed|key|_101|_ff|brushName|_fb|instanceof|_30|swf|getBrushNameCss|_100|contentWindow|content|_38|_8c|_35|_37|_24|_f5|collapse|_2f|_fa|toolbarCommands|defaults|merge|guid|syntaxhighlighter|clipboardSwf|highlighters|_6|rel|DTD|to|createButton|_a|_84|500px|measureSpace|clipboard|none|scrollbars|decoration|org|_83|0px|margin|head|align|center|userAgent|_3f|copyStyles|0099FF|help|alexgorbatchev|xhtml1|_3e|w3|_85|_48|noBrush|_5e|version|stylesheet|_65|_6d|switch|screen|flash|event|_52|attachEvent|_13f|shockwave|toLowerCase|_1e|_36|px|clipboardData|commandName|copyToClipboardConfirmation|message|aboutDialog|_78|executeCommand|_14|_16|items|_13|_12|_4b|_15|_79|navigator|_dd|get|_140|TypeError|unicode|_de|Highlighter|one|_e0|toBoolean|_df|_d8|_d5|_c7|addEvent|pP|trimFirstAndLastLines|_c9|_12d|escapeChar|process|_d1|_112|_e2|typeof|classLeft|plain|_11c|_f2|_f7|classRight|table|decorate|tr|_11b|_f8|_f1|_106|matchesSortCallback|light|_e4|createDisplayLines|parseInt|padNumber|numbers|pad|first|character|brushNotHtmlScript|_a4|processMatches|tagName|getSyntaxHighlighterScriptTags|parseParams|processTabs|matchRecursive|_b7|toArray|_9a|_a8|_a1|arguments|_a9|regexLib|processUrls|findMatches|links|defaultAdd|_bd|_93|bloggerMode|stripCData|insertSpaces|parentNode|match|args|_90|smart|when|auto|debug|processSmartTabs|multiline|removeNestedMatches|stripBrs|tabs|_117|2004|2009|data|_1c|keep|Alex|donate|2930402|development|active|_1b|highlighter|syntax|JavaScript|Copyright|multiLineDoubleQuotedString|hosted_button_id|string|scriptScriptTags|aspScriptTags|_12f|another|constructing|onclick|catch|replaceVar|sgi|flags|apply|phpScriptTags|singleLineCComments|singleLinePerlComments|multiLineCComments|spaceWidth|Gorbatchev|getKeywords|doubleQuotedString|xmlComments|forHtmlScript|multiLineSingleQuotedString|try|singleQuotedString|_131|bottom|xmlns|addPlugin|unbalanced|dtd|transitional|EN|TR|1999|xhtml|charset|utf|About|Type|Content|meta|equiv|Transitional|XHTML|your|now|Can|is|The|view|copy|find|Brush|PUBLIC|W3C|DOCTYPE|option|wasn|configured|sx|family|sticky|If|you|target|2010|382|June|like|please|webscr|cmd|_s|bin|cgi|https|paypal|4em|75em|serif|background|fff|sans|Helvetica|Geneva|Arial|000|1em|large|delimiters|xx|3em|contains|ignoreCase|xclick|always|about|_42|more|shCore|printing|alt|than|_43|max|round|250|500|_44|sort|highlighted|absolute|error|spaces|SyntaxError|ok|amp|setData|_1f|_39|cssText|position|number|IFRAME|_3a|_3b|random|1000000|_a5|getElementById|block|CDATA|htmlscript|flag|opera|1000|offsetWidth|_8a|_99|getPropertyValue|getComputedStyle|Array|the|textarea|Xml|load|open|_cf|lastIndexOf|_d4||all|on|70em|using|30em|aliases|addEventListener|replaceChild|command|printSource|no|menu|Error|flashVars|wmode|transparent|msie|classid|11cf|96b8|ae6d|d27cdb6e|clsid|allowScriptAccess|application|location|resizable|400|750|_20|_21|menubar|_26|subject|_clipboard|onmouseover|onmouseout|param|444553540000|nogutter|embed|macromedia|movie|swflash|_10a|valueNames||_10c|pub|src|conf|highlighter_|cab|download|cabs|codebase|important|_34|_33'.split('|'),0,{})) 31 | -------------------------------------------------------------------------------- /support/syntaxhighlighter/scripts/shBrushPHP.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.0.320.modified (May 03 2009) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is a modified version of shBrushPhp.js which is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see . 29 | * 30 | * shBrushPhp.js by David Chambers 31 | * http://davidchambersdesign.com/ 32 | * { last updated: 20 March 2010 } 33 | */ 34 | SyntaxHighlighter.brushes.Php = function () 35 | { 36 | this.regexList = [ 37 | 38 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, 39 | css: 'php-comment comments' }, 40 | 41 | { regex: SyntaxHighlighter.regexLib.multiLineCComments, 42 | css: 'php-comment comments' }, 43 | 44 | { regex: /__(CLASS|FILE|FUNCTION|LINE|METHOD)__/gi, 45 | css: 'php-constant constants' }, 46 | 47 | { regex: /\b(?:abstract|and|array|as|break|case|class|const|continue|declare|default|die|do|echo|else(( )?if)?|end(declare|for(each)?|if|switch|while)|extends|false|for(each)?|(c|old_)?function|implements|include(_once)?|global|if|interface|new|(x)?or|private|protected|public|return|static|switch|throw|true|use|require(_once)?|var|while)\b/g, 48 | css: 'php-keyword keyword' }, 49 | 50 | { regex: /(<|<)\?(php|=)?|\?(>|>)/g, 51 | css: 'php-tag' }, 52 | 53 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, 54 | css: 'php-string string' }, 55 | 56 | { regex: /[^$\w](\\"|\\\$|[^"$\n])*(?=("|(\\"|[^"\n])*[^\\]")(((\\"|[^"\n])*[^\\]"){2})*(\\"|[^"\n])*$)(")?/gm, 57 | css: 'php-string string' }, 58 | 59 | { regex: /"(?=(((\\"|[^"\n])*[^\\]"){2})*(\\"|[^"\n])*$)/gm, 60 | css: 'php-string string' }, 61 | 62 | { regex: /\b\d+(\.\d+)?\b/g, 63 | css: 'php-numval' }, 64 | 65 | { regex: /\$\w+(?=("|(\\"|[^"\n])*[^\\]")(((\\"|[^"\n])*[^\\]"){2})*(\\"|[^"\n])*$)/gm, 66 | css: 'php-varinstr variable' }, 67 | 68 | { regex: /\$\w+/g, 69 | css: 'php-variable variable' }, 70 | 71 | // functions a-e 72 | { regex: /\b(?:abs|acos(h)?|add(c)?slashes|aggregate(_(info|methods(_by_(list|regexp))?|properties(_by_(list|regexp))?))?|aggregation_info|apache_(child_terminate|get(env|_(modules|version))|lookup_uri|note|request_headers|reset_timeout|response_headers|setenv)|apc_(add|cache_info|clear_cache|compile_file|define_constants|delete|fetch|load_constants|sma_info|store)|apd_(breakpoint|callstack|clunk|continue|croak|dump_(function_table|(persistent|regular)_resources)|echo|get_active_symbols|set_(pprof_trace|session(_trace(_socket)?)?))|array(_(change_key_case|chunk|combine|count_values|diff(_((u)?assoc|(u)?key))?|fill(_keys)?|filter|flip|intersect(_((u)?assoc|(u)?key))?|key(s|_exists)|map|merge(_recursive)?|multisort|pad|pop|product|push|rand|reduce|reverse|search|shift|s(p)?lice|sum|udiff(_(u)?assoc)?|uintersect(_(u)?assoc)?|unique|unshift|values|walk(_recursive)?))?|arsort|ascii2ebcdic|asin(h)?|asort|assert(_options)?|atan(2|h)?|base(64_(de|en)code|_convert|name)|bbcode_(add_(element|smiley)|create|destroy|parse|set_(arg_parser|flags))|bc(add|comp|div|mod|mul|pow(mod)?|scale|sqrt|sub)|bcompiler_(load(_exe)?|parse_class|read|write_(class|constant|exe_footer|file|write_(file|footer|function(s_from_file)?|header|included_filename)))|bin2hex|bind(ec|textdomain|_textdomain_codeset)|bz(close|(de)?compress|err(or|no|str)|flush|open|read|write)|cal(cul(_)?hmac|_(days_in_month|from_jd|info|to_jd))|call_user_(func|method)(_array)?|ceil|ch(dir|eck(date|dnsrr)|grp|mod|op|own|r(oot)?|unk_split)|class(kit_(import|method_(add|copy|re(define|move|name)))|_(exists|implements|parents))|clearstatcache|close(dir|log)|collator|com(pact|_(addref|create_guid|event_sink|get(_active_object)?|invoke|isenum|load(_typelib)?|message_pump|print_typeinfo|prop(get|put|set)|release|set))|connection_(aborted|status|timeout)|const(ant|ruct)|convert_(cyr_string|uu(de|en)code)|copy|cos(h)?|count(er_(bump(_value)?|create|get(_(meta|named|value))?|reset(_value)?)|_chars)?|crack_(check|(close|open)dict|getlastmessage)|crc32|create_function|crypt|ctype_(alnum|alpha|cntrl|digit|graph|lower|print|punct|space|upper|xdigit)|curl_(close|copy_handle|err(or|no)|exec|getinfo|init|multi_(add_handle|close|exec|getcontent|info_read|init|remove_handle|select)|setopt(_array)?|version)|current|cyrus_(authenticate|(un)?bind|close|connect|query)|date(interval|period|time(zone)?|_(add|create(_from_format)?|date_set|default_timezone_(g|s)et|diff|format|get_last_errors|interval_(create_from_date_string|format)|isodate_set|modify|offset_get|parse(_from_format)?|sub|sun(rise|set|_info)|time((stamp|zone)_(g|s)et|_set)))?|db2_(autocommit|bind_param|client_info|close|column(s|_privileges)|commit|conn(ect|_error(msg)?)|cursor_type|escape_string|exec(ute)?|fetch_(array|assoc|both|object|row)|field_(display_size|name|num|precision|scale|type|width)|foreign_keys|free_(result|stmt)|get_option|last_insert_id|lob_read|next_result|num_(fields|rows)|pclose|pconnect|prepare|primary_keys|procedure(s|_columns)|result|rollback|server_info|set_option|special_columns|statistics|stmt_error(msg)?|table(s|_privileges))|dba_(close|delete|exists|fetch|firstkey|handlers|insert|key_split|list|nextkey|(p)?open|optimize|replace|sync)|dbase_(add_record|close|create|delete_record|get_(header_info|record(_with_names)?)|num(fields|records)|open|pack|replace_record)|dbplus_(add|aql|chdir|close|curr|err(code|no)|find|first|flush|free((all|r)locks|lock)|get(lock|unique)|info|last|(x)?(un)?lockrel|next|open|prev|rchperm|rcreate|rcrtexact|rcrtlike|resolve|restorepos|rkeys|ropen|rquery|rrename|rsecindex|runlink|rzap|savepos|setindex(bynumber)?|sql|tcl|tremove|undo(prepare)?|unselect|update)|dbx_(close|compare|connect|error|escape_string|fetch_row|query|sort)|dc(n)?gettext|deaggregate|debug_((print_)?backtrace|zval_dump)|dec(bin|hex|oct)|define(d|_syslog_variables)?|deg2rad|delete|dgettext|die|dio_(close|fcntl|open|read|seek|stat|tcsetattr|truncate|write)|dir(ectoryiterator|name)?|disk(_(free|total)_|free)space|dl|dngettext|dns_(check_record|get_(mx|record))|dom_import_simplexml|domxml_(new_doc|open_(file|mem)|version|xmltree|xslt_(stylesheet(_(doc|file))?|version))|dotnet_load|doubleval|each|easter_da(te|ys)|ebcdic2ascii|empty|enchant_(broker_(describe|dict_exists|free(_dict)?|get_error|init|list_dicts|request_(pwl_)?dict|set_ordering)|dict_(add_to_(personal|session)|(quick_)?check|describe|get_error|is_in_session|store_replacement|suggest))|end|ereg(i)?(_replace)?|error_(get_last|log|reporting)|escapeshell(arg|cmd)|eval|exec|exif_(imagetype|read_data|tagname|thumbnail)|exit|exp(ect_(expectl|popen)|lode|m1)?|extension_loaded|extract|ezmlm_hash)\b/g, 73 | css: 'php-function functions' }, 74 | 75 | // functions f-h 76 | { regex: /\b(?:fam_((cancel|resume|suspend)_monitor|close|monitor_(collection|directory|file)|next_event|open|pending)|fbsql_(affected_rows|autocommit|blob_size|change_user|clob_size|close|commit|connect|create_(blob|clob|db)|data(base(_password)?|_seek)|db_(query|status)|drop_db|err(or|no)|fetch_(array|assoc|field|lengths|object|row)|field_(flags|len|name|seek|table|type)|free_result|get_autostart_info|hostname|insert_id|list_(dbs|fields|tables)|next_result|num_(fields|rows)|password|pconnect|query|read_(b|c)lob|result|rollback|rows_fetched|select_db|set_(characterset|lob_mode|password|transaction)|(start|stop)_db|(table(_)?|user)name|warnings)|fclose|fdf_(add_(doc_javascript|template)|close|create|enum_values|err(or|no)|get_(ap|attachment|encoding|file|flags|opt|status|value|version)|header|next_field_name|open(_string)?|remove_item|save(_string)?|set_(ap|encoding|file|flags|javascript_action|on_import_javascript|opt|status|submit_form_action|target_frame|value|version))|feof|(f)?flush|fget(c(sv)?|s(s)?)|file((a|c)time|group|inode|mtime|owner|perms|pro(_(field(count|name|type|width)|retrieve|rowcount))?|size|type|_(exists|(get|put)_contents))?|filter_(has_var|id|input(_array)?|list|var(_array)?)|finfo_(buffer|close|file|open|set_flags)|floatval|flock|floor|fmod|fnmatch|fopen|fpassthru|fprintf|fputcsv|fputs|fread|frenchtojd|fribidi_log2vis|fscanf|fseek|fsockopen|fstat|ftell|ftok|ftp_(alloc|cdup|chdir|chmod|close|connect|delete|exec|fget|fput|get(_option)?|login|mdtm|mkdir|nb_(continue|(f)?get|(f)?put)|nlist|pasv|put|pwd|quit|raw(list)?|rename|rmdir|set_option|si(t|z)e|ssl_connect|systype)|ftruncate|func(tion_exists|_(get_arg(s)?|num_args))|fwrite|gc_(collect_cycles|disable|enable(d)?)|gd_info|geoip_((continent_code|country_(code(3)?|name)|id|isp|org|record|region)_by_name|database_info|db_(avail|filename|get_all_info)|region_name_by_code|time_zone_by_country_and_region)|get(allheaders|cwd|date|env|hostby(addr|name(l)?)|imagesize|lastmod|mxrr|my((g|p|u)id|inode)|opt|protoby(name|number)|randmax|rusage|servby(name|port)|text|timeofday|type|_(browser|called_class|cfg_var|class(_(methods|vars))?|current_user|declared_(classes|interfaces)|defined_(constants|functions|vars)|extension_funcs|headers|html_translation_table|include(d_files|_path)|loaded_extensions|magic_quotes_(gpc|runtime)|meta_tags|object_vars|parent_class|required_files|resource_type))|glob|gm(date|mktime)|gmp_(abs|add|and|clrbit|cmp|com|div(exact|_(q(r)?|r))?|fact|gcd(ext)?|hamdist|init|intval|invert|jacobi|legendre|mod|mul|neg|nextprime|or|perfect_square|popcount|pow(m)?|prob_prime|random|scan(0|1)|setbit|sign|sqrt(rem)?|strval|sub|testbit|xor)|gmstrftime|gnupg_(add((de|en)cryptkey|signkey)|clear((de|en)cryptkeys|signkeys)|decrypt(verify)?|encrypt(sign)?|export|get(error|protocol)|import|init|keyinfo|set(armor|(error|sign)mode)|sign|verify)|gopher_parsedir|grapheme_(extract|str(len|(r)?(i)?pos|(i)?str)|substr)|gregoriantojd|gz(close|(un)?compress|(de|en)code|(de|in)flate|eof|file|get(c|s(s)?)|open|passthru|puts|read|rewind|seek|tell|write)|__halt_compiler|hash(_(algos|copy|file|final|hmac(_file)?|init|update(_(file|stream))?))?|header(s_(list|sent))?|hebrev(c)?|hexdec|highlight_(file|string)|html(entities|specialchars(_decode)?|_entity_decode)|http_(build_(cookie|query|str|url)|cache_(etag|last_modified)|chunked_decode|date|(de|in)flate|get(_request_(body(_stream)?|headers))?|head|match_(etag|modified|request_header)|negotiate_(charset|content_type|language)|parse_(cookie|headers|message|params)|persistent_handles_(clean|count|ident)|post_(data|fields)|put_(data|file|stream)|redirect|request(_(body_encode|method_(exists|name|(un)?register)?))?|send_(content_(disposition|type)|data|file|last_modified|status|stream)|support|throttle)|hw_(array2objrec|changeobject|children(obj)?|close|connect(ion_info)?|cp|deleteobject|docbyanchor(obj)?|document_(attributes|bodytag|(set)?content|size)|dummy|edittext|error(msg)?|free_document|get(anchors(obj)?|andlock|child(doc)?coll(obj)?|object(byquery(coll)?(obj)?)?|parents(obj)?|rellink|remote(children)?|srcbydestobj|text|username)|identify|incollections|info|inscoll|insdoc|insert(anchors|document|object)|mapid|modifyobject|mv|(new_|pipe)document|objrec2array|output_document|pconnect|(setlink)?root|stat|unlock|who)|hypot)\b/g, 77 | css: 'php-function functions' }, 78 | 79 | // functions i-k 80 | { regex: /\b(?:ibase_(add_user|affected_rows|backup|blob_(add|cancel|close|create|echo|get|import|info|open)|close|commit(_ret)?|connect|db_info|delete_user|drop_db|err(code|msg)|execute|fetch_(assoc|object|row)|field_info|free_(event_handler|query|result)|gen_id|maintain_db|modify_user|name_result|num_(fields|params)|param_info|pconnect|prepare|query|restore|rollback(_ret)?|server_info|service_(at|de)tach|set_event_handler|timefmt|trans|wait_event)|iconv(_(get_encoding|mime_(decode(_headers)?|encode)|set_encoding|str(len|pos|rpos)|substr))?|id3_(get_(frame_(long|short)_name|genre_(id|list|name)|tag|version)|(remove|set)_tag)|idate|ifx(us_(close|create|free|open|read|seek|tell|write)_slob|_(affected_rows|blobinfile_mode|byteasvarchar|close|connect|copy_blob|create_(blob|char)|do|error(msg)?|fetch_row|field(properties|types)|free_(blob|char|result)|get(sqlca|_(blob|char))|htmltbl_result|nullformat|num_(fields|rows)|pconnect|prepare|query|textasvarchar|update_(blob|char)))|ignore_user_abort|iis_(add_server|get_(dir_security|script_map|server_(by_(comment|path)|rights)|service_state)|remove_server|set_(app_settings|dir_security|script_map|server_rights)|st(art|op)_serv(er|ice))|image(2wbmp|alphablending|antialias|arc|char(up)?|color(allocate(alpha)?|at|closest(alpha|hwb)?|deallocate|exact(alpha)?|match|resolve(alpha)?|set|sforindex|stotal|transparent)|convolution|copy(merge(gray)?|resampled|resized)?|create(from(gd(2(part)?)?|gif|jpeg|png|string|wbmp|xbm|xpm)|truecolor)?|dashedline|destroy|ellipse|fill(ed(arc|ellipse|polygon|rectangle)|toborder)?|filter|font(height|width)|ftbbox|fttext|gammacorrect|gd(2)?|gif|grab(screen|window)|interlace|istruecolor|jpeg|layereffect|line|loadfont|palettecopy|png|polygon|ps(bbox|(encode|extend|free|load|slant)font|text)|rectangle|rotate|savealpha|set(brush|pixel|style|thickness|tile)|string(up)?|sx|sy|truecolortopalette|ttf(bbox|text)|types|wbmp|xbm|_type_to_(extension|mime_type))|imap_(8bit|alerts|append|base64|binary|body(struct)?|check|clearflag_full|close|createmailbox|delete(mailbox)?|errors|expunge|fetch(body|header|structure|_overview)|get(acl|mailboxes|subscribed|_quota(root)?)|header(s|info)?|last_error|list(mailbox|scan|subscribed)?|lsub|mail(boxmsginfo|_(compose|copy|move))?|mime_header_decode|msgno|num_(msg|recent)|open|ping|qprint|renamemailbox|reopen|rfc822_(parse_(adrlist|headers)|write_address)|savebody|scanmailbox|search|set(acl|flag_full|_quota)|sort|status|subscribe|thread|timeout|uid|undelete|unsubscribe|utf(7_(de|en)code|8))|implode|import_request_variables|in_array|include(_once)?|inclued_get_data|inet_(ntop|pton)|ingres_(autocommit(_state)?|charset|close|commit|connect|cursor|err(or|no|sqlstate)|escape_string|execute|fetch_(array|object|proc_return|row)|field_(length|name|nullable|precision|scale|type)|free_result|next_error|num_(fields|rows)|pconnect|prepare|query|result_seek|rollback|set_environment|unbuffered_query)|ini_(alter|get(_all)?|restore|set)|inotify_(add_watch|init|queue_len|read|rm_watch)|interface_exists|intl_(error_name|get_error_(code|message)|is_failure)|intval|ip2long|iptc(embed|parse)|is(set|_(a(rray)?|binary|bool|buffer|callable|dir|double|executable|file|(in)?finite|float|int(eger)?|link|long|nan|null|numeric|object|readable|real|resource|scalar|soap_fault|string|subclass_of|unicode|uploaded_file|writ(e)?able))|iterator_(apply|count|to_array)|java_last_exception_(clear|get)|jd(dayofweek|monthname|to(french|gregorian|jewish|julian|unix))|jewishtojd|join|jpeg2wbmp|json_((de|en)code|last_error)|juliantojd|kadm5_((chpass|create|delete|modify)_principal|destroy|flush|get_(policies|principal(s)?)|init_with_password)|key|k(r)?sort)\b/g, 81 | css: 'php-function functions' }, 82 | 83 | // functions l-m 84 | { regex: /\b(?:lcfirst|lcg_value|lch(grp|own)|ldap_(8859_to_t61|add|(un)?bind|close|compare|connect|count_entries|delete|dn2ufn|err(or|2str|no)|explode_dn|first_(attribute|entry|reference)|free_result|get_(attributes|dn|entries|option|values(_len)?)|list|mod(ify|_(add|del|replace))|next_(attribute|entry|reference)|parse_(reference|result)|read|rename|sasl_bind|search|set_(option|rebind_proc)|sort|start_tls|t61_to_8859)|lengthexception|levenshtein|libxml(error|_((clear|use_internal)_errors|get_(errors|last_error)|set_streams_context))|limititerator|link(info)?|list|locale(conv|_(g|s)et_default)?|localtime|log(icexception|10|1p)?|long2ip|lstat|ltrim|lzf_((de)?compress|optimized_for)|m_(checkstatus|completeauthorizations|connect(ionerror)?|deletetrans|destroy(conn|engine)|get(cell(bynum)?|commadelimited|header)|init(conn|engine)|iscommadelimited|maxconntimeout|monitor|num(columns|rows)|parsecommadelimited|response(keys|param)|returnstatus|set(blocking|dropfile|ip|ssl(_(cafile|files))?|timeout)|sslcert_gen_hash|trans(actionssent|inqueue|keyval|new|send)|uwait|validateidentifier|verify(connection|sslcert))|mail(parse_(determine_best_xfer_encoding|msg_(create|extract_(part|(whole_)?part_file)?|free|get_(part(_data)?|structure)|parse(_file)?)|rfc822_parse_addresses|stream_encode|uudecode_all))?|main|max(db_(affected_rows|autocommit|bind_(param|result)|change_user|character_set_name|client_encoding|close(_long_data)?|commit|connect(_err(or|no))?|data_seek|debug|disable_(reads_from_master|rpl_parse)|dump_debug_info|embedded_connect|enable_(reads_from_master|rpl_parse)|err(or|no)|escape_string|execute|fetch(_(array|assoc|field(s|_direct)?|lengths|object|row))?|field_(count|seek|tell)|free_result|get_(client_(info|version)|host_info|metadata|proto_info|server_(info|version))|info|init|insert_id|kill|master_query|more_results|multi_query|next_result|num_(fields|rows)|options|param_count|ping|prepare|query|real_(connect|escape_string|query)|report|rollback|rpl_(parse_enabled|probe|query_type)|select_db|send_(long_data|query)|server_(end|init)|set_opt|sqlstate|ssl_set|stat|stmt_(affected_rows|bind_(param|result)|close(_long_data)?|data_seek|err(or|no)|execute|fetch|free_result|init|num_rows|param_count|prepare|reset|result_metadata|send_long_data|sqlstate|store_result)|store_result|thread_(id|safe)|use_result|warning_count))?|mb_(check_encoding|convert_(case|encoding|kana|variables)|(de|en)code_(mimeheader|numericentity)|detect_(encoding|order)|ereg(i(_replace)?|_(match|replace|search(_(get(pos|regs)?|init|(set)?pos|regs))?))?|get_info|http_(in|out)put|internal_encoding|language|list_encodings|output_handler|parse_str|preferred_mime_name|regex_(encoding|set_options)|send_mail|split|str(cut|imwidth|istr|len|(r)?(i)?pos|r(i)?chr|str|to(lower|upper)|width)|sub(stitute_character|str(_count)?))|mcrypt_(cbc|cfb|create_iv|(de|en)crypt|ecb|enc_(get_(algorithms_name|(block|iv|key)_size|modes_name|supported_key_sizes)|is_block_(algorithm(_mode)?|mode)|self_test)|generic(_(deinit|end|init))?|get_((block|iv|key)_size|cipher_name)|list_(algorithms|modes)|module_(close|get_(algo_(block|key)_size|supported_key_sizes)|is_block_(algorithm(_mode)?|mode)|open|self_test)|ofb)|md5(_file)?|mdecrypt_generic|memcache_debug|memory_get_(peak_)?usage|metaphone|method_exists|mhash(_(count|get_(block_size|hash_name)|keygen_s2k))?|microtime|mime_content_type|min|ming_(keypress|set(cubicthreshold|scale|swfcompression)|use(constants|swfversion))|mk(dir|time)|money_format|move_uploaded_file|mqseries_(back|begin|close|cmit|conn(x)?|disc|get|inq|open|put(1)?|set|strerror)|msession_(connect|count|create|destroy|disconnect|find|(g|s)et(_(array|data))?|inc|list(var)?|lock|plugin|randstr|timeout|uniq|unlock)|msg_(((g|s)et|stat)_queue|queue_exists|receive|remove_queue|send)|msql(_(affected_rows|close|connect|create(_)?db|data_seek|db(name|_query)?|drop_db|error|fetch_(array|field|object|row)|field(_seek|(_)?(flags|len|name|table|type))|free_result|list_(dbs|fields|tables)|num(_)?(fields|rows)|pconnect|query|regcase|result|select_db|tablename))?|mssql_(bind|close|connect|data_seek|execute|fetch_(array|assoc|batch|field|object|row)|field_(length|name|seek|type)|free_(result|statement)|get_last_message|guid_string|init|min_(error|message)_severity|next_result|num_(fields|rows)|pconnect|query|result|rows_affected|select_db)|mt_(getrandmax|(s)?rand)|mysql_(affected_rows|change_user|client_encoding|close|connect|(create|drop|select)_db|data_seek|db_(name|query)|err(or|no)|escape_string|fetch_(array|assoc|field|lengths|object|row)|field_(flags|len|name|seek|table|type)|free_result|get_(client|host|proto|server)_info|info|insert_id|list_(dbs|fields|processes|tables)|num_(fields|rows)|pconnect|ping|query|real_escape_string|result|set_charset|stat|tablename|thread_id|unbuffered_query)|mysqli_(bind_(param|result)|client_encoding|(dis|en)able_(reads_from_master|rpl_parse)|driver|escape_string|execute|fetch|get_metadata|master_query|param_count|report|result|rpl_(parse_enabled|probe|query_type)|send_(long_data|query)|set_opt|slave_query|stmt))\b/g, 85 | css: 'php-function functions' }, 86 | 87 | // functions n-o 88 | { regex: /\b(?:nat(case)?sort|ncurses_(add(ch|(ch)?(n)?str)|assume_default_colors|attr(off|on|set)|baudrate|beep|bkgd(set)?|border|bottom_panel|can_change_color|cbreak|clear|clrto(bot|eol)|color_(content|set)|curs_set|def(ine_key|_(prog|shell)_mode)|del(ay_output|ch|eteln|win|_panel)|doupdate|(echo|erase)(char)?|end|filter|flash|flushinp|get(ch|maxyx|mouse|yx)|halfdelay|has_(colors|ic|il|key)|hide_panel|hline|inch|init(_(color|pair))?|ins(ertln|ch|delln|str|tr)|isendwin|key(ok|pad)|killchar|longname|meta|mouse(interval|mask|_trafo)|move(_panel)?|mv(add(ch|(ch)?(n)?str)|cur|delch|getch|hline|inch|vline|waddstr)|napms|new(pad|win|_panel)|nl|no(cbreak|echo|nl|qiflush|raw)|pair_content|panel_(above|below|window)|p(nout)?refresh|putp|qiflush|raw|refresh|replace_panel|reset_(prog|shell)_mode|(res|sav)etty|scr(l|_(dump|init|restore|set))|show_panel|slk_(attr(off|on|set)?|clear|color|init|(nout)?refresh|restore|set|touch)|stand(end|out)|start_color|term(attrs|name)|timeout|top_panel|typeahead|unget(ch|mouse)|update_panels|use_(default_colors|env|extended_names)|vidattr|vline|w(add(ch|str)|attr(off|on|set)|border|clear|color_set|erase|getch|hline|mouse_trafo|move|(nout)?refresh|stand(end|out)|vline))|newt_(bell|button(_bar)?|centered_window|checkbox(_(get_value|set_(flags|value)|tree(_((add|find)_item|get_(current|entry_value|(multi_)?selection)|multi|set_(current|entry(_value)?|width)))?))?|clear_key_buffer|cls|compact_button|component_(add_callback|takes_focus)|create_grid|cursor_(off|on)|delay|draw_(form|root_text)|entry(_(get_value|set(_(filter|flags))?))?|finished|form(_(add_(component(s)?|hot_key)|destroy|get_current|run|set_(background|height|size|timer|width)|watch_fd))?|get_screen_size|grid_(add_components_to_form|basic_window|free|get_size|(h|v)_(close_)?stacked|place|set_field|simple_window|wrapped_window(_at)?)|init|label(_set_text)?|listbox(_(append_entry|clear(_selection)?|delete_entry|get_(current|selection)|insert_entry|item_count|select_item|set_(current(_by_key)?|data|entry|width)))?|listitem(_(get_data|set))?|open_window|pop_(help_line|window)|push_help_line|radio(button|_get_current)|redraw_help_line|reflow_text|refresh|resize_screen|resume|run_form|scale(_set)?|scrollbar_set|set_(help|suspend)_callback|suspend|textbox(_(get_num_lines|reflowed|set_(height|text)))?|vertical_scrollbar|wait_for_key|win_(choice|entries|menu|message(v)?|ternary))|next|ngettext|nl2br|nl_langinfo|normalizer|notes_(body|(copy|drop)_db|create_(db|note)|find_note|header_info|list_msgs|mark_(un)?read|nav_create|search|unread|version)|nsapi_((request|response)_headers|virtual)|nthmac|number_format|numberformatter|oauth_(get_sbs|urlencode)|ob_(clean|deflatehandler|end_(clean|flush)|etaghandler|flush|get_(clean|contents|flush|length|level|status)|gzhandler|iconv_handler|implicit_flush|inflatehandler|list_handlers|start|tidyhandler)|oci(bindbyname|cancel|closelob|coll(append|assign(elem)?|getelem|max|size|trim)|column(isnull|name|precision|scale|size|type(raw)?)|commit|definebyname|error|execute|fetch(into|statement)?|free(collection|cursor|desc|statement)|internaldebug|loadlob|log(off|on)|new(collection|cursor|descriptor)|nlogon|numcols|parse|plogon|result|rollback|rowcount|savelob(file)?|serverversion|setprefetch|statementtype|write(lobtofile|temporarylob)|_(bind_(array_)?by_name|cancel|close|commit|connect|define_by_name|error|execute|fetch(_(all|array|assoc|object|row))?|field_(is_null|name|precision|scale|size|type(_raw)?)|free_statement|internal_debug|lob_is_equal|new_(collection|connect|cursor|descriptor)|num_(fields|rows)|parse|password_change|pconnect|result|rollback|server_version|set_prefetch|statement_type))|octdec|odbc_(autocommit|binmode|close(_all)?|column(s|privileges)|commit|connect|cursor|data_source|do|error(msg)?|exec(ute)?|fetch_(array|into|object|row)|field_(len|name|num|precision|scale|type)|foreignkeys|free_result|gettypeinfo|longreadlen|next_result|num_(fields|rows)|pconnect|prepare|primarykeys|procedure(s|columns)|result(_all)?|rollback|setoption|specialcolumns|statistics|table(s|privileges))|openal_(buffer_(create|data|destroy|get|loadwav)|context_(create|current|destroy|process|suspend)|device_(close|open)|listener_(g|s)et|source_(create|destroy|get|pause|play|rewind|set|stop)|stream)|open(dir|log)|openssl_(csr_(export(_to_file)?|get_(public_key|subject)|new|sign)|error_string|free_key|get_(private|public)key|open|pkcs12_(export(_to_file)?|read)|pkcs7_((de|en)crypt|sign|verify)|pkey_(export(_to_file)?|free|get_(details|private|public)|new)|(private|public)_(de|en)crypt|seal|sign|verify|x509_(check(purpose|_private_key)|export(_to_file)?|free|parse|read))|ord|output_(add_rewrite_var|reset_rewrite_vars)|overload|override_function|ovrimos_(close|commit|connect|cursor|exec(ute)?|fetch_(into|row)|field_(len|name|num|type)|free_result|longreadlen|num_(fields|rows)|prepare|result(_all)?|rollback))\b/g, 89 | css: 'php-function functions' }, 90 | 91 | // functions p-r 92 | { regex: /\b(?:pack|parentiterator|parse(kit_(compile_(file|string)|func_arginfo)|_(ini_(file|string)|str|url))|passthru|pathinfo|pclose|pcntl_(alarm|exec|fork|(g|s)etpriority|signal(_dispatch)?|sig(procmask|timedwait|waitinfo)|wait(pid)?|w(exitstatus|if(exited|signaled|stopped)|(stop|term)sig))|pfsockopen|pg_(affected_rows|cancel_query|client_encoding|close|connect(ion_(busy|reset|status))?|convert|copy_(from|to)|dbname|delete|end_copy|escape_bytea|escape_string|execute|fetch_(all(_columns)?|array|assoc|object|result|row)|field_(is_null|name|num|prtlen|size|table|type(_oid)?)|free_result|get_(notify|pid|result)|host|insert|last_(error|notice|oid)|lo_(close|create|(ex|im)port|open|read(_all)?|seek|tell|unlink|write)|meta_data|num_(fields|rows)|options|parameter_status|pconnect|ping|port|prepare|put_line|query(_params)?|result_(error(_field)?|seek|status)|select|send_(execute|prepare|query(_params)?)|set_(client_encoding|error_verbosity)|trace|transaction_status|tty|unescape_bytea|untrace|update|version)|php(credits|info|version|_(check_syntax|ini_(loaded_file|scanned_files)|logo_guid|sapi_name|strip_whitespace|uname))|pi|png2wbmp|popen|pos(ix_(access|ctermid|get(cwd|(eg|eu|g|grg|pg|p|pp|pwu|s|u)id|grnam|groups|login|pgrp|pwnam|rlimit|_last_error)|initgroups|isatty|kill|mk(fifo|nod)|set(eg|eu|g|pg|s|u)id|strerror|times|(tty|u)name))?|pow|preg_(filter|grep|last_error|match(_all)?|quote|replace(_callback)?|split)|prev|print(f|_r)?|printer_(abort|close|(create|delete)_(brush|dc|font|pen)|draw_(bmp|chord|elipse|line|pie|rectangle|roundrect|text)|(end|start)_(doc|page)|get_option|list|logical_fontheight|open|select_(brush|font|pen)|set_option|write)|proc_(close|get_status|nice|open|terminate)|property_exists|ps_(add_(bookmark|(launch|local|pdf|web)link|note)|arc(n)?|begin_(page|pattern|template)|circle|clip|close(path(_stroke)?|_image)?|continue_text|curveto|delete|end_(page|pattern|template)|fill(_stroke)?|findfont|get_(buffer|parameter|value)|hyphenate|include_file|lineto|makespotcolor|moveto|new|open_(file|image(_file)?|memory_image)|place_image|rect|restore|rotate|save|scale|set(color|dash|flat|font|gray|line(cap|join|width)|miterlimit|overprintmode|polydash|_(border_(color|dash|style)|info|parameter|text_pos|value))|shading(_pattern)?|shfill|show(2|_(boxed|xy(2)?))?|string(width|_geometry)|stroke|symbol(_(name|width))?|translate)|pspell_(add_to_(personal|session)|check|clear_session|config_(create|(data|dict)_dir|ignore|mode|personal|repl|runtogether|save_repl)|new(_(config|personal))?|save_wordlist|store_replacement|suggest)|putenv|px_(close|(create|open)_fp|date2string|delete(_record)?|get_(field|info|parameter|record|schema|value)|(insert|put|retrieve)_record|new|num(fields|records)|set_(blob_file|parameter|tablename|targetencoding|value)|timestamp2string|update_record)|qdom_(error|tree)|quoted_printable_(de|en)code|quotemeta|rad2deg|radius_(acct_open|add_server|auth_open|close|config|create_request|cvt_(addr|int|string)|demangle(_mppe_key)?|get_(vendor_)?attr|put_(vendor_)?(addr|attr|int|string)|request_authenticator|send_request|server_secret|strerror)|rand|range|rar_(close|entry_get|list|open)|rawurl(de|en)code|read(dir|(gz)?file|line(_(add_history|callback_(handler_(install|remove)|read_char)|clear_history|completion_function|info|list_history|on_new_line|(read|write)_history|redisplay))?|link|_exif_data)|realpath|recode(_(file|string))?|register_(shutdown|tick)_function|rename(_function)?|require(_once)?|reset|restore_((error|exception)_handler|include_path)|return|rewind(dir)?|rmdir|round|rpm_(close|get_tag|is_valid|open|version)|rsort|rtrim|runkit_(class_(adopt|emancipate)|constant_(add|redefine|remove)|(function|method)_(add|copy|redefine|remove|rename)|import|lint(_file)?|return_value_used|sandbox_output_handler|superglobals))\b/g, 93 | css: 'php-function functions' }, 94 | 95 | // functions s 96 | { regex: /\b(?:scandir|sem_(acquire|get|release|remove)|serialize|session_(cache_(expire|limiter)|commit|(de|en)code|destroy|get_cookie_params|id|is_registered|(module_)?name|pgsql_((add|get)_error|(g|s)et_field|reset|status)|regenerate_id|(un)?register|save_path|set_(cookie_params|save_handler)|start|unset|write_close)|set((raw)?cookie|locale|type|_((error|exception)_handler|file_buffer|include_path|magic_quotes_runtime|time_limit))|sha1(_file)?|shell_exec|shm_(attach|detach|(get|put)_var|remove(_var)?)|shmop_(close|delete|open|read|size|write)|show_source|shuffle|signeurlpaiement|similar_text|simplexml_(import_dom|load_(file|string))|sin(h)?|sizeof|sleep|snmp(get(next)?|realwalk|set|walk(oid)?|_(get_(quick_print|valueretrieval)|read_mib|set_(enum_print|oid_(numeric_print|output_format)|quick_print|valueretrieval)))|socket_(accept|bind|clear_error|close|connect|create(_(listen|pair))?|get((peer|sock)name|_(option|status))|last_error|listen|read|recv(from)?|select|send(to)?|set_(block(ing)?|nonblock|option|timeout)|shutdown|strerror|write)|sort|soundex|spl(bool|doublylinkedlist|enum|fileinfo|fixedarray|float|(max|min)?heap|int|it(i)?|objectstorage|(priority)?queue|stack|string|_(autoload(_(call|extensions|functions|(un)?register))?|classes|object_hash))|sprintf|sql_regcase|sqlite_(array_query|busy_timeout|changes|close|column|create_(aggregate|function)|current|(error|escape)_string|exec|factory|fetch_(all|array|column_types|object|single|string)|field_name|has_(more|prev)|key|last_(error|insert_rowid)|lib(encoding|version)|next|num_(fields|rows)|(p)?open|prev|((single|unbuffered)_)?query|rewind|seek|udf_(de|en)code_binary|valid)|sqrt|srand|sscanf|ssh2_(auth_(hostbased_file|none|password|pubkey_file)|connect|exec|fetch_stream|fingerprint|methods_negotiated|publickey_(add|init|list|remove)|scp_(recv|send)|sftp(_(lstat|(mk|rm)dir|(read|sym|un)link|realpath|rename|stat))?|shell|tunnel)|stat|stats_(absolute_deviation|cdf_(beta|(negative_)?binomial|cauchy|chisquare|exponential|f|gamma|laplace|logistic|noncentral_(chisquare|f)|poisson|t|uniform|weibull)|covariance|den_uniform|dens_(beta|cauchy|chisquare|exponential|f|gamma|laplace|logistic|negative_binomial|normal|pmf_(binomial|hypergeometric|poisson)|t|weibull)|harmonic_mean|kurtosis|rand_(gen_(beta|chisquare|exponential|f|funiform|gamma|ibinomial(_negative)?|int|ipoisson|iuniform|noncenral_chisquare|noncentral_(f|t)|normal|t)|get_seeds|phrase_to_seeds|ranf|setall)|skew|standard_deviation|stat_(binomial_coef|correlation|gennch|independent_t|innerproduct|noncentral_t|paired_t|percentile|powersum)|variance)|str(casecmp|chr|cmp|coll|cspn|_(getcsv|(i)?replace|pad|repeat|rot13|shuffle|split|word_count))|stream(wrapper|_(bucket_(append|make_writeable|new|prepend)|context_(create|get_(default|options|params)|set_(default|option|params))|copy_to_stream|encoding|filter_(append|prepend|register|remove)|get_(contents|filters|line|meta_data|transports|wrappers)|is_local|notification_callback|register_wrapper|resolve_include_path|select|set_(blocking|timeout|write_buffer)|socket_(accept|client|enable_crypto|get_name|pair|recvfrom|sendto|server|shutdown)|supports_lock|wrapper_((un)?register|restore)))|strftime|strip((c)?slashes|os|_tags)|str((i)?str|len|n(at)?(case)?cmp|pbrk|pos|ptime|rchr|rev|ripos|rpos|spn|to(k|lower|time|upper)|tr|val)|substr(_(compare|count|replace))?|svn_(add|auth_(g|s)et_parameter|blame|cat|checkout|cleanup|client_version|commit|diff|export|fs_(abort_txn|apply_text|begin_txn2|change_node_prop|check_path|contents_changed|copy|delete|dir_entries|file_(contents|length)|(is|make)_(dir|file)|node_(created_rev|prop)|props_changed|revision_(prop|root)|txn_root|youngest_rev)|import|log|ls|mkdir|repos_(create|fs(_(begin_txn_for_commit|commit_txn))?|hotcopy|open|recover)|revert|status|update)|swf_(action(geturl|goto(frame|label)|(next|prev)frame|play|settarget|stop|togglequality|waitforframe)|add(buttonrecord|color)|closefile|define(bitmap|font|line|poly|rect|text)|end(button|doaction|shape|symbol)|font(size|slant|tracking)|get((bitmap|font)info|frame)|labelframe|lookat|modifyobject|mulcolor|nextid|oncondition|openfile|ortho(2)?|perspective|placeobject|polarview|popmatrix|posround|pushmatrix|removeobject|rotate|scale|set(font|frame)|shape(arc|curveto(3)?|fill(bitmap(clip|tile)|off|solid)|line(solid|to)|moveto)|showframe|start(button|doaction|shape|symbol)|textwidth|translate|viewport)|swish(result(s_(get(parsed|removedstop)words|(next|seek)result)|_(getmetalist|stem))|_(construct|get(meta|property)list|prepare|query)|search_(execute|resetlimit|set(limit|phrasedelimiter|sort|structure)))|sybase_(affected_rows|close|connect|data_seek|deadlock_retry_count|fetch_(array|assoc|field|object|row)|field_seek|free_result|get_last_message|min_(client|error|message|server)_severity|num_(fields|rows)|pconnect|query|result|select_db|set_message_handler|unbuffered_query)|symlink|sys_get(loadavg|_temp_dir)|sys(tem|log))\b/g, 97 | css: 'php-function functions' }, 98 | 99 | // functions t-z 100 | { regex: /\b(?:tan(h)?|tcpwrap_check|tempnam|textdomain|tidy(node|_((access|config|error)_count|diagnose|get_(error_buffer|output)|(load|reset|save)_config|set(opt|_encoding)|warning_count))?|time(zone_((abbreviations|identifiers)_list|(location|offset|transitions|version)_get|name_(from_abbr|get)|open)|_(nanosleep|sleep_until))?|tmpfile|token_(get_all|name)|touch|traversable|trigger_error|trim|uasort|ucfirst|ucwords|udm_(add_search_limit|alloc_agent(_array)?|api_version|cat_(list|path)|check_(charset|stored)|clear_search_limits|close_stored|crc32|err(or|no)|find|free_(agent|ispell_data|res)|get_(doc_count|res_(field|param))|hash32|load_ispell_data|open_stored|set_agent_param)|uksort|umask|(underflow|unexpectedvalue)exception|unicode_((de|en)code|(g|s)et_(error_mode|subst_char))|uniqid|unixtojd|unlink|unpack|unregister_tick_function|unserialize|unset|url(de|en)code|use_soap_error_handler|user_error|usleep|usort|utf8_(de|en)code|var_(dump|export)|variant_(abs|add|and|cast|cat|cmp|date_(from|to)_timestamp|div|eqv|fix|get_type|idiv|imp|int|mod|mul|neg|not|or|pow|round|set(_type)?|sub|xor)|version_compare|vfprintf|virtual|vpopmail_(add_((alias_)?domain(_ex)?|user)|alias_(add|del(_domain)?|get(_all)?)|auth_user|del_(domain(_ex)?|user)|error|passwd|set_user_quota)|v(s)?printf|w32api_((def|init_d)type|(invoke|register)_function|set_call_method)|wddx_(add_vars|deserialize|packet_(end|start)|serialize_(value|vars)|unserialize)|win32_((create|delete)_service|get_last_control_message|ps_(list_procs|stat_(mem|proc))|(query|set)_service_status|start_service(_ctrl_dispatcher)?|stop_service)|wordwrap|xattr_(get|list|remove|set|supported)|xdiff_((file|string)_(bdiff(_size)?|bpatch|(diff|patch)(_binary)?|merge3|rabdiff))|xml_(error_string|get_(current_(byte_index|(column|line)_number)|error_code)|parse(r_(create(_ns)?|free|(g|s)et_option)|_into_struct)?|set_((character_data|default|element|(end_namespace|notation|start_namespace|unparsed_entity)_decl|external_entity_ref|processing_instruction)_handler|object))|xmlrpc_((de|en)code(_request)?|get_type|is_fault|parse_method_descriptions|server_(add_introspection_data|call_method|create|destroy|register_(introspection_callback|method))|set_type)|xpath_(eval(_expression)?|new_context|register_ns(_auto)?)|xptr_(eval|new_context)|xslt_(backend_(info|name|version)|create|err(or|no)|free|getopt|process|set_(base|encoding|error_handler|log|object|(sax|scheme)_handler(s)?)|setopt)|yaz_(addinfo|ccl_(conf|parse)|close|connect|database|element|err(or|no)|es(_result)?|(g|s)et_option|hits|itemorder|present|range|record|scan(_result)?|schema|search|sort|syntax|wait)|yp_(all|cat|err(no|_string)|first|get_default_domain|master|match|next|order)|zend_(logo_guid|thread_id|version)|zip_(close|entry_(close|compress(edsize|ionmethod)|filesize|name|open|read)|open|read)|zlib_get_coding_type)\b/g, 101 | css: 'php-function functions' }, 102 | 103 | { regex: /\w+(?=\()/g, 104 | css: 'php-custfunc functions' } 105 | ]; 106 | 107 | this.forHtmlScript({ 108 | left: /(<|<)\?(php|=)?/gi, 109 | right: /\?(>|>)/gi 110 | }); 111 | }; 112 | 113 | SyntaxHighlighter.brushes.Php.prototype = new SyntaxHighlighter.Highlighter(); 114 | SyntaxHighlighter.brushes.Php.aliases = ['php']; 115 | --------------------------------------------------------------------------------