diff --git a/news/trunk/plugins/content/codecitation/scripts/clipboard.swf b/news/trunk/plugins/content/codecitation/scripts/clipboard.swf new file mode 100644 index 00000000..1b4d90a0 Binary files /dev/null and b/news/trunk/plugins/content/codecitation/scripts/clipboard.swf differ diff --git a/news/trunk/plugins/content/codecitation/scripts/shBrushAS3.js b/news/trunk/plugins/content/codecitation/scripts/shBrushAS3.js new file mode 100644 index 00000000..56e161f3 --- /dev/null +++ b/news/trunk/plugins/content/codecitation/scripts/shBrushAS3.js @@ -0,0 +1,61 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/ + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate + * + * @version + * 2.0.320 (May 03 2009) + * + * @copyright + * Copyright (C) 2004-2009 Alex Gorbatchev. + * + * @license + * This file is part of SyntaxHighlighter. + * + * SyntaxHighlighter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * SyntaxHighlighter is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with SyntaxHighlighter. If not, see . + */ +SyntaxHighlighter.brushes.AS3 = function() +{ + // Created by Peter Atoria @ http://iAtoria.com + + var inits = 'class interface function package'; + + var keywords = '-Infinity ...rest Array as AS3 Boolean break case catch const continue Date decodeURI ' + + 'decodeURIComponent default delete do dynamic each else encodeURI encodeURIComponent escape ' + + 'extends false final finally flash_proxy for get if implements import in include Infinity ' + + 'instanceof int internal is isFinite isNaN isXMLName label namespace NaN native new null ' + + 'Null Number Object object_proxy override parseFloat parseInt private protected public ' + + 'return set static String super switch this throw true try typeof uint undefined unescape ' + + 'use void while with' + ; + + this.regexList = [ + { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments + { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments + { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings + { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings + { regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers + { regex: new RegExp(this.getKeywords(inits), 'gm'), css: 'color3' }, // initializations + { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords + { regex: new RegExp('var', 'gm'), css: 'variable' }, // variable + { regex: new RegExp('trace', 'gm'), css: 'color1' } // trace + ]; + + this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags); +}; + +SyntaxHighlighter.brushes.AS3.prototype = new SyntaxHighlighter.Highlighter(); +SyntaxHighlighter.brushes.AS3.aliases = ['actionscript3', 'as3']; diff --git a/news/trunk/plugins/content/codecitation/scripts/shBrushBash.js b/news/trunk/plugins/content/codecitation/scripts/shBrushBash.js new file mode 100644 index 00000000..6d8b75d7 --- /dev/null +++ b/news/trunk/plugins/content/codecitation/scripts/shBrushBash.js @@ -0,0 +1,59 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/ + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate + * + * @version + * 2.0.320 (May 03 2009) + * + * @copyright + * Copyright (C) 2004-2009 Alex Gorbatchev. + * + * @license + * This file is part of SyntaxHighlighter. + * + * SyntaxHighlighter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * SyntaxHighlighter is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with SyntaxHighlighter. If not, see . + */ +SyntaxHighlighter.brushes.Bash = function() +{ + var keywords = 'if fi then elif else for do done until while break continue case function return in eq ne gt lt ge le'; + var commands = 'alias apropos awk bash bc bg builtin bzip2 cal cat cd cfdisk chgrp chmod chown chroot' + + 'cksum clear cmp comm command cp cron crontab csplit cut date dc dd ddrescue declare df ' + + 'diff diff3 dig dir dircolors dirname dirs du echo egrep eject enable env ethtool eval ' + + 'exec exit expand export expr false fdformat fdisk fg fgrep file find fmt fold format ' + + 'free fsck ftp gawk getopts grep groups gzip hash head history hostname id ifconfig ' + + 'import install join kill less let ln local locate logname logout look lpc lpr lprint ' + + 'lprintd lprintq lprm ls lsof make man mkdir mkfifo mkisofs mknod more mount mtools ' + + 'mv netstat nice nl nohup nslookup open op passwd paste pathchk ping popd pr printcap ' + + 'printenv printf ps pushd pwd quota quotacheck quotactl ram rcp read readonly renice ' + + 'remsync rm rmdir rsync screen scp sdiff sed select seq set sftp shift shopt shutdown ' + + 'sleep sort source split ssh strace su sudo sum symlink sync tail tar tee test time ' + + 'times touch top traceroute trap tr true tsort tty type ulimit umask umount unalias ' + + 'uname unexpand uniq units unset unshar useradd usermod users uuencode uudecode v vdir ' + + 'vi watch wc whereis which who whoami Wget xargs yes' + ; + + this.regexList = [ + { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments + { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings + { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords + { regex: new RegExp(this.getKeywords(commands), 'gm'), css: 'functions' } // commands + ]; +} + +SyntaxHighlighter.brushes.Bash.prototype = new SyntaxHighlighter.Highlighter(); +SyntaxHighlighter.brushes.Bash.aliases = ['bash', 'shell']; + diff --git a/news/trunk/plugins/content/codecitation/scripts/shBrushCSharp.js b/news/trunk/plugins/content/codecitation/scripts/shBrushCSharp.js new file mode 100644 index 00000000..cf9b186a --- /dev/null +++ b/news/trunk/plugins/content/codecitation/scripts/shBrushCSharp.js @@ -0,0 +1,64 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/ + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate + * + * @version + * 2.0.320 (May 03 2009) + * + * @copyright + * Copyright (C) 2004-2009 Alex Gorbatchev. + * + * @license + * This file is part of SyntaxHighlighter. + * + * SyntaxHighlighter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * SyntaxHighlighter is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with SyntaxHighlighter. If not, see . + */ +SyntaxHighlighter.brushes.CSharp = function() +{ + var keywords = 'abstract as base bool break byte case catch char checked class const ' + + 'continue decimal default delegate do double else enum event explicit ' + + 'extern false finally fixed float for foreach get goto if implicit in int ' + + 'interface internal is lock long namespace new null object operator out ' + + 'override params private protected public readonly ref return sbyte sealed set ' + + 'short sizeof stackalloc static string struct switch this throw true try ' + + 'typeof uint ulong unchecked unsafe ushort using virtual void while'; + + function fixComments(match, regexInfo) + { + var css = (match[0].indexOf("///") == 0) + ? 'color1' + : 'comments' + ; + + return [new SyntaxHighlighter.Match(match[0], match.index, css)]; + } + + this.regexList = [ + { regex: SyntaxHighlighter.regexLib.singleLineCComments, func : fixComments }, // one line comments + { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments + { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings + { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings + { regex: /^\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion + { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // c# keyword + ]; + + this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); +}; + +SyntaxHighlighter.brushes.CSharp.prototype = new SyntaxHighlighter.Highlighter(); +SyntaxHighlighter.brushes.CSharp.aliases = ['c#', 'c-sharp', 'csharp']; + diff --git a/news/trunk/plugins/content/codecitation/scripts/shBrushCpp.js b/news/trunk/plugins/content/codecitation/scripts/shBrushCpp.js new file mode 100644 index 00000000..5c8d5189 --- /dev/null +++ b/news/trunk/plugins/content/codecitation/scripts/shBrushCpp.js @@ -0,0 +1,99 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/ + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate + * + * @version + * 2.0.320 (May 03 2009) + * + * @copyright + * Copyright (C) 2004-2009 Alex Gorbatchev. + * + * @license + * This file is part of SyntaxHighlighter. + * + * SyntaxHighlighter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * SyntaxHighlighter is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with SyntaxHighlighter. If not, see . + */ +SyntaxHighlighter.brushes.Cpp = function() +{ + // Copyright 2006 Shin, YoungJin + + var datatypes = 'ATOM BOOL BOOLEAN BYTE CHAR COLORREF DWORD DWORDLONG DWORD_PTR ' + + 'DWORD32 DWORD64 FLOAT HACCEL HALF_PTR HANDLE HBITMAP HBRUSH ' + + 'HCOLORSPACE HCONV HCONVLIST HCURSOR HDC HDDEDATA HDESK HDROP HDWP ' + + 'HENHMETAFILE HFILE HFONT HGDIOBJ HGLOBAL HHOOK HICON HINSTANCE HKEY ' + + 'HKL HLOCAL HMENU HMETAFILE HMODULE HMONITOR HPALETTE HPEN HRESULT ' + + 'HRGN HRSRC HSZ HWINSTA HWND INT INT_PTR INT32 INT64 LANGID LCID LCTYPE ' + + 'LGRPID LONG LONGLONG LONG_PTR LONG32 LONG64 LPARAM LPBOOL LPBYTE LPCOLORREF ' + + 'LPCSTR LPCTSTR LPCVOID LPCWSTR LPDWORD LPHANDLE LPINT LPLONG LPSTR LPTSTR ' + + 'LPVOID LPWORD LPWSTR LRESULT PBOOL PBOOLEAN PBYTE PCHAR PCSTR PCTSTR PCWSTR ' + + 'PDWORDLONG PDWORD_PTR PDWORD32 PDWORD64 PFLOAT PHALF_PTR PHANDLE PHKEY PINT ' + + 'PINT_PTR PINT32 PINT64 PLCID PLONG PLONGLONG PLONG_PTR PLONG32 PLONG64 POINTER_32 ' + + 'POINTER_64 PSHORT PSIZE_T PSSIZE_T PSTR PTBYTE PTCHAR PTSTR PUCHAR PUHALF_PTR ' + + 'PUINT PUINT_PTR PUINT32 PUINT64 PULONG PULONGLONG PULONG_PTR PULONG32 PULONG64 ' + + 'PUSHORT PVOID PWCHAR PWORD PWSTR SC_HANDLE SC_LOCK SERVICE_STATUS_HANDLE SHORT ' + + 'SIZE_T SSIZE_T TBYTE TCHAR UCHAR UHALF_PTR UINT UINT_PTR UINT32 UINT64 ULONG ' + + 'ULONGLONG ULONG_PTR ULONG32 ULONG64 USHORT USN VOID WCHAR WORD WPARAM WPARAM WPARAM ' + + 'char bool short int __int32 __int64 __int8 __int16 long float double __wchar_t ' + + 'clock_t _complex _dev_t _diskfree_t div_t ldiv_t _exception _EXCEPTION_POINTERS ' + + 'FILE _finddata_t _finddatai64_t _wfinddata_t _wfinddatai64_t __finddata64_t ' + + '__wfinddata64_t _FPIEEE_RECORD fpos_t _HEAPINFO _HFILE lconv intptr_t ' + + 'jmp_buf mbstate_t _off_t _onexit_t _PNH ptrdiff_t _purecall_handler ' + + 'sig_atomic_t size_t _stat __stat64 _stati64 terminate_function ' + + 'time_t __time64_t _timeb __timeb64 tm uintptr_t _utimbuf ' + + 'va_list wchar_t wctrans_t wctype_t wint_t signed'; + + var keywords = 'break case catch class const __finally __exception __try ' + + 'const_cast continue private public protected __declspec ' + + 'default delete deprecated dllexport dllimport do dynamic_cast ' + + 'else enum explicit extern if for friend goto inline ' + + 'mutable naked namespace new noinline noreturn nothrow ' + + 'register reinterpret_cast return selectany ' + + 'sizeof static static_cast struct switch template this ' + + 'thread throw true false try typedef typeid typename union ' + + 'using uuid virtual void volatile whcar_t while'; + + var functions = 'assert isalnum isalpha iscntrl isdigit isgraph islower isprint' + + 'ispunct isspace isupper isxdigit tolower toupper errno localeconv ' + + 'setlocale acos asin atan atan2 ceil cos cosh exp fabs floor fmod ' + + 'frexp ldexp log log10 modf pow sin sinh sqrt tan tanh jmp_buf ' + + 'longjmp setjmp raise signal sig_atomic_t va_arg va_end va_start ' + + 'clearerr fclose feof ferror fflush fgetc fgetpos fgets fopen ' + + 'fprintf fputc fputs fread freopen fscanf fseek fsetpos ftell ' + + 'fwrite getc getchar gets perror printf putc putchar puts remove ' + + 'rename rewind scanf setbuf setvbuf sprintf sscanf tmpfile tmpnam ' + + 'ungetc vfprintf vprintf vsprintf abort abs atexit atof atoi atol ' + + 'bsearch calloc div exit free getenv labs ldiv malloc mblen mbstowcs ' + + 'mbtowc qsort rand realloc srand strtod strtol strtoul system ' + + 'wcstombs wctomb memchr memcmp memcpy memmove memset strcat strchr ' + + 'strcmp strcoll strcpy strcspn strerror strlen strncat strncmp ' + + 'strncpy strpbrk strrchr strspn strstr strtok strxfrm asctime ' + + 'clock ctime difftime gmtime localtime mktime strftime time'; + + this.regexList = [ + { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments + { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments + { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings + { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings + { regex: /^ *#.*/gm, css: 'preprocessor' }, + { regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'color1 bold' }, + { regex: new RegExp(this.getKeywords(functions), 'gm'), css: 'functions bold' }, + { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword bold' } + ]; +}; + +SyntaxHighlighter.brushes.Cpp.prototype = new SyntaxHighlighter.Highlighter(); +SyntaxHighlighter.brushes.Cpp.aliases = ['cpp', 'c']; diff --git a/news/trunk/plugins/content/codecitation/scripts/shBrushCss.js b/news/trunk/plugins/content/codecitation/scripts/shBrushCss.js new file mode 100644 index 00000000..497a0c96 --- /dev/null +++ b/news/trunk/plugins/content/codecitation/scripts/shBrushCss.js @@ -0,0 +1,93 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/ + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate + * + * @version + * 2.0.320 (May 03 2009) + * + * @copyright + * Copyright (C) 2004-2009 Alex Gorbatchev. + * + * @license + * This file is part of SyntaxHighlighter. + * + * SyntaxHighlighter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * SyntaxHighlighter is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with SyntaxHighlighter. If not, see . + */ +SyntaxHighlighter.brushes.CSS = function() +{ + function getKeywordsCSS(str) + { + return '\\b([a-z_]|)' + str.replace(/ /g, '(?=:)\\b|\\b([a-z_\\*]|\\*|)') + '(?=:)\\b'; + }; + + function getValuesCSS(str) + { + return '\\b' + str.replace(/ /g, '(?!-)(?!:)\\b|\\b()') + '\:\\b'; + }; + + var keywords = 'ascent azimuth background-attachment background-color background-image background-position ' + + 'background-repeat background baseline bbox border-collapse border-color border-spacing border-style border-top ' + + 'border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color ' + + 'border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width ' + + 'border-bottom-width border-left-width border-width border bottom cap-height caption-side centerline clear clip color ' + + 'content counter-increment counter-reset cue-after cue-before cue cursor definition-src descent direction display ' + + 'elevation empty-cells float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font ' + + 'height left letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top ' + + 'margin-right margin-bottom margin-left margin marker-offset marks mathline max-height max-width min-height min-width orphans ' + + 'outline-color outline-style outline-width outline overflow padding-top padding-right padding-bottom padding-left padding page ' + + 'page-break-after page-break-before page-break-inside pause pause-after pause-before pitch pitch-range play-during position ' + + 'quotes right richness size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress ' + + 'table-layout text-align top text-decoration text-indent text-shadow text-transform unicode-bidi unicode-range units-per-em ' + + 'vertical-align visibility voice-family volume white-space widows width widths word-spacing x-height z-index'; + + var values = 'above absolute all always aqua armenian attr aural auto avoid baseline behind below bidi-override black blink block blue bold bolder '+ + 'both bottom braille capitalize caption center center-left center-right circle close-quote code collapse compact condensed '+ + 'continuous counter counters crop cross crosshair cursive dashed decimal decimal-leading-zero default digits disc dotted double '+ + 'embed embossed e-resize expanded extra-condensed extra-expanded fantasy far-left far-right fast faster fixed format fuchsia '+ + 'gray green groove handheld hebrew help hidden hide high higher icon inline-table inline inset inside invert italic '+ + 'justify landscape large larger left-side left leftwards level lighter lime line-through list-item local loud lower-alpha '+ + 'lowercase lower-greek lower-latin lower-roman lower low ltr marker maroon medium message-box middle mix move narrower '+ + 'navy ne-resize no-close-quote none no-open-quote no-repeat normal nowrap n-resize nw-resize oblique olive once open-quote outset '+ + 'outside overline pointer portrait pre print projection purple red relative repeat repeat-x repeat-y rgb ridge right right-side '+ + 'rightwards rtl run-in screen scroll semi-condensed semi-expanded separate se-resize show silent silver slower slow '+ + 'small small-caps small-caption smaller soft solid speech spell-out square s-resize static status-bar sub super sw-resize '+ + 'table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group teal '+ + 'text-bottom text-top thick thin top transparent tty tv ultra-condensed ultra-expanded underline upper-alpha uppercase upper-latin '+ + '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'; + + var fonts = '[mM]onospace [tT]ahoma [vV]erdana [aA]rial [hH]elvetica [sS]ans-serif [sS]erif [cC]ourier mono sans serif'; + + this.regexList = [ + { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments + { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings + { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings + { regex: /\#[a-fA-F0-9]{3,6}/g, css: 'value' }, // html colors + { regex: /(-?\d+)(\.\d+)?(px|em|pt|\:|\%|)/g, css: 'value' }, // sizes + { regex: /!important/g, css: 'color3' }, // !important + { regex: new RegExp(getKeywordsCSS(keywords), 'gm'), css: 'keyword' }, // keywords + { regex: new RegExp(getValuesCSS(values), 'g'), css: 'value' }, // values + { regex: new RegExp(this.getKeywords(fonts), 'g'), css: 'color1' } // fonts + ]; + + this.forHtmlScript({ + left: /(<|<)\s*style.*?(>|>)/gi, + right: /(<|<)\/\s*style\s*(>|>)/gi + }); +}; + +SyntaxHighlighter.brushes.CSS.prototype = new SyntaxHighlighter.Highlighter(); +SyntaxHighlighter.brushes.CSS.aliases = ['css']; diff --git a/news/trunk/plugins/content/codecitation/scripts/shBrushDelphi.js b/news/trunk/plugins/content/codecitation/scripts/shBrushDelphi.js new file mode 100644 index 00000000..b347431e --- /dev/null +++ b/news/trunk/plugins/content/codecitation/scripts/shBrushDelphi.js @@ -0,0 +1,57 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/ + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate + * + * @version + * 2.0.320 (May 03 2009) + * + * @copyright + * Copyright (C) 2004-2009 Alex Gorbatchev. + * + * @license + * This file is part of SyntaxHighlighter. + * + * SyntaxHighlighter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * SyntaxHighlighter is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with SyntaxHighlighter. If not, see . + */ +SyntaxHighlighter.brushes.Delphi = function() +{ + var keywords = 'abs addr and ansichar ansistring array as asm begin boolean byte cardinal ' + + 'case char class comp const constructor currency destructor div do double ' + + 'downto else end except exports extended false file finalization finally ' + + 'for function goto if implementation in inherited int64 initialization ' + + 'integer interface is label library longint longword mod nil not object ' + + 'of on or packed pansichar pansistring pchar pcurrency pdatetime pextended ' + + 'pint64 pointer private procedure program property pshortstring pstring ' + + 'pvariant pwidechar pwidestring protected public published raise real real48 ' + + 'record repeat set shl shortint shortstring shr single smallint string then ' + + 'threadvar to true try type unit until uses val var varirnt while widechar ' + + 'widestring with word write writeln xor'; + + this.regexList = [ + { regex: /\(\*[\s\S]*?\*\)/gm, css: 'comments' }, // multiline comments (* *) + { regex: /{(?!\$)[\s\S]*?}/gm, css: 'comments' }, // multiline comments { } + { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line + { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings + { regex: /\{\$[a-zA-Z]+ .+\}/g, css: 'color1' }, // compiler Directives and Region tags + { regex: /\b[\d\.]+\b/g, css: 'value' }, // numbers 12345 + { regex: /\$[a-zA-Z0-9]+\b/g, css: 'value' }, // numbers $F5D3 + { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keyword + ]; +}; + +SyntaxHighlighter.brushes.Delphi.prototype = new SyntaxHighlighter.Highlighter(); +SyntaxHighlighter.brushes.Delphi.aliases = ['delphi', 'pascal']; diff --git a/news/trunk/plugins/content/codecitation/scripts/shBrushDiff.js b/news/trunk/plugins/content/codecitation/scripts/shBrushDiff.js new file mode 100644 index 00000000..d4d0122c --- /dev/null +++ b/news/trunk/plugins/content/codecitation/scripts/shBrushDiff.js @@ -0,0 +1,43 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/ + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate + * + * @version + * 2.0.320 (May 03 2009) + * + * @copyright + * Copyright (C) 2004-2009 Alex Gorbatchev. + * + * @license + * This file is part of SyntaxHighlighter. + * + * SyntaxHighlighter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * SyntaxHighlighter is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with SyntaxHighlighter. If not, see . + */ +SyntaxHighlighter.brushes.Diff = function() +{ + this.regexList = [ + { regex: /^\+\+\+.*$/gm, css: 'color2' }, + { regex: /^\-\-\-.*$/gm, css: 'color2' }, + { regex: /^\s.*$/gm, css: 'color1' }, + { regex: /^@@.*@@$/gm, css: 'variable' }, + { regex: /^\+[^\+]{1}.*$/gm, css: 'string' }, + { regex: /^\-[^\-]{1}.*$/gm, css: 'comments' } + ]; +}; + +SyntaxHighlighter.brushes.Diff.prototype = new SyntaxHighlighter.Highlighter(); +SyntaxHighlighter.brushes.Diff.aliases = ['diff', 'patch']; diff --git a/news/trunk/plugins/content/codecitation/scripts/shBrushGroovy.js b/news/trunk/plugins/content/codecitation/scripts/shBrushGroovy.js new file mode 100644 index 00000000..718a7429 --- /dev/null +++ b/news/trunk/plugins/content/codecitation/scripts/shBrushGroovy.js @@ -0,0 +1,69 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/ + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate + * + * @version + * 2.0.320 (May 03 2009) + * + * @copyright + * Copyright (C) 2004-2009 Alex Gorbatchev. + * + * @license + * This file is part of SyntaxHighlighter. + * + * SyntaxHighlighter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * SyntaxHighlighter is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with SyntaxHighlighter. If not, see . + */ +SyntaxHighlighter.brushes.Groovy = function() +{ + // Contributed by Andres Almiray + // http://jroller.com/aalmiray/entry/nice_source_code_syntax_highlighter + + var keywords = 'as assert break case catch class continue def default do else extends finally ' + + 'if in implements import instanceof interface new package property return switch ' + + 'throw throws try while public protected private static'; + var types = 'void boolean byte char short int long float double'; + var constants = 'null'; + var methods = 'allProperties count get size '+ + 'collect each eachProperty eachPropertyName eachWithIndex find findAll ' + + 'findIndexOf grep inject max min reverseEach sort ' + + 'asImmutable asSynchronized flatten intersect join pop reverse subMap toList ' + + 'padRight padLeft contains eachMatch toCharacter toLong toUrl tokenize ' + + 'eachFile eachFileRecurse eachB yte eachLine readBytes readLine getText ' + + 'splitEachLine withReader append encodeBase64 decodeBase64 filterLine ' + + 'transformChar transformLine withOutputStream withPrintWriter withStream ' + + 'withStreams withWriter withWriterAppend write writeLine '+ + 'dump inspect invokeMethod print println step times upto use waitForOrKill '+ + 'getText'; + + this.regexList = [ + { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments + { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments + { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings + { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings + { regex: /""".*"""/g, css: 'string' }, // GStrings + { regex: new RegExp('\\b([\\d]+(\\.[\\d]+)?|0x[a-f0-9]+)\\b', 'gi'), css: 'value' }, // numbers + { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // goovy keyword + { regex: new RegExp(this.getKeywords(types), 'gm'), css: 'color1' }, // goovy/java type + { regex: new RegExp(this.getKeywords(constants), 'gm'), css: 'constants' }, // constants + { regex: new RegExp(this.getKeywords(methods), 'gm'), css: 'functions' } // methods + ]; + + this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); +} + +SyntaxHighlighter.brushes.Groovy.prototype = new SyntaxHighlighter.Highlighter(); +SyntaxHighlighter.brushes.Groovy.aliases = ['groovy']; diff --git a/news/trunk/plugins/content/codecitation/scripts/shBrushJScript.js b/news/trunk/plugins/content/codecitation/scripts/shBrushJScript.js new file mode 100644 index 00000000..8521ffde --- /dev/null +++ b/news/trunk/plugins/content/codecitation/scripts/shBrushJScript.js @@ -0,0 +1,52 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/ + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate + * + * @version + * 2.0.320 (May 03 2009) + * + * @copyright + * Copyright (C) 2004-2009 Alex Gorbatchev. + * + * @license + * This file is part of SyntaxHighlighter. + * + * SyntaxHighlighter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * SyntaxHighlighter is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with SyntaxHighlighter. If not, see . + */ +SyntaxHighlighter.brushes.JScript = function() +{ + var keywords = 'break case catch continue ' + + 'default delete do else false ' + + 'for function if in instanceof ' + + 'new null return super switch ' + + 'this throw true try typeof var while with' + ; + + this.regexList = [ + { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments + { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments + { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings + { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings + { regex: /\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion + { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords + ]; + + this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags); +}; + +SyntaxHighlighter.brushes.JScript.prototype = new SyntaxHighlighter.Highlighter(); +SyntaxHighlighter.brushes.JScript.aliases = ['js', 'jscript', 'javascript']; diff --git a/news/trunk/plugins/content/codecitation/scripts/shBrushJava.js b/news/trunk/plugins/content/codecitation/scripts/shBrushJava.js new file mode 100644 index 00000000..a19cdbc9 --- /dev/null +++ b/news/trunk/plugins/content/codecitation/scripts/shBrushJava.js @@ -0,0 +1,55 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/ + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate + * + * @version + * 2.0.320 (May 03 2009) + * + * @copyright + * Copyright (C) 2004-2009 Alex Gorbatchev. + * + * @license + * This file is part of SyntaxHighlighter. + * + * SyntaxHighlighter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * SyntaxHighlighter is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with SyntaxHighlighter. If not, see . + */ +SyntaxHighlighter.brushes.Java = function() +{ + var keywords = 'abstract assert boolean break byte case catch char class const ' + + 'continue default do double else enum extends ' + + 'false final finally float for goto if implements import ' + + 'instanceof int interface long native new null ' + + 'package private protected public return ' + + 'short static strictfp super switch synchronized this throw throws true ' + + 'transient try void volatile while'; + + this.regexList = [ + { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments + { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments + { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings + { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings + { regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers + { regex: /(?!\@interface\b)\@[\$\w]+\b/g, css: 'color1' }, // annotation @anno + { regex: /\@interface\b/g, css: 'color2' }, // @interface keyword + { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // java keyword + ]; + + this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); +}; + +SyntaxHighlighter.brushes.Java.prototype = new SyntaxHighlighter.Highlighter(); +SyntaxHighlighter.brushes.Java.aliases = ['java']; diff --git a/news/trunk/plugins/content/codecitation/scripts/shBrushJavaFX.js b/news/trunk/plugins/content/codecitation/scripts/shBrushJavaFX.js new file mode 100644 index 00000000..1473019d --- /dev/null +++ b/news/trunk/plugins/content/codecitation/scripts/shBrushJavaFX.js @@ -0,0 +1,60 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/ + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate + * + * @version + * 2.0.320 (May 03 2009) + * + * @copyright + * Copyright (C) 2004-2009 Alex Gorbatchev. + * + * @license + * This file is part of SyntaxHighlighter. + * + * SyntaxHighlighter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * SyntaxHighlighter is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with SyntaxHighlighter. If not, see . + */ +SyntaxHighlighter.brushes.JavaFX = function() +{ + // Contributed by Patrick Webster + // http://patrickwebster.blogspot.com/2009/04/javafx-brush-for-syntaxhighlighter.html + var datatypes = 'Boolean Byte Character Double Duration ' + + 'Float Integer Long Number Short String Void' + ; + + var keywords = 'abstract after and as assert at before bind bound break catch class ' + + 'continue def delete else exclusive extends false finally first for from ' + + 'function if import in indexof init insert instanceof into inverse last ' + + 'lazy mixin mod nativearray new not null on or override package postinit ' + + 'protected public public-init public-read replace return reverse sizeof ' + + 'step super then this throw true try tween typeof var where while with ' + + 'attribute let private readonly static trigger' + ; + + this.regexList = [ + { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, + { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, + { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, + { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, + { regex: /(-?\.?)(\b(\d*\.?\d+|\d+\.?\d*)(e[+-]?\d+)?|0x[a-f\d]+)\b\.?/gi, css: 'color2' }, // numbers + { regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'variable' }, // datatypes + { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } + ]; + this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); +}; + +SyntaxHighlighter.brushes.JavaFX.prototype = new SyntaxHighlighter.Highlighter(); +SyntaxHighlighter.brushes.JavaFX.aliases = ['jfx', 'javafx']; diff --git a/news/trunk/plugins/content/codecitation/scripts/shBrushPerl.js b/news/trunk/plugins/content/codecitation/scripts/shBrushPerl.js new file mode 100644 index 00000000..3d076d9e --- /dev/null +++ b/news/trunk/plugins/content/codecitation/scripts/shBrushPerl.js @@ -0,0 +1,74 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/ + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate + * + * @version + * 2.0.320 (May 03 2009) + * + * @copyright + * Copyright (C) 2004-2009 Alex Gorbatchev. + * + * @license + * This file is part of SyntaxHighlighter. + * + * SyntaxHighlighter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * SyntaxHighlighter is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with SyntaxHighlighter. If not, see . + */ +SyntaxHighlighter.brushes.Perl = function() +{ + // Contributed by David Simmons-Duffin and Marty Kube + + var funcs = + 'abs accept alarm atan2 bind binmode chdir chmod chomp chop chown chr ' + + 'chroot close closedir connect cos crypt defined delete each endgrent ' + + 'endhostent endnetent endprotoent endpwent endservent eof exec exists ' + + 'exp fcntl fileno flock fork format formline getc getgrent getgrgid ' + + 'getgrnam gethostbyaddr gethostbyname gethostent getlogin getnetbyaddr ' + + 'getnetbyname getnetent getpeername getpgrp getppid getpriority ' + + 'getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid ' + + 'getservbyname getservbyport getservent getsockname getsockopt glob ' + + 'gmtime grep hex index int ioctl join keys kill lc lcfirst length link ' + + 'listen localtime lock log lstat map mkdir msgctl msgget msgrcv msgsnd ' + + 'oct open opendir ord pack pipe pop pos print printf prototype push ' + + 'quotemeta rand read readdir readline readlink readpipe recv rename ' + + 'reset reverse rewinddir rindex rmdir scalar seek seekdir select semctl ' + + 'semget semop send setgrent sethostent setnetent setpgrp setpriority ' + + 'setprotoent setpwent setservent setsockopt shift shmctl shmget shmread ' + + 'shmwrite shutdown sin sleep socket socketpair sort splice split sprintf ' + + 'sqrt srand stat study substr symlink syscall sysopen sysread sysseek ' + + 'system syswrite tell telldir time times tr truncate uc ucfirst umask ' + + 'undef unlink unpack unshift utime values vec wait waitpid warn write'; + + var keywords = + 'bless caller continue dbmclose dbmopen die do dump else elsif eval exit ' + + 'for foreach goto if import last local my next no our package redo ref ' + + 'require return sub tie tied unless untie until use wantarray while'; + + this.regexList = [ + { regex: new RegExp('#[^!].*$', 'gm'), css: 'comments' }, + { regex: new RegExp('^\\s*#!.*$', 'gm'), css: 'preprocessor' }, // shebang + { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, + { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, + { regex: new RegExp('(\\$|@|%)\\w+', 'g'), css: 'variable' }, + { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, + { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } + ]; + + this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags); +} + +SyntaxHighlighter.brushes.Perl.prototype = new SyntaxHighlighter.Highlighter(); +SyntaxHighlighter.brushes.Perl.aliases = ['perl', 'Perl', 'pl']; \ No newline at end of file diff --git a/news/trunk/plugins/content/codecitation/scripts/shBrushPhp.js b/news/trunk/plugins/content/codecitation/scripts/shBrushPhp.js new file mode 100644 index 00000000..9b4f857b --- /dev/null +++ b/news/trunk/plugins/content/codecitation/scripts/shBrushPhp.js @@ -0,0 +1,91 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/ + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate + * + * @version + * 2.0.320 (May 03 2009) + * + * @copyright + * Copyright (C) 2004-2009 Alex Gorbatchev. + * + * @license + * This file is part of SyntaxHighlighter. + * + * SyntaxHighlighter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * SyntaxHighlighter is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with SyntaxHighlighter. If not, see . + */ +SyntaxHighlighter.brushes.Php = function() +{ + var funcs = 'abs acos acosh addcslashes addslashes ' + + 'array_change_key_case array_chunk array_combine array_count_values array_diff '+ + 'array_diff_assoc array_diff_key array_diff_uassoc array_diff_ukey array_fill '+ + 'array_filter array_flip array_intersect array_intersect_assoc array_intersect_key '+ + 'array_intersect_uassoc array_intersect_ukey array_key_exists array_keys array_map '+ + 'array_merge array_merge_recursive array_multisort array_pad array_pop array_product '+ + 'array_push array_rand array_reduce array_reverse array_search array_shift '+ + 'array_slice array_splice array_sum array_udiff array_udiff_assoc '+ + 'array_udiff_uassoc array_uintersect array_uintersect_assoc '+ + 'array_uintersect_uassoc array_unique array_unshift array_values array_walk '+ + 'array_walk_recursive atan atan2 atanh base64_decode base64_encode base_convert '+ + 'basename bcadd bccomp bcdiv bcmod bcmul bindec bindtextdomain bzclose bzcompress '+ + 'bzdecompress bzerrno bzerror bzerrstr bzflush bzopen bzread bzwrite ceil chdir '+ + 'checkdate checkdnsrr chgrp chmod chop chown chr chroot chunk_split class_exists '+ + 'closedir closelog copy cos cosh count count_chars date decbin dechex decoct '+ + 'deg2rad delete ebcdic2ascii echo empty end ereg ereg_replace eregi eregi_replace error_log '+ + 'error_reporting escapeshellarg escapeshellcmd eval exec exit exp explode extension_loaded '+ + 'feof fflush fgetc fgetcsv fgets fgetss file_exists file_get_contents file_put_contents '+ + 'fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype '+ + 'floatval flock floor flush fmod fnmatch fopen fpassthru fprintf fputcsv fputs fread fscanf '+ + 'fseek fsockopen fstat ftell ftok getallheaders getcwd getdate getenv gethostbyaddr gethostbyname '+ + 'gethostbynamel getimagesize getlastmod getmxrr getmygid getmyinode getmypid getmyuid getopt '+ + 'getprotobyname getprotobynumber getrandmax getrusage getservbyname getservbyport gettext '+ + 'gettimeofday gettype glob gmdate gmmktime ini_alter ini_get ini_get_all ini_restore ini_set '+ + 'interface_exists intval ip2long is_a is_array is_bool is_callable is_dir is_double '+ + 'is_executable is_file is_finite is_float is_infinite is_int is_integer is_link is_long '+ + 'is_nan is_null is_numeric is_object is_readable is_real is_resource is_scalar is_soap_fault '+ + 'is_string is_subclass_of is_uploaded_file is_writable is_writeable mkdir mktime nl2br '+ + 'parse_ini_file parse_str parse_url passthru pathinfo readlink realpath rewind rewinddir rmdir '+ + 'round str_ireplace str_pad str_repeat str_replace str_rot13 str_shuffle str_split '+ + 'str_word_count strcasecmp strchr strcmp strcoll strcspn strftime strip_tags stripcslashes '+ + 'stripos stripslashes stristr strlen strnatcasecmp strnatcmp strncasecmp strncmp strpbrk '+ + 'strpos strptime strrchr strrev strripos strrpos strspn strstr strtok strtolower strtotime '+ + 'strtoupper strtr strval substr substr_compare'; + + var keywords = 'and or xor array as break case ' + + 'cfunction class const continue declare default die do else ' + + 'elseif enddeclare endfor endforeach endif endswitch endwhile ' + + 'extends for foreach function include include_once global if ' + + 'new old_function return static switch use require require_once ' + + 'var while abstract interface public implements extends private protected throw'; + + var constants = '__FILE__ __LINE__ __METHOD__ __FUNCTION__ __CLASS__'; + + this.regexList = [ + { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments + { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments + { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings + { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings + { regex: /\$\w+/g, css: 'variable' }, // variables + { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // common functions + { regex: new RegExp(this.getKeywords(constants), 'gmi'), css: 'constants' }, // constants + { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keyword + ]; + + this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags); +}; + +SyntaxHighlighter.brushes.Php.prototype = new SyntaxHighlighter.Highlighter(); +SyntaxHighlighter.brushes.Php.aliases = ['php']; diff --git a/news/trunk/plugins/content/codecitation/scripts/shBrushPlain.js b/news/trunk/plugins/content/codecitation/scripts/shBrushPlain.js new file mode 100644 index 00000000..41db4ba1 --- /dev/null +++ b/news/trunk/plugins/content/codecitation/scripts/shBrushPlain.js @@ -0,0 +1,35 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/ + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate + * + * @version + * 2.0.320 (May 03 2009) + * + * @copyright + * Copyright (C) 2004-2009 Alex Gorbatchev. + * + * @license + * This file is part of SyntaxHighlighter. + * + * SyntaxHighlighter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * SyntaxHighlighter is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with SyntaxHighlighter. If not, see . + */ +SyntaxHighlighter.brushes.Plain = function() +{ +}; + +SyntaxHighlighter.brushes.Plain.prototype = new SyntaxHighlighter.Highlighter(); +SyntaxHighlighter.brushes.Plain.aliases = ['text', 'plain']; diff --git a/news/trunk/plugins/content/codecitation/scripts/shBrushPowerShell.js b/news/trunk/plugins/content/codecitation/scripts/shBrushPowerShell.js new file mode 100644 index 00000000..11d93ac0 --- /dev/null +++ b/news/trunk/plugins/content/codecitation/scripts/shBrushPowerShell.js @@ -0,0 +1,76 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/ + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate + * + * @version + * 2.0.320 (May 03 2009) + * + * @copyright + * Copyright (C) 2004-2009 Alex Gorbatchev. + * + * @license + * This file is part of SyntaxHighlighter. + * + * SyntaxHighlighter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * SyntaxHighlighter is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with SyntaxHighlighter. If not, see . + */ +SyntaxHighlighter.brushes.PowerShell = function() +{ + // Contributes by B.v.Zanten, Getronics + // http://confluence.atlassian.com/display/CONFEXT/New+Code+Macro + + var keywords = 'Add-Content Add-History Add-Member Add-PSSnapin Clear(-Content)? Clear-Item ' + + 'Clear-ItemProperty Clear-Variable Compare-Object ConvertFrom-SecureString Convert-Path ' + + 'ConvertTo-Html ConvertTo-SecureString Copy(-Item)? Copy-ItemProperty Export-Alias ' + + 'Export-Clixml Export-Console Export-Csv ForEach(-Object)? Format-Custom Format-List ' + + 'Format-Table Format-Wide Get-Acl Get-Alias Get-AuthenticodeSignature Get-ChildItem Get-Command ' + + 'Get-Content Get-Credential Get-Culture Get-Date Get-EventLog Get-ExecutionPolicy ' + + 'Get-Help Get-History Get-Host Get-Item Get-ItemProperty Get-Location Get-Member ' + + 'Get-PfxCertificate Get-Process Get-PSDrive Get-PSProvider Get-PSSnapin Get-Service ' + + 'Get-TraceSource Get-UICulture Get-Unique Get-Variable Get-WmiObject Group-Object ' + + 'Import-Alias Import-Clixml Import-Csv Invoke-Expression Invoke-History Invoke-Item ' + + 'Join-Path Measure-Command Measure-Object Move(-Item)? Move-ItemProperty New-Alias ' + + 'New-Item New-ItemProperty New-Object New-PSDrive New-Service New-TimeSpan ' + + 'New-Variable Out-Default Out-File Out-Host Out-Null Out-Printer Out-String Pop-Location ' + + 'Push-Location Read-Host Remove-Item Remove-ItemProperty Remove-PSDrive Remove-PSSnapin ' + + 'Remove-Variable Rename-Item Rename-ItemProperty Resolve-Path Restart-Service Resume-Service ' + + 'Select-Object Select-String Set-Acl Set-Alias Set-AuthenticodeSignature Set-Content ' + + 'Set-Date Set-ExecutionPolicy Set-Item Set-ItemProperty Set-Location Set-PSDebug ' + + 'Set-Service Set-TraceSource Set(-Variable)? Sort-Object Split-Path Start-Service ' + + 'Start-Sleep Start-Transcript Stop-Process Stop-Service Stop-Transcript Suspend-Service ' + + 'Tee-Object Test-Path Trace-Command Update-FormatData Update-TypeData Where(-Object)? ' + + 'Write-Debug Write-Error Write(-Host)? Write-Output Write-Progress Write-Verbose Write-Warning'; + var alias = 'ac asnp clc cli clp clv cpi cpp cvpa diff epal epcsv fc fl ' + + 'ft fw gal gc gci gcm gdr ghy gi gl gm gp gps group gsv ' + + 'gsnp gu gv gwmi iex ihy ii ipal ipcsv mi mp nal ndr ni nv oh rdr ' + + 'ri rni rnp rp rsnp rv rvpa sal sasv sc select si sl sleep sort sp ' + + 'spps spsv sv tee cat cd cp h history kill lp ls ' + + 'mount mv popd ps pushd pwd r rm rmdir echo cls chdir del dir ' + + 'erase rd ren type % \\?'; + + this.regexList = [ + { regex: /#.*$/gm, css: 'comments' }, // one line comments + { regex: /\$[a-zA-Z0-9]+\b/g, css: 'value' }, // variables $Computer1 + { regex: /\-[a-zA-Z]+\b/g, css: 'keyword' }, // Operators -not -and -eq + { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings + { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings + { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' }, + { regex: new RegExp(this.getKeywords(alias), 'gmi'), css: 'keyword' } + ]; +}; + +SyntaxHighlighter.brushes.PowerShell.prototype = new SyntaxHighlighter.Highlighter(); +SyntaxHighlighter.brushes.PowerShell.aliases = ['powershell', 'ps']; diff --git a/news/trunk/plugins/content/codecitation/scripts/shBrushPython.js b/news/trunk/plugins/content/codecitation/scripts/shBrushPython.js new file mode 100644 index 00000000..4f1ec5e6 --- /dev/null +++ b/news/trunk/plugins/content/codecitation/scripts/shBrushPython.js @@ -0,0 +1,56 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/ + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate + * + * @version + * 2.0.320 (May 03 2009) + * + * @copyright + * Copyright (C) 2004-2009 Alex Gorbatchev. + * + * @license + * This file is part of SyntaxHighlighter. + * + * SyntaxHighlighter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * SyntaxHighlighter is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with SyntaxHighlighter. If not, see . + */ +SyntaxHighlighter.brushes.Python = function() +{ + // Contributed by Gheorghe Milas + + var keywords = 'and assert break class continue def del elif else ' + + 'except exec finally for from global if import in is ' + + 'lambda not or pass print raise return try yield while'; + + var special = 'None True False self cls class_'; + + this.regexList = [ + { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, + { regex: /^\s*@\w+/gm, css: 'decorator' }, + { regex: /(['\"]{3})([^\1])*?\1/gm, css: 'comments' }, + { regex: /"(?!")(?:\.|\\\"|[^\""\n])*"/gm, css: 'string' }, + { regex: /'(?!')(?:\.|(\\\')|[^\''\n])*'/gm, css: 'string' }, + { regex: /\+|\-|\*|\/|\%|=|==/gm, css: 'keyword' }, + { regex: /\b\d+\.?\w*/g, css: 'value' }, + { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, + { regex: new RegExp(this.getKeywords(special), 'gm'), css: 'color1' } + ]; + + this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); +}; + +SyntaxHighlighter.brushes.Python.prototype = new SyntaxHighlighter.Highlighter(); +SyntaxHighlighter.brushes.Python.aliases = ['py', 'python']; diff --git a/news/trunk/plugins/content/codecitation/scripts/shBrushRuby.js b/news/trunk/plugins/content/codecitation/scripts/shBrushRuby.js new file mode 100644 index 00000000..3f6963b6 --- /dev/null +++ b/news/trunk/plugins/content/codecitation/scripts/shBrushRuby.js @@ -0,0 +1,57 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/ + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate + * + * @version + * 2.0.320 (May 03 2009) + * + * @copyright + * Copyright (C) 2004-2009 Alex Gorbatchev. + * + * @license + * This file is part of SyntaxHighlighter. + * + * SyntaxHighlighter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * SyntaxHighlighter is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with SyntaxHighlighter. If not, see . + */ +SyntaxHighlighter.brushes.Ruby = function() +{ + // Contributed by Erik Peterson. + + var keywords = 'alias and BEGIN begin break case class def define_method defined do each else elsif ' + + 'END end ensure false for if in module new next nil not or raise redo rescue retry return ' + + 'self super then throw true undef unless until when while yield'; + + var builtins = 'Array Bignum Binding Class Continuation Dir Exception FalseClass File::Stat File Fixnum Fload ' + + 'Hash Integer IO MatchData Method Module NilClass Numeric Object Proc Range Regexp String Struct::TMS Symbol ' + + 'ThreadGroup Thread Time TrueClass'; + + this.regexList = [ + { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments + { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings + { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings + { regex: /\b[A-Z0-9_]+\b/g, css: 'constants' }, // constants + { regex: /:[a-z][A-Za-z0-9_]*/g, css: 'color2' }, // symbols + { regex: /(\$|@@|@)\w+/g, css: 'variable bold' }, // $global, @instance, and @@class variables + { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords + { regex: new RegExp(this.getKeywords(builtins), 'gm'), css: 'color1' } // builtins + ]; + + this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); +}; + +SyntaxHighlighter.brushes.Ruby.prototype = new SyntaxHighlighter.Highlighter(); +SyntaxHighlighter.brushes.Ruby.aliases = ['ruby', 'rails', 'ror']; diff --git a/news/trunk/plugins/content/codecitation/scripts/shBrushScala.js b/news/trunk/plugins/content/codecitation/scripts/shBrushScala.js new file mode 100644 index 00000000..fb39eee3 --- /dev/null +++ b/news/trunk/plugins/content/codecitation/scripts/shBrushScala.js @@ -0,0 +1,53 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/ + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate + * + * @version + * 2.0.320 (May 03 2009) + * + * @copyright + * Copyright (C) 2004-2009 Alex Gorbatchev. + * + * @license + * This file is part of SyntaxHighlighter. + * + * SyntaxHighlighter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * SyntaxHighlighter is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with SyntaxHighlighter. If not, see . + */ +SyntaxHighlighter.brushes.Scala = function() +{ + // Contributed by Yegor Jbanov and David Bernard. + + var keywords = 'val sealed case def true trait implicit forSome import match object null finally super ' + + 'override try lazy for var catch throw type extends class while with new final yield abstract ' + + 'else do if return protected private this package false'; + + var keyops = '[_:=><%#@]+'; + + this.regexList = [ + { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments + { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments + { regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // multi-line strings + { regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double-quoted string + { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings + { regex: /0x[a-f0-9]+|\d+(\.\d+)?/gi, css: 'value' }, // numbers + { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords + { regex: new RegExp(keyops, 'gm'), css: 'keyword' } // scala keyword + ]; +} + +SyntaxHighlighter.brushes.Scala.prototype = new SyntaxHighlighter.Highlighter(); +SyntaxHighlighter.brushes.Scala.aliases = ['scala']; diff --git a/news/trunk/plugins/content/codecitation/scripts/shBrushSql.js b/news/trunk/plugins/content/codecitation/scripts/shBrushSql.js new file mode 100644 index 00000000..1daba50f --- /dev/null +++ b/news/trunk/plugins/content/codecitation/scripts/shBrushSql.js @@ -0,0 +1,68 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/ + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate + * + * @version + * 2.0.320 (May 03 2009) + * + * @copyright + * Copyright (C) 2004-2009 Alex Gorbatchev. + * + * @license + * This file is part of SyntaxHighlighter. + * + * SyntaxHighlighter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * SyntaxHighlighter is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with SyntaxHighlighter. If not, see . + */ +SyntaxHighlighter.brushes.Sql = function() +{ + var funcs = 'abs avg case cast coalesce convert count current_timestamp ' + + 'current_user day isnull left lower month nullif replace right ' + + 'session_user space substring sum system_user upper user year'; + + var keywords = 'absolute action add after alter as asc at authorization begin bigint ' + + 'binary bit by cascade char character check checkpoint close collate ' + + 'column commit committed connect connection constraint contains continue ' + + 'create cube current current_date current_time cursor database date ' + + 'deallocate dec decimal declare default delete desc distinct double drop ' + + 'dynamic else end end-exec escape except exec execute false fetch first ' + + 'float for force foreign forward free from full function global goto grant ' + + 'group grouping having hour ignore index inner insensitive insert instead ' + + 'int integer intersect into is isolation key last level load local max min ' + + 'minute modify move name national nchar next no numeric of off on only ' + + 'open option order out output partial password precision prepare primary ' + + 'prior privileges procedure public read real references relative repeatable ' + + 'restrict return returns revoke rollback rollup rows rule schema scroll ' + + 'second section select sequence serializable set size smallint static ' + + 'statistics table temp temporary then time timestamp to top transaction ' + + 'translation trigger true truncate uncommitted union unique update values ' + + 'varchar varying view when where with work'; + + var operators = 'all and any between cross in join like not null or outer some'; + + this.regexList = [ + { regex: /--(.*)$/gm, css: 'comments' }, // one line and multiline comments + { regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings + { regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // single quoted strings + { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'color2' }, // functions + { regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // operators and such + { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword + ]; +}; + +SyntaxHighlighter.brushes.Sql.prototype = new SyntaxHighlighter.Highlighter(); +SyntaxHighlighter.brushes.Sql.aliases = ['sql']; + diff --git a/news/trunk/plugins/content/codecitation/scripts/shBrushVb.js b/news/trunk/plugins/content/codecitation/scripts/shBrushVb.js new file mode 100644 index 00000000..8498b9a5 --- /dev/null +++ b/news/trunk/plugins/content/codecitation/scripts/shBrushVb.js @@ -0,0 +1,58 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/ + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate + * + * @version + * 2.0.320 (May 03 2009) + * + * @copyright + * Copyright (C) 2004-2009 Alex Gorbatchev. + * + * @license + * This file is part of SyntaxHighlighter. + * + * SyntaxHighlighter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * SyntaxHighlighter is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with SyntaxHighlighter. If not, see . + */ +SyntaxHighlighter.brushes.Vb = function() +{ + var keywords = 'AddHandler AddressOf AndAlso Alias And Ansi As Assembly Auto ' + + 'Boolean ByRef Byte ByVal Call Case Catch CBool CByte CChar CDate ' + + 'CDec CDbl Char CInt Class CLng CObj Const CShort CSng CStr CType ' + + 'Date Decimal Declare Default Delegate Dim DirectCast Do Double Each ' + + 'Else ElseIf End Enum Erase Error Event Exit False Finally For Friend ' + + 'Function Get GetType GoSub GoTo Handles If Implements Imports In ' + + 'Inherits Integer Interface Is Let Lib Like Long Loop Me Mod Module ' + + 'MustInherit MustOverride MyBase MyClass Namespace New Next Not Nothing ' + + 'NotInheritable NotOverridable Object On Option Optional Or OrElse ' + + 'Overloads Overridable Overrides ParamArray Preserve Private Property ' + + 'Protected Public RaiseEvent ReadOnly ReDim REM RemoveHandler Resume ' + + 'Return Select Set Shadows Shared Short Single Static Step Stop String ' + + 'Structure Sub SyncLock Then Throw To True Try TypeOf Unicode Until ' + + 'Variant When While With WithEvents WriteOnly Xor'; + + this.regexList = [ + { regex: /'.*$/gm, css: 'comments' }, // one line comments + { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings + { regex: /^\s*#.*$/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion + { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // vb keyword + ]; + + this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); +}; + +SyntaxHighlighter.brushes.Vb.prototype = new SyntaxHighlighter.Highlighter(); +SyntaxHighlighter.brushes.Vb.aliases = ['vb', 'vbnet']; diff --git a/news/trunk/plugins/content/codecitation/scripts/shBrushXml.js b/news/trunk/plugins/content/codecitation/scripts/shBrushXml.js new file mode 100644 index 00000000..6bf0c205 --- /dev/null +++ b/news/trunk/plugins/content/codecitation/scripts/shBrushXml.js @@ -0,0 +1,71 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/ + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate + * + * @version + * 2.0.320 (May 03 2009) + * + * @copyright + * Copyright (C) 2004-2009 Alex Gorbatchev. + * + * @license + * This file is part of SyntaxHighlighter. + * + * SyntaxHighlighter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * SyntaxHighlighter is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with SyntaxHighlighter. If not, see . + */ +SyntaxHighlighter.brushes.Xml = function() +{ + function process(match, regexInfo) + { + var constructor = SyntaxHighlighter.Match, + code = match[0], + tag = new XRegExp('(<|<)[\\s\\/\\?]*(?[:\\w-\\.]+)', 'xg').exec(code), + result = [] + ; + + if (match.attributes != null) + { + var attributes, + regex = new XRegExp('(? [\\w:\\-\\.]+)' + + '\\s*=\\s*' + + '(? ".*?"|\'.*?\'|\\w+)', + 'xg'); + + while ((attributes = regex.exec(code)) != null) + { + result.push(new constructor(attributes.name, match.index + attributes.index, 'color1')); + result.push(new constructor(attributes.value, match.index + attributes.index + attributes[0].indexOf(attributes.value), 'string')); + } + } + + if (tag != null) + result.push( + new constructor(tag.name, match.index + tag[0].indexOf(tag.name), 'keyword') + ); + + return result; + } + + this.regexList = [ + { regex: new XRegExp('(\\<|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\\>|>)', 'gm'), css: 'color2' }, // + { regex: new XRegExp('(\\<|<)!--\\s*.*?\\s*--(\\>|>)', 'gm'), css: 'comments' }, // + { regex: new XRegExp('(<|<)[\\s\\/\\?]*(\\w+)(?.*?)[\\s\\/\\?]*(>|>)', 'sg'), func: process } + ]; +}; + +SyntaxHighlighter.brushes.Xml.prototype = new SyntaxHighlighter.Highlighter(); +SyntaxHighlighter.brushes.Xml.aliases = ['xml', 'xhtml', 'xslt', 'html', 'xhtml']; diff --git a/news/trunk/plugins/content/codecitation/scripts/shCore.js b/news/trunk/plugins/content/codecitation/scripts/shCore.js new file mode 100644 index 00000000..b2cbd53c --- /dev/null +++ b/news/trunk/plugins/content/codecitation/scripts/shCore.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[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}('l(!1l.2v)q 2v=p(){q k={3Q:{\'1g-V\':\'\',\'3R-2g\':1,\'1A\':v,\'3S-3T\':X,\'2h-2w\':4,\'1I\':Q,\'2T\':X,\'1r\':X,\'2U\':Q,\'3U-3V\':X,\'3W\':Q,\'2V-1m\':X},J:{2W:v,2X:16,2Y:16,3X:Q,3Y:Q,3Z:\'2Z\',1h:{30:\'5y 1i\',31:\'5z 1i\',32:\'5A 5B 40\',41:\'42 K 5C 1J 5D 40 5E\',2x:\'2x\',43:\'?\',1s:\'2v\\n\\n\',44:\'5F\\\'t 5G 45 D: \',46:\'5H 5I\\\'t 5J D 1Z-20 5K: \',47:\'5P33 1.3.12j://49.4a.2k/E.4b/4cK 5R 4i D 5S!(C)5T 34 5U 5V.&1B;42 4i 5W 4j2v 5X 33 2.0.5Y (5Z 60 34)2j://4k.2k61 62-34 63 64.\'},4l:Q},13:{35:v,2z:v,2A:v,36:{}},2l:{},4m:{65:/\\/\\*[\\s\\S]*?\\*\\//37,66:/\\/\\/.*$/37,67:/#.*$/37,68:/"(?:\\.|(\\\\\\")|[^\\""\\n])*"/g,69:/\'(?:\\.|(\\\\\\\')|[^\\\'\'\\n])*\'/g,6a:/"(?:\\.|(\\\\\\")|[^\\""])*"/g,6b:/\'(?:\\.|(\\\\\\\')|[^\\\'\'])*\'/g,4n:/\\w+:\\/\\/[\\w-.\\/?%&=]*/g,6c:{Y:/(&1C;|<)\\?=?/g,1b:/\\?(&21;|>)/g},6d:{Y:/(&1C;|<)%=?/g,1b:/%(&21;|>)/g},6e:{Y:/(&1C;|<)\\s*20.*?(&21;|>)/38,1b:/(&1C;|<)\\/\\s*20\\s*(&21;|>)/38}},1r:{1c:p(a){q b=M.1t(\'2B\'),2m=k.1r.2m;b.N=\'1r\';D(q c 1J 2m){q 4o=2m[c],1L=W 4o(a),1M=1L.1c();a.39[c]=1L;l(1M==v)1D;l(6f(1M)==\'6g\')1M=k.1r.4p(1M,a.1j,c);1M.N+=\'6h \'+c;b.1E(1M)}u b},4p:p(b,c,d){q a=M.1t(\'a\'),12=a.12,J=k.J,1n=J.2X,1u=J.2Y;a.1K=\'#\'+d;a.4q=b;a.22=c;a.4r=d;a.1v=b;l(3a(1n)==Q)12.1n=1n+\'3b\';l(3a(1u)==Q)12.1u=1u+\'3b\';a.6i=p(e){6j{k.1r.4s(8,e||1l.4t,8.22,8.4r)}6k(e){k.B.1s(e.4u)}u Q};u a},4s:p(a,b,c,d,e){q f=k.13.36[c],1L;l(f==v||(1L=f.39[d])==v)u v;u 1L.23(a,b,e)},2m:{30:p(e){8.1c=p(){l(e.Z(\'2U\')!=X)u;u k.J.1h.30};8.23=p(a,b,c){q d=e.A;a.4v.3c(a);d.N=d.N.F(\'3d\',\'\')}},31:p(e){8.1c=p(){u k.J.1h.31};8.23=p(a,b,c){q d=k.B.2C(e.3e).F(/\'+d+\'\');3f.M.3h()}},32:p(f){q g,6q,22=f.1j;8.1c=p(){q d=k.J;l(d.2W==v)u v;p 11(a){q b=\'\';D(q c 1J a)b+="<6r V=\'"+c+"\' 1N=\'"+a[c]+"\'/>";u b};p 24(a){q b=\'\';D(q c 1J a)b+=" "+c+"=\'"+a[c]+"\'";u b};q e={1n:d.2X,1u:d.2Y,1j:22+\'6s\',4x:\'6t/x-4y-4z\',4q:k.J.1h.32},3i={6u:\'6v\',6w:\'6x\',6y:\'22=\'+22,6z:\'Q\'},3j=d.2W,1Z;l(/6A/i.1O(4A.4B)){1Z=\'<4C\'+24({6B:\'6C:6D-6E-6F-6G-6H\',6I:\'2j://6J.6K.2k/6L/4y/6M/4z/6N.6O#33=9,0,0,0\'})+24(e)+\'>\'+11(3i)+11({6P:3j})+\'\'}H{1Z=\'<6Q\'+24(e)+24(3i)+24({6R:3j})+\'/>\'}g=M.1t(\'A\');g.1v=1Z;u g};8.23=p(a,b,c){q d=c.1L;4D(d){2o\'4E\':q e=k.B.2n(k.B.2C(f.3e).F(/&1C;/g,\'<\').F(/&21;/g,\'>\').F(/&6S;/g,\'&\'));l(1l.4F)1l.4F.6T(\'2i\',e);H u k.B.2n(e);2o\'6U\':k.B.1s(k.J.1h.41);25;2o\'6V\':k.B.1s(c.4u);25}}},6W:p(h){8.1c=p(){u k.J.1h.2x};8.23=p(d,e,f){q g=M.1t(\'6X\'),1F=v;l(k.13.2A!=v)M.26.3c(k.13.2A);k.13.2A=g;g.12.6Y=\'6Z:70;1n:4G;1u:4G;Y:-4H;4I:-4H;\';M.26.1E(g);1F=g.3k.M;4J(1F,1l.M);1F.2D(\'\'+h.A.1v+\'\');1F.3h();g.3k.3l();g.3k.2x();p 4J(a,b){q c=b.4K(\'3m\');D(q i=0;i\')}}},74:p(d){8.1c=p(){u k.J.1h.43};8.23=p(a,b){q c=k.B.3g(\'\',\'2y\',75,76,\'4w=0\'),1F=c.M;1F.2D(k.J.1h.47);1F.3h();c.3l()}}}},B:{3n:p(a){u a+2E.77(2E.78()*79).27()},3o:p(a,b){q c={},V;D(V 1J a)c[V]=a[V];D(V 1J b)c[V]=b[V];u c},4N:p(a){4D(a){2o"X":u X;2o"Q":u Q}u a},3g:p(a,b,c,d,e){q x=(4O.1n-c)/2,y=(4O.1u-d)/2;e+=\', Y=\'+x+\', 4I=\'+y+\', 1n=\'+c+\', 1u=\'+d;e=e.F(/^,/,\'\');q f=1l.7a(a,b,e);f.3l();u f},4P:p(a,b,c){l(a.4Q){a[\'e\'+b+c]=c;a[b+c]=p(){a[\'e\'+b+c](1l.4t)};a.4Q(\'7b\'+b,a[b+c])}H{a.7c(b,c,Q)}},1s:p(a){1s(k.J.1h.1s+a)},3p:p(a,b){q c=k.13.35,G=v;l(c==v){c={};D(q d 1J k.2l){q e=k.2l[d].7d;l(e==v)1D;D(q i=0;i(.*?))\\\\]$"),1d=W T("(?[\\\\w-]+)"+"\\\\s*:\\\\s*"+"(?<1N>"+"[\\\\w-%#]+|"+"\\\\[.*?\\\\]|"+\'".*?"|\'+"\'.*?\'"+")\\\\s*;?","g");1R((b=1d.U(a))!=v){q c=b.1N.F(/^[\'"]|[\'"]$/g,\'\');l(c!=v&&3s.1O(c)){q m=3s.U(c);c=m.3t.z>0?m.3t.1Q(/\\s*,\\s*/):[]}G[b.V]=c}u G},28:p(c,d){l(c==v||c.z==0||c==\'\\n\')u c;c=c.F(/\'+a+\'\'});u c},4V:p(a,b){q c=a.27();1R(c.z\'+2p+\'1m">\'+2p+\'2g">\'+2p+\'4X\'+\'"><1k 1g="4Y"><1k 1j="\'+1j+\'">&1B;\'+3v+3v+2q+2q+2q+2q;26.1E(a);1k=M.7g(1j);l(/7h/i.1O(4A.4B)){q b=1l.7i(1k,v);G=4Z(b.7j("1n"))}H{G=1k.7k}26.3c(a);u G},51:p(a,b){q c=\'\';D(q i=0;i|&1C;54\\s*\\/?&21;/38;l(k.J.3X==X)a=a.F(b,\'\\n\');l(k.J.3Y==X)a=a.F(b,\'\');u a},2F:p(a){u a.F(/\\s*$/g,\'\').F(/^\\s*/,\'\')},2n:p(a){q b=k.B.2C(a).1Q(\'\\n\'),7l=W 3w(),1d=/^\\s*/,1T=7m;D(q i=0;i0;i++){q c=b[i];l(k.B.2F(c).z==0)1D;q d=1d.U(c);l(d==v)u a;1T=2E.1T(d[0].z,1T)}l(1T>0)D(q i=0;ib.E)u 1;H{l(a.zb.z)u 1}u 0},2r:p(c,d){p 56(a,b){u[W k.3x(a[0],a.E,b.1P)]};q e=0,I=v,G=[],2s=d.2s?d.2s:56;1R((I=d.1d.U(c))!=v)G=G.2t(2s(I,d));u G},57:p(a){u a.F(k.4m.4n,p(m){u\'\'+m+\'\'})}},1A:p(c,d){p 58(a){q b=[];D(q i=0;i3z)25;H l(c.E==b.E&&c.z>b.z)8.17[i]=v;H l(c.E>=b.E&&c.E<3z)8.17[j]=v}}},5f:p(a){q b=a.1Q(/\\n/g),2H=4Z(8.Z(\'3R-2g\')),5g=(2H+b.z).27().z,5h=8.Z(\'1A\',[]);a=\'\';D(q i=0;i\'+\'\'+5i+\'.\'+\'<1k 1g="4X">\'+(1e!=v?\'\'+1e.F(/\\s/g,\'&1B;\')+\'\':\'\')+\'<1k 1g="4Y" 12="7z-Y: \'+2c+\'3b !3C;">\'+c+\'\'+\'\'+\'\'}u a},5j:p(a,b){q c=0,G=\'\',28=k.B.28;D(q i=0;i"+a.Y.1i+")"+"(?.*?)"+"(?<1b>"+a.1b.1i+")","7I")}}};u k}();l(!3w.14)3w.15.14=p(a,b){b=2E.7J(b||0,0);D(q i=b;i<8.z;i++)l(8[i]==a)u i;u-1};l(!1l.T){(p(){q d={U:18.15.U,I:3E.15.I,F:3E.15.F,1Q:3E.15.1Q},1G={19:/(?:[^\\\\([#\\s.]+|\\\\(?!k<[\\w$]+>|[5m]{[^}]+})[\\S\\s]?|\\((?=\\?(?!#|<[\\w$]+>)))+|(\\()(?:\\?(?:(#)[^)]*\\)|<([$\\w]+)>))?|\\\\(?:k<([\\w$]+)>|[5m]{([^}]+)})|(\\[\\^?)|([\\S\\s])/g,7K:/(?:[^$]+|\\$(?![1-9$&`\']|{[$\\w]+}))+|\\$(?:([1-9]\\d*|[$&`\'])|{([$\\w]+)})/g,2d:/^(?:\\s+|#.*)+/,3F:/^(?:[?*+]|{\\d+(?:,\\d*)?})/,5n:/&&\\[\\^?/g,5o:/]/g},14=p(a,b,c){D(q i=c||0;i-1,2d=b.14("x")>-1,3J=Q,1o=[],L=[],19=1G.19,I,2N,2O,E,1d;19.R=0;1R(I=d.U.2e(19,a)){l(I[2]){l(!1G.3F.1O(a.1f(19.R)))L.O("(?:)")}H l(I[1]){1o.O(I[3]||v);l(I[3])3J=X;L.O("(")}H l(I[4]){E=14(1o,I[4]);L.O(E>-1?"\\\\"+(E+1)+(3a(a.3K(19.R))?"":"(?:)"):I[0])}H l(I[5]){L.O(2K.5u?2K.5u.4E(I[5],I[0].3K(1)==="P"):I[0])}H l(I[6]){l(a.3K(19.R)==="]"){L.O(I[6]==="["?"(?!)":"[\\\\S\\\\s]");19.R++}H{2N=T.5v("&&"+a.1f(I.E),1G.5n,1G.5o,"",{1V:"\\\\"})[0];L.O(I[6]+2N+"]");19.R+=2N.z+1}}H l(I[7]){l(5t&&I[7]==="."){L.O("[\\\\S\\\\s]")}H l(2d&&1G.2d.1O(I[7])){2O=d.U.2e(1G.2d,a.1f(19.R-1))[0].z;l(!1G.3F.1O(a.1f(19.R-1+2O)))L.O("(?:)");19.R+=2O-1}H{L.O(I[7])}}H{L.O(I[0])}}1d=18(L.3r(""),d.F.2e(b,/[7P]+/g,""));1d.1x={1i:a,1o:3J?1o:v};u 1d};T.7Q=p(a,o){2K[a]=o};18.15.U=p(a){q b=d.U.2e(8,a),V,i,3L;l(b){l(5p&&b.z>1){3L=W 18("^"+8.1i+"$(?!\\\\s)",8.3M());d.F.2e(b[0],3L,p(){D(i=1;i<5w.z-2;i++){l(5w[i]===2J)b[i]=2J}})}l(8.1x&&8.1x.1o){D(i=1;i(b.E+b[0].z))8.R--}u b}})()};18.15.3M=p(){u(8.1W?"g":"")+(8.3N?"i":"")+(8.2P?"m":"")+(8.2d?"x":"")+(8.2Q?"y":"")};18.15.2M=p(a){q b=W T(8.1i,(a||"")+8.3M());l(8.1x){b.1x={1i:8.1x.1i,1o:8.1x.1o?8.1x.1o.1f(0):v}}u b};18.15.2e=p(a,b){u 8.U(b)};18.15.7R=p(a,b){u 8.U(b[0])};T.3O=p(a,b){q c="/"+a+"/"+(b||"");u T.3O[c]||(T.3O[c]=W T(a,b))};T.2R=p(a){u a.F(/[-[\\]{}()*+?.\\\\^$|,#\\s]/g,"\\\\$&")};T.5v=p(a,b,c,d,e){q e=e||{},1V=e.1V,1a=e.7S,d=d||"",1W=d.14("g")>-1,3N=d.14("i")>-1,2P=d.14("m")>-1,2Q=d.14("y")>-1,d=d.F(/y/g,""),b=b 3G 18?(b.1W?b:b.2M("g")):W T(b,"g"+d),c=c 3G 18?(c.1W?c:c.2M("g")):W T(c,"g"+d),L=[],2f=0,1p=0,1q=0,1y=0,1X,1Y,1z,1H,2S,3P;l(1V){l(1V.z>1)2L 7T("3H\'t 3I 7U 7V 5s 2R 5x");l(2P)2L 5q("3H\'t 3I 2R 5x 5r 7W 4j 2P 7X");2S=T.2R(1V);3P=W 18("^(?:"+2S+"[\\\\S\\\\s]|(?:(?!"+b.1i+"|"+c.1i+")[^"+2S+"])+)+",3N?"i":"")}1R(X){b.R=c.R=1q+(1V?(3P.U(a.1f(1q))||[""])[0].z:0);1z=b.U(a);1H=c.U(a);l(1z&&1H){l(1z.E<=1H.E)1H=v;H 1z=v}l(1z||1H){1p=(1z||1H).E;1q=(1z?b:c).R}H l(!2f){25}l(2Q&&!2f&&1p>1y)25;l(1z){l(!2f++){1X=1p;1Y=1q}}H l(1H&&2f){l(!--2f){l(1a){l(1a[0]&&1X>1y)L.O([1a[0],a.1f(1y,1X),1y,1X]);l(1a[1])L.O([1a[1],a.1f(1X,1Y),1X,1Y]);l(1a[2])L.O([1a[2],a.1f(1Y,1p),1Y,1p]);l(1a[3])L.O([1a[3],a.1f(1p,1q),1p,1q])}H{L.O(a.1f(1Y,1p))}1y=1q;l(!1W)25}}H{b.R=c.R=0;2L 7Y("7Z 80 81 82 83");}l(1p===1q)1q++}l(1W&&!2Q&&1a&&1a[0]&&a.z>1y)L.O([1a[0],a.1f(1y),1y,a.z]);b.R=c.R=0;u L};',62,500,'||||||||this|||||||||||||if||||function|var||||return|null||||length|div|utils||for|index|replace|result|else|match|config|code|output|document|className|push||false|lastIndex||XRegExp|exec|name|new|true|left|getParam||params|style|vars|indexOf|prototype||matches|RegExp|part|vN|right|create|regex|spaces|slice|class|strings|source|id|span|window|lines|width|captureNames|delimStart|delimEnd|toolbar|alert|createElement|height|innerHTML|htmlScript|_x|lastOuterEnd|leftMatch|highlight|nbsp|lt|continue|appendChild|doc|lib|rightMatch|ruler|in|href|command|element|value|test|css|split|while|substr|min|bar|escapeChar|global|outerStart|innerStart|html|script|gt|highlighterId|execute|attributes|break|body|toString|decorate|highlighter|xmlBrush|regexList|indent|extended|call|openTokens|line|tab|text|http|com|brushes|items|unindent|case|divOpen|closeDiv|getMatches|func|concat|brushName|SyntaxHighlighter|size|print|_blank|spaceWidth|printFrame|DIV|fixInputString|write|Math|trim|offsetMatches|firstLine|tabSize|undefined|plugins|throw|addFlags|cc|len|multiline|sticky|escape|escaped|gutter|collapse|wrap|clipboardSwf|toolbarItemWidth|toolbarItemHeight|pre|expandSource|viewSource|copyToClipboard|version|2009|discoveredBrushes|highlighters|gm|gi|toolbarCommands|isNaN|px|removeChild|collapsed|originalCode|wnd|popup|close|args2|swf|contentWindow|focus|link|guid|merge|findBrush|eachLine|join|arrayRegex|values|measureSpace|closeSpan|Array|Match|HtmlScript|itemIEndPos|lineClass|highlighted|important|hide|String|quantifier|instanceof|can|supply|hasNamedCapture|charAt|r2|getNativeFlags|ignoreCase|cache|esc|defaults|first|smart|tabs|auto|links|light|bloggerMode|stripBrs|tagName|clipboard|copyToClipboardConfirmation|The|help|noBrush|brush|brushNotHtmlScript|aboutDialog|font|www|smartsoftwarebits|php|codecitation|target|color|0099FF|decoration|none|plugin|the|alexgorbatchev|debug|regexLib|url|constructor|createButton|title|commandName|executeCommand|event|message|parentNode|scrollbars|type|shockwave|flash|navigator|userAgent|object|switch|get|clipboardData|0px|500px|top|copyStyles|getElementsByTagName|rel|stylesheet|toBoolean|screen|addEvent|attachEvent|createRuler|showEvery|trimFirstAndLastLines|parseParams|padNumber|syntaxhighlighter|content|block|parseInt||processTabs|processSmartTabs|insertSpaces|br|matchesSortCallback|defaultAdd|processUrls|toArray|propertyName|process|offset|Highlighter|findMatches|removeNestedMatches|createDisplayLines|padLength|highlightedLines|lineNumber|processMatches|plain|show|pP|classLeft|classRight|brokenExecUndef|TypeError|when|one|singleline|unicode|matchRecursive|arguments|character|expand|view|copy|to|is|your|now|Can|find|Brush|wasn|configured|option|align|center|xx|large|CodeCitation|75em|display|Joomla|opyright|Konstantin|Nizhegorodov|uses|engine|320|May|03|Copyright|2004|Alex|Gorbatchev|multiLineCComments|singleLineCComments|singleLinePerlComments|doubleQuotedString|singleQuotedString|multiLineDoubleQuotedString|multiLineSingleQuotedString|phpScriptTags|aspScriptTags|scriptScriptTags|typeof|string|item|onclick|try|catch|750|400|location|resizable|menubar|flashSwf|param|_clipboard|application|allowScriptAccess|always|wmode|transparent|flashVars|menu|msie|classid|clsid|d27cdb6e|ae6d|11cf|96b8|444553540000|codebase|download|macromedia|pub|cabs|swflash|cab|movie|embed|src|amp|setData|ok|error|printSource|IFRAME|cssText|position|absolute|printing|toLowerCase|shCore|about|500|250|round|random|1000000|open|on|addEventListener|aliases|150|middot|getElementById|opera|getComputedStyle|getPropertyValue|offsetWidth|indents|1000|textarea|70em|30em|replaceChild|all|load|Xml|bracketsRegex|lastIndexOf|sort|alt|number|margin|divClassName|highlighter_|nogutter|no|onmouseover|onmouseout|getKeywords|forHtmlScript|sgi|max|replaceVar|flags|constructing|from|another|sx|addPlugin|apply|valueNames|SyntaxError|more|than|using|flag|Error|subject|data|contains|unbalanced|delimiters'.split('|'),0,{})) \ No newline at end of file diff --git a/news/trunk/plugins/content/codecitation/scripts/shLegacy.js b/news/trunk/plugins/content/codecitation/scripts/shLegacy.js new file mode 100644 index 00000000..63837687 --- /dev/null +++ b/news/trunk/plugins/content/codecitation/scripts/shLegacy.js @@ -0,0 +1,30 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/ + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate + * + * @version + * 2.0.320 (May 03 2009) + * + * @copyright + * Copyright (C) 2004-2009 Alex Gorbatchev. + * + * @license + * This file is part of SyntaxHighlighter. + * + * SyntaxHighlighter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * SyntaxHighlighter is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with SyntaxHighlighter. If not, see . + */ +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. + */ +.syntaxhighlighter, +.syntaxhighlighter div, +.syntaxhighlighter code, +.syntaxhighlighter span +{ + margin: 0 !important; + padding: 0 !important; + border: 0 !important; + outline: 0 !important; + background: none !important; + text-align: left !important; + float: none !important; + vertical-align: baseline !important; + position: static !important; + left: auto !important; + top: auto !important; + right: auto !important; + bottom: auto !important; + height: auto !important; + width: auto !important; + line-height: 1.1em !important; + font-family: "Consolas", "Monaco", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; + font-weight: normal !important; + font-style: normal !important; + font-size: 1em !important; +} + +.syntaxhighlighter +{ + width: 100% !important; + margin: 1em 0 1em 0 !important; + padding: 1px !important; /* adds a little border on top and bottom */ + position: relative !important; +} + +.syntaxhighlighter code { + display: inline !important; +} + +.syntaxhighlighter .bold { + font-weight: bold !important; +} + +.syntaxhighlighter .italic { + font-style: italic !important; +} + +.syntaxhighlighter .line .number +{ + float: left !important; + width: 3em !important; + padding-right: .3em !important; + text-align: right !important; + display: block !important; +} + +/* Disable numbers when no gutter option is set */ +.syntaxhighlighter.nogutter .line .number +{ + display: none !important; +} + +.syntaxhighlighter .line .content +{ + margin-left: 3.3em !important; + padding-left: .5em !important; + display: block !important; +} + +.syntaxhighlighter .line .content .block +{ + display: block !important; + padding-left: 1.5em !important; + text-indent: -1.5em !important; +} + +.syntaxhighlighter .line .content .spaces +{ + display: none !important; +} + +/* Disable border and margin on the lines when no gutter option is set */ +.syntaxhighlighter.nogutter .line .content +{ + margin-left: 0 !important; + border-left: none !important; +} + +.syntaxhighlighter .bar +{ + display: none !important; +} + +.syntaxhighlighter .bar.show +{ + display: block !important; +} + +.syntaxhighlighter.collapsed .bar +{ + display: block !important; +} + +.syntaxhighlighter.nogutter .ruler +{ + margin-left: 0 !important; + padding-left: 0 !important; +} + +.syntaxhighlighter .ruler +{ + padding: 0 0 .5em .5em !important; + margin-left: 3.3em !important; + overflow: hidden !important; +} + +/* Adjust some properties when collapsed */ + +.syntaxhighlighter.collapsed .lines, +.syntaxhighlighter.collapsed .ruler +{ + display: none !important; +} + +.syntaxhighlighter .lines.no-wrap +{ + overflow: auto; + overflow-y: hidden; +} + +/* Styles for the toolbar */ + +.syntaxhighlighter .toolbar +{ + position: absolute !important; + right: 0px !important; + top: 0px !important; + font-size: 1px !important; + padding: 8px 8px 8px 0 !important; /* in px because images don't scale with ems */ +} + +.syntaxhighlighter.collapsed .toolbar +{ + font-size: 80% !important; + padding: .2em 0 .5em .5em !important; + position: static !important; +} + +.syntaxhighlighter .toolbar a.item, +.syntaxhighlighter .toolbar .item +{ + display: block !important; + float: left !important; + margin-left: 8px !important; + background-repeat: no-repeat !important; + overflow: hidden !important; + text-indent: -5000px !important; +} + +.syntaxhighlighter.collapsed .toolbar .item +{ + display: none !important; +} + +.syntaxhighlighter.collapsed .toolbar .item.expandSource +{ + background-image: url(magnifier.png) !important; + display: inline !important; + text-indent: 0 !important; + width: auto !important; + float: none !important; + height: 16px !important; + padding-left: 20px !important; +} + +.syntaxhighlighter .toolbar .item.viewSource +{ + background-image: url(page_white_code.png) !important; +} + +.syntaxhighlighter .toolbar .item.printSource +{ + background-image: url(printer.png) !important; +} + +.syntaxhighlighter .toolbar .item.copyToClipboard +{ + text-indent: 0 !important; + background: none !important; + overflow: visible !important; +} + +.syntaxhighlighter .toolbar .item.about +{ + background-image: url(help.png) !important; +} + +/** + * Print view. + * Colors are based on the default theme without background. + */ + +.syntaxhighlighter.printing, +.syntaxhighlighter.printing .line.alt1 .content, +.syntaxhighlighter.printing .line.alt2 .content, +.syntaxhighlighter.printing .line.highlighted .number, +.syntaxhighlighter.printing .line.highlighted.alt1 .content, +.syntaxhighlighter.printing .line.highlighted.alt2 .content, +.syntaxhighlighter.printing .line .content .block +{ + background: none !important; +} + +.syntaxhighlighter .no-wrap .line .content .block +{ + white-space: nowrap !important; +} + +/* Gutter line numbers */ +.syntaxhighlighter.printing .line .number +{ + color: #bbb !important; +} + +/* Add border to the lines */ +.syntaxhighlighter.printing .line .content +{ + color: #000 !important; +} + +/* Toolbar when visible */ +.syntaxhighlighter.printing .toolbar, +.syntaxhighlighter.printing .ruler +{ + display: none !important; +} + +.syntaxhighlighter.printing a +{ + text-decoration: none !important; +} + +.syntaxhighlighter.printing .plain, +.syntaxhighlighter.printing .plain a +{ + color: #000 !important; +} + +.syntaxhighlighter.printing .comments, +.syntaxhighlighter.printing .comments a +{ + color: #008200 !important; +} + +.syntaxhighlighter.printing .string, +.syntaxhighlighter.printing .string a +{ + color: blue !important; +} + +.syntaxhighlighter.printing .keyword +{ + color: #069 !important; + font-weight: bold !important; +} + +.syntaxhighlighter.printing .preprocessor +{ + color: gray !important; +} + +.syntaxhighlighter.printing .variable +{ + color: #a70 !important; +} + +.syntaxhighlighter.printing .value +{ + color: #090 !important; +} + +.syntaxhighlighter.printing .functions +{ + color: #ff1493 !important; +} + +.syntaxhighlighter.printing .constants +{ + color: #0066CC !important; +} + +.syntaxhighlighter.printing .script +{ + font-weight: bold !important; +} + +.syntaxhighlighter.printing .color1, +.syntaxhighlighter.printing .color1 a +{ + color: #808080 !important; +} + +.syntaxhighlighter.printing .color2, +.syntaxhighlighter.printing .color2 a +{ + color: #ff1493 !important; +} + +.syntaxhighlighter.printing .color3, +.syntaxhighlighter.printing .color3 a +{ + color: red !important; +} diff --git a/news/trunk/plugins/content/codecitation/styles/shThemeDefault.css b/news/trunk/plugins/content/codecitation/styles/shThemeDefault.css new file mode 100644 index 00000000..961d1fbd --- /dev/null +++ b/news/trunk/plugins/content/codecitation/styles/shThemeDefault.css @@ -0,0 +1,191 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/ + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate + * + * @version + * 2.0.320 (May 03 2009) + * + * @copyright + * Copyright (C) 2004-2009 Alex Gorbatchev. + * + * @license + * This file is part of SyntaxHighlighter. + * + * SyntaxHighlighter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * SyntaxHighlighter is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with SyntaxHighlighter. If not, see . + */ +/************************************ + * Default Syntax Highlighter theme. + * + * Interface elements. + ************************************/ + +.syntaxhighlighter +{ + background-color: #E7E5DC !important; +} + +/* Highlighed line number */ +.syntaxhighlighter .line.highlighted .number +{ + background-color: #6CE26C !important; + color: black !important; +} + +/* Highlighed line */ +.syntaxhighlighter .line.highlighted.alt1 .content, +.syntaxhighlighter .line.highlighted.alt2 .content +{ + background-color: #6CE26C !important; +} + +/* Gutter line numbers */ +.syntaxhighlighter .line .number +{ + color: #5C5C5C !important; +} + +/* Add border to the lines */ +.syntaxhighlighter .line .content +{ + border-left: 3px solid #6CE26C !important; + color: #000 !important; +} + +.syntaxhighlighter.printing .line .content +{ + border: 0 !important; +} + +/* First line */ +.syntaxhighlighter .line.alt1 .content +{ + background-color: #fff !important; +} + +/* Second line */ +.syntaxhighlighter .line.alt2 .content +{ + background-color: #F8F8F8 !important; +} + +.syntaxhighlighter .line .content .block +{ + background: url(wrapping.png) 0 1.1em no-repeat !important; +} + +.syntaxhighlighter .ruler +{ + color: silver !important; + background-color: #F8F8F8 !important; + border-left: 3px solid #6CE26C !important; +} + +.syntaxhighlighter.nogutter .ruler +{ + border: 0 !important; +} + +.syntaxhighlighter .toolbar +{ + background-color: #F8F8F8 !important; + border: #E7E5DC solid 1px !important; +} + +.syntaxhighlighter .toolbar a +{ + color: #a0a0a0 !important; +} + +.syntaxhighlighter .toolbar a:hover +{ + color: red !important; +} + +/************************************ + * Actual syntax highlighter colors. + ************************************/ +.syntaxhighlighter .plain, +.syntaxhighlighter .plain a +{ + color: #000 !important; +} + +.syntaxhighlighter .comments, +.syntaxhighlighter .comments a +{ + color: #008200 !important; +} + +.syntaxhighlighter .string, +.syntaxhighlighter .string a +{ + color: blue !important; +} + +.syntaxhighlighter .keyword +{ + color: #069 !important; + font-weight: bold !important; +} + +.syntaxhighlighter .preprocessor +{ + color: gray !important; +} + +.syntaxhighlighter .variable +{ + color: #a70 !important; +} + +.syntaxhighlighter .value +{ + color: #090 !important; +} + +.syntaxhighlighter .functions +{ + color: #ff1493 !important; +} + +.syntaxhighlighter .constants +{ + color: #0066CC !important; +} + +.syntaxhighlighter .script +{ + background-color: yellow !important; +} + +.syntaxhighlighter .color1, +.syntaxhighlighter .color1 a +{ + color: #808080 !important; +} + +.syntaxhighlighter .color2, +.syntaxhighlighter .color2 a +{ + color: #ff1493 !important; +} + +.syntaxhighlighter .color3, +.syntaxhighlighter .color3 a +{ + color: red !important; +} diff --git a/news/trunk/plugins/content/codecitation/styles/shThemeDjango.css b/news/trunk/plugins/content/codecitation/styles/shThemeDjango.css new file mode 100644 index 00000000..f7f7b580 --- /dev/null +++ b/news/trunk/plugins/content/codecitation/styles/shThemeDjango.css @@ -0,0 +1,193 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/ + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate + * + * @version + * 2.0.320 (May 03 2009) + * + * @copyright + * Copyright (C) 2004-2009 Alex Gorbatchev. + * + * @license + * This file is part of SyntaxHighlighter. + * + * SyntaxHighlighter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * SyntaxHighlighter is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with SyntaxHighlighter. If not, see . + */ +/** + * Django SyntaxHighlighter theme + */ + +/************************************ + * Interface elements. + ************************************/ + +.syntaxhighlighter +{ + background-color: #0B2F20 !important; +} + +/* Gutter line numbers */ +.syntaxhighlighter .line .number +{ + color: #497958 !important; +} + +/* Add border to the lines */ +.syntaxhighlighter .line .content +{ + border-left: 3px solid #41A83E !important; + color: #B9BDB6 !important; +} + +.syntaxhighlighter.printing .line .content +{ + border: 0 !important; +} + +/* First line */ +.syntaxhighlighter .line.alt1 .content +{ +} + +/* Second line */ +.syntaxhighlighter .line.alt2 .content +{ + background-color: #0a2b1d !important; +} + +.syntaxhighlighter .line .content .block +{ + background: url(wrapping.png) 0 1.1em no-repeat !important; +} + +/* Highlighed line number */ +.syntaxhighlighter .line.highlighted .number +{ + background-color: #336442 !important; + color: #fff !important; +} + +/* Highlighed line */ +.syntaxhighlighter .line.highlighted.alt1 .content, +.syntaxhighlighter .line.highlighted.alt2 .content +{ + background-color: #336442 !important; +} + +.syntaxhighlighter .ruler +{ + color: #C4B14A !important; + background-color: #245032 !important; + border-left: 3px solid #41A83E !important; +} + +.syntaxhighlighter.nogutter .ruler +{ + border: 0 !important; +} + +.syntaxhighlighter .toolbar +{ + background-color: #245032 !important; + border: #0B2F20 solid 1px !important; +} + +.syntaxhighlighter .toolbar a +{ + color: #C4B14A !important; +} + +.syntaxhighlighter .toolbar a:hover +{ + color: #FFE862 !important; +} + +/************************************ + * Actual syntax highlighter colors. + ************************************/ +.syntaxhighlighter .plain, +.syntaxhighlighter .plain a +{ + color: #F8F8F8 !important; +} + +.syntaxhighlighter .comments, +.syntaxhighlighter .comments a +{ + color: #336442 !important; + font-style: italic !important; +} + +.syntaxhighlighter .string, +.syntaxhighlighter .string a +{ + color: #9DF39F !important; +} + +.syntaxhighlighter .keyword +{ + color: #96DD3B !important; + font-weight: bold !important; +} + +.syntaxhighlighter .preprocessor +{ + color: #91BB9E !important; +} + +.syntaxhighlighter .variable +{ + color: #FFAA3E !important; +} + +.syntaxhighlighter .value +{ + color: #F7E741 !important; +} + +.syntaxhighlighter .functions +{ + color: #FFAA3E !important; +} + +.syntaxhighlighter .constants +{ + color: #E0E8FF !important; +} + +.syntaxhighlighter .script +{ + background-color: #497958 !important; +} + +.syntaxhighlighter .color1, +.syntaxhighlighter .color1 a +{ + color: #EB939A !important; +} + +.syntaxhighlighter .color2, +.syntaxhighlighter .color2 a +{ + color: #91BB9E !important; +} + +.syntaxhighlighter .color3, +.syntaxhighlighter .color3 a +{ + color: #EDEF7D !important; +} diff --git a/news/trunk/plugins/content/codecitation/styles/shThemeEmacs.css b/news/trunk/plugins/content/codecitation/styles/shThemeEmacs.css new file mode 100644 index 00000000..93b69571 --- /dev/null +++ b/news/trunk/plugins/content/codecitation/styles/shThemeEmacs.css @@ -0,0 +1,192 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/ + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate + * + * @version + * 2.0.320 (May 03 2009) + * + * @copyright + * Copyright (C) 2004-2009 Alex Gorbatchev. + * + * @license + * This file is part of SyntaxHighlighter. + * + * SyntaxHighlighter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * SyntaxHighlighter is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with SyntaxHighlighter. If not, see . + */ +/** + * Emacs SyntaxHighlighter theme based on theme by Joshua Emmons + * http://www.skia.net/ + */ + +/************************************ + * Interface elements. + ************************************/ + +.syntaxhighlighter +{ + background-color: #000000 !important; +} + +/* Gutter line numbers */ +.syntaxhighlighter .line .number +{ + color: #D3D3D3 !important; +} + +/* Add border to the lines */ +.syntaxhighlighter .line .content +{ + border-left: 3px solid #990000 !important; + color: #B9BDB6 !important; +} + +.syntaxhighlighter.printing .line .content +{ + border: 0 !important; +} + +/* First line */ +.syntaxhighlighter .line.alt1 .content +{ +} + +/* Second line */ +.syntaxhighlighter .line.alt2 .content +{ + background-color: #0f0f0f !important; +} + +.syntaxhighlighter .line .content .block +{ + background: url(wrapping.png) 0 1.1em no-repeat !important; +} + +/* Highlighed line number */ +.syntaxhighlighter .line.highlighted .number +{ + background-color: #435A5F !important; + color: #fff !important; +} + +/* Highlighed line */ +.syntaxhighlighter .line.highlighted.alt1 .content, +.syntaxhighlighter .line.highlighted.alt2 .content +{ + background-color: #435A5F !important; +} + +.syntaxhighlighter .ruler +{ + color: silver !important; + background-color: #000000 !important; + border-left: 3px solid #990000 !important; +} + +.syntaxhighlighter.nogutter .ruler +{ + border: 0 !important; +} + +.syntaxhighlighter .toolbar +{ + background-color: #000000 !important; + border: #000000 solid 1px !important; +} + +.syntaxhighlighter .toolbar a +{ + color: #646763 !important; +} + +.syntaxhighlighter .toolbar a:hover +{ + color: #9CCFF4 !important; +} + +/************************************ + * Actual syntax highlighter colors. + ************************************/ +.syntaxhighlighter .plain, +.syntaxhighlighter .plain a +{ + color: #D3D3D3 !important; +} + +.syntaxhighlighter .comments, +.syntaxhighlighter .comments a +{ + color: #FF7D27 !important; +} + +.syntaxhighlighter .string, +.syntaxhighlighter .string a +{ + color: #FF9E7B !important; +} + +.syntaxhighlighter .keyword +{ + color: #00FFFF !important; +} + +.syntaxhighlighter .preprocessor +{ + color: #AEC4DE !important; +} + +.syntaxhighlighter .variable +{ + color: #FFAA3E !important; +} + +.syntaxhighlighter .value +{ + color: #090 !important; +} + +.syntaxhighlighter .functions +{ + color: #81CEF9 !important; +} + +.syntaxhighlighter .constants +{ + color: #FF9E7B !important; +} + +.syntaxhighlighter .script +{ + background-color: #990000 !important; +} + +.syntaxhighlighter .color1, +.syntaxhighlighter .color1 a +{ + color: #EBDB8D !important; +} + +.syntaxhighlighter .color2, +.syntaxhighlighter .color2 a +{ + color: #FF7D27 !important; +} + +.syntaxhighlighter .color3, +.syntaxhighlighter .color3 a +{ + color: #AEC4DE !important; +} diff --git a/news/trunk/plugins/content/codecitation/styles/shThemeFadeToGrey.css b/news/trunk/plugins/content/codecitation/styles/shThemeFadeToGrey.css new file mode 100644 index 00000000..159bebd3 --- /dev/null +++ b/news/trunk/plugins/content/codecitation/styles/shThemeFadeToGrey.css @@ -0,0 +1,193 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/ + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate + * + * @version + * 2.0.320 (May 03 2009) + * + * @copyright + * Copyright (C) 2004-2009 Alex Gorbatchev. + * + * @license + * This file is part of SyntaxHighlighter. + * + * SyntaxHighlighter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * SyntaxHighlighter is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with SyntaxHighlighter. If not, see . + */ +/** + * Fade to Grey SyntaxHighlighter theme based on theme by Brasten Sager + * http://www.ibrasten.com/ + */ + +/************************************ + * Interface elements. + ************************************/ + +.syntaxhighlighter +{ + background-color: #121212 !important; +} + +/* Gutter line numbers */ +.syntaxhighlighter .line .number +{ + color: #C3C3C3 !important; +} + +/* Add border to the lines */ +.syntaxhighlighter .line .content +{ + border-left: 3px solid #3185B9 !important; + color: #B9BDB6 !important; +} + +.syntaxhighlighter.printing .line .content +{ + border: 0 !important; +} + +/* First line */ +.syntaxhighlighter .line.alt1 .content +{ +} + +/* Second line */ +.syntaxhighlighter .line.alt2 .content +{ + background-color: #000000 !important; +} + +.syntaxhighlighter .line .content .block +{ + background: url(wrapping.png) 0 1.1em no-repeat !important; +} + +/* Highlighed line number */ +.syntaxhighlighter .line.highlighted .number +{ + background-color: #3A3A00 !important; + color: #fff !important; +} + +/* Highlighed line */ +.syntaxhighlighter .line.highlighted.alt1 .content, +.syntaxhighlighter .line.highlighted.alt2 .content +{ + background-color: #3A3A00 !important; +} + +.syntaxhighlighter .ruler +{ + color: silver !important; + border-left: 3px solid #3185B9 !important; +} + +.syntaxhighlighter.nogutter .ruler +{ + border: 0 !important; +} + +.syntaxhighlighter .toolbar +{ + background-color: #000000 !important; + border: #000000 solid 1px !important; +} + +.syntaxhighlighter .toolbar a +{ + color: #808080 !important; +} + +.syntaxhighlighter .toolbar a:hover +{ + color: #96DAFF !important; +} + +/************************************ + * Actual syntax highlighter colors. + ************************************/ +.syntaxhighlighter .plain, +.syntaxhighlighter .plain a +{ + color: #FFFFFF !important; +} + +.syntaxhighlighter .comments, +.syntaxhighlighter .comments a +{ + color: #696854 !important; +} + +.syntaxhighlighter .string, +.syntaxhighlighter .string a +{ + color: #E3E658 !important; +} + +.syntaxhighlighter .keyword +{ + color: #D01D33 !important; +} + +.syntaxhighlighter .preprocessor +{ + color: #435A5F !important; +} + +.syntaxhighlighter .variable +{ + color: #898989 !important; +} + +.syntaxhighlighter .value +{ + color: #090 !important; +} + +.syntaxhighlighter .functions +{ + color: #AAAAAA !important; + font-weight: bold !important; +} + +.syntaxhighlighter .constants +{ + color: #96DAFF !important; +} + +.syntaxhighlighter .script +{ + background-color: #C3C3C3 !important; + color: #000 !important; +} + +.syntaxhighlighter .color1, +.syntaxhighlighter .color1 a +{ + color: #FFC074 !important; +} + +.syntaxhighlighter .color2, +.syntaxhighlighter .color2 a +{ + color: #4A8CDB !important; +} + +.syntaxhighlighter .color3, +.syntaxhighlighter .color3 a +{ + color: #96DAFF !important; +} diff --git a/news/trunk/plugins/content/codecitation/styles/shThemeMidnight.css b/news/trunk/plugins/content/codecitation/styles/shThemeMidnight.css new file mode 100644 index 00000000..147bdf6d --- /dev/null +++ b/news/trunk/plugins/content/codecitation/styles/shThemeMidnight.css @@ -0,0 +1,192 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/ + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate + * + * @version + * 2.0.320 (May 03 2009) + * + * @copyright + * Copyright (C) 2004-2009 Alex Gorbatchev. + * + * @license + * This file is part of SyntaxHighlighter. + * + * SyntaxHighlighter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * SyntaxHighlighter is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with SyntaxHighlighter. If not, see . + */ +/** + * Midnight SyntaxHighlighter theme based on theme by J.D. Myers + * http://webdesign.lsnjd.com/ + */ + +/************************************ + * Interface elements. + ************************************/ + +.syntaxhighlighter +{ + background-color: #0F192A !important; +} + +/* Gutter line numbers */ +.syntaxhighlighter .line .number +{ + color: #38566F !important; +} + +/* Add border to the lines */ +.syntaxhighlighter .line .content +{ + border-left: 3px solid #435A5F !important; + color: #B9BDB6 !important; +} + +.syntaxhighlighter.printing .line .content +{ + border: 0 !important; +} + +/* First line */ +.syntaxhighlighter .line.alt1 .content +{ + background-color: #0F192A !important; +} + +/* Second line */ +.syntaxhighlighter .line.alt2 .content +{ + background-color: #0F192A !important; +} + +.syntaxhighlighter .line .content .block +{ + background: url(wrapping.png) 0 1.1em no-repeat !important; +} + +/* Highlighed line number */ +.syntaxhighlighter .line.highlighted .number +{ + background-color: #253E5A !important; + color: #fff !important; +} + +/* Highlighed line */ +.syntaxhighlighter .line.highlighted.alt1 .content, +.syntaxhighlighter .line.highlighted.alt2 .content +{ + background-color: #253E5A !important; +} + +.syntaxhighlighter .ruler +{ + color: #38566F !important; + background-color: #0F192A !important; + border-left: 3px solid #435A5F !important; +} + +.syntaxhighlighter.nogutter .ruler +{ + border: 0 !important; +} + +.syntaxhighlighter .toolbar +{ + background-color: #0F192A !important; +} + +.syntaxhighlighter .toolbar a +{ + color: #38566F !important; +} + +.syntaxhighlighter .toolbar a:hover +{ + color: #8AA6C1 !important; +} + +/************************************ + * Actual syntax highlighter colors. + ************************************/ +.syntaxhighlighter .plain, +.syntaxhighlighter .plain a +{ + color: #D1EDFF !important; +} + +.syntaxhighlighter .comments, +.syntaxhighlighter .comments a +{ + color: #428BDD !important; +} + +.syntaxhighlighter .string, +.syntaxhighlighter .string a +{ + color: #1DC116 !important; +} + +.syntaxhighlighter .keyword +{ + color: #B43D3D !important; +} + +.syntaxhighlighter .preprocessor +{ + color: #8AA6C1 !important; +} + +.syntaxhighlighter .variable +{ + color: #FFAA3E !important; +} + +.syntaxhighlighter .value +{ + color: #F7E741 !important; +} + +.syntaxhighlighter .functions +{ + color: #FFAA3E !important; +} + +.syntaxhighlighter .constants +{ + color: #E0E8FF !important; +} + +.syntaxhighlighter .script +{ + background-color: #404040 !important; +} + +.syntaxhighlighter .color1, +.syntaxhighlighter .color1 a +{ + color: #F8BB00 !important; +} + +.syntaxhighlighter .color2, +.syntaxhighlighter .color2 a +{ + color: #FFFFFF !important; +} + +.syntaxhighlighter .color3, +.syntaxhighlighter .color3 a +{ + color: #FFAA3E !important; +} diff --git a/news/trunk/plugins/content/codecitation/styles/shThemeRDark.css b/news/trunk/plugins/content/codecitation/styles/shThemeRDark.css new file mode 100644 index 00000000..e62bf939 --- /dev/null +++ b/news/trunk/plugins/content/codecitation/styles/shThemeRDark.css @@ -0,0 +1,192 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/ + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate + * + * @version + * 2.0.320 (May 03 2009) + * + * @copyright + * Copyright (C) 2004-2009 Alex Gorbatchev. + * + * @license + * This file is part of SyntaxHighlighter. + * + * SyntaxHighlighter is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * SyntaxHighlighter is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with SyntaxHighlighter. If not, see . + */ +/** + * RDark SyntaxHighlighter theme based on theme by Radu Dineiu + * http://www.vim.org/scripts/script.php?script_id=1732 + */ + +/************************************ + * Interface elements. + ************************************/ + +.syntaxhighlighter +{ + background-color: #1B2426 !important; +} + +/* Gutter line numbers */ +.syntaxhighlighter .line .number +{ + color: #B9BDB6 !important; +} + +/* Add border to the lines */ +.syntaxhighlighter .line .content +{ + border-left: 3px solid #435A5F !important; + color: #B9BDB6 !important; +} + +.syntaxhighlighter.printing .line .content +{ + border: 0 !important; +} + +/* First line */ +.syntaxhighlighter .line.alt1 .content +{ + background-color: #1B2426 !important; +} + +/* Second line */ +.syntaxhighlighter .line.alt2 .content +{ + background-color: #1B2426 !important; +} + +.syntaxhighlighter .line .content .block +{ + background: url(wrapping.png) 0 1.1em no-repeat !important; +} + +/* Highlighed line number */ +.syntaxhighlighter .line.highlighted .number +{ + background-color: #435A5F !important; + color: #fff !important; +} + +/* Highlighed line */ +.syntaxhighlighter .line.highlighted.alt1 .content, +.syntaxhighlighter .line.highlighted.alt2 .content +{ + background-color: #435A5F !important; +} + +.syntaxhighlighter .ruler +{ + color: silver !important; + background-color: #1B2426 !important; + border-left: 3px solid #435A5F !important; +} + +.syntaxhighlighter.nogutter .ruler +{ + border: 0 !important; +} + +.syntaxhighlighter .toolbar +{ + background-color: #1B2426 !important; +} + +.syntaxhighlighter .toolbar a +{ + color: #646763 !important; +} + +.syntaxhighlighter .toolbar a:hover +{ + color: #E0E8FF !important; +} + +/************************************ + * Actual syntax highlighter colors. + ************************************/ +.syntaxhighlighter .plain, +.syntaxhighlighter .plain a +{ + color: #B9BDB6 !important; +} + +.syntaxhighlighter .comments, +.syntaxhighlighter .comments a +{ + color: #878A85 !important; +} + +.syntaxhighlighter .string, +.syntaxhighlighter .string a +{ + color: #5CE638 !important; +} + +.syntaxhighlighter .keyword +{ + color: #5BA1CF !important; +} + +.syntaxhighlighter .preprocessor +{ + color: #435A5F !important; +} + +.syntaxhighlighter .variable +{ + color: #FFAA3E !important; +} + +.syntaxhighlighter .value +{ + color: #090 !important; +} + +.syntaxhighlighter .functions +{ + color: #FFAA3E !important; +} + +.syntaxhighlighter .constants +{ + color: #E0E8FF !important; +} + +.syntaxhighlighter .script +{ + background-color: #435A5F !important; +} + +.syntaxhighlighter .color1, +.syntaxhighlighter .color1 a +{ + color: #E0E8FF !important; +} + +.syntaxhighlighter .color2, +.syntaxhighlighter .color2 a +{ + color: #FFFFFF !important; +} + +.syntaxhighlighter .color3, +.syntaxhighlighter .color3 a +{ + color: #FFAA3E !important; +} diff --git a/news/trunk/plugins/content/codecitation/styles/wrapping.png b/news/trunk/plugins/content/codecitation/styles/wrapping.png new file mode 100644 index 00000000..6972c5e5 Binary files /dev/null and b/news/trunk/plugins/content/codecitation/styles/wrapping.png differ