Version Description
Download this release
Release Info
Developer | Viper007Bond |
Plugin | SyntaxHighlighter Evolved |
Version | 2.2.2 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 2.2.2
- files/SyntaxHighlighter.css +0 -185
- files/clipboard.swf +0 -0
- files/shBrushCSharp.js +0 -10
- files/shBrushCpp.js +0 -10
- files/shBrushCss.js +0 -14
- files/shBrushDelphi.js +0 -10
- files/shBrushJScript.js +0 -10
- files/shBrushJava.js +0 -10
- files/shBrushPhp.js +0 -10
- files/shBrushPython.js +0 -11
- files/shBrushRuby.js +0 -11
- files/shBrushSql.js +0 -10
- files/shBrushVb.js +0 -10
- files/shBrushXml.js +0 -19
- files/shCore.js +0 -161
- localization/_syntaxhighlighter-template.po +288 -0
- localization/syntaxhighlighter-da_DK.mo +0 -0
- localization/syntaxhighlighter-da_DK.po +269 -0
- localization/syntaxhighlighter-it_IT.mo +0 -0
- localization/syntaxhighlighter-it_IT.po +278 -0
- localization/syntaxhighlighter-tr_TR.mo +0 -0
- localization/syntaxhighlighter-tr_TR.po +276 -0
- localization/syntaxhighlighter-zh_CN.mo +0 -0
- localization/syntaxhighlighter-zh_CN.po +288 -0
- readme.txt +62 -54
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- syntaxhighlighter.php +688 -145
- syntaxhighlighter/LGPLv3.txt +165 -0
- syntaxhighlighter/scripts/clipboard.swf +0 -0
- syntaxhighlighter/scripts/shBrushAS3.js +61 -0
- syntaxhighlighter/scripts/shBrushBash.js +59 -0
- syntaxhighlighter/scripts/shBrushCSharp.js +64 -0
- syntaxhighlighter/scripts/shBrushCpp.js +99 -0
- syntaxhighlighter/scripts/shBrushCss.js +93 -0
- syntaxhighlighter/scripts/shBrushDelphi.js +57 -0
- syntaxhighlighter/scripts/shBrushDiff.js +43 -0
- syntaxhighlighter/scripts/shBrushGroovy.js +69 -0
- syntaxhighlighter/scripts/shBrushJScript.js +52 -0
- syntaxhighlighter/scripts/shBrushJava.js +55 -0
- syntaxhighlighter/scripts/shBrushJavaFX.js +60 -0
- syntaxhighlighter/scripts/shBrushObjC.js +49 -0
- syntaxhighlighter/scripts/shBrushPerl.js +74 -0
- syntaxhighlighter/scripts/shBrushPhp.js +91 -0
- syntaxhighlighter/scripts/shBrushPlain.js +35 -0
- syntaxhighlighter/scripts/shBrushPowerShell.js +76 -0
- syntaxhighlighter/scripts/shBrushPython.js +56 -0
- syntaxhighlighter/scripts/shBrushRuby.js +57 -0
- syntaxhighlighter/scripts/shBrushScala.js +53 -0
- syntaxhighlighter/scripts/shBrushSql.js +68 -0
- syntaxhighlighter/scripts/shBrushVb.js +58 -0
- syntaxhighlighter/scripts/shBrushXml.js +71 -0
- syntaxhighlighter/scripts/shCore.js +30 -0
- syntaxhighlighter/scripts/shLegacy.js +30 -0
- syntaxhighlighter/styles/help.png +0 -0
- syntaxhighlighter/styles/magnifier.png +0 -0
- syntaxhighlighter/styles/page_white_code.png +0 -0
- syntaxhighlighter/styles/page_white_copy.png +0 -0
- syntaxhighlighter/styles/printer.png +0 -0
- syntaxhighlighter/styles/shCore.css +342 -0
- syntaxhighlighter/styles/shThemeDefault.css +191 -0
- syntaxhighlighter/styles/shThemeDjango.css +193 -0
- syntaxhighlighter/styles/shThemeEmacs.css +192 -0
- syntaxhighlighter/styles/shThemeFadeToGrey.css +193 -0
- syntaxhighlighter/styles/shThemeMidnight.css +192 -0
- syntaxhighlighter/styles/shThemeRDark.css +192 -0
- syntaxhighlighter/styles/wrapping.png +0 -0
- syntaxhighlighter_mce.js +109 -0
files/SyntaxHighlighter.css
DELETED
@@ -1,185 +0,0 @@
|
|
1 |
-
.dp-highlighter
|
2 |
-
{
|
3 |
-
font-family: "Consolas", "Courier New", Courier, mono, serif;
|
4 |
-
font-size: 12px;
|
5 |
-
background-color: #E7E5DC;
|
6 |
-
width: 99%;
|
7 |
-
overflow: auto;
|
8 |
-
margin: 18px 0 18px 0 !important;
|
9 |
-
padding-top: 1px; /* adds a little border on top when controls are hidden */
|
10 |
-
}
|
11 |
-
|
12 |
-
/* clear styles */
|
13 |
-
.dp-highlighter ol,
|
14 |
-
.dp-highlighter ol li,
|
15 |
-
.dp-highlighter ol li span
|
16 |
-
{
|
17 |
-
margin: 0;
|
18 |
-
padding: 0;
|
19 |
-
border: none;
|
20 |
-
}
|
21 |
-
|
22 |
-
.dp-highlighter a,
|
23 |
-
.dp-highlighter a:hover
|
24 |
-
{
|
25 |
-
background: none;
|
26 |
-
border: none;
|
27 |
-
padding: 0;
|
28 |
-
margin: 0;
|
29 |
-
}
|
30 |
-
|
31 |
-
.dp-highlighter .bar
|
32 |
-
{
|
33 |
-
padding-left: 45px;
|
34 |
-
}
|
35 |
-
|
36 |
-
.dp-highlighter.collapsed .bar,
|
37 |
-
.dp-highlighter.nogutter .bar
|
38 |
-
{
|
39 |
-
padding-left: 0px;
|
40 |
-
}
|
41 |
-
|
42 |
-
.dp-highlighter ol
|
43 |
-
{
|
44 |
-
list-style: decimal; /* for ie */
|
45 |
-
background-color: #fff;
|
46 |
-
margin: 0px 0px 1px 45px !important; /* 1px bottom margin seems to fix occasional Firefox scrolling */
|
47 |
-
padding: 0px;
|
48 |
-
color: #5C5C5C;
|
49 |
-
}
|
50 |
-
|
51 |
-
.dp-highlighter.nogutter ol,
|
52 |
-
.dp-highlighter.nogutter ol li
|
53 |
-
{
|
54 |
-
list-style: none !important;
|
55 |
-
margin-left: 0px !important;
|
56 |
-
}
|
57 |
-
|
58 |
-
.dp-highlighter ol li,
|
59 |
-
.dp-highlighter .columns div
|
60 |
-
{
|
61 |
-
list-style: decimal-leading-zero; /* better look for others, override cascade from OL */
|
62 |
-
list-style-position: outside !important;
|
63 |
-
border-left: 3px solid #6CE26C;
|
64 |
-
background-color: #F8F8F8;
|
65 |
-
color: #5C5C5C;
|
66 |
-
padding: 0 3px 0 10px !important;
|
67 |
-
margin: 0 !important;
|
68 |
-
line-height: 14px;
|
69 |
-
}
|
70 |
-
|
71 |
-
.dp-highlighter.nogutter ol li,
|
72 |
-
.dp-highlighter.nogutter .columns div
|
73 |
-
{
|
74 |
-
border: 0;
|
75 |
-
}
|
76 |
-
|
77 |
-
.dp-highlighter .columns
|
78 |
-
{
|
79 |
-
background-color: #F8F8F8;
|
80 |
-
color: gray;
|
81 |
-
overflow: hidden;
|
82 |
-
width: 100%;
|
83 |
-
}
|
84 |
-
|
85 |
-
.dp-highlighter .columns div
|
86 |
-
{
|
87 |
-
padding-bottom: 5px;
|
88 |
-
}
|
89 |
-
|
90 |
-
.dp-highlighter ol li.alt
|
91 |
-
{
|
92 |
-
background-color: #FFF;
|
93 |
-
color: inherit;
|
94 |
-
}
|
95 |
-
|
96 |
-
.dp-highlighter ol li span
|
97 |
-
{
|
98 |
-
color: black;
|
99 |
-
background-color: inherit;
|
100 |
-
}
|
101 |
-
|
102 |
-
/* Adjust some properties when collapsed */
|
103 |
-
|
104 |
-
.dp-highlighter.collapsed ol
|
105 |
-
{
|
106 |
-
margin: 0px;
|
107 |
-
}
|
108 |
-
|
109 |
-
.dp-highlighter.collapsed ol li
|
110 |
-
{
|
111 |
-
display: none;
|
112 |
-
}
|
113 |
-
|
114 |
-
/* Additional modifications when in print-view */
|
115 |
-
|
116 |
-
.dp-highlighter.printing
|
117 |
-
{
|
118 |
-
border: none;
|
119 |
-
}
|
120 |
-
|
121 |
-
.dp-highlighter.printing .tools
|
122 |
-
{
|
123 |
-
display: none !important;
|
124 |
-
}
|
125 |
-
|
126 |
-
.dp-highlighter.printing li
|
127 |
-
{
|
128 |
-
display: list-item !important;
|
129 |
-
}
|
130 |
-
|
131 |
-
/* Styles for the tools */
|
132 |
-
|
133 |
-
.dp-highlighter .tools
|
134 |
-
{
|
135 |
-
padding: 3px 8px 3px 10px;
|
136 |
-
font: 9px Verdana, Geneva, Arial, Helvetica, sans-serif;
|
137 |
-
color: silver;
|
138 |
-
background-color: #f8f8f8;
|
139 |
-
padding-bottom: 10px;
|
140 |
-
border-left: 3px solid #6CE26C;
|
141 |
-
}
|
142 |
-
|
143 |
-
.dp-highlighter.nogutter .tools
|
144 |
-
{
|
145 |
-
border-left: 0;
|
146 |
-
}
|
147 |
-
|
148 |
-
.dp-highlighter.collapsed .tools
|
149 |
-
{
|
150 |
-
border-bottom: 0;
|
151 |
-
}
|
152 |
-
|
153 |
-
.dp-highlighter .tools a
|
154 |
-
{
|
155 |
-
font-size: 9px;
|
156 |
-
color: #a0a0a0;
|
157 |
-
background-color: inherit;
|
158 |
-
text-decoration: none;
|
159 |
-
margin-right: 10px;
|
160 |
-
}
|
161 |
-
|
162 |
-
.dp-highlighter .tools a:hover
|
163 |
-
{
|
164 |
-
color: red;
|
165 |
-
background-color: inherit;
|
166 |
-
text-decoration: underline;
|
167 |
-
}
|
168 |
-
|
169 |
-
/* About dialog styles */
|
170 |
-
|
171 |
-
.dp-about { background-color: #fff; color: #333; margin: 0px; padding: 0px; }
|
172 |
-
.dp-about table { width: 100%; height: 100%; font-size: 11px; font-family: Tahoma, Verdana, Arial, sans-serif !important; }
|
173 |
-
.dp-about td { padding: 10px; vertical-align: top; }
|
174 |
-
.dp-about .copy { border-bottom: 1px solid #ACA899; height: 95%; }
|
175 |
-
.dp-about .title { color: red; background-color: inherit; font-weight: bold; }
|
176 |
-
.dp-about .para { margin: 0 0 4px 0; }
|
177 |
-
.dp-about .footer { background-color: #ECEADB; color: #333; border-top: 1px solid #fff; text-align: right; }
|
178 |
-
.dp-about .close { font-size: 11px; font-family: Tahoma, Verdana, Arial, sans-serif !important; background-color: #ECEADB; color: #333; width: 60px; height: 22px; }
|
179 |
-
|
180 |
-
/* Language specific styles */
|
181 |
-
|
182 |
-
.dp-highlighter .comment, .dp-highlighter .comments { color: #008200; background-color: inherit; }
|
183 |
-
.dp-highlighter .string { color: blue; background-color: inherit; }
|
184 |
-
.dp-highlighter .keyword { color: #069; font-weight: bold; background-color: inherit; }
|
185 |
-
.dp-highlighter .preprocessor { color: gray; background-color: inherit; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
files/clipboard.swf
DELETED
Binary file
|
files/shBrushCSharp.js
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* JsMin
|
3 |
-
* Javascript Compressor
|
4 |
-
* http://www.crockford.com/
|
5 |
-
* http://www.smallsharptools.com/
|
6 |
-
*/
|
7 |
-
|
8 |
-
dp.sh.Brushes.CSharp=function()
|
9 |
-
{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';this.regexList=[{regex:dp.sh.RegexLib.SingleLineCComments,css:'comment'},{regex:dp.sh.RegexLib.MultiLineCComments,css:'comment'},{regex:dp.sh.RegexLib.DoubleQuotedString,css:'string'},{regex:dp.sh.RegexLib.SingleQuotedString,css:'string'},{regex:new RegExp('^\\s*#.*','gm'),css:'preprocessor'},{regex:new RegExp(this.GetKeywords(keywords),'gm'),css:'keyword'}];this.CssClass='dp-c';this.Style='.dp-c .vars { color: #d00; }';}
|
10 |
-
dp.sh.Brushes.CSharp.prototype=new dp.sh.Highlighter();dp.sh.Brushes.CSharp.Aliases=['c#','c-sharp','csharp'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
files/shBrushCpp.js
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* JsMin
|
3 |
-
* Javascript Compressor
|
4 |
-
* http://www.crockford.com/
|
5 |
-
* http://www.smallsharptools.com/
|
6 |
-
*/
|
7 |
-
|
8 |
-
dp.sh.Brushes.Cpp=function()
|
9 |
-
{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';this.regexList=[{regex:dp.sh.RegexLib.SingleLineCComments,css:'comment'},{regex:dp.sh.RegexLib.MultiLineCComments,css:'comment'},{regex:dp.sh.RegexLib.DoubleQuotedString,css:'string'},{regex:dp.sh.RegexLib.SingleQuotedString,css:'string'},{regex:new RegExp('^ *#.*','gm'),css:'preprocessor'},{regex:new RegExp(this.GetKeywords(datatypes),'gm'),css:'datatypes'},{regex:new RegExp(this.GetKeywords(keywords),'gm'),css:'keyword'}];this.CssClass='dp-cpp';this.Style='.dp-cpp .datatypes { color: #2E8B57; font-weight: bold; }';}
|
10 |
-
dp.sh.Brushes.Cpp.prototype=new dp.sh.Highlighter();dp.sh.Brushes.Cpp.Aliases=['cpp','c','c++'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
files/shBrushCss.js
DELETED
@@ -1,14 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* JsMin
|
3 |
-
* Javascript Compressor
|
4 |
-
* http://www.crockford.com/
|
5 |
-
* http://www.smallsharptools.com/
|
6 |
-
*/
|
7 |
-
|
8 |
-
dp.sh.Brushes.CSS=function()
|
9 |
-
{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 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 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 richness size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress '+'table-layout text-align 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';this.regexList=[{regex:dp.sh.RegexLib.MultiLineCComments,css:'comment'},{regex:dp.sh.RegexLib.DoubleQuotedString,css:'string'},{regex:dp.sh.RegexLib.SingleQuotedString,css:'string'},{regex:new RegExp('\\#[a-zA-Z0-9]{3,6}','g'),css:'value'},{regex:new RegExp('(-?\\d+)(\.\\d+)?(px|em|pt|\:|\%|)','g'),css:'value'},{regex:new RegExp('!important','g'),css:'important'},{regex:new RegExp(this.GetKeywordsCSS(keywords),'gm'),css:'keyword'},{regex:new RegExp(this.GetValuesCSS(values),'g'),css:'value'},{regex:new RegExp(this.GetValuesCSS(fonts),'g'),css:'value'}];this.CssClass='dp-css';this.Style='.dp-css .value { color: black; }'+'.dp-css .important { color: red; }';}
|
10 |
-
dp.sh.Highlighter.prototype.GetKeywordsCSS=function(str)
|
11 |
-
{return'\\b([a-z_]|)'+str.replace(/ /g,'(?=:)\\b|\\b([a-z_\\*]|\\*|)')+'(?=:)\\b';}
|
12 |
-
dp.sh.Highlighter.prototype.GetValuesCSS=function(str)
|
13 |
-
{return'\\b'+str.replace(/ /g,'(?!-)(?!:)\\b|\\b()')+'\:\\b';}
|
14 |
-
dp.sh.Brushes.CSS.prototype=new dp.sh.Highlighter();dp.sh.Brushes.CSS.Aliases=['css'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
files/shBrushDelphi.js
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* JsMin
|
3 |
-
* Javascript Compressor
|
4 |
-
* http://www.crockford.com/
|
5 |
-
* http://www.smallsharptools.com/
|
6 |
-
*/
|
7 |
-
|
8 |
-
dp.sh.Brushes.Delphi=function()
|
9 |
-
{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:new RegExp('\\(\\*[\\s\\S]*?\\*\\)','gm'),css:'comment'},{regex:new RegExp('{(?!\\$)[\\s\\S]*?}','gm'),css:'comment'},{regex:dp.sh.RegexLib.SingleLineCComments,css:'comment'},{regex:dp.sh.RegexLib.SingleQuotedString,css:'string'},{regex:new RegExp('\\{\\$[a-zA-Z]+ .+\\}','g'),css:'directive'},{regex:new RegExp('\\b[\\d\\.]+\\b','g'),css:'number'},{regex:new RegExp('\\$[a-zA-Z0-9]+\\b','g'),css:'number'},{regex:new RegExp(this.GetKeywords(keywords),'gm'),css:'keyword'}];this.CssClass='dp-delphi';this.Style='.dp-delphi .number { color: blue; }'+'.dp-delphi .directive { color: #008284; }'+'.dp-delphi .vars { color: #000; }';}
|
10 |
-
dp.sh.Brushes.Delphi.prototype=new dp.sh.Highlighter();dp.sh.Brushes.Delphi.Aliases=['delphi','pascal'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
files/shBrushJScript.js
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* JsMin
|
3 |
-
* Javascript Compressor
|
4 |
-
* http://www.crockford.com/
|
5 |
-
* http://www.smallsharptools.com/
|
6 |
-
*/
|
7 |
-
|
8 |
-
dp.sh.Brushes.JScript=function()
|
9 |
-
{var keywords='abstract boolean break byte case catch char class const continue debugger '+'default delete do double else enum export extends false final finally float '+'for function goto if implements import in instanceof int interface long native '+'new null package private protected public return short static super switch '+'synchronized this throw throws transient true try typeof var void volatile while with';this.regexList=[{regex:dp.sh.RegexLib.SingleLineCComments,css:'comment'},{regex:dp.sh.RegexLib.MultiLineCComments,css:'comment'},{regex:dp.sh.RegexLib.DoubleQuotedString,css:'string'},{regex:dp.sh.RegexLib.SingleQuotedString,css:'string'},{regex:new RegExp('^\\s*#.*','gm'),css:'preprocessor'},{regex:new RegExp(this.GetKeywords(keywords),'gm'),css:'keyword'}];this.CssClass='dp-c';}
|
10 |
-
dp.sh.Brushes.JScript.prototype=new dp.sh.Highlighter();dp.sh.Brushes.JScript.Aliases=['js','jscript','javascript'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
files/shBrushJava.js
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* JsMin
|
3 |
-
* Javascript Compressor
|
4 |
-
* http://www.crockford.com/
|
5 |
-
* http://www.smallsharptools.com/
|
6 |
-
*/
|
7 |
-
|
8 |
-
dp.sh.Brushes.Java=function()
|
9 |
-
{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:dp.sh.RegexLib.SingleLineCComments,css:'comment'},{regex:dp.sh.RegexLib.MultiLineCComments,css:'comment'},{regex:dp.sh.RegexLib.DoubleQuotedString,css:'string'},{regex:dp.sh.RegexLib.SingleQuotedString,css:'string'},{regex:new RegExp('\\b([\\d]+(\\.[\\d]+)?|0x[a-f0-9]+)\\b','gi'),css:'number'},{regex:new RegExp('(?!\\@interface\\b)\\@[\\$\\w]+\\b','g'),css:'annotation'},{regex:new RegExp('\\@interface\\b','g'),css:'keyword'},{regex:new RegExp(this.GetKeywords(keywords),'gm'),css:'keyword'}];this.CssClass='dp-j';this.Style='.dp-j .annotation { color: #646464; }'+'.dp-j .number { color: #C00000; }';}
|
10 |
-
dp.sh.Brushes.Java.prototype=new dp.sh.Highlighter();dp.sh.Brushes.Java.Aliases=['java'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
files/shBrushPhp.js
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* JsMin
|
3 |
-
* Javascript Compressor
|
4 |
-
* http://www.crockford.com/
|
5 |
-
* http://www.smallsharptools.com/
|
6 |
-
*/
|
7 |
-
|
8 |
-
dp.sh.Brushes.Php=function()
|
9 |
-
{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 __FILE__ __LINE__ array as break case '+'cfunction class const continue declare default die do else '+'elseif empty 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 __FUNCTION__ __CLASS__ '+'__METHOD__ abstract interface public implements extends private protected throw';this.regexList=[{regex:dp.sh.RegexLib.SingleLineCComments,css:'comment'},{regex:dp.sh.RegexLib.MultiLineCComments,css:'comment'},{regex:dp.sh.RegexLib.DoubleQuotedString,css:'string'},{regex:dp.sh.RegexLib.SingleQuotedString,css:'string'},{regex:new RegExp('\\$\\w+','g'),css:'vars'},{regex:new RegExp(this.GetKeywords(funcs),'gmi'),css:'func'},{regex:new RegExp(this.GetKeywords(keywords),'gm'),css:'keyword'}];this.CssClass='dp-c';}
|
10 |
-
dp.sh.Brushes.Php.prototype=new dp.sh.Highlighter();dp.sh.Brushes.Php.Aliases=['php'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
files/shBrushPython.js
DELETED
@@ -1,11 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* JsMin
|
3 |
-
* Javascript Compressor
|
4 |
-
* http://www.crockford.com/
|
5 |
-
* http://www.smallsharptools.com/
|
6 |
-
*/
|
7 |
-
|
8 |
-
dp.sh.Brushes.Python=function()
|
9 |
-
{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_'
|
10 |
-
this.regexList=[{regex:dp.sh.RegexLib.SingleLinePerlComments,css:'comment'},{regex:new RegExp("^\\s*@\\w+",'gm'),css:'decorator'},{regex:new RegExp("(['\"]{3})([^\\1])*?\\1",'gm'),css:'comment'},{regex:new RegExp('"(?!")(?:\\.|\\\\\\"|[^\\""\\n\\r])*"','gm'),css:'string'},{regex:new RegExp("'(?!')*(?:\\.|(\\\\\\')|[^\\''\\n\\r])*'",'gm'),css:'string'},{regex:new RegExp("\\b\\d+\\.?\\w*",'g'),css:'number'},{regex:new RegExp(this.GetKeywords(keywords),'gm'),css:'keyword'},{regex:new RegExp(this.GetKeywords(special),'gm'),css:'special'}];this.CssClass='dp-py';this.Style='.dp-py .builtins { color: #ff1493; }'+'.dp-py .magicmethods { color: #808080; }'+'.dp-py .exceptions { color: brown; }'+'.dp-py .types { color: brown; font-style: italic; }'+'.dp-py .commonlibs { color: #8A2BE2; font-style: italic; }';}
|
11 |
-
dp.sh.Brushes.Python.prototype=new dp.sh.Highlighter();dp.sh.Brushes.Python.Aliases=['py','python'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
files/shBrushRuby.js
DELETED
@@ -1,11 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* JsMin
|
3 |
-
* Javascript Compressor
|
4 |
-
* http://www.crockford.com/
|
5 |
-
* http://www.smallsharptools.com/
|
6 |
-
*/
|
7 |
-
|
8 |
-
dp.sh.Brushes.Ruby=function()
|
9 |
-
{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'
|
10 |
-
this.regexList=[{regex:dp.sh.RegexLib.SingleLinePerlComments,css:'comment'},{regex:dp.sh.RegexLib.DoubleQuotedString,css:'string'},{regex:dp.sh.RegexLib.SingleQuotedString,css:'string'},{regex:new RegExp(':[a-z][A-Za-z0-9_]*','g'),css:'symbol'},{regex:new RegExp('(\\$|@@|@)\\w+','g'),css:'variable'},{regex:new RegExp(this.GetKeywords(keywords),'gm'),css:'keyword'},{regex:new RegExp(this.GetKeywords(builtins),'gm'),css:'builtin'}];this.CssClass='dp-rb';this.Style='.dp-rb .symbol { color: #a70; }'+'.dp-rb .variable { color: #a70; font-weight: bold; }';}
|
11 |
-
dp.sh.Brushes.Ruby.prototype=new dp.sh.Highlighter();dp.sh.Brushes.Ruby.Aliases=['ruby','rails','ror'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
files/shBrushSql.js
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* JsMin
|
3 |
-
* Javascript Compressor
|
4 |
-
* http://www.crockford.com/
|
5 |
-
* http://www.smallsharptools.com/
|
6 |
-
*/
|
7 |
-
|
8 |
-
dp.sh.Brushes.Sql=function()
|
9 |
-
{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:new RegExp('--(.*)$','gm'),css:'comment'},{regex:dp.sh.RegexLib.DoubleQuotedString,css:'string'},{regex:dp.sh.RegexLib.SingleQuotedString,css:'string'},{regex:new RegExp(this.GetKeywords(funcs),'gmi'),css:'func'},{regex:new RegExp(this.GetKeywords(operators),'gmi'),css:'op'},{regex:new RegExp(this.GetKeywords(keywords),'gmi'),css:'keyword'}];this.CssClass='dp-sql';this.Style='.dp-sql .func { color: #ff1493; }'+'.dp-sql .op { color: #808080; }';}
|
10 |
-
dp.sh.Brushes.Sql.prototype=new dp.sh.Highlighter();dp.sh.Brushes.Sql.Aliases=['sql'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
files/shBrushVb.js
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* JsMin
|
3 |
-
* Javascript Compressor
|
4 |
-
* http://www.crockford.com/
|
5 |
-
* http://www.smallsharptools.com/
|
6 |
-
*/
|
7 |
-
|
8 |
-
dp.sh.Brushes.Vb=function()
|
9 |
-
{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:new RegExp('\'.*$','gm'),css:'comment'},{regex:dp.sh.RegexLib.DoubleQuotedString,css:'string'},{regex:new RegExp('^\\s*#.*','gm'),css:'preprocessor'},{regex:new RegExp(this.GetKeywords(keywords),'gm'),css:'keyword'}];this.CssClass='dp-vb';}
|
10 |
-
dp.sh.Brushes.Vb.prototype=new dp.sh.Highlighter();dp.sh.Brushes.Vb.Aliases=['vb','vb.net'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
files/shBrushXml.js
DELETED
@@ -1,19 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* JsMin
|
3 |
-
* Javascript Compressor
|
4 |
-
* http://www.crockford.com/
|
5 |
-
* http://www.smallsharptools.com/
|
6 |
-
*/
|
7 |
-
|
8 |
-
dp.sh.Brushes.Xml=function()
|
9 |
-
{this.CssClass='dp-xml';this.Style='.dp-xml .cdata { color: #ff1493; }'+'.dp-xml .tag, .dp-xml .tag-name { color: #069; font-weight: bold; }'+'.dp-xml .attribute { color: red; }'+'.dp-xml .attribute-value { color: blue; }';}
|
10 |
-
dp.sh.Brushes.Xml.prototype=new dp.sh.Highlighter();dp.sh.Brushes.Xml.Aliases=['xml','xhtml','xslt','html','xhtml'];dp.sh.Brushes.Xml.prototype.ProcessRegexList=function()
|
11 |
-
{function push(array,value)
|
12 |
-
{array[array.length]=value;}
|
13 |
-
var index=0;var match=null;var regex=null;this.GetMatches(new RegExp('(\<|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\>|>)','gm'),'cdata');this.GetMatches(new RegExp('(\<|<)!--\\s*.*?\\s*--(\>|>)','gm'),'comments');regex=new RegExp('([:\\w-\.]+)\\s*=\\s*(".*?"|\'.*?\'|\\w+)*|(\\w+)','gm');while((match=regex.exec(this.code))!=null)
|
14 |
-
{if(match[1]==null)
|
15 |
-
{continue;}
|
16 |
-
push(this.matches,new dp.sh.Match(match[1],match.index,'attribute'));if(match[2]!=undefined)
|
17 |
-
{push(this.matches,new dp.sh.Match(match[2],match.index+match[0].indexOf(match[2]),'attribute-value'));}}
|
18 |
-
this.GetMatches(new RegExp('(\<|<)/*\\?*(?!\\!)|/*\\?*(\>|>)','gm'),'tag');regex=new RegExp('(?:\<|<)/*\\?*\\s*([:\\w-\.]+)','gm');while((match=regex.exec(this.code))!=null)
|
19 |
-
{push(this.matches,new dp.sh.Match(match[1],match.index+match[0].indexOf(match[1]),'tag-name'));}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
files/shCore.js
DELETED
@@ -1,161 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* JsMin
|
3 |
-
* Javascript Compressor
|
4 |
-
* http://www.crockford.com/
|
5 |
-
* http://www.smallsharptools.com/
|
6 |
-
*/
|
7 |
-
|
8 |
-
var dp={sh:{Toolbar:{},Utils:{},RegexLib:{},Brushes:{},Strings:{AboutDialog:'<html><head><title>About...</title></head><body class="dp-about"><table cellspacing="0"><tr><td class="copy"><p class="title">dp.SyntaxHighlighter</div><div class="para">Version: {V}</p><p><a href="http://www.dreamprojections.com/syntaxhighlighter/?ref=about" target="_blank">http://www.dreamprojections.com/syntaxhighlighter</a></p>©2004-2007 Alex Gorbatchev.</td></tr><tr><td class="footer"><input type="button" class="close" value="OK" onClick="window.close()"/></td></tr></table></body></html>'},ClipboardSwf:null,Version:'1.5.1'}};dp.SyntaxHighlighter=dp.sh;dp.sh.Toolbar.Commands={ExpandSource:{label:'+ expand source',check:function(highlighter){return highlighter.collapse;},func:function(sender,highlighter)
|
9 |
-
{sender.parentNode.removeChild(sender);highlighter.div.className=highlighter.div.className.replace('collapsed','');}},ViewSource:{label:'view plain',func:function(sender,highlighter)
|
10 |
-
{var code=dp.sh.Utils.FixForBlogger(highlighter.originalCode).replace(/</g,'<');var wnd=window.open('','_blank','width=750, height=400, location=0, resizable=1, menubar=0, scrollbars=0');wnd.document.write('<textarea style="width:99%;height:99%">'+code+'</textarea>');wnd.document.close();}},CopyToClipboard:{label:'copy to clipboard',check:function(){return window.clipboardData!=null||dp.sh.ClipboardSwf!=null;},func:function(sender,highlighter)
|
11 |
-
{var code=dp.sh.Utils.FixForBlogger(highlighter.originalCode).replace(/</g,'<').replace(/>/g,'>').replace(/&/g,'&');if(window.clipboardData)
|
12 |
-
{window.clipboardData.setData('text',code);}
|
13 |
-
else if(dp.sh.ClipboardSwf!=null)
|
14 |
-
{var flashcopier=highlighter.flashCopier;if(flashcopier==null)
|
15 |
-
{flashcopier=document.createElement('div');highlighter.flashCopier=flashcopier;highlighter.div.appendChild(flashcopier);}
|
16 |
-
flashcopier.innerHTML='<embed src="'+dp.sh.ClipboardSwf+'" FlashVars="clipboard='+encodeURIComponent(code)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>';}
|
17 |
-
alert('The code is in your clipboard now');}},PrintSource:{label:'print',func:function(sender,highlighter)
|
18 |
-
{var iframe=document.createElement('IFRAME');var doc=null;iframe.style.cssText='position:absolute;width:0px;height:0px;left:-500px;top:-500px;';document.body.appendChild(iframe);doc=iframe.contentWindow.document;dp.sh.Utils.CopyStyles(doc,window.document);doc.write('<div class="'+highlighter.div.className.replace('collapsed','')+' printing">'+highlighter.div.innerHTML+'</div>');doc.close();iframe.contentWindow.focus();iframe.contentWindow.print();alert('Printing...');document.body.removeChild(iframe);}},About:{label:'?',func:function(highlighter)
|
19 |
-
{var wnd=window.open('','_blank','dialog,width=300,height=150,scrollbars=0');var doc=wnd.document;dp.sh.Utils.CopyStyles(doc,window.document);doc.write(dp.sh.Strings.AboutDialog.replace('{V}',dp.sh.Version));doc.close();wnd.focus();}}};dp.sh.Toolbar.Create=function(highlighter)
|
20 |
-
{var div=document.createElement('DIV');div.className='tools';for(var name in dp.sh.Toolbar.Commands)
|
21 |
-
{var cmd=dp.sh.Toolbar.Commands[name];if(cmd.check!=null&&!cmd.check(highlighter))
|
22 |
-
continue;div.innerHTML+='<a href="#" onclick="dp.sh.Toolbar.Command(\''+name+'\',this);return false;">'+cmd.label+'</a>';}
|
23 |
-
return div;}
|
24 |
-
dp.sh.Toolbar.Command=function(name,sender)
|
25 |
-
{var n=sender;while(n!=null&&n.className.indexOf('dp-highlighter')==-1)
|
26 |
-
n=n.parentNode;if(n!=null)
|
27 |
-
dp.sh.Toolbar.Commands[name].func(sender,n.highlighter);}
|
28 |
-
dp.sh.Utils.CopyStyles=function(destDoc,sourceDoc)
|
29 |
-
{var links=sourceDoc.getElementsByTagName('link');for(var i=0;i<links.length;i++)
|
30 |
-
if(links[i].rel.toLowerCase()=='stylesheet')
|
31 |
-
destDoc.write('<link type="text/css" rel="stylesheet" href="'+links[i].href+'"></link>');}
|
32 |
-
dp.sh.Utils.FixForBlogger=function(str)
|
33 |
-
{return(dp.sh.isBloggerMode==true)?str.replace(/<br\s*\/?>|<br\s*\/?>/gi,'\n'):str;}
|
34 |
-
dp.sh.RegexLib={MultiLineCComments:new RegExp('/\\*[\\s\\S]*?\\*/','gm'),SingleLineCComments:new RegExp('//.*$','gm'),SingleLinePerlComments:new RegExp('#.*$','gm'),DoubleQuotedString:new RegExp('"(?:\\.|(\\\\\\")|[^\\""\\n])*"','g'),SingleQuotedString:new RegExp("'(?:\\.|(\\\\\\')|[^\\''\\n])*'",'g')};dp.sh.Match=function(value,index,css)
|
35 |
-
{this.value=value;this.index=index;this.length=value.length;this.css=css;}
|
36 |
-
dp.sh.Highlighter=function()
|
37 |
-
{this.noGutter=false;this.addControls=true;this.collapse=false;this.tabsToSpaces=true;this.wrapColumn=80;this.showColumns=true;}
|
38 |
-
dp.sh.Highlighter.SortCallback=function(m1,m2)
|
39 |
-
{if(m1.index<m2.index)
|
40 |
-
return-1;else if(m1.index>m2.index)
|
41 |
-
return 1;else
|
42 |
-
{if(m1.length<m2.length)
|
43 |
-
return-1;else if(m1.length>m2.length)
|
44 |
-
return 1;}
|
45 |
-
return 0;}
|
46 |
-
dp.sh.Highlighter.prototype.CreateElement=function(name)
|
47 |
-
{var result=document.createElement(name);result.highlighter=this;return result;}
|
48 |
-
dp.sh.Highlighter.prototype.GetMatches=function(regex,css)
|
49 |
-
{var index=0;var match=null;while((match=regex.exec(this.code))!=null)
|
50 |
-
this.matches[this.matches.length]=new dp.sh.Match(match[0],match.index,css);}
|
51 |
-
dp.sh.Highlighter.prototype.AddBit=function(str,css)
|
52 |
-
{if(str==null||str.length==0)
|
53 |
-
return;var span=this.CreateElement('SPAN');str=str.replace(/ /g,' ');str=str.replace(/</g,'<');str=str.replace(/\n/gm,' <br>');if(css!=null)
|
54 |
-
{if((/br/gi).test(str))
|
55 |
-
{var lines=str.split(' <br>');for(var i=0;i<lines.length;i++)
|
56 |
-
{span=this.CreateElement('SPAN');span.className=css;span.innerHTML=lines[i];this.div.appendChild(span);if(i+1<lines.length)
|
57 |
-
this.div.appendChild(this.CreateElement('BR'));}}
|
58 |
-
else
|
59 |
-
{span.className=css;span.innerHTML=str;this.div.appendChild(span);}}
|
60 |
-
else
|
61 |
-
{span.innerHTML=str;this.div.appendChild(span);}}
|
62 |
-
dp.sh.Highlighter.prototype.IsInside=function(match)
|
63 |
-
{if(match==null||match.length==0)
|
64 |
-
return false;for(var i=0;i<this.matches.length;i++)
|
65 |
-
{var c=this.matches[i];if(c==null)
|
66 |
-
continue;if((match.index>c.index)&&(match.index<c.index+c.length))
|
67 |
-
return true;}
|
68 |
-
return false;}
|
69 |
-
dp.sh.Highlighter.prototype.ProcessRegexList=function()
|
70 |
-
{for(var i=0;i<this.regexList.length;i++)
|
71 |
-
this.GetMatches(this.regexList[i].regex,this.regexList[i].css);}
|
72 |
-
dp.sh.Highlighter.prototype.ProcessSmartTabs=function(code)
|
73 |
-
{var lines=code.split('\n');var result='';var tabSize=4;var tab='\t';function InsertSpaces(line,pos,count)
|
74 |
-
{var left=line.substr(0,pos);var right=line.substr(pos+1,line.length);var spaces='';for(var i=0;i<count;i++)
|
75 |
-
spaces+=' ';return left+spaces+right;}
|
76 |
-
function ProcessLine(line,tabSize)
|
77 |
-
{if(line.indexOf(tab)==-1)
|
78 |
-
return line;var pos=0;while((pos=line.indexOf(tab))!=-1)
|
79 |
-
{var spaces=tabSize-pos%tabSize;line=InsertSpaces(line,pos,spaces);}
|
80 |
-
return line;}
|
81 |
-
for(var i=0;i<lines.length;i++)
|
82 |
-
result+=ProcessLine(lines[i],tabSize)+'\n';return result;}
|
83 |
-
dp.sh.Highlighter.prototype.SwitchToList=function()
|
84 |
-
{var html=this.div.innerHTML.replace(/<(br)\/?>/gi,'\n');var lines=html.split('\n');if(this.addControls==true)
|
85 |
-
this.bar.appendChild(dp.sh.Toolbar.Create(this));if(this.showColumns)
|
86 |
-
{var div=this.CreateElement('div');var columns=this.CreateElement('div');var showEvery=10;var i=1;while(i<=150)
|
87 |
-
{if(i%showEvery==0)
|
88 |
-
{div.innerHTML+=i;i+=(i+'').length;}
|
89 |
-
else
|
90 |
-
{div.innerHTML+='·';i++;}}
|
91 |
-
columns.className='columns';columns.appendChild(div);this.bar.appendChild(columns);}
|
92 |
-
for(var i=0,lineIndex=this.firstLine;i<lines.length-1;i++,lineIndex++)
|
93 |
-
{var li=this.CreateElement('LI');var span=this.CreateElement('SPAN');li.className=(i%2==0)?'alt':'';span.innerHTML=lines[i]+' ';li.appendChild(span);this.ol.appendChild(li);}
|
94 |
-
this.div.innerHTML='';}
|
95 |
-
dp.sh.Highlighter.prototype.Highlight=function(code)
|
96 |
-
{function Trim(str)
|
97 |
-
{return str.replace(/^\s*(.*?)[\s\n]*$/g,'$1');}
|
98 |
-
function Chop(str)
|
99 |
-
{return str.replace(/\n*$/,'').replace(/^\n*/,'');}
|
100 |
-
function Unindent(str)
|
101 |
-
{var lines=dp.sh.Utils.FixForBlogger(str).split('\n');var indents=new Array();var regex=new RegExp('^\\s*','g');var min=1000;for(var i=0;i<lines.length&&min>0;i++)
|
102 |
-
{if(Trim(lines[i]).length==0)
|
103 |
-
continue;var matches=regex.exec(lines[i]);if(matches!=null&&matches.length>0)
|
104 |
-
min=Math.min(matches[0].length,min);}
|
105 |
-
if(min>0)
|
106 |
-
for(var i=0;i<lines.length;i++)
|
107 |
-
lines[i]=lines[i].substr(min);return lines.join('\n');}
|
108 |
-
function Copy(string,pos1,pos2)
|
109 |
-
{return string.substr(pos1,pos2-pos1);}
|
110 |
-
var pos=0;if(code==null)
|
111 |
-
code='';this.originalCode=code;this.code=Chop(Unindent(code));this.div=this.CreateElement('DIV');this.bar=this.CreateElement('DIV');this.ol=this.CreateElement('OL');this.matches=new Array();this.div.className='dp-highlighter';this.div.highlighter=this;this.bar.className='bar';this.ol.start=this.firstLine;if(this.CssClass!=null)
|
112 |
-
this.ol.className=this.CssClass;if(this.collapse)
|
113 |
-
this.div.className+=' collapsed';if(this.noGutter)
|
114 |
-
this.div.className+=' nogutter';if(this.tabsToSpaces==true)
|
115 |
-
this.code=this.ProcessSmartTabs(this.code);this.ProcessRegexList();if(this.matches.length==0)
|
116 |
-
{this.AddBit(this.code,null);this.SwitchToList();this.div.appendChild(this.bar);this.div.appendChild(this.ol);return;}
|
117 |
-
this.matches=this.matches.sort(dp.sh.Highlighter.SortCallback);for(var i=0;i<this.matches.length;i++)
|
118 |
-
if(this.IsInside(this.matches[i]))
|
119 |
-
this.matches[i]=null;for(var i=0;i<this.matches.length;i++)
|
120 |
-
{var match=this.matches[i];if(match==null||match.length==0)
|
121 |
-
continue;this.AddBit(Copy(this.code,pos,match.index),null);this.AddBit(match.value,match.css);pos=match.index+match.length;}
|
122 |
-
this.AddBit(this.code.substr(pos),null);this.SwitchToList();this.div.appendChild(this.bar);this.div.appendChild(this.ol);}
|
123 |
-
dp.sh.Highlighter.prototype.GetKeywords=function(str)
|
124 |
-
{return'\\b'+str.replace(/ /g,'\\b|\\b')+'\\b';}
|
125 |
-
dp.sh.BloggerMode=function()
|
126 |
-
{dp.sh.isBloggerMode=true;}
|
127 |
-
dp.sh.HighlightAll=function(name,showGutter,showControls,collapseAll,firstLine,showColumns)
|
128 |
-
{function FindValue()
|
129 |
-
{var a=arguments;for(var i=0;i<a.length;i++)
|
130 |
-
{if(a[i]==null)
|
131 |
-
continue;if(typeof(a[i])=='string'&&a[i]!='')
|
132 |
-
return a[i]+'';if(typeof(a[i])=='object'&&a[i].value!='')
|
133 |
-
return a[i].value+'';}
|
134 |
-
return null;}
|
135 |
-
function IsOptionSet(value,list)
|
136 |
-
{for(var i=0;i<list.length;i++)
|
137 |
-
if(list[i]==value)
|
138 |
-
return true;return false;}
|
139 |
-
function GetOptionValue(name,list,defaultValue)
|
140 |
-
{var regex=new RegExp('^'+name+'\\[(\\w+)\\]$','gi');var matches=null;for(var i=0;i<list.length;i++)
|
141 |
-
if((matches=regex.exec(list[i]))!=null)
|
142 |
-
return matches[1];return defaultValue;}
|
143 |
-
function FindTagsByName(list,name,tagName)
|
144 |
-
{var tags=document.getElementsByTagName(tagName);for(var i=0;i<tags.length;i++)
|
145 |
-
if(tags[i].getAttribute('name')==name)
|
146 |
-
list.push(tags[i]);}
|
147 |
-
var elements=[];var highlighter=null;var registered={};var propertyName='innerHTML';FindTagsByName(elements,name,'pre');FindTagsByName(elements,name,'textarea');if(elements.length==0)
|
148 |
-
return;for(var brush in dp.sh.Brushes)
|
149 |
-
{var aliases=dp.sh.Brushes[brush].Aliases;if(aliases==null)
|
150 |
-
continue;for(var i=0;i<aliases.length;i++)
|
151 |
-
registered[aliases[i]]=brush;}
|
152 |
-
for(var i=0;i<elements.length;i++)
|
153 |
-
{var element=elements[i];var options=FindValue(element.attributes['class'],element.className,element.attributes['language'],element.language);var language='';if(options==null)
|
154 |
-
continue;options=options.split(':');language=options[0].toLowerCase();if(registered[language]==null)
|
155 |
-
continue;highlighter=new dp.sh.Brushes[registered[language]]();element.style.display='none';highlighter.noGutter=(showGutter==null)?IsOptionSet('nogutter',options):!showGutter;highlighter.addControls=(showControls==null)?!IsOptionSet('nocontrols',options):showControls;highlighter.collapse=(collapseAll==null)?IsOptionSet('collapse',options):collapseAll;highlighter.showColumns=(showColumns==null)?IsOptionSet('showcolumns',options):showColumns;var headNode=document.getElementsByTagName('head')[0];if(highlighter.Style&&headNode)
|
156 |
-
{var styleNode=document.createElement('style');styleNode.setAttribute('type','text/css');if(styleNode.styleSheet)
|
157 |
-
{styleNode.styleSheet.cssText=highlighter.Style;}
|
158 |
-
else
|
159 |
-
{var textNode=document.createTextNode(highlighter.Style);styleNode.appendChild(textNode);}
|
160 |
-
headNode.appendChild(styleNode);}
|
161 |
-
highlighter.firstLine=(firstLine==null)?parseInt(GetOptionValue('firstline',options,1)):firstLine;highlighter.Highlight(element[propertyName]);highlighter.source=element;element.parentNode.insertBefore(highlighter.div,element);}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
localization/_syntaxhighlighter-template.po
ADDED
@@ -0,0 +1,288 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# SOME DESCRIPTIVE TITLE.
|
2 |
+
# Copyright (C) YEAR Viper007Bond
|
3 |
+
# This file is distributed under the same license as the PACKAGE package.
|
4 |
+
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
5 |
+
#
|
6 |
+
#, fuzzy
|
7 |
+
msgid ""
|
8 |
+
msgstr ""
|
9 |
+
"Project-Id-Version: PACKAGE VERSION\n"
|
10 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/syntaxhighlighter\n"
|
11 |
+
"POT-Creation-Date: 2009-03-29 05:19+0000\n"
|
12 |
+
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
13 |
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
+
"MIME-Version: 1.0\n"
|
16 |
+
"Content-Type: text/plain; charset=CHARSET\n"
|
17 |
+
"Content-Transfer-Encoding: 8bit\n"
|
18 |
+
|
19 |
+
#: syntaxhighlighter.php:128
|
20 |
+
msgid "Default"
|
21 |
+
msgstr ""
|
22 |
+
|
23 |
+
#: syntaxhighlighter.php:129
|
24 |
+
msgid "Django"
|
25 |
+
msgstr ""
|
26 |
+
|
27 |
+
#: syntaxhighlighter.php:130
|
28 |
+
msgid "Emacs"
|
29 |
+
msgstr ""
|
30 |
+
|
31 |
+
#: syntaxhighlighter.php:131
|
32 |
+
msgid "Fade to Grey"
|
33 |
+
msgstr ""
|
34 |
+
|
35 |
+
#: syntaxhighlighter.php:132
|
36 |
+
msgid "Midnight"
|
37 |
+
msgstr ""
|
38 |
+
|
39 |
+
#: syntaxhighlighter.php:133
|
40 |
+
msgid "RDark"
|
41 |
+
msgstr ""
|
42 |
+
|
43 |
+
#: syntaxhighlighter.php:134
|
44 |
+
msgid "[None]"
|
45 |
+
msgstr ""
|
46 |
+
|
47 |
+
#: syntaxhighlighter.php:181 syntaxhighlighter.php:526
|
48 |
+
msgid "SyntaxHighlighter Settings"
|
49 |
+
msgstr ""
|
50 |
+
|
51 |
+
#. #-#-#-#-# plugin.pot (PACKAGE VERSION) #-#-#-#-#
|
52 |
+
#. Plugin Name of an extension
|
53 |
+
#: syntaxhighlighter.php:181
|
54 |
+
msgid "SyntaxHighlighter"
|
55 |
+
msgstr ""
|
56 |
+
|
57 |
+
#: syntaxhighlighter.php:329
|
58 |
+
msgid "expand source"
|
59 |
+
msgstr ""
|
60 |
+
|
61 |
+
#: syntaxhighlighter.php:330
|
62 |
+
msgid "view source"
|
63 |
+
msgstr ""
|
64 |
+
|
65 |
+
#: syntaxhighlighter.php:331
|
66 |
+
msgid "copy to clipboard"
|
67 |
+
msgstr ""
|
68 |
+
|
69 |
+
#: syntaxhighlighter.php:332
|
70 |
+
msgid "The code is in your clipboard now"
|
71 |
+
msgstr ""
|
72 |
+
|
73 |
+
#: syntaxhighlighter.php:333
|
74 |
+
msgid "print"
|
75 |
+
msgstr ""
|
76 |
+
|
77 |
+
#: syntaxhighlighter.php:334
|
78 |
+
msgid "?"
|
79 |
+
msgstr ""
|
80 |
+
|
81 |
+
#: syntaxhighlighter.php:335
|
82 |
+
msgid "SyntaxHighlighter\\n\\n"
|
83 |
+
msgstr ""
|
84 |
+
|
85 |
+
#: syntaxhighlighter.php:336
|
86 |
+
msgid "Can't find brush for: "
|
87 |
+
msgstr ""
|
88 |
+
|
89 |
+
#: syntaxhighlighter.php:337
|
90 |
+
msgid "Brush wasn't configured for html-script option: "
|
91 |
+
msgstr ""
|
92 |
+
|
93 |
+
#: syntaxhighlighter.php:509
|
94 |
+
msgid "Settings reset to defaults."
|
95 |
+
msgstr ""
|
96 |
+
|
97 |
+
#: syntaxhighlighter.php:517
|
98 |
+
msgid "Are you sure you want to reset your settings to the defaults?"
|
99 |
+
msgstr ""
|
100 |
+
|
101 |
+
#: syntaxhighlighter.php:536
|
102 |
+
msgid "Color Theme"
|
103 |
+
msgstr ""
|
104 |
+
|
105 |
+
#: syntaxhighlighter.php:551
|
106 |
+
msgid "Defaults"
|
107 |
+
msgstr ""
|
108 |
+
|
109 |
+
#: syntaxhighlighter.php:553
|
110 |
+
msgid ""
|
111 |
+
"All of the settings below can also be configured on a per-code box basis."
|
112 |
+
msgstr ""
|
113 |
+
|
114 |
+
#: syntaxhighlighter.php:557 syntaxhighlighter.php:560
|
115 |
+
msgid "Miscellaneous"
|
116 |
+
msgstr ""
|
117 |
+
|
118 |
+
#: syntaxhighlighter.php:562
|
119 |
+
msgid "Display line numbers"
|
120 |
+
msgstr ""
|
121 |
+
|
122 |
+
#: syntaxhighlighter.php:563
|
123 |
+
msgid "Display the toolbar"
|
124 |
+
msgstr ""
|
125 |
+
|
126 |
+
#: syntaxhighlighter.php:564
|
127 |
+
msgid "Automatically make URLs clickable"
|
128 |
+
msgstr ""
|
129 |
+
|
130 |
+
#: syntaxhighlighter.php:565
|
131 |
+
msgid "Collapse code boxes"
|
132 |
+
msgstr ""
|
133 |
+
|
134 |
+
#: syntaxhighlighter.php:566
|
135 |
+
msgid "Show a ruler column along the top of the code box"
|
136 |
+
msgstr ""
|
137 |
+
|
138 |
+
#: syntaxhighlighter.php:567
|
139 |
+
msgid "Use the light display mode, best for single lines of code"
|
140 |
+
msgstr ""
|
141 |
+
|
142 |
+
#: syntaxhighlighter.php:568
|
143 |
+
msgid "Use smart tabs allowing tabs being used for alignment"
|
144 |
+
msgstr ""
|
145 |
+
|
146 |
+
#: syntaxhighlighter.php:573
|
147 |
+
msgid "Additional CSS Class(es)"
|
148 |
+
msgstr ""
|
149 |
+
|
150 |
+
#: syntaxhighlighter.php:577
|
151 |
+
msgid "Starting Line Number"
|
152 |
+
msgstr ""
|
153 |
+
|
154 |
+
#: syntaxhighlighter.php:582
|
155 |
+
msgid "Font Size (Percentage)"
|
156 |
+
msgstr ""
|
157 |
+
|
158 |
+
#: syntaxhighlighter.php:588
|
159 |
+
msgid "Tab Size"
|
160 |
+
msgstr ""
|
161 |
+
|
162 |
+
#: syntaxhighlighter.php:594
|
163 |
+
msgid "Save Changes"
|
164 |
+
msgstr ""
|
165 |
+
|
166 |
+
#: syntaxhighlighter.php:595
|
167 |
+
msgid "Reset to Defaults"
|
168 |
+
msgstr ""
|
169 |
+
|
170 |
+
#: syntaxhighlighter.php:600
|
171 |
+
msgid "Preview"
|
172 |
+
msgstr ""
|
173 |
+
|
174 |
+
#: syntaxhighlighter.php:602
|
175 |
+
msgid "Click "Save Changes" to update this preview."
|
176 |
+
msgstr ""
|
177 |
+
|
178 |
+
#: syntaxhighlighter.php:637
|
179 |
+
msgid "Shortcode Parameters"
|
180 |
+
msgstr ""
|
181 |
+
|
182 |
+
#: syntaxhighlighter.php:639
|
183 |
+
#, php-format
|
184 |
+
msgid ""
|
185 |
+
"These are the parameters you can pass to the shortcode and what they do. For "
|
186 |
+
"the booleans (i.e. on/off), pass %1$s/%2$s or %3$s/%4$s."
|
187 |
+
msgstr ""
|
188 |
+
|
189 |
+
#: syntaxhighlighter.php:642
|
190 |
+
#, php-format
|
191 |
+
msgid ""
|
192 |
+
"%1$s or %2$s — The language syntax to highlight with. You can "
|
193 |
+
"alternately just use that as the tag, such as <code>[php]code[/php]</code>. "
|
194 |
+
"<a href=\"%3$s\">Click here</a> for a list of valid tags (under ""
|
195 |
+
"aliases")."
|
196 |
+
msgstr ""
|
197 |
+
|
198 |
+
#: syntaxhighlighter.php:643
|
199 |
+
#, php-format
|
200 |
+
msgid "%s — Toggle automatic URL linking."
|
201 |
+
msgstr ""
|
202 |
+
|
203 |
+
#: syntaxhighlighter.php:644
|
204 |
+
#, php-format
|
205 |
+
msgid "%s — Add an additional CSS class to the code box."
|
206 |
+
msgstr ""
|
207 |
+
|
208 |
+
#: syntaxhighlighter.php:645
|
209 |
+
#, php-format
|
210 |
+
msgid ""
|
211 |
+
"%s — Toggle collapsing the code box by default, requiring a click to "
|
212 |
+
"expand it. Good for large code posts."
|
213 |
+
msgstr ""
|
214 |
+
|
215 |
+
#: syntaxhighlighter.php:646
|
216 |
+
#, php-format
|
217 |
+
msgid ""
|
218 |
+
"%s — An interger specifying what number the first line should be (for "
|
219 |
+
"the line numbering)."
|
220 |
+
msgstr ""
|
221 |
+
|
222 |
+
#: syntaxhighlighter.php:647
|
223 |
+
#, php-format
|
224 |
+
msgid "%s — Toggle the left-side line numbering."
|
225 |
+
msgstr ""
|
226 |
+
|
227 |
+
#: syntaxhighlighter.php:648
|
228 |
+
#, php-format
|
229 |
+
msgid "%s — A comma-sperated list of line numbers to highlight."
|
230 |
+
msgstr ""
|
231 |
+
|
232 |
+
#: syntaxhighlighter.php:649
|
233 |
+
#, php-format
|
234 |
+
msgid ""
|
235 |
+
"%s — Toggle highlighting any extra HTML/XML. Good for when you're "
|
236 |
+
"mixing HTML/XML with another language, such as having PHP inside an HTML web "
|
237 |
+
"page. The above preview has it enabled for example."
|
238 |
+
msgstr ""
|
239 |
+
|
240 |
+
#: syntaxhighlighter.php:650
|
241 |
+
#, php-format
|
242 |
+
msgid ""
|
243 |
+
"%s — Toggle light mode which disables the gutter, toolbar, and ruler "
|
244 |
+
"all at once."
|
245 |
+
msgstr ""
|
246 |
+
|
247 |
+
#: syntaxhighlighter.php:651
|
248 |
+
#, php-format
|
249 |
+
msgid "%s — Toggle the column ruler at the top of the code box."
|
250 |
+
msgstr ""
|
251 |
+
|
252 |
+
#: syntaxhighlighter.php:652
|
253 |
+
#, php-format
|
254 |
+
msgid "%s — Toggle the toolbar containing the helpful buttons."
|
255 |
+
msgstr ""
|
256 |
+
|
257 |
+
#: syntaxhighlighter.php:655
|
258 |
+
msgid "Some example shortcodes:"
|
259 |
+
msgstr ""
|
260 |
+
|
261 |
+
#: syntaxhighlighter.php:658 syntaxhighlighter.php:659
|
262 |
+
#: syntaxhighlighter.php:660 syntaxhighlighter.php:661
|
263 |
+
msgid "your code here"
|
264 |
+
msgstr ""
|
265 |
+
|
266 |
+
#: syntaxhighlighter.php:676
|
267 |
+
msgid "Cheatin’ uh?"
|
268 |
+
msgstr ""
|
269 |
+
|
270 |
+
#. Plugin URI of an extension
|
271 |
+
msgid "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/"
|
272 |
+
msgstr ""
|
273 |
+
|
274 |
+
#. Description of an extension
|
275 |
+
msgid ""
|
276 |
+
"Easily post code to your blog while still maintaining complete control over "
|
277 |
+
"it's display. Uses Alex Gorbatchev's <a href=\"http://code.google.com/p/"
|
278 |
+
"syntaxhighlighter/\">SyntaxHighlighter</a> and code by <a href=\"http://"
|
279 |
+
"automattic.com/\">Automattic</a>."
|
280 |
+
msgstr ""
|
281 |
+
|
282 |
+
#. Author of an extension
|
283 |
+
msgid "Viper007Bond"
|
284 |
+
msgstr ""
|
285 |
+
|
286 |
+
#. Author URI of an extension
|
287 |
+
msgid "http://www.viper007bond.com/"
|
288 |
+
msgstr ""
|
localization/syntaxhighlighter-da_DK.mo
ADDED
Binary file
|
localization/syntaxhighlighter-da_DK.po
ADDED
@@ -0,0 +1,269 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Syntax Highlighter 2.1.0 in Danish / på dansk\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2009-05-07 10:42+0100\n"
|
6 |
+
"PO-Revision-Date: \n"
|
7 |
+
"Last-Translator: Georg S. Adamsen <wordpress@blogos.dk>\n"
|
8 |
+
"Language-Team: Team Blogos <wordpress@blogos.dk>\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"Plural-Forms: nplurals=2;plural=n != 1;\n"
|
13 |
+
"X-Poedit-Language: Danish\n"
|
14 |
+
"X-Poedit-Country: DENMARK\n"
|
15 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
16 |
+
"X-Poedit-KeywordsList: __;_c;_e;__ngettext:1,2;__ngettext_noop:1,2\n"
|
17 |
+
"X-Poedit-Basepath: f:\\ra_d\\wordpress\\plugins\\syntaxhighlighter\n"
|
18 |
+
"X-Poedit-SearchPath-0: f:\\fra_d\\wordpress\\plugins\\syntaxhighlighter\n"
|
19 |
+
|
20 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:138
|
21 |
+
msgid "Default"
|
22 |
+
msgstr "Standard"
|
23 |
+
|
24 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:139
|
25 |
+
msgid "Django"
|
26 |
+
msgstr "Django"
|
27 |
+
|
28 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:140
|
29 |
+
msgid "Emacs"
|
30 |
+
msgstr "Emacs"
|
31 |
+
|
32 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:141
|
33 |
+
msgid "Fade to Grey"
|
34 |
+
msgstr "Fade til gråt"
|
35 |
+
|
36 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:142
|
37 |
+
msgid "Midnight"
|
38 |
+
msgstr "Midnight"
|
39 |
+
|
40 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:143
|
41 |
+
msgid "RDark"
|
42 |
+
msgstr "RDark"
|
43 |
+
|
44 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:144
|
45 |
+
msgid "[None]"
|
46 |
+
msgstr "[Ingen]"
|
47 |
+
|
48 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:191
|
49 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:552
|
50 |
+
msgid "SyntaxHighlighter Settings"
|
51 |
+
msgstr "SyntaxHighlighter-indstillinger"
|
52 |
+
|
53 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:191
|
54 |
+
msgid "SyntaxHighlighter"
|
55 |
+
msgstr "SyntaxHighlighter"
|
56 |
+
|
57 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:216
|
58 |
+
msgid "Settings"
|
59 |
+
msgstr "Indstillinger"
|
60 |
+
|
61 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:353
|
62 |
+
msgid "expand source"
|
63 |
+
msgstr "udvid kode"
|
64 |
+
|
65 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:354
|
66 |
+
msgid "view source"
|
67 |
+
msgstr "Vis kilde"
|
68 |
+
|
69 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:355
|
70 |
+
msgid "copy to clipboard"
|
71 |
+
msgstr "Kopiér til clipboard"
|
72 |
+
|
73 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:356
|
74 |
+
msgid "The code is in your clipboard now"
|
75 |
+
msgstr "Koden er i dit clipboard nu"
|
76 |
+
|
77 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:357
|
78 |
+
msgid "print"
|
79 |
+
msgstr "udskriv"
|
80 |
+
|
81 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:358
|
82 |
+
msgid "?"
|
83 |
+
msgstr "?"
|
84 |
+
|
85 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:359
|
86 |
+
msgid ""
|
87 |
+
"SyntaxHighlighter\\n"
|
88 |
+
"\\n"
|
89 |
+
msgstr ""
|
90 |
+
"SyntaxHighlighter\\n"
|
91 |
+
"\\n"
|
92 |
+
|
93 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:360
|
94 |
+
msgid "Can't find brush for: "
|
95 |
+
msgstr "Kan ikke finde penslen (syntaks-definitioner) til: "
|
96 |
+
|
97 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:361
|
98 |
+
msgid "Brush wasn't configured for html-script option: "
|
99 |
+
msgstr "Pensel (syntaks-definitioner) er ikke konfigureret for html-script-indstillignen: "
|
100 |
+
|
101 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:535
|
102 |
+
msgid "Settings reset to defaults."
|
103 |
+
msgstr "Indstillinger nulstillet til standardværdierne."
|
104 |
+
|
105 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:543
|
106 |
+
msgid "Are you sure you want to reset your settings to the defaults?"
|
107 |
+
msgstr "Er du sikker på, at du ønsker at nulstille dine indstillinger standardværdierne?"
|
108 |
+
|
109 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:562
|
110 |
+
msgid "Color Theme"
|
111 |
+
msgstr "Farvetema"
|
112 |
+
|
113 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:577
|
114 |
+
msgid "Defaults"
|
115 |
+
msgstr "Standardværdier"
|
116 |
+
|
117 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:579
|
118 |
+
msgid "All of the settings below can also be configured on a per-code box basis."
|
119 |
+
msgstr "Alle indstillinger nedenfor kan også konfigureres for hver kode-boks for sig."
|
120 |
+
|
121 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:583
|
122 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:586
|
123 |
+
msgid "Miscellaneous"
|
124 |
+
msgstr "Forskelligt"
|
125 |
+
|
126 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:588
|
127 |
+
msgid "Display line numbers"
|
128 |
+
msgstr "Vis linjenumre"
|
129 |
+
|
130 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:589
|
131 |
+
msgid "Display the toolbar"
|
132 |
+
msgstr "Vis værktøjslinje"
|
133 |
+
|
134 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:590
|
135 |
+
msgid "Automatically make URLs clickable"
|
136 |
+
msgstr "Lav automatisk URL'er klikbare"
|
137 |
+
|
138 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:591
|
139 |
+
msgid "Collapse code boxes"
|
140 |
+
msgstr "Vis kodebokse med koden skjult"
|
141 |
+
|
142 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:592
|
143 |
+
msgid "Show a ruler column along the top of the code box"
|
144 |
+
msgstr "Vis en lineal for oven på kodeboksen"
|
145 |
+
|
146 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:593
|
147 |
+
msgid "Use the light display mode, best for single lines of code"
|
148 |
+
msgstr "Brug \"bar visning\" – bedst for enkelte linjer af kode"
|
149 |
+
|
150 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:594
|
151 |
+
msgid "Use smart tabs allowing tabs being used for alignment"
|
152 |
+
msgstr "Brug smarte tabs, så tabs kan bruges til opstilling"
|
153 |
+
|
154 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:595
|
155 |
+
msgid "Wrap long lines, using an icon to show where line wraps occur (disabling this will make a scrollbar show instead)"
|
156 |
+
msgstr "Del lange linjer med et ikon, der viser, hvor linjedeling forekommer (deaktiverer du dette, vises en scrollbar i stedet)"
|
157 |
+
|
158 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:600
|
159 |
+
msgid "Additional CSS Class(es)"
|
160 |
+
msgstr "Ekstra CSS-class(es)"
|
161 |
+
|
162 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:604
|
163 |
+
msgid "Starting Line Number"
|
164 |
+
msgstr "Første linjenummer:"
|
165 |
+
|
166 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:608
|
167 |
+
msgid "Tab Size"
|
168 |
+
msgstr "Tabstørrelse:"
|
169 |
+
|
170 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:614
|
171 |
+
msgid "Save Changes"
|
172 |
+
msgstr "Gem ændringer"
|
173 |
+
|
174 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:615
|
175 |
+
msgid "Reset to Defaults"
|
176 |
+
msgstr "Gendan til standardværdier"
|
177 |
+
|
178 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:620
|
179 |
+
msgid "Preview"
|
180 |
+
msgstr "Forhåndsvisning"
|
181 |
+
|
182 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:622
|
183 |
+
msgid "Click "Save Changes" to update this preview."
|
184 |
+
msgstr "Klik "Gem ændringer" for at opdatere denne forhåndsvisning."
|
185 |
+
|
186 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:657
|
187 |
+
msgid "Shortcode Parameters"
|
188 |
+
msgstr "Kortkode-parametre."
|
189 |
+
|
190 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:659
|
191 |
+
#, php-format
|
192 |
+
msgid "These are the parameters you can pass to the shortcode and what they do. For the booleans (i.e. on/off), pass %1$s/%2$s or %3$s/%4$s."
|
193 |
+
msgstr "Her er parametrene, du kan medtage i kortkoderne, samt hvad de gør. For de booleske (dvs. til/fra), brug %1$s/%2$s eller %3$s/%4$s"
|
194 |
+
|
195 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:662
|
196 |
+
#, php-format
|
197 |
+
msgid "%1$s or %2$s — The language syntax to highlight with. You can alternately just use that as the tag, such as <code>[php]code[/php]</code>. <a href=\"%3$s\">Click here</a> for a list of valid tags (under "aliases")."
|
198 |
+
msgstr "%1$s eller %2$s — Sprogsyntaksen til at fremhæve med. Alternativt kan du bruge dem som tags, så som <code>[php]code[/php]</code>. <a href=\"%3$s\">Klik her</a>, hvis du vil se en liste med gyldige tags (under "aliasser")."
|
199 |
+
|
200 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:663
|
201 |
+
#, php-format
|
202 |
+
msgid "%s — Toggle automatic URL linking."
|
203 |
+
msgstr "%s — Slår automatisk URL-linkning til/fra."
|
204 |
+
|
205 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:664
|
206 |
+
#, php-format
|
207 |
+
msgid "%s — Add an additional CSS class to the code box."
|
208 |
+
msgstr "%s — Tilføjer en ekstra CSS-class til kode-boksen."
|
209 |
+
|
210 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:665
|
211 |
+
#, php-format
|
212 |
+
msgid "%s — Toggle collapsing the code box by default, requiring a click to expand it. Good for large code posts."
|
213 |
+
msgstr "%s — Som standard skjules koden i kodeboksen, så der skal klikkes for at vise koden. Nyttigt til indlæg med megen kode."
|
214 |
+
|
215 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:666
|
216 |
+
#, php-format
|
217 |
+
msgid "%s — An interger specifying what number the first line should be (for the line numbering)."
|
218 |
+
msgstr "%s — Et heltal, som angiver, hvilken nummer den første linje skal have (til brug for linjenummerering)."
|
219 |
+
|
220 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:667
|
221 |
+
#, php-format
|
222 |
+
msgid "%s — Toggle the left-side line numbering."
|
223 |
+
msgstr "%s — Skifter mellem linjenummerering til venstre og til højre."
|
224 |
+
|
225 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:668
|
226 |
+
#, php-format
|
227 |
+
msgid "%s — A comma-sperated list of line numbers to highlight."
|
228 |
+
msgstr "%s — En kommasepareret liste med linjenumre, der skal fremhæves."
|
229 |
+
|
230 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:669
|
231 |
+
#, php-format
|
232 |
+
msgid "%s — Toggle highlighting any extra HTML/XML. Good for when you're mixing HTML/XML with another language, such as having PHP inside an HTML web page. The above preview has it enabled for example."
|
233 |
+
msgstr "%s — Slår fremhævelse af ekstra HTML/XML til/fra. Det er nyttigt, når du har HTML/XML i et andet sprog, som f.eks. hvis du har PHP på en HTML-webside. Eksempelvis har ovenstående forhåndsvisning det aktiveret."
|
234 |
+
|
235 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:670
|
236 |
+
#, php-format
|
237 |
+
msgid "%s — Toggle light mode which disables the gutter, toolbar, and ruler all at once."
|
238 |
+
msgstr "%s — Slår \"bar fremvisning\" til/fra. Slået fra skjules \"afløbsrenden\", værktøjslinjen og linealen med det samme."
|
239 |
+
|
240 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:671
|
241 |
+
#, php-format
|
242 |
+
msgid "%s — Toggle the column ruler at the top of the code box."
|
243 |
+
msgstr "%s — Slår kolonnelinealen til/fra i toppen af kodeboksen."
|
244 |
+
|
245 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:672
|
246 |
+
#, php-format
|
247 |
+
msgid "%s — Toggle the toolbar containing the helpful buttons."
|
248 |
+
msgstr "%s — Slår værktøjslinjen med nyttige knapper til/fra."
|
249 |
+
|
250 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:673
|
251 |
+
#, php-format
|
252 |
+
msgid "%s — Toggle line wrapping."
|
253 |
+
msgstr "%s — Slår linjedeling til/fra."
|
254 |
+
|
255 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:676
|
256 |
+
msgid "Some example shortcodes:"
|
257 |
+
msgstr "Nogle eksempler på kortkoder:"
|
258 |
+
|
259 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:679
|
260 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:680
|
261 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:681
|
262 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:682
|
263 |
+
msgid "your code here"
|
264 |
+
msgstr "din kode her"
|
265 |
+
|
266 |
+
#: f:\fra_d\wordpress\plugins\syntaxhighlighter/syntaxhighlighter.php:697
|
267 |
+
msgid "Cheatin’ uh?"
|
268 |
+
msgstr "Snyder du, hva'?"
|
269 |
+
|
localization/syntaxhighlighter-it_IT.mo
ADDED
Binary file
|
localization/syntaxhighlighter-it_IT.po
ADDED
@@ -0,0 +1,278 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# SOME DESCRIPTIVE TITLE.
|
2 |
+
# Copyright (C) YEAR Viper007Bond
|
3 |
+
# This file is distributed under the same license as the PACKAGE package.
|
4 |
+
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
5 |
+
#
|
6 |
+
msgid ""
|
7 |
+
msgstr ""
|
8 |
+
"Project-Id-Version: SyntaxHighlighter Evolved in italiano\n"
|
9 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/syntaxhighlighter\n"
|
10 |
+
"POT-Creation-Date: 2009-03-29 05:19+0000\n"
|
11 |
+
"PO-Revision-Date: 2009-07-22 12:33+0100\n"
|
12 |
+
"Last-Translator: Gianni Diurno (aka gidibao) <gidibao@gmail.com>\n"
|
13 |
+
"Language-Team: Gianni Diurno | http://gidibao.net/ <gidibao@gmail.com>\n"
|
14 |
+
"MIME-Version: 1.0\n"
|
15 |
+
"Content-Type: text/plain; charset=utf-8\n"
|
16 |
+
"Content-Transfer-Encoding: 8bit\n"
|
17 |
+
"X-Poedit-Language: Italian\n"
|
18 |
+
"X-Poedit-Country: ITALY\n"
|
19 |
+
|
20 |
+
#: syntaxhighlighter.php:128
|
21 |
+
msgid "Default"
|
22 |
+
msgstr "Predefinito"
|
23 |
+
|
24 |
+
#: syntaxhighlighter.php:129
|
25 |
+
msgid "Django"
|
26 |
+
msgstr "Django"
|
27 |
+
|
28 |
+
#: syntaxhighlighter.php:130
|
29 |
+
msgid "Emacs"
|
30 |
+
msgstr "Emacs"
|
31 |
+
|
32 |
+
#: syntaxhighlighter.php:131
|
33 |
+
msgid "Fade to Grey"
|
34 |
+
msgstr "Fade to Grey"
|
35 |
+
|
36 |
+
#: syntaxhighlighter.php:132
|
37 |
+
msgid "Midnight"
|
38 |
+
msgstr "Midnight"
|
39 |
+
|
40 |
+
#: syntaxhighlighter.php:133
|
41 |
+
msgid "RDark"
|
42 |
+
msgstr "RDark"
|
43 |
+
|
44 |
+
#: syntaxhighlighter.php:134
|
45 |
+
msgid "[None]"
|
46 |
+
msgstr "[nessuno]"
|
47 |
+
|
48 |
+
#: syntaxhighlighter.php:181
|
49 |
+
#: syntaxhighlighter.php:526
|
50 |
+
msgid "SyntaxHighlighter Settings"
|
51 |
+
msgstr "Impostazioni SyntaxHighlighter"
|
52 |
+
|
53 |
+
#. #-#-#-#-# plugin.pot (PACKAGE VERSION) #-#-#-#-#
|
54 |
+
#. Plugin Name of an extension
|
55 |
+
#: syntaxhighlighter.php:181
|
56 |
+
msgid "SyntaxHighlighter"
|
57 |
+
msgstr "SyntaxHighlighter"
|
58 |
+
|
59 |
+
#: syntaxhighlighter.php:329
|
60 |
+
msgid "expand source"
|
61 |
+
msgstr "espandi sorgente"
|
62 |
+
|
63 |
+
#: syntaxhighlighter.php:330
|
64 |
+
msgid "view source"
|
65 |
+
msgstr "vedi sorgente"
|
66 |
+
|
67 |
+
#: syntaxhighlighter.php:331
|
68 |
+
msgid "copy to clipboard"
|
69 |
+
msgstr "copia negli appunti"
|
70 |
+
|
71 |
+
#: syntaxhighlighter.php:332
|
72 |
+
msgid "The code is in your clipboard now"
|
73 |
+
msgstr "Il codice é da ora nei tuoi appunti"
|
74 |
+
|
75 |
+
#: syntaxhighlighter.php:333
|
76 |
+
msgid "print"
|
77 |
+
msgstr "stampa"
|
78 |
+
|
79 |
+
#: syntaxhighlighter.php:334
|
80 |
+
msgid "?"
|
81 |
+
msgstr "info"
|
82 |
+
|
83 |
+
#: syntaxhighlighter.php:335
|
84 |
+
msgid ""
|
85 |
+
"SyntaxHighlighter\\n"
|
86 |
+
"\\n"
|
87 |
+
msgstr ""
|
88 |
+
"SyntaxHighlighter\\n"
|
89 |
+
"\\n"
|
90 |
+
|
91 |
+
#: syntaxhighlighter.php:336
|
92 |
+
msgid "Can't find brush for: "
|
93 |
+
msgstr "Non é stato possibile trovare il file di sintassi per: "
|
94 |
+
|
95 |
+
#: syntaxhighlighter.php:337
|
96 |
+
msgid "Brush wasn't configured for html-script option: "
|
97 |
+
msgstr "Il file di sintassi non é stato configurato per l'opzione html-script"
|
98 |
+
|
99 |
+
#: syntaxhighlighter.php:509
|
100 |
+
msgid "Settings reset to defaults."
|
101 |
+
msgstr "Ripristina le impostazioni alle predefinite"
|
102 |
+
|
103 |
+
#: syntaxhighlighter.php:517
|
104 |
+
msgid "Are you sure you want to reset your settings to the defaults?"
|
105 |
+
msgstr "Sei certo di volere ripristinare le impostazioni alle predefinite?"
|
106 |
+
|
107 |
+
#: syntaxhighlighter.php:536
|
108 |
+
msgid "Color Theme"
|
109 |
+
msgstr "Colore del tema"
|
110 |
+
|
111 |
+
#: syntaxhighlighter.php:551
|
112 |
+
msgid "Defaults"
|
113 |
+
msgstr "Parametri predefiniti"
|
114 |
+
|
115 |
+
#: syntaxhighlighter.php:553
|
116 |
+
msgid "All of the settings below can also be configured on a per-code box basis."
|
117 |
+
msgstr "Tutte le impostazioni qui sotto potranno essere configurate anche separatamente per ogni singola casella di codice (via shortcode)."
|
118 |
+
|
119 |
+
#: syntaxhighlighter.php:557
|
120 |
+
#: syntaxhighlighter.php:560
|
121 |
+
msgid "Miscellaneous"
|
122 |
+
msgstr "Varie"
|
123 |
+
|
124 |
+
#: syntaxhighlighter.php:562
|
125 |
+
msgid "Display line numbers"
|
126 |
+
msgstr "mostra la numerazione delle linee"
|
127 |
+
|
128 |
+
#: syntaxhighlighter.php:563
|
129 |
+
msgid "Display the toolbar"
|
130 |
+
msgstr "mostra la barra degli strumenti"
|
131 |
+
|
132 |
+
#: syntaxhighlighter.php:564
|
133 |
+
msgid "Automatically make URLs clickable"
|
134 |
+
msgstr "rendi gli URL cliccabili (in automatico)"
|
135 |
+
|
136 |
+
#: syntaxhighlighter.php:565
|
137 |
+
msgid "Collapse code boxes"
|
138 |
+
msgstr "comprimi le caselle del codice"
|
139 |
+
|
140 |
+
#: syntaxhighlighter.php:566
|
141 |
+
msgid "Show a ruler column along the top of the code box"
|
142 |
+
msgstr "mostra in alto del box per il codice una riga graduata per le colonne"
|
143 |
+
|
144 |
+
#: syntaxhighlighter.php:567
|
145 |
+
msgid "Use the light display mode, best for single lines of code"
|
146 |
+
msgstr "utilizza la modalità light del tema, ideale per le singole linee di codice"
|
147 |
+
|
148 |
+
#: syntaxhighlighter.php:568
|
149 |
+
msgid "Use smart tabs allowing tabs being used for alignment"
|
150 |
+
msgstr "utilizza le smart tabs in modo che le tag siano utilizzate per l'allineamento"
|
151 |
+
|
152 |
+
#: syntaxhighlighter.php:573
|
153 |
+
msgid "Additional CSS Class(es)"
|
154 |
+
msgstr "classe/i CSS addizionali"
|
155 |
+
|
156 |
+
#: syntaxhighlighter.php:577
|
157 |
+
msgid "Starting Line Number"
|
158 |
+
msgstr "Numero di inizio linea"
|
159 |
+
|
160 |
+
#: syntaxhighlighter.php:582
|
161 |
+
msgid "Font Size (Percentage)"
|
162 |
+
msgstr "Dimensione font (percentuale)"
|
163 |
+
|
164 |
+
#: syntaxhighlighter.php:588
|
165 |
+
msgid "Tab Size"
|
166 |
+
msgstr "Dimensione tab"
|
167 |
+
|
168 |
+
#: syntaxhighlighter.php:594
|
169 |
+
msgid "Save Changes"
|
170 |
+
msgstr "Salva le modifiche"
|
171 |
+
|
172 |
+
#: syntaxhighlighter.php:595
|
173 |
+
msgid "Reset to Defaults"
|
174 |
+
msgstr "Ripristina alle predefinite"
|
175 |
+
|
176 |
+
#: syntaxhighlighter.php:600
|
177 |
+
msgid "Preview"
|
178 |
+
msgstr "Anteprima della casella"
|
179 |
+
|
180 |
+
#: syntaxhighlighter.php:602
|
181 |
+
msgid "Click "Save Changes" to update this preview."
|
182 |
+
msgstr "Clicca "Salva le modifiche" per visualizzare l'anteprima aggiornata."
|
183 |
+
|
184 |
+
#: syntaxhighlighter.php:637
|
185 |
+
msgid "Shortcode Parameters"
|
186 |
+
msgstr "Parametri per lo shortcode"
|
187 |
+
|
188 |
+
#: syntaxhighlighter.php:639
|
189 |
+
#, php-format
|
190 |
+
msgid "These are the parameters you can pass to the shortcode and what they do. For the booleans (i.e. on/off), pass %1$s/%2$s or %3$s/%4$s."
|
191 |
+
msgstr "Lista dei parametri (e loro funzioni) che potrai inserire nello shortcode. Per i booleani (es: on/off), inserisci %1$s/%2$s oppure %3$s/%4$s."
|
192 |
+
|
193 |
+
#: syntaxhighlighter.php:642
|
194 |
+
#, php-format
|
195 |
+
msgid "%1$s or %2$s — The language syntax to highlight with. You can alternately just use that as the tag, such as <code>[php]code[/php]</code>. <a href=\"%3$s\">Click here</a> for a list of valid tags (under "aliases")."
|
196 |
+
msgstr "%1$s oppure %2$s — Il linguaggio da evidenziare. Potrai in alternativa utilizzarne il solo nome. Ad esempio: <code>[php]code[/php]</code>. <a href=\"%3$s\">Clicca qui</a> per la lista dei tag validi (sotto "aliases")."
|
197 |
+
|
198 |
+
#: syntaxhighlighter.php:643
|
199 |
+
#, php-format
|
200 |
+
msgid "%s — Toggle automatic URL linking."
|
201 |
+
msgstr "%s — Commutazione automatica collegamento ad un URL."
|
202 |
+
|
203 |
+
#: syntaxhighlighter.php:644
|
204 |
+
#, php-format
|
205 |
+
msgid "%s — Add an additional CSS class to the code box."
|
206 |
+
msgstr "%s — Aggiungi una classe CSS addizionale alla casella per il codice."
|
207 |
+
|
208 |
+
#: syntaxhighlighter.php:645
|
209 |
+
#, php-format
|
210 |
+
msgid "%s — Toggle collapsing the code box by default, requiring a click to expand it. Good for large code posts."
|
211 |
+
msgstr "%s — Commuta in automatico (predefinita) la compressione della casella. Sarà necessario cliccare sulla casella per espanderla. Ottimo per l'inserimento di codici di grande dimensione."
|
212 |
+
|
213 |
+
#: syntaxhighlighter.php:646
|
214 |
+
#, php-format
|
215 |
+
msgid "%s — An interger specifying what number the first line should be (for the line numbering)."
|
216 |
+
msgstr "%s — Un numero intero per definire con quale numero abbia inizio la prima linea (per la numerazione)."
|
217 |
+
|
218 |
+
#: syntaxhighlighter.php:647
|
219 |
+
#, php-format
|
220 |
+
msgid "%s — Toggle the left-side line numbering."
|
221 |
+
msgstr "%s — Commutazione numerazione della linea nel lato sinistro."
|
222 |
+
|
223 |
+
#: syntaxhighlighter.php:648
|
224 |
+
#, php-format
|
225 |
+
msgid "%s — A comma-sperated list of line numbers to highlight."
|
226 |
+
msgstr "%s — Lista delle linee da evidenziare (numeri separati da una virgola)."
|
227 |
+
|
228 |
+
#: syntaxhighlighter.php:649
|
229 |
+
#, php-format
|
230 |
+
msgid "%s — Toggle highlighting any extra HTML/XML. Good for when you're mixing HTML/XML with another language, such as having PHP inside an HTML web page. The above preview has it enabled for example."
|
231 |
+
msgstr "%s — Commuta mettendo in evidenza ogni HTML/XML extra. Ottima soluzione qualora utilizzassi del HTML/XML con un altro linguaggio (ad esempio del codice PHP inserito nel HTML di una pagina web). Vedi l'anteprima qui sopra."
|
232 |
+
|
233 |
+
#: syntaxhighlighter.php:650
|
234 |
+
#, php-format
|
235 |
+
msgid "%s — Toggle light mode which disables the gutter, toolbar, and ruler all at once."
|
236 |
+
msgstr "%s — Commuta alla modalità light del tema disattivando contemporaneamente il gutter, la toolbar e la riga graduata."
|
237 |
+
|
238 |
+
#: syntaxhighlighter.php:651
|
239 |
+
#, php-format
|
240 |
+
msgid "%s — Toggle the column ruler at the top of the code box."
|
241 |
+
msgstr "%s — Commuta la riga graduata posizionata nella parte superiore del box per il codice."
|
242 |
+
|
243 |
+
#: syntaxhighlighter.php:652
|
244 |
+
#, php-format
|
245 |
+
msgid "%s — Toggle the toolbar containing the helpful buttons."
|
246 |
+
msgstr "%s — Commutazione toolbar contenente i pulsanti opzione."
|
247 |
+
|
248 |
+
#: syntaxhighlighter.php:655
|
249 |
+
msgid "Some example shortcodes:"
|
250 |
+
msgstr "Alcuni esempi di shortcode:"
|
251 |
+
|
252 |
+
#: syntaxhighlighter.php:658
|
253 |
+
#: syntaxhighlighter.php:659
|
254 |
+
#: syntaxhighlighter.php:660
|
255 |
+
#: syntaxhighlighter.php:661
|
256 |
+
msgid "your code here"
|
257 |
+
msgstr "inserisci qui il tuo codice"
|
258 |
+
|
259 |
+
#: syntaxhighlighter.php:676
|
260 |
+
msgid "Cheatin’ uh?"
|
261 |
+
msgstr "Problemi! uh?"
|
262 |
+
|
263 |
+
#. Plugin URI of an extension
|
264 |
+
msgid "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/"
|
265 |
+
msgstr "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/"
|
266 |
+
|
267 |
+
#. Description of an extension
|
268 |
+
msgid "Easily post code to your blog while still maintaining complete control over it's display. Uses Alex Gorbatchev's <a href=\"http://code.google.com/p/syntaxhighlighter/\">SyntaxHighlighter</a> and code by <a href=\"http://automattic.com/\">Automattic</a>."
|
269 |
+
msgstr "Inserisci con semplicità il codice nel tuo blog avendo il completo controllo di quanto verrà mostrato. Utilizza il <a href=\"http://code.google.com/p/syntaxhighlighter/\">SyntaxHighlighter</a> di Alex Gorbatchev ed il codice di <a href=\"http://automattic.com/\">Automattic</a>."
|
270 |
+
|
271 |
+
#. Author of an extension
|
272 |
+
msgid "Viper007Bond"
|
273 |
+
msgstr "Viper007Bond"
|
274 |
+
|
275 |
+
#. Author URI of an extension
|
276 |
+
msgid "http://www.viper007bond.com/"
|
277 |
+
msgstr "http://www.viper007bond.com/"
|
278 |
+
|
localization/syntaxhighlighter-tr_TR.mo
ADDED
Binary file
|
localization/syntaxhighlighter-tr_TR.po
ADDED
@@ -0,0 +1,276 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# SOME DESCRIPTIVE TITLE.
|
2 |
+
# Copyright (C) YEAR Viper007Bond
|
3 |
+
# This file is distributed under the same license as the PACKAGE package.
|
4 |
+
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
5 |
+
#
|
6 |
+
msgid ""
|
7 |
+
msgstr ""
|
8 |
+
"Project-Id-Version: PACKAGE VERSION\n"
|
9 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/syntaxhighlighter\n"
|
10 |
+
"POT-Creation-Date: 2009-03-29 05:19+0000\n"
|
11 |
+
"PO-Revision-Date: 2009-07-06 12:36+0200\n"
|
12 |
+
"Last-Translator: Alper <alpinux@hotmail.co.uk>\n"
|
13 |
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
+
"MIME-Version: 1.0\n"
|
15 |
+
"Content-Type: text/plain; charset=utf-8\n"
|
16 |
+
"Content-Transfer-Encoding: 8bit\n"
|
17 |
+
|
18 |
+
#: syntaxhighlighter.php:128
|
19 |
+
msgid "Default"
|
20 |
+
msgstr "Varsayılan"
|
21 |
+
|
22 |
+
#: syntaxhighlighter.php:129
|
23 |
+
msgid "Django"
|
24 |
+
msgstr "Avakado Yeşili"
|
25 |
+
|
26 |
+
#: syntaxhighlighter.php:130
|
27 |
+
msgid "Emacs"
|
28 |
+
msgstr "Siyah"
|
29 |
+
|
30 |
+
#: syntaxhighlighter.php:131
|
31 |
+
msgid "Fade to Grey"
|
32 |
+
msgstr "Gri"
|
33 |
+
|
34 |
+
#: syntaxhighlighter.php:132
|
35 |
+
msgid "Midnight"
|
36 |
+
msgstr "Gece Yarısı"
|
37 |
+
|
38 |
+
#: syntaxhighlighter.php:133
|
39 |
+
msgid "RDark"
|
40 |
+
msgstr "Prusya Mavisi"
|
41 |
+
|
42 |
+
#: syntaxhighlighter.php:134
|
43 |
+
msgid "[None]"
|
44 |
+
msgstr "Hiçbiri"
|
45 |
+
|
46 |
+
#: syntaxhighlighter.php:181
|
47 |
+
#: syntaxhighlighter.php:526
|
48 |
+
msgid "SyntaxHighlighter Settings"
|
49 |
+
msgstr "SyntaxHighlighter Ayarlari"
|
50 |
+
|
51 |
+
#. #-#-#-#-# plugin.pot (PACKAGE VERSION) #-#-#-#-#
|
52 |
+
#. Plugin Name of an extension
|
53 |
+
#: syntaxhighlighter.php:181
|
54 |
+
msgid "SyntaxHighlighter"
|
55 |
+
msgstr "SyntaxHighlighter"
|
56 |
+
|
57 |
+
#: syntaxhighlighter.php:329
|
58 |
+
msgid "expand source"
|
59 |
+
msgstr "kaynağı genişlet"
|
60 |
+
|
61 |
+
#: syntaxhighlighter.php:330
|
62 |
+
msgid "view source"
|
63 |
+
msgstr "kaynağı göster"
|
64 |
+
|
65 |
+
#: syntaxhighlighter.php:331
|
66 |
+
msgid "copy to clipboard"
|
67 |
+
msgstr "panoya kopyala"
|
68 |
+
|
69 |
+
#: syntaxhighlighter.php:332
|
70 |
+
msgid "The code is in your clipboard now"
|
71 |
+
msgstr "Simdi panoya kopyalandi."
|
72 |
+
|
73 |
+
#: syntaxhighlighter.php:333
|
74 |
+
msgid "print"
|
75 |
+
msgstr "yazdır"
|
76 |
+
|
77 |
+
#: syntaxhighlighter.php:334
|
78 |
+
msgid "?"
|
79 |
+
msgstr "?"
|
80 |
+
|
81 |
+
#: syntaxhighlighter.php:335
|
82 |
+
msgid ""
|
83 |
+
"SyntaxHighlighter\\n"
|
84 |
+
"\\n"
|
85 |
+
msgstr ""
|
86 |
+
"SyntaxHighlighter\\n"
|
87 |
+
"\\n"
|
88 |
+
|
89 |
+
#: syntaxhighlighter.php:336
|
90 |
+
msgid "Can't find brush for: "
|
91 |
+
msgstr "Fırça bulunamadı :"
|
92 |
+
|
93 |
+
#: syntaxhighlighter.php:337
|
94 |
+
msgid "Brush wasn't configured for html-script option: "
|
95 |
+
msgstr "Firça Html-script seçenegi için yapilandirilmis degil: "
|
96 |
+
|
97 |
+
#: syntaxhighlighter.php:509
|
98 |
+
msgid "Settings reset to defaults."
|
99 |
+
msgstr "Varsayilan ayarlara dön."
|
100 |
+
|
101 |
+
#: syntaxhighlighter.php:517
|
102 |
+
msgid "Are you sure you want to reset your settings to the defaults?"
|
103 |
+
msgstr "Varsayilan ayarlara geri dönmek istediginize emin misiniz ?"
|
104 |
+
|
105 |
+
#: syntaxhighlighter.php:536
|
106 |
+
msgid "Color Theme"
|
107 |
+
msgstr "Tema rengi"
|
108 |
+
|
109 |
+
#: syntaxhighlighter.php:551
|
110 |
+
msgid "Defaults"
|
111 |
+
msgstr "Varsayılan"
|
112 |
+
|
113 |
+
#: syntaxhighlighter.php:553
|
114 |
+
msgid "All of the settings below can also be configured on a per-code box basis."
|
115 |
+
msgstr "Asagidaki tüm ayarlar \"tik\" isareti konularak yapilandirilabilir."
|
116 |
+
|
117 |
+
#: syntaxhighlighter.php:557
|
118 |
+
#: syntaxhighlighter.php:560
|
119 |
+
msgid "Miscellaneous"
|
120 |
+
msgstr "Çeşitli Ayarlar"
|
121 |
+
|
122 |
+
#: syntaxhighlighter.php:562
|
123 |
+
msgid "Display line numbers"
|
124 |
+
msgstr "Satir numaralarini göster."
|
125 |
+
|
126 |
+
#: syntaxhighlighter.php:563
|
127 |
+
msgid "Display the toolbar"
|
128 |
+
msgstr "Araç çubugunu göster"
|
129 |
+
|
130 |
+
#: syntaxhighlighter.php:564
|
131 |
+
msgid "Automatically make URLs clickable"
|
132 |
+
msgstr "Url'leri otomatik tiklanabilir yap"
|
133 |
+
|
134 |
+
#: syntaxhighlighter.php:565
|
135 |
+
msgid "Collapse code boxes"
|
136 |
+
msgstr "Kod kutusunu daralt"
|
137 |
+
|
138 |
+
#: syntaxhighlighter.php:566
|
139 |
+
msgid "Show a ruler column along the top of the code box"
|
140 |
+
msgstr "Sütun için cetveli görüntüle"
|
141 |
+
|
142 |
+
#: syntaxhighlighter.php:567
|
143 |
+
msgid "Use the light display mode, best for single lines of code"
|
144 |
+
msgstr "En iyi tek satir için aydinlatma modunu kullan."
|
145 |
+
|
146 |
+
#: syntaxhighlighter.php:568
|
147 |
+
msgid "Use smart tabs allowing tabs being used for alignment"
|
148 |
+
msgstr "Hizalama için akilli sekmeleri kullan."
|
149 |
+
|
150 |
+
#: syntaxhighlighter.php:573
|
151 |
+
msgid "Additional CSS Class(es)"
|
152 |
+
msgstr "Ek CSS Sinif(lar)i"
|
153 |
+
|
154 |
+
#: syntaxhighlighter.php:577
|
155 |
+
msgid "Starting Line Number"
|
156 |
+
msgstr "Satir baslama numarasi"
|
157 |
+
|
158 |
+
#: syntaxhighlighter.php:582
|
159 |
+
msgid "Font Size (Percentage)"
|
160 |
+
msgstr "Yazi boyutu (Yüzde olarak)"
|
161 |
+
|
162 |
+
#: syntaxhighlighter.php:588
|
163 |
+
msgid "Tab Size"
|
164 |
+
msgstr "Sekme Boyutu"
|
165 |
+
|
166 |
+
#: syntaxhighlighter.php:594
|
167 |
+
msgid "Save Changes"
|
168 |
+
msgstr "Degisiklikleri kaydet"
|
169 |
+
|
170 |
+
#: syntaxhighlighter.php:595
|
171 |
+
msgid "Reset to Defaults"
|
172 |
+
msgstr "Varsayilan ayarlara dön"
|
173 |
+
|
174 |
+
#: syntaxhighlighter.php:600
|
175 |
+
msgid "Preview"
|
176 |
+
msgstr "Önizleme"
|
177 |
+
|
178 |
+
#: syntaxhighlighter.php:602
|
179 |
+
msgid "Click "Save Changes" to update this preview."
|
180 |
+
msgstr "Önizlemeyi güncellemek için "Degisiklikleri Kaydet" tiklayin"
|
181 |
+
|
182 |
+
#: syntaxhighlighter.php:637
|
183 |
+
msgid "Shortcode Parameters"
|
184 |
+
msgstr "Kisakod parametreleri"
|
185 |
+
|
186 |
+
#: syntaxhighlighter.php:639
|
187 |
+
#, php-format
|
188 |
+
msgid "These are the parameters you can pass to the shortcode and what they do. For the booleans (i.e. on/off), pass %1$s/%2$s or %3$s/%4$s."
|
189 |
+
msgstr "Asağıdakı parametreleri uygulamak istediginiz yerde girebilirsiniz. (i.e. on/off), pass %1$s/%2$s or %3$s/%4$s."
|
190 |
+
|
191 |
+
#: syntaxhighlighter.php:642
|
192 |
+
#, php-format
|
193 |
+
msgid "%1$s or %2$s — The language syntax to highlight with. You can alternately just use that as the tag, such as <code>[php]code[/php]</code>. <a href=\"%3$s\">Click here</a> for a list of valid tags (under "aliases")."
|
194 |
+
msgstr "%1$s or %2$s — Dili sözdizimi ile vurgulamak için. Alternatif olarak bu etiketi kullanabilrsiniz, örneğin <code>[php]code[/php]</code>. <a href=\"%3$s\">Tıkla</a> geçerli etiketlerin listesi için ( "aliases" altında)."
|
195 |
+
|
196 |
+
#: syntaxhighlighter.php:643
|
197 |
+
#, php-format
|
198 |
+
msgid "%s — Toggle automatic URL linking."
|
199 |
+
msgstr "%s — Geçiş için otomatik URL bağlantısı."
|
200 |
+
|
201 |
+
#: syntaxhighlighter.php:644
|
202 |
+
#, php-format
|
203 |
+
msgid "%s — Add an additional CSS class to the code box."
|
204 |
+
msgstr "%s — Kod kutusunu ek bir CSS sınıf eklemek."
|
205 |
+
|
206 |
+
#: syntaxhighlighter.php:645
|
207 |
+
#, php-format
|
208 |
+
msgid "%s — Toggle collapsing the code box by default, requiring a click to expand it. Good for large code posts."
|
209 |
+
msgstr "%s — Kod kutusunu daraltın, büyültmek için tıklama gerekir. Uzun kodlar için kullanışlı."
|
210 |
+
|
211 |
+
#: syntaxhighlighter.php:646
|
212 |
+
#, php-format
|
213 |
+
msgid "%s — An interger specifying what number the first line should be (for the line numbering)."
|
214 |
+
msgstr "%s — Satir numarasinin ne olacağna dair bir tamsayi."
|
215 |
+
|
216 |
+
#: syntaxhighlighter.php:647
|
217 |
+
#, php-format
|
218 |
+
msgid "%s — Toggle the left-side line numbering."
|
219 |
+
msgstr "%s — Sol tarafı satır numaralama."
|
220 |
+
|
221 |
+
#: syntaxhighlighter.php:648
|
222 |
+
#, php-format
|
223 |
+
msgid "%s — A comma-sperated list of line numbers to highlight."
|
224 |
+
msgstr "%s — Virgülle ayrilmiş listelerin satir numaralarını vurgulamak."
|
225 |
+
|
226 |
+
#: syntaxhighlighter.php:649
|
227 |
+
#, php-format
|
228 |
+
msgid "%s — Toggle highlighting any extra HTML/XML. Good for when you're mixing HTML/XML with another language, such as having PHP inside an HTML web page. The above preview has it enabled for example."
|
229 |
+
msgstr "%s — extra html/xml leri vurgulamak için, Html/Xml leri bir başka dil ile karışık kullandığınzda iyidir. Örneğin, PHp'nin HTML sayfasinda kullanmak gibi. Yukardaki önizleme buna bir örnektir."
|
230 |
+
|
231 |
+
#: syntaxhighlighter.php:650
|
232 |
+
#, php-format
|
233 |
+
msgid "%s — Toggle light mode which disables the gutter, toolbar, and ruler all at once."
|
234 |
+
msgstr "%s — Numaranladırmayı, araç çubuğuınu, cetveli bir seferde kaldıran sade mod."
|
235 |
+
|
236 |
+
#: syntaxhighlighter.php:651
|
237 |
+
#, php-format
|
238 |
+
msgid "%s — Toggle the column ruler at the top of the code box."
|
239 |
+
msgstr "%s — Kodu kutusunun üstündeki sütun cetveli aktifleştir."
|
240 |
+
|
241 |
+
#: syntaxhighlighter.php:652
|
242 |
+
#, php-format
|
243 |
+
msgid "%s — Toggle the toolbar containing the helpful buttons."
|
244 |
+
msgstr "%s — Geçiş yapmak için araç çubuğu içeren yararlı düğmeler."
|
245 |
+
|
246 |
+
#: syntaxhighlighter.php:655
|
247 |
+
msgid "Some example shortcodes:"
|
248 |
+
msgstr "Bazı örnek kodlar:"
|
249 |
+
|
250 |
+
#: syntaxhighlighter.php:658
|
251 |
+
#: syntaxhighlighter.php:659
|
252 |
+
#: syntaxhighlighter.php:660
|
253 |
+
#: syntaxhighlighter.php:661
|
254 |
+
msgid "your code here"
|
255 |
+
msgstr "kod buraya"
|
256 |
+
|
257 |
+
#: syntaxhighlighter.php:676
|
258 |
+
msgid "Cheatin’ uh?"
|
259 |
+
msgstr "Hile ha ?"
|
260 |
+
|
261 |
+
#. Plugin URI of an extension
|
262 |
+
msgid "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/"
|
263 |
+
msgstr "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/"
|
264 |
+
|
265 |
+
#. Description of an extension
|
266 |
+
msgid "Easily post code to your blog while still maintaining complete control over it's display. Uses Alex Gorbatchev's <a href=\"http://code.google.com/p/syntaxhighlighter/\">SyntaxHighlighter</a> and code by <a href=\"http://automattic.com/\">Automattic</a>."
|
267 |
+
msgstr "%s — extra html/xml leri vurgulamak için. Html/Xml leri bir başka dil ile karışık kullandığınzda iyidir. Örneğin, PHp'nin HTML sayfasinda kullanmak gibi. Yukardaki önizleme buna bir örnektir."
|
268 |
+
|
269 |
+
#. Author of an extension
|
270 |
+
msgid "Viper007Bond"
|
271 |
+
msgstr "Viper007Bond"
|
272 |
+
|
273 |
+
#. Author URI of an extension
|
274 |
+
msgid "http://www.viper007bond.com/"
|
275 |
+
msgstr "http://www.viper007bond.com/"
|
276 |
+
|
localization/syntaxhighlighter-zh_CN.mo
ADDED
Binary file
|
localization/syntaxhighlighter-zh_CN.po
ADDED
@@ -0,0 +1,288 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# SOME DESCRIPTIVE TITLE.
|
2 |
+
# Copyright (C) YEAR Viper007Bond
|
3 |
+
# This file is distributed under the same license as the PACKAGE package.
|
4 |
+
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
5 |
+
#
|
6 |
+
msgid ""
|
7 |
+
msgstr ""
|
8 |
+
"Project-Id-Version: PACKAGE VERSION\n"
|
9 |
+
"Report-Msgid-Bugs-To: \n"
|
10 |
+
"POT-Creation-Date: 2009-08-10 22:08+0800\n"
|
11 |
+
"PO-Revision-Date: 2009-08-11 16:23+0800\n"
|
12 |
+
"Last-Translator: Hinker <hinkerliu@163.com>\n"
|
13 |
+
"Language-Team: LANGUAGE <hinkerliu@163.com>\n"
|
14 |
+
"MIME-Version: 1.0\n"
|
15 |
+
"Content-Type: text/plain; charset=utf-8\n"
|
16 |
+
"Content-Transfer-Encoding: 8bit\n"
|
17 |
+
"X-Poedit-Language: Chinese\n"
|
18 |
+
"X-Poedit-Country: CHINA\n"
|
19 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
20 |
+
|
21 |
+
#: syntaxhighlighter.php:141
|
22 |
+
msgid "Default"
|
23 |
+
msgstr "缺省值"
|
24 |
+
|
25 |
+
#: syntaxhighlighter.php:142
|
26 |
+
msgid "Django"
|
27 |
+
msgstr "Django"
|
28 |
+
|
29 |
+
#: syntaxhighlighter.php:143
|
30 |
+
msgid "Emacs"
|
31 |
+
msgstr "Emacs"
|
32 |
+
|
33 |
+
#: syntaxhighlighter.php:144
|
34 |
+
msgid "Fade to Grey"
|
35 |
+
msgstr "Fade to Grey"
|
36 |
+
|
37 |
+
#: syntaxhighlighter.php:145
|
38 |
+
msgid "Midnight"
|
39 |
+
msgstr "Midnight"
|
40 |
+
|
41 |
+
#: syntaxhighlighter.php:146
|
42 |
+
msgid "RDark"
|
43 |
+
msgstr "RDark"
|
44 |
+
|
45 |
+
#: syntaxhighlighter.php:147
|
46 |
+
msgid "[None]"
|
47 |
+
msgstr "[无]"
|
48 |
+
|
49 |
+
#: syntaxhighlighter.php:194
|
50 |
+
msgid "SyntaxHighlighter Settings"
|
51 |
+
msgstr "SyntaxHighlighter设置"
|
52 |
+
|
53 |
+
#: syntaxhighlighter.php:194
|
54 |
+
msgid "SyntaxHighlighter"
|
55 |
+
msgstr "SyntaxHighlighter"
|
56 |
+
|
57 |
+
#: syntaxhighlighter.php:219
|
58 |
+
msgid "Settings"
|
59 |
+
msgstr "设定"
|
60 |
+
|
61 |
+
#: syntaxhighlighter.php:361
|
62 |
+
msgid "expand source"
|
63 |
+
msgstr "展开代码框"
|
64 |
+
|
65 |
+
#: syntaxhighlighter.php:362
|
66 |
+
msgid "view source"
|
67 |
+
msgstr "查看源代码"
|
68 |
+
|
69 |
+
#: syntaxhighlighter.php:363
|
70 |
+
msgid "copy to clipboard"
|
71 |
+
msgstr "复制到剪贴板"
|
72 |
+
|
73 |
+
#: syntaxhighlighter.php:364
|
74 |
+
msgid "The code is in your clipboard now"
|
75 |
+
msgstr "代码现在在你的剪贴板"
|
76 |
+
|
77 |
+
#: syntaxhighlighter.php:365
|
78 |
+
msgid "print"
|
79 |
+
msgstr "打印"
|
80 |
+
|
81 |
+
#: syntaxhighlighter.php:366
|
82 |
+
msgid "?"
|
83 |
+
msgstr "帮助"
|
84 |
+
|
85 |
+
#: syntaxhighlighter.php:367
|
86 |
+
msgid ""
|
87 |
+
"SyntaxHighlighter\\n"
|
88 |
+
"\\n"
|
89 |
+
msgstr ""
|
90 |
+
"SyntaxHighlighter\\n"
|
91 |
+
"\\n"
|
92 |
+
|
93 |
+
#: syntaxhighlighter.php:368
|
94 |
+
msgid "Can't find brush for: "
|
95 |
+
msgstr "无法找到Brush:"
|
96 |
+
|
97 |
+
#: syntaxhighlighter.php:369
|
98 |
+
msgid "Brush wasn't configured for html-script option: "
|
99 |
+
msgstr "Brush不能设置 html-script选项"
|
100 |
+
|
101 |
+
#: syntaxhighlighter.php:554
|
102 |
+
msgid "Are you sure you want to reset your settings to the defaults?"
|
103 |
+
msgstr "您确定想要将首选项重置为默认设置吗?"
|
104 |
+
|
105 |
+
#: syntaxhighlighter.php:670
|
106 |
+
#, php-format
|
107 |
+
msgid "These are the parameters you can pass to the shortcode and what they do. For the booleans (i.e. on/off), pass %1$s/%2$s or %3$s/%4$s."
|
108 |
+
msgstr "这些参数你能够设置在简码中。对于布尔值(即 on/off),使用 %1$s/%2$s 或者 %3$s/%4$s。"
|
109 |
+
|
110 |
+
#: syntaxhighlighter.php:673
|
111 |
+
#, php-format
|
112 |
+
msgid "%1$s or %2$s — The language syntax to highlight with. You can alternately just use that as the tag, such as <code>[php]code[/php]</code>. <a href=\"%3$s\">Click here</a> for a list of valid tags (under "aliases")."
|
113 |
+
msgstr "%1$s 或者 %2$s — 要高亮显示的代码语言。你能够像标签一样交替使用它们,例如<code>[php]code[/php]</code>。<a href=\"%3$s\">点击这里</a>有一个有效的标签列表 (在"aliases"的下面)。"
|
114 |
+
|
115 |
+
#: syntaxhighlighter.php:674
|
116 |
+
#, php-format
|
117 |
+
msgid "%s — Toggle automatic URL linking."
|
118 |
+
msgstr "%s — 切换自动URL链接。"
|
119 |
+
|
120 |
+
#: syntaxhighlighter.php:675
|
121 |
+
#, php-format
|
122 |
+
msgid "%s — Add an additional CSS class to the code box."
|
123 |
+
msgstr "%s — 加一个附加的CSS类到代码框。"
|
124 |
+
|
125 |
+
#: syntaxhighlighter.php:676
|
126 |
+
#, php-format
|
127 |
+
msgid "%s — Toggle collapsing the code box by default, requiring a click to expand it. Good for large code posts."
|
128 |
+
msgstr "%s — 切换缺省代码框收缩选项,请求点击展开代码。张贴大段代码时比较好看。"
|
129 |
+
|
130 |
+
#: syntaxhighlighter.php:677
|
131 |
+
#, php-format
|
132 |
+
msgid "%s — An interger specifying what number the first line should be (for the line numbering)."
|
133 |
+
msgstr "%s — 你想要在代码第一行显示的指定整数(有行号显示时)。"
|
134 |
+
|
135 |
+
#: syntaxhighlighter.php:678
|
136 |
+
#, php-format
|
137 |
+
msgid "%s — Toggle the left-side line numbering."
|
138 |
+
msgstr "%s — 切换左边行号显示。"
|
139 |
+
|
140 |
+
#: syntaxhighlighter.php:679
|
141 |
+
#, php-format
|
142 |
+
msgid "%s — A comma-sperated list of line numbers to highlight."
|
143 |
+
msgstr "%s — 需要高亮行号的逗号分隔列表"
|
144 |
+
|
145 |
+
#: syntaxhighlighter.php:680
|
146 |
+
#, php-format
|
147 |
+
msgid "%s — Toggle highlighting any extra HTML/XML. Good for when you're mixing HTML/XML with another language, such as having PHP inside an HTML web page. The above preview has it enabled for example."
|
148 |
+
msgstr "%s — 切换任意HTML/XML扩展高亮。当 HTML/XML和其它语言混合时是有用的,比如在一个HTML网页里包含PHP。上面的预览这个选项是激活的。"
|
149 |
+
|
150 |
+
#: syntaxhighlighter.php:681
|
151 |
+
#, php-format
|
152 |
+
msgid "%s — Toggle light mode which disables the gutter, toolbar, and ruler all at once."
|
153 |
+
msgstr "%s — 切换高亮模式,此模式下装订线、工具条和标尺不可见。"
|
154 |
+
|
155 |
+
#: syntaxhighlighter.php:682
|
156 |
+
#, php-format
|
157 |
+
msgid "%s — Toggle the column ruler at the top of the code box."
|
158 |
+
msgstr "%s — 切换代码框部的列标尺显示。"
|
159 |
+
|
160 |
+
#: syntaxhighlighter.php:683
|
161 |
+
#, php-format
|
162 |
+
msgid "%s — Toggle the toolbar containing the helpful buttons."
|
163 |
+
msgstr "%s — 切换工具条上的帮助按钮。"
|
164 |
+
|
165 |
+
#: syntaxhighlighter.php:684
|
166 |
+
#, php-format
|
167 |
+
msgid "%s — Toggle line wrapping."
|
168 |
+
msgstr "%s — 切换自动换行。"
|
169 |
+
|
170 |
+
#: syntaxhighlighter.php:708
|
171 |
+
msgid "Cheatin’ uh?"
|
172 |
+
msgstr "Cheatin’ uh?"
|
173 |
+
|
174 |
+
#: syntaxhighlighter.php:546
|
175 |
+
msgid "Settings reset to defaults."
|
176 |
+
msgstr "将设置重置为默认值"
|
177 |
+
|
178 |
+
#: syntaxhighlighter.php:573
|
179 |
+
msgid "Color Theme"
|
180 |
+
msgstr "颜色主题"
|
181 |
+
|
182 |
+
#: syntaxhighlighter.php:588
|
183 |
+
msgid "Defaults"
|
184 |
+
msgstr "默认值"
|
185 |
+
|
186 |
+
#: syntaxhighlighter.php:590
|
187 |
+
msgid "All of the settings below can also be configured on a per-code box basis."
|
188 |
+
msgstr "下面的所有设定都能在基本pre-code框中配置"
|
189 |
+
|
190 |
+
#: syntaxhighlighter.php:594
|
191 |
+
#: syntaxhighlighter.php:597
|
192 |
+
msgid "Miscellaneous"
|
193 |
+
msgstr "杂项"
|
194 |
+
|
195 |
+
#: syntaxhighlighter.php:599
|
196 |
+
msgid "Display line numbers"
|
197 |
+
msgstr "显示行号"
|
198 |
+
|
199 |
+
#: syntaxhighlighter.php:600
|
200 |
+
msgid "Display the toolbar"
|
201 |
+
msgstr "显示工具条"
|
202 |
+
|
203 |
+
#: syntaxhighlighter.php:601
|
204 |
+
msgid "Automatically make URLs clickable"
|
205 |
+
msgstr "自动转换URI为可点击"
|
206 |
+
|
207 |
+
#: syntaxhighlighter.php:602
|
208 |
+
msgid "Collapse code boxes"
|
209 |
+
msgstr "收缩代码框"
|
210 |
+
|
211 |
+
#: syntaxhighlighter.php:603
|
212 |
+
msgid "Show a ruler column along the top of the code box"
|
213 |
+
msgstr "允许在代码框的顶部显示列标尺"
|
214 |
+
|
215 |
+
#: syntaxhighlighter.php:604
|
216 |
+
msgid "Use the light display mode, best for single lines of code"
|
217 |
+
msgstr "用高亮显示模式,最好在单行代码中使用"
|
218 |
+
|
219 |
+
#: syntaxhighlighter.php:605
|
220 |
+
msgid "Use smart tabs allowing tabs being used for alignment"
|
221 |
+
msgstr "使用智能制表符允许制表符对齐"
|
222 |
+
|
223 |
+
#: syntaxhighlighter.php:606
|
224 |
+
msgid "Wrap long lines, using an icon to show where line wraps occur (disabling this will make a scrollbar show instead)"
|
225 |
+
msgstr "自动换行长的行,用一个图标指示换行的地方(禁用此选项将用滚动条代替显示)"
|
226 |
+
|
227 |
+
#: syntaxhighlighter.php:611
|
228 |
+
msgid "Additional CSS Class(es)"
|
229 |
+
msgstr "附加的CSS类(es)"
|
230 |
+
|
231 |
+
#: syntaxhighlighter.php:615
|
232 |
+
msgid "Starting Line Number"
|
233 |
+
msgstr "开始行号"
|
234 |
+
|
235 |
+
#: syntaxhighlighter.php:619
|
236 |
+
msgid "Tab Size"
|
237 |
+
msgstr "制表符长度"
|
238 |
+
|
239 |
+
#: syntaxhighlighter.php:625
|
240 |
+
msgid "Save Changes"
|
241 |
+
msgstr "保存更改"
|
242 |
+
|
243 |
+
#: syntaxhighlighter.php:626
|
244 |
+
msgid "Reset to Defaults"
|
245 |
+
msgstr "重置为默认值"
|
246 |
+
|
247 |
+
#: syntaxhighlighter.php:631
|
248 |
+
msgid "Preview"
|
249 |
+
msgstr "预览"
|
250 |
+
|
251 |
+
#: syntaxhighlighter.php:633
|
252 |
+
msgid "Click "Save Changes" to update this preview."
|
253 |
+
msgstr "点击 "保存更改" 更新这段预览。"
|
254 |
+
|
255 |
+
#: syntaxhighlighter.php:668
|
256 |
+
msgid "Shortcode Parameters"
|
257 |
+
msgstr "简码参数"
|
258 |
+
|
259 |
+
#: syntaxhighlighter.php:687
|
260 |
+
msgid "Some example shortcodes:"
|
261 |
+
msgstr "一些简码示例"
|
262 |
+
|
263 |
+
#: syntaxhighlighter.php:690
|
264 |
+
#: syntaxhighlighter.php:691
|
265 |
+
#: syntaxhighlighter.php:692
|
266 |
+
#: syntaxhighlighter.php:693
|
267 |
+
msgid "your code here"
|
268 |
+
msgstr "这里写你的代码"
|
269 |
+
|
270 |
+
#~ msgid "Font Size (Percentage)"
|
271 |
+
#~ msgstr "字体大小(百分比)"
|
272 |
+
#~ msgid "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/"
|
273 |
+
#~ msgstr "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/"
|
274 |
+
#~ msgid ""
|
275 |
+
#~ "Easily post code to your blog while still maintaining complete control "
|
276 |
+
#~ "over it's display. Uses Alex Gorbatchev's <a href=\"http://code.google."
|
277 |
+
#~ "com/p/syntaxhighlighter/\">SyntaxHighlighter</a> and code by <a href="
|
278 |
+
#~ "\"http://automattic.com/\">Automattic</a>."
|
279 |
+
#~ msgstr ""
|
280 |
+
#~ "很容易的粘贴代码到你的博客中,同时保持显示的完整控制。使用Alex Gorbatchev"
|
281 |
+
#~ "的 <a href=\"http://code.google.com/p/syntaxhighlighter/"
|
282 |
+
#~ "\">SyntaxHighlighter</a>, 由<a href=\"http://automattic.com/"
|
283 |
+
#~ "\">Automattic</a>编程。"
|
284 |
+
#~ msgid "Viper007Bond"
|
285 |
+
#~ msgstr "Viper007Bond"
|
286 |
+
#~ msgid "http://www.viper007bond.com/"
|
287 |
+
#~ msgstr "http://www.viper007bond.com/"
|
288 |
+
|
readme.txt
CHANGED
@@ -1,32 +1,22 @@
|
|
1 |
-
=== SyntaxHighlighter ===
|
2 |
-
Contributors:
|
|
|
3 |
Tags: code, sourcecode, php, xhtml, html, css
|
4 |
-
Requires at least: 2.
|
5 |
-
Tested up to: 2.
|
6 |
Stable tag: trunk
|
7 |
|
8 |
-
Easily post
|
9 |
|
10 |
== Description ==
|
11 |
|
12 |
-
SyntaxHighlighter allows you to easily post code without loosing it's formatting or making any changes. It
|
13 |
|
14 |
-
|
15 |
|
16 |
-
|
17 |
-
* C# -- `c#`, `c-sharp`, `csharp`
|
18 |
-
* CSS -- `css`
|
19 |
-
* Delphi -- `delphi`, `pascal`
|
20 |
-
* Java -- `java`
|
21 |
-
* JavaScript -- `js`, `jscript`, `javascript`
|
22 |
-
* PHP -- `php`
|
23 |
-
* Python -- `py`, `python`
|
24 |
-
* Ruby -- `rb`, `ruby`, `rails`, `ror`
|
25 |
-
* SQL -- `sql`
|
26 |
-
* VB -- `vb`, `vb.net`
|
27 |
-
* XML/HTML -- `xml`, `html`, `xhtml`, `xslt`
|
28 |
|
29 |
-
|
30 |
|
31 |
== Installation ==
|
32 |
|
@@ -36,23 +26,7 @@ To upgrade from a previous version of this plugin, delete the entire folder and
|
|
36 |
|
37 |
###Uploading The Plugin###
|
38 |
|
39 |
-
Extract all files from the ZIP file, making sure to keep the file structure intact
|
40 |
-
|
41 |
-
This should result in the following file structure:
|
42 |
-
|
43 |
-
`- wp-content
|
44 |
-
- plugins
|
45 |
-
- syntaxhighlighter
|
46 |
-
| readme.txt
|
47 |
-
| screenshot-1.png
|
48 |
-
| syntaxhighlighter.php
|
49 |
-
- files
|
50 |
-
| clipboard.swf
|
51 |
-
| shBrushCpp.js
|
52 |
-
| shBrushCSharp.js
|
53 |
-
| [...]
|
54 |
-
| shCore.js
|
55 |
-
| SyntaxHighlighter.css`
|
56 |
|
57 |
**See Also:** ["Installing Plugins" article on the WP Codex](http://codex.wordpress.org/Managing_Plugins#Installing_Plugins)
|
58 |
|
@@ -62,38 +36,72 @@ Go to the admin area of your WordPress install and click on the "Plugins" menu.
|
|
62 |
|
63 |
###Plugin Usage###
|
64 |
|
65 |
-
Just wrap your code in `[
|
|
|
|
|
|
|
|
|
66 |
|
67 |
== Frequently Asked Questions ==
|
68 |
|
69 |
-
= The
|
70 |
|
71 |
-
Make sure your theme's
|
72 |
|
73 |
-
=
|
74 |
|
75 |
-
Make sure
|
76 |
|
77 |
== Screenshots ==
|
78 |
|
79 |
-
1. Example code display
|
|
|
|
|
|
|
80 |
|
81 |
-
|
82 |
|
83 |
-
|
|
|
84 |
|
85 |
-
|
86 |
-
* `[code language='css']code here[/code]`
|
87 |
|
88 |
-
*
|
89 |
-
* `[source lang='css']code here[/source]`
|
90 |
-
* `[code lang='css']code here[/code]`
|
91 |
|
92 |
-
|
93 |
-
* `[source='css']code here[/source]`
|
94 |
-
* `[code='css']code here[/code]`
|
95 |
|
96 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
|
98 |
**Version 1.0.0**
|
99 |
|
1 |
+
=== SyntaxHighlighter Evolved ===
|
2 |
+
Contributors: Viper007Bond
|
3 |
+
Donate link: http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/donate/
|
4 |
Tags: code, sourcecode, php, xhtml, html, css
|
5 |
+
Requires at least: 2.7
|
6 |
+
Tested up to: 2.8
|
7 |
Stable tag: trunk
|
8 |
|
9 |
+
Easily post syntax-highlighted code to your site without having to modify the code at all.
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
+
SyntaxHighlighter Evolved allows you to easily post syntax-highlighted code to your site without loosing it's formatting or making any manual changes. It uses the [SyntaxHighlighter JavaScript package by Alex Gorbatchev](http://alexgorbatchev.com/wiki/SyntaxHighlighter) and a bit of code by [Andrew Ozz of Automattic](http://wordpress.com/).
|
14 |
|
15 |
+
For a list of supported languages (all widely used languages are supported), please [click here](http://alexgorbatchev.com/wiki/SyntaxHighlighter:Brushes).
|
16 |
|
17 |
+
**SyntaxHighlighter "Evolved"? Why Evolved?**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
+
Starting with v2.0.0, this plugin was renamed from "SyntaxHighlighter" to "SyntaxHighlighter Evolved". This was done to better stand out against the many very poorly named [forks](http://en.wikipedia.org/wiki/Fork_%28software_development%29) of v1.x of this plugin. I am not an author of any of those plugins, they just used my old code as a base for their version. Although I am of course biased, I'd argue this plugin is the best of all of them.
|
20 |
|
21 |
== Installation ==
|
22 |
|
26 |
|
27 |
###Uploading The Plugin###
|
28 |
|
29 |
+
Extract all files from the ZIP file, **making sure to keep the file/folder structure intact**, and then upload it to `/wp-content/plugins/`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
**See Also:** ["Installing Plugins" article on the WP Codex](http://codex.wordpress.org/Managing_Plugins#Installing_Plugins)
|
32 |
|
36 |
|
37 |
###Plugin Usage###
|
38 |
|
39 |
+
Just wrap your code in `[language]`, such as `[php]code here[/php]` or `[css]code here[/css]`. For a list of supported languages (all widely used languages are supported), please [click here](http://alexgorbatchev.com/wiki/SyntaxHighlighter:Brushes).
|
40 |
+
|
41 |
+
You do not need to escape HTML entities or anything, just post your code as-is. The plugin will handle the rest.
|
42 |
+
|
43 |
+
The shortcodes accept a wide variety of parameters. For details, see the bottom of the plugin's settings page.
|
44 |
|
45 |
== Frequently Asked Questions ==
|
46 |
|
47 |
+
= The code boxes seem to be missing their styling. What's wrong? =
|
48 |
|
49 |
+
Make sure your theme's `header.php` file has `<?php wp_head(); ?>` somewhere inside of the `<head>`, otherwise the CSS files won't be loaded.
|
50 |
|
51 |
+
= The code is just being displayed raw. It isn't being converted into a code box or anything. What's wrong? =
|
52 |
|
53 |
+
Make sure your theme's `footer.php` file has `<?php wp_footer(); ?>` somewhere inside of it, otherwise the Javascript files won't be loaded.
|
54 |
|
55 |
== Screenshots ==
|
56 |
|
57 |
+
1. Example code display of some PHP inside some HTML.
|
58 |
+
2. A part of the Settings page which controls the defaults.
|
59 |
+
|
60 |
+
== ChangeLog ==
|
61 |
|
62 |
+
**Version 2.2.2**
|
63 |
|
64 |
+
* Updated TinyMCE plugin thanks to Andrew Ozz. This fixes the unresponsive script errors and has various other improvements.
|
65 |
+
* Chinese translation thanks to Hinker Liu.
|
66 |
|
67 |
+
**Version 2.2.1**
|
|
|
68 |
|
69 |
+
* Italian transation thanks to [gidibao](http://gidibao.net/index.php/2009/07/22/syntaxhighlighter-evolved-in-italiano/).
|
|
|
|
|
70 |
|
71 |
+
**Version 2.2.0**
|
|
|
|
|
72 |
|
73 |
+
* Stop whitespace from being stripped when switching editor views. Props [Abel Braaksma](http://www.undermyhat.org/blog/2009/07/fix-for-leading-whitespace-bug-in-syntaxhighlighter-evolved-for-wordpress/).
|
74 |
+
* Fixed an issue with SyntaxHighlighter itself in which the Bash highlighter had issues with `<` and `>`.
|
75 |
+
* Force a specific font size for the code so themes don't mess with it.
|
76 |
+
* Allow the usage of custom aliases that aren't allowed by the highlighting package. Props [Anton Shevchuk](http://anton.shevchuk.name/).
|
77 |
+
* Danish translation thanks to [Georg S. Adamsen](http://wordpress.blogos.dk/2009/05/07/syntaks-farvning-%E2%80%93-syntax-highlighting/).
|
78 |
+
* Turkish translation thanks to [Alper](http://turkcekaynak.net/).
|
79 |
+
|
80 |
+
**Version 2.1.0**
|
81 |
+
|
82 |
+
* Updated to reflect the new features of [v2.0.320 of Alex's script](http://alexgorbatchev.com/wiki/SyntaxHighlighter:Changes:2.0.320). Note the `stripBrs` parameter is not supported in my plugin as it is not needed in this implementation.
|
83 |
+
|
84 |
+
**Version 2.0.1**
|
85 |
+
|
86 |
+
* Andrew Ozz was kind enough to fix a bug related to `<p>`'s being stripped when switching from the Visual to HTML tab
|
87 |
+
* Added a link to the settings page to the plugins page in the admin area
|
88 |
+
|
89 |
+
**Version 2.0.0**
|
90 |
+
|
91 |
+
* Complete recode from scratch. Features v2 of Alex Gorbatchev's script, usage of shortcodes, and so much more.
|
92 |
+
|
93 |
+
**Version 1.1.1**
|
94 |
+
|
95 |
+
* Encode single quotes so `wptexturize()` doesn't transform them into fancy quotes and screw up code.
|
96 |
+
|
97 |
+
**Version 1.1.0**
|
98 |
+
|
99 |
+
* mdawaffe [fixed](http://dev.wp-plugins.org/ticket/703) an encoding issue relating to kses and users without the `unfiltered_html` capability. Mad props to mdawaffe.
|
100 |
+
|
101 |
+
**Version 1.0.1**
|
102 |
+
|
103 |
+
* Minor CSS fixes.
|
104 |
+
* Filter text widgets to allow posting of code.
|
105 |
|
106 |
**Version 1.0.0**
|
107 |
|
screenshot-1.png
CHANGED
Binary file
|
screenshot-2.png
ADDED
Binary file
|
syntaxhighlighter.php
CHANGED
@@ -2,211 +2,754 @@
|
|
2 |
|
3 |
**************************************************************************
|
4 |
|
5 |
-
Plugin Name: SyntaxHighlighter
|
6 |
-
Plugin URI: http://
|
7 |
-
Version:
|
8 |
-
Description:
|
9 |
-
Author:
|
|
|
10 |
|
11 |
**************************************************************************
|
12 |
|
13 |
-
|
14 |
|
15 |
-
*
|
16 |
-
|
17 |
|
18 |
-
|
19 |
-
I (Viper007Bond) just took the plugin I had already written (it looked a
|
20 |
-
lot like this current one) after seeing his code operate on WP.com and
|
21 |
-
incorporated his ingenius TinyMCE handling and some other misc. code.
|
22 |
|
23 |
**************************************************************************/
|
24 |
|
25 |
-
class
|
26 |
-
|
27 |
-
var $
|
28 |
-
var $
|
29 |
-
var $
|
30 |
-
|
31 |
-
//
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
//
|
42 |
-
|
43 |
-
|
44 |
-
//
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
) );
|
84 |
|
85 |
-
//
|
86 |
-
|
87 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
|
89 |
-
//
|
90 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
}
|
92 |
|
93 |
|
94 |
-
//
|
95 |
-
function
|
96 |
-
|
97 |
}
|
98 |
|
99 |
|
100 |
-
//
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
if ( stristr( $content, '[code' ) && stristr( $content, '[/code]' ) ) return TRUE;
|
106 |
|
107 |
-
|
|
|
|
|
|
|
108 |
}
|
109 |
|
110 |
|
111 |
-
//
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
if (
|
116 |
-
|
117 |
-
if ( $addslashes ) $regex .= '\\\\';
|
118 |
-
$regex .= '\3\](.*?)\[\/\1e\]/si';
|
119 |
|
120 |
-
|
|
|
121 |
|
122 |
-
return $
|
123 |
}
|
124 |
|
125 |
|
126 |
-
//
|
127 |
-
function
|
128 |
-
|
|
|
|
|
|
|
129 |
|
130 |
-
|
131 |
-
|
132 |
|
133 |
-
|
|
|
|
|
134 |
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
139 |
|
140 |
return $content;
|
141 |
}
|
142 |
|
143 |
|
144 |
-
//
|
145 |
-
function
|
146 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
|
148 |
-
$matches = $this->GetBBCode( $content );
|
149 |
|
150 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
$code = str_replace( '&lt;', '&amp;lt;', $code );
|
157 |
-
$code = str_replace( '&gt;', '&amp;gt;', $code );
|
158 |
|
159 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
}
|
161 |
|
162 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
}
|
164 |
|
165 |
|
166 |
-
//
|
167 |
-
function
|
168 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
|
170 |
-
|
|
|
171 |
|
172 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
173 |
|
174 |
-
//
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
179 |
}
|
180 |
|
|
|
|
|
|
|
|
|
181 |
return $content;
|
182 |
}
|
183 |
|
184 |
|
185 |
-
//
|
186 |
-
function
|
187 |
-
?>
|
|
|
|
|
188 |
|
189 |
-
<!-- SyntaxHighlighter Stuff -->
|
190 |
-
<script type="text/javascript" src="<?php echo $this->pluginurl; ?>shCore.js"></script>
|
191 |
-
<?php foreach ( $this->jsfiles2load as $filename => $foobar ) : ?>
|
192 |
-
<script type="text/javascript" src="<?php echo $this->pluginurl . $filename; ?>"></script>
|
193 |
-
<?php endforeach; ?>
|
194 |
<script type="text/javascript">
|
195 |
-
|
196 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
</script>
|
198 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
199 |
<?php
|
200 |
}
|
201 |
-
}
|
202 |
|
203 |
-
// Initiate the plugin class
|
204 |
-
$AGSyntaxHighlighter = new AGSyntaxHighlighter();
|
205 |
|
206 |
-
//
|
207 |
-
|
208 |
-
|
209 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
}
|
211 |
}
|
|
|
|
|
|
|
|
|
212 |
?>
|
2 |
|
3 |
**************************************************************************
|
4 |
|
5 |
+
Plugin Name: SyntaxHighlighter Evolved
|
6 |
+
Plugin URI: http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/
|
7 |
+
Version: 2.2.2
|
8 |
+
Description: Easily post syntax-highlighted code to your site without having to modify the code at all. Uses Alex Gorbatchev's <a href="http://alexgorbatchev.com/wiki/SyntaxHighlighter">SyntaxHighlighter</a> v2.0.320 and code by <a href="http://wordpress.com/">Andrew Ozz of Automattic</a>.
|
9 |
+
Author: Viper007Bond
|
10 |
+
Author URI: http://www.viper007bond.com/
|
11 |
|
12 |
**************************************************************************
|
13 |
|
14 |
+
Thanks to:
|
15 |
|
16 |
+
* Alex Gorbatchev for writing such an awesome Javascript-powered synatax
|
17 |
+
highlighter script
|
18 |
|
19 |
+
* Andrew Ozz of Automattic for writing the TinyMCE plugin
|
|
|
|
|
|
|
20 |
|
21 |
**************************************************************************/
|
22 |
|
23 |
+
class SyntaxHighlighter {
|
24 |
+
// All of these variables are private. Filters are provided for things that can be modified.
|
25 |
+
var $pluginver = '2.2.2'; // Plugin version
|
26 |
+
var $agshver = '2.0.320'; // Alex Gorbatchev's SyntaxHighlighter version
|
27 |
+
var $settings = array(); // Contains the user's settings
|
28 |
+
var $defaultsettings = array(); // Contains the default settings
|
29 |
+
var $brushes = array(); // Array of aliases => brushes
|
30 |
+
var $themes = array(); // Array of themes
|
31 |
+
var $usedbrushes = array(); // Stores used brushes so we know what to output
|
32 |
+
var $encoded = false; // Used to mark that a character encode took place
|
33 |
+
|
34 |
+
// Initalize the plugin by registering the hooks
|
35 |
+
function __construct() {
|
36 |
+
// Check WordPress version
|
37 |
+
if ( !function_exists( 'plugins_url' ) ) return;
|
38 |
+
|
39 |
+
// Load localization domain
|
40 |
+
load_plugin_textdomain( 'syntaxhighlighter', false, '/syntaxhighlighter/localization' );
|
41 |
+
|
42 |
+
// Register brush scripts
|
43 |
+
wp_register_script( 'syntaxhighlighter-core', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shCore.js'), array(), $this->agshver );
|
44 |
+
wp_register_script( 'syntaxhighlighter-brush-as3', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushAS3.js'), array('syntaxhighlighter-core'), $this->agshver );
|
45 |
+
wp_register_script( 'syntaxhighlighter-brush-bash', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushBash.js'), array('syntaxhighlighter-core'), $this->agshver );
|
46 |
+
wp_register_script( 'syntaxhighlighter-brush-csharp', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushCSharp.js'), array('syntaxhighlighter-core'), $this->agshver );
|
47 |
+
wp_register_script( 'syntaxhighlighter-brush-cpp', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushCpp.js'), array('syntaxhighlighter-core'), $this->agshver );
|
48 |
+
wp_register_script( 'syntaxhighlighter-brush-css', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushCss.js'), array('syntaxhighlighter-core'), $this->agshver );
|
49 |
+
wp_register_script( 'syntaxhighlighter-brush-delphi', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushDelphi.js'), array('syntaxhighlighter-core'), $this->agshver );
|
50 |
+
wp_register_script( 'syntaxhighlighter-brush-diff', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushDiff.js'), array('syntaxhighlighter-core'), $this->agshver );
|
51 |
+
wp_register_script( 'syntaxhighlighter-brush-groovy', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushGroovy.js'), array('syntaxhighlighter-core'), $this->agshver );
|
52 |
+
wp_register_script( 'syntaxhighlighter-brush-jscript', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushJScript.js'), array('syntaxhighlighter-core'), $this->agshver );
|
53 |
+
wp_register_script( 'syntaxhighlighter-brush-java', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushJava.js'), array('syntaxhighlighter-core'), $this->agshver );
|
54 |
+
wp_register_script( 'syntaxhighlighter-brush-javafx', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushJavaFX.js'), array('syntaxhighlighter-core'), $this->agshver );
|
55 |
+
wp_register_script( 'syntaxhighlighter-brush-perl', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushPerl.js'), array('syntaxhighlighter-core'), $this->agshver );
|
56 |
+
wp_register_script( 'syntaxhighlighter-brush-php', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushPhp.js'), array('syntaxhighlighter-core'), $this->agshver );
|
57 |
+
wp_register_script( 'syntaxhighlighter-brush-plain', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushPlain.js'), array('syntaxhighlighter-core'), $this->agshver );
|
58 |
+
wp_register_script( 'syntaxhighlighter-brush-powershell', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushPowerShell.js'), array('syntaxhighlighter-core'), $this->agshver );
|
59 |
+
wp_register_script( 'syntaxhighlighter-brush-python', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushPython.js'), array('syntaxhighlighter-core'), $this->agshver );
|
60 |
+
wp_register_script( 'syntaxhighlighter-brush-ruby', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushRuby.js'), array('syntaxhighlighter-core'), $this->agshver );
|
61 |
+
wp_register_script( 'syntaxhighlighter-brush-scala', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushScala.js'), array('syntaxhighlighter-core'), $this->agshver );
|
62 |
+
wp_register_script( 'syntaxhighlighter-brush-sql', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushSql.js'), array('syntaxhighlighter-core'), $this->agshver );
|
63 |
+
wp_register_script( 'syntaxhighlighter-brush-vb', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushVb.js'), array('syntaxhighlighter-core'), $this->agshver );
|
64 |
+
wp_register_script( 'syntaxhighlighter-brush-xml', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushXml.js'), array('syntaxhighlighter-core'), $this->agshver );
|
65 |
+
|
66 |
+
// Register theme stylesheets
|
67 |
+
wp_register_style( 'syntaxhighlighter-core', plugins_url('syntaxhighlighter/syntaxhighlighter/styles/shCore.css'), array(), $this->agshver );
|
68 |
+
wp_register_style( 'syntaxhighlighter-theme-default', plugins_url('syntaxhighlighter/syntaxhighlighter/styles/shThemeDefault.css'), array('syntaxhighlighter-core'), $this->agshver );
|
69 |
+
wp_register_style( 'syntaxhighlighter-theme-django', plugins_url('syntaxhighlighter/syntaxhighlighter/styles/shThemeDjango.css'), array('syntaxhighlighter-core'), $this->agshver );
|
70 |
+
wp_register_style( 'syntaxhighlighter-theme-emacs', plugins_url('syntaxhighlighter/syntaxhighlighter/styles/shThemeEmacs.css'), array('syntaxhighlighter-core'), $this->agshver );
|
71 |
+
wp_register_style( 'syntaxhighlighter-theme-fadetogrey', plugins_url('syntaxhighlighter/syntaxhighlighter/styles/shThemeFadeToGrey.css'), array('syntaxhighlighter-core'), $this->agshver );
|
72 |
+
wp_register_style( 'syntaxhighlighter-theme-midnight', plugins_url('syntaxhighlighter/syntaxhighlighter/styles/shThemeMidnight.css'), array('syntaxhighlighter-core'), $this->agshver );
|
73 |
+
wp_register_style( 'syntaxhighlighter-theme-rdark', plugins_url('syntaxhighlighter/syntaxhighlighter/styles/shThemeRDark.css'), array('syntaxhighlighter-core'), $this->agshver );
|
74 |
+
|
75 |
+
// Register hooks
|
76 |
+
add_action( 'admin_menu', array(&$this, 'register_settings_page') );
|
77 |
+
add_action( 'admin_post_syntaxhighlighter', array(&$this, 'save_settings') );
|
78 |
+
add_action( 'admin_head', array(&$this, 'admin_head') );
|
79 |
+
add_action( 'wp_head', array(&$this, 'frontend_styling') );
|
80 |
+
add_action( 'wp_footer', array(&$this, 'maybe_output_scripts'), 15 );
|
81 |
+
add_filter( 'the_content', array(&$this, 'parse_shortcodes'), 9 );
|
82 |
+
add_filter( 'widget_text', array(&$this, 'parse_shortcodes'), 9 );
|
83 |
+
add_filter( 'mce_external_plugins', array(&$this, 'add_tinymce_plugin') );
|
84 |
+
add_filter( 'tiny_mce_version', array(&$this, 'break_tinymce_cache') );
|
85 |
+
add_filter( 'the_editor_content', array(&$this, 'decode_shortcode_contents'), 1 );
|
86 |
+
add_filter( 'content_save_pre', array(&$this, 'encode_shortcode_contents'), 1 );
|
87 |
+
add_filter( 'save_post', array(&$this, 'mark_as_encoded'), 10, 2 );
|
88 |
+
add_filter( 'plugin_action_links', array(&$this, 'plugin_action_links'), 10, 2 );
|
89 |
+
|
90 |
+
// Create list of brush aliases and map them to their real brushes
|
91 |
+
// The key is the shortcode tag and language alias
|
92 |
+
// The value is the script handle suffix: syntaxhighlighter-brush-ThisBitHere (your plugin needs to register the script itself)
|
93 |
+
$this->brushes = apply_filters( 'syntaxhighlighter_brushes', array(
|
94 |
+
'as3' => 'as3',
|
95 |
+
'actionscript3' => 'as3',
|
96 |
+
'bash' => 'bash',
|
97 |
+
'shell' => 'bash',
|
98 |
+
'c-sharp' => 'csharp',
|
99 |
+
'csharp' => 'csharp',
|
100 |
+
'cpp' => 'cpp',
|
101 |
+
'c' => 'cpp',
|
102 |
+
'css' => 'css',
|
103 |
+
'delphi' => 'delphi',
|
104 |
+
'pas' => 'delphi',
|
105 |
+
'pascal' => 'delphi',
|
106 |
+
'diff' => 'diff',
|
107 |
+
'patch' => 'diff',
|
108 |
+
'groovy' => 'groovy',
|
109 |
+
'js' => 'jscript',
|
110 |
+
'jscript' => 'jscript',
|
111 |
+
'javascript' => 'jscript',
|
112 |
+
'java' => 'java',
|
113 |
+
'jfx' => 'javafx',
|
114 |
+
'javafx' => 'javafx',
|
115 |
+
'perl' => 'perl',
|
116 |
+
'pl' => 'perl',
|
117 |
+
'php' => 'php',
|
118 |
+
'plain' => 'plain',
|
119 |
+
'text' => 'plain',
|
120 |
+
'ps' => 'powershell',
|
121 |
+
'powershell' => 'powershell',
|
122 |
+
'py' => 'python',
|
123 |
+
'python' => 'python',
|
124 |
+
'rails' => 'ruby',
|
125 |
+
'ror' => 'ruby',
|
126 |
+
'ruby' => 'ruby',
|
127 |
+
'scala' => 'scala',
|
128 |
+
'sql' => 'sql',
|
129 |
+
'vb' => 'vb',
|
130 |
+
'vbnet' => 'vb',
|
131 |
+
'xml' => 'xml',
|
132 |
+
'xhtml' => 'xml',
|
133 |
+
'xslt' => 'xml',
|
134 |
+
'html' => 'xml',
|
135 |
+
'xhtml' => 'xml',
|
136 |
) );
|
137 |
|
138 |
+
// Create list of themes and their human readable names
|
139 |
+
// Plugins can add to this list as long as they also register a style with the handle "syntaxhighlighter-theme-THEMENAMEHERE"
|
140 |
+
$this->themes = apply_filters( 'syntaxhighlighter_themes', array(
|
141 |
+
'default' => __( 'Default', 'syntaxhighlighter' ),
|
142 |
+
'django' => __( 'Django', 'syntaxhighlighter' ),
|
143 |
+
'emacs' => __( 'Emacs', 'syntaxhighlighter' ),
|
144 |
+
'fadetogrey' => __( 'Fade to Grey', 'syntaxhighlighter' ),
|
145 |
+
'midnight' => __( 'Midnight', 'syntaxhighlighter' ),
|
146 |
+
'rdark' => __( 'RDark', 'syntaxhighlighter' ),
|
147 |
+
'none' => __( '[None]', 'syntaxhighlighter' ),
|
148 |
+
) );
|
149 |
+
|
150 |
+
// Create array of default settings (you can use the filter to modify these)
|
151 |
+
$this->defaultsettings = apply_filters( 'syntaxhighlighter_defaultsettings', array(
|
152 |
+
'theme' => 'default',
|
153 |
+
'autolinks' => 1,
|
154 |
+
'classname' => '',
|
155 |
+
'collapse' => 0,
|
156 |
+
'firstline' => 1,
|
157 |
+
'gutter' => 1,
|
158 |
+
'light' => 0,
|
159 |
+
'ruler' => 0,
|
160 |
+
'smarttabs' => 1,
|
161 |
+
'tabsize' => 4,
|
162 |
+
'toolbar' => 1,
|
163 |
+
'wraplines' => 1,
|
164 |
+
) );
|
165 |
|
166 |
+
// Setup the settings by using the default as a base and then adding in any changed values
|
167 |
+
// This allows settings arrays from old versions to be used even though they are missing values
|
168 |
+
$usersettings = (array) get_option('syntaxhighlighter_settings');
|
169 |
+
$this->settings = $this->defaultsettings;
|
170 |
+
if ( $usersettings !== $this->defaultsettings ) {
|
171 |
+
foreach ( (array) $usersettings as $key1 => $value1 ) {
|
172 |
+
if ( is_array($value1) ) {
|
173 |
+
foreach ( $value1 as $key2 => $value2 ) {
|
174 |
+
$this->settings[$key1][$key2] = $value2;
|
175 |
+
}
|
176 |
+
} else {
|
177 |
+
$this->settings[$key1] = $value1;
|
178 |
+
}
|
179 |
+
}
|
180 |
+
}
|
181 |
+
|
182 |
+
// Load the user's selected theme
|
183 |
+
if ( 'none' == $this->settings['theme'] )
|
184 |
+
wp_enqueue_style( 'syntaxhighlighter-core' );
|
185 |
+
else {
|
186 |
+
$theme = ( !empty($this->themes[$this->settings['theme']]) ) ? strtolower($this->settings['theme']) : $this->defaultsettings['theme'];
|
187 |
+
wp_enqueue_style( 'syntaxhighlighter-theme-' . $theme );
|
188 |
+
}
|
189 |
}
|
190 |
|
191 |
|
192 |
+
// Register the settings page
|
193 |
+
function register_settings_page() {
|
194 |
+
add_options_page( __('SyntaxHighlighter Settings', 'syntaxhighlighter'), __('SyntaxHighlighter', 'syntaxhighlighter'), 'manage_options', 'syntaxhighlighter', array(&$this, 'settings_page') );
|
195 |
}
|
196 |
|
197 |
|
198 |
+
// Add the custom TinyMCE plugin which wraps plugin shortcodes in <pre> in TinyMCE
|
199 |
+
function add_tinymce_plugin( $plugins ) {
|
200 |
+
$plugins['syntaxhighlighter'] = plugins_url('syntaxhighlighter/syntaxhighlighter_mce.js');
|
201 |
+
return $plugins;
|
202 |
+
}
|
|
|
203 |
|
204 |
+
|
205 |
+
// Break the TinyMCE cache
|
206 |
+
function break_tinymce_cache( $version ) {
|
207 |
+
return $version . '-syntaxhighlighter' . $this->pluginver;
|
208 |
}
|
209 |
|
210 |
|
211 |
+
// Add a "Settings" link to the plugins page
|
212 |
+
function plugin_action_links( $links, $file ) {
|
213 |
+
static $this_plugin;
|
214 |
+
|
215 |
+
if( empty($this_plugin) )
|
216 |
+
$this_plugin = plugin_basename(__FILE__);
|
|
|
|
|
217 |
|
218 |
+
if ( $file == $this_plugin )
|
219 |
+
$links[] = '<a href="' . admin_url( 'options-general.php?page=syntaxhighlighter' ) . '">' . __('Settings', 'syntaxhighlighter') . '</a>';
|
220 |
|
221 |
+
return $links;
|
222 |
}
|
223 |
|
224 |
|
225 |
+
// Output list of shortcode tags for the TinyMCE plugin as well as some CSS for the settings page
|
226 |
+
function admin_head() {
|
227 |
+
$tags = array();
|
228 |
+
$tags[] = 'sourcecode';
|
229 |
+
$tags[] = 'source';
|
230 |
+
$tags[] = 'code';
|
231 |
|
232 |
+
foreach ( $this->brushes as $tag => $brush )
|
233 |
+
$tags[] = preg_quote( $tag );
|
234 |
|
235 |
+
echo "<script type='text/javascript'>\n";
|
236 |
+
echo " var syntaxHLcodes = '" . implode( '|', $tags ) . "';\n";
|
237 |
+
echo "</script>\n";
|
238 |
|
239 |
+
echo "<style type='text/css'>.bulletlist li { list-style-type: disc; margin-left: 25px; }</style>\n";
|
240 |
+
}
|
241 |
+
|
242 |
+
|
243 |
+
function frontend_styling() {
|
244 |
+
echo ' <style type="text/css">.syntaxhighlighter { font-size: 12px !important; }</style>' . "\n";
|
245 |
+
}
|
246 |
+
|
247 |
+
|
248 |
+
// A filter function that runs do_shortcode() but only with this plugin's shortcodes
|
249 |
+
function shortcode_hack( $content, $callback ) {
|
250 |
+
global $shortcode_tags;
|
251 |
+
|
252 |
+
// Backup current registered shortcodes and clear them all out
|
253 |
+
$orig_shortcode_tags = $shortcode_tags;
|
254 |
+
remove_all_shortcodes();
|
255 |
+
|
256 |
+
// Register all of this plugin's shortcodes
|
257 |
+
add_shortcode( 'sourcecode', $callback );
|
258 |
+
add_shortcode( 'source', $callback );
|
259 |
+
add_shortcode( 'code', $callback );
|
260 |
+
foreach ( $this->brushes as $shortcode => $brush )
|
261 |
+
add_shortcode( $shortcode, $callback );
|
262 |
+
|
263 |
+
// Do the shortcodes (only this plugins's are registered)
|
264 |
+
$content = do_shortcode( $content );
|
265 |
+
|
266 |
+
// Put the original shortcodes back
|
267 |
+
$shortcode_tags = $orig_shortcode_tags;
|
268 |
|
269 |
return $content;
|
270 |
}
|
271 |
|
272 |
|
273 |
+
// The main filter for the post contents. The regular shortcode filter can't be used as it's post-wpautop().
|
274 |
+
function parse_shortcodes( $content ) {
|
275 |
+
return $this->shortcode_hack( $content, array(&$this, 'shortcode_callback') );
|
276 |
+
}
|
277 |
+
|
278 |
+
|
279 |
+
// HTML entity encode the contents of shortcodes. Note this handles $_POST-sourced data, so it has to deal with slashes
|
280 |
+
function encode_shortcode_contents( $content ) {
|
281 |
+
$this->encoded = true;
|
282 |
+
return addslashes( $this->shortcode_hack( stripslashes( $content ), array(&$this, 'encode_shortcode_contents_callback') ) );
|
283 |
+
}
|
284 |
+
|
285 |
+
|
286 |
+
// HTML entity decode the contents of shortcodes
|
287 |
+
function decode_shortcode_contents( $content ) {
|
288 |
+
// If TinyMCE is enabled and set to be displayed first, leave it encoded
|
289 |
+
if ( user_can_richedit() && 'html' != wp_default_editor() )
|
290 |
+
return $content;
|
291 |
+
|
292 |
+
return $this->shortcode_hack( $content, array(&$this, 'decode_shortcode_contents_callback') );
|
293 |
+
}
|
294 |
+
|
295 |
+
|
296 |
+
// The callback function for SyntaxHighlighter::encode_shortcode_contents()
|
297 |
+
function encode_shortcode_contents_callback( $atts, $code = '', $tag = false ) {
|
298 |
+
return '[' . $tag . $this->atts2string( $atts ) . ']' . htmlspecialchars( $code ) . "[/$tag]";
|
299 |
+
}
|
300 |
|
|
|
301 |
|
302 |
+
// The callback function for SyntaxHighlighter::decode_shortcode_contents()
|
303 |
+
// Shortcode attribute values need to not be quoted with TinyMCE disabled for some reason (weird bug)
|
304 |
+
function decode_shortcode_contents_callback( $atts, $code = '', $tag = false ) {
|
305 |
+
$quotes = ( user_can_richedit() ) ? true : false;
|
306 |
+
return '[' . $tag . $this->atts2string( $atts, $quotes ) . ']' . htmlspecialchars_decode( $code ) . "[/$tag]";
|
307 |
+
}
|
308 |
+
|
309 |
|
310 |
+
// Adds a post meta saying that HTML entities are encoded (for backwards compatibility)
|
311 |
+
function mark_as_encoded( $post_ID, $post ) {
|
312 |
+
if ( false == $this->encoded || 'revision' == $post->post_type )
|
313 |
+
return;
|
|
|
|
|
314 |
|
315 |
+
add_post_meta( $post_ID, 'syntaxhighlighter_encoded', true, true );
|
316 |
+
}
|
317 |
+
|
318 |
+
|
319 |
+
// Transforms an attributes array into a 'key="value"' format (i.e. reverses the process)
|
320 |
+
function atts2string( $atts, $quotes = true ) {
|
321 |
+
if ( empty($atts) )
|
322 |
+
return '';
|
323 |
+
|
324 |
+
$atts = $this->attributefix( $atts );
|
325 |
+
|
326 |
+
// Re-map [code="php"] style tags
|
327 |
+
if ( isset($atts[0]) ) {
|
328 |
+
if ( empty($atts['language']) )
|
329 |
+
$atts['language'] = $atts[0];
|
330 |
+
|
331 |
+
unset($atts[0]);
|
332 |
}
|
333 |
|
334 |
+
$strings = array();
|
335 |
+
foreach ( $atts as $key => $value )
|
336 |
+
$strings[] = ( $quotes ) ? $key . '="' . attribute_escape( $value ) . '"' : $key . '=' . attribute_escape( $value );
|
337 |
+
|
338 |
+
return ' ' . implode( ' ', $strings );
|
339 |
+
}
|
340 |
+
|
341 |
+
|
342 |
+
// Simple function for escaping just single quotes (the original js_escape() escapes more than we need)
|
343 |
+
function js_escape_singlequotes( $string ) {
|
344 |
+
return str_replace( "'", "\'", $string );
|
345 |
+
}
|
346 |
+
|
347 |
+
|
348 |
+
// Output any needed scripts. This is meant for the footer.
|
349 |
+
function maybe_output_scripts() {
|
350 |
+
if ( empty($this->usedbrushes) )
|
351 |
+
return;
|
352 |
+
|
353 |
+
$scripts = array();
|
354 |
+
foreach ( $this->usedbrushes as $brush => $unused )
|
355 |
+
$scripts[] = 'syntaxhighlighter-brush-' . strtolower( $brush );
|
356 |
+
|
357 |
+
wp_print_scripts( $scripts );
|
358 |
+
|
359 |
+
echo "<script type='text/javascript'>\n";
|
360 |
+
echo " SyntaxHighlighter.config.clipboardSwf = '" . js_escape( plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/clipboard.swf') ) . "';\n";
|
361 |
+
echo " SyntaxHighlighter.config.strings.expandSource = '" . $this->js_escape_singlequotes( __( 'expand source', 'syntaxhighlighter' ) ) . "';\n";
|
362 |
+
echo " SyntaxHighlighter.config.strings.viewSource = '" . $this->js_escape_singlequotes( __( 'view source', 'syntaxhighlighter' ) ) . "';\n";
|
363 |
+
echo " SyntaxHighlighter.config.strings.copyToClipboard = '" . $this->js_escape_singlequotes( __( 'copy to clipboard', 'syntaxhighlighter' ) ) . "';\n";
|
364 |
+
echo " SyntaxHighlighter.config.strings.copyToClipboardConfirmation = '" . $this->js_escape_singlequotes( __( 'The code is in your clipboard now', 'syntaxhighlighter' ) ) . "';\n";
|
365 |
+
echo " SyntaxHighlighter.config.strings.print = '" . $this->js_escape_singlequotes( __( 'print', 'syntaxhighlighter' ) ) . "';\n";
|
366 |
+
echo " SyntaxHighlighter.config.strings.help = '" . $this->js_escape_singlequotes( __( '?', 'syntaxhighlighter' ) ) . "';\n";
|
367 |
+
echo " SyntaxHighlighter.config.strings.alert = '" . $this->js_escape_singlequotes( __( 'SyntaxHighlighter\n\n', 'syntaxhighlighter' ) ) . "';\n";
|
368 |
+
echo " SyntaxHighlighter.config.strings.noBrush = '" . $this->js_escape_singlequotes( __( "Can't find brush for: ", 'syntaxhighlighter' ) ) . "';\n";
|
369 |
+
echo " SyntaxHighlighter.config.strings.brushNotHtmlScript = '" . $this->js_escape_singlequotes( __( "Brush wasn't configured for html-script option: ", 'syntaxhighlighter' ) ) . "';\n";
|
370 |
+
|
371 |
+
if ( 1 != $this->settings['autolinks'] )
|
372 |
+
echo " SyntaxHighlighter.defaults['auto-links'] = false;\n";
|
373 |
+
|
374 |
+
if ( !empty($this->settings['classname']) )
|
375 |
+
echo " SyntaxHighlighter.defaults['class-name'] = '" . $this->js_escape_singlequotes( $this->settings['classname'] ) . "';\n";
|
376 |
+
|
377 |
+
if ( 1 == $this->settings['collapse'] )
|
378 |
+
echo " SyntaxHighlighter.defaults['collapse'] = true;\n";
|
379 |
+
|
380 |
+
if ( 1 != $this->settings['firstline'] )
|
381 |
+
echo " SyntaxHighlighter.defaults['first-line'] = " . $this->settings['firstline'] . ";\n";
|
382 |
+
|
383 |
+
if ( 1 != $this->settings['gutter'] )
|
384 |
+
echo " SyntaxHighlighter.defaults['gutter'] = false;\n";
|
385 |
+
|
386 |
+
if ( 1 == $this->settings['light'] )
|
387 |
+
echo " SyntaxHighlighter.defaults['light'] = true;\n";
|
388 |
+
|
389 |
+
if ( 1 == $this->settings['ruler'] )
|
390 |
+
echo " SyntaxHighlighter.defaults['ruler'] = true;\n";
|
391 |
+
|
392 |
+
if ( 1 != $this->settings['smarttabs'] )
|
393 |
+
echo " SyntaxHighlighter.defaults['smart-tabs'] = false;\n";
|
394 |
+
|
395 |
+
if ( 4 != $this->settings['tabsize'] )
|
396 |
+
echo " SyntaxHighlighter.defaults['tab-size'] = " . $this->settings['tabsize'] . ";\n";
|
397 |
+
|
398 |
+
if ( 1 != $this->settings['toolbar'] )
|
399 |
+
echo " SyntaxHighlighter.defaults['toolbar'] = false;\n";
|
400 |
+
|
401 |
+
if ( 1 != $this->settings['wraplines'] )
|
402 |
+
echo " SyntaxHighlighter.defaults['wrap-lines'] = false;\n";
|
403 |
+
|
404 |
+
echo " SyntaxHighlighter.all();\n";
|
405 |
+
echo "</script>\n";
|
406 |
+
}
|
407 |
+
|
408 |
+
|
409 |
+
// No-name attribute fixing
|
410 |
+
function attributefix( $atts = array() ) {
|
411 |
+
if ( empty($atts[0]) )
|
412 |
+
return $atts;
|
413 |
+
|
414 |
+
// Quoted value
|
415 |
+
if ( 0 !== preg_match( '#=("|\')(.*?)\1#', $atts[0], $match ) )
|
416 |
+
$atts[0] = $match[2];
|
417 |
+
|
418 |
+
// Unquoted value
|
419 |
+
elseif ( '=' == substr( $atts[0], 0, 1 ) )
|
420 |
+
$atts[0] = substr( $atts[0], 1 );
|
421 |
+
|
422 |
+
return $atts;
|
423 |
}
|
424 |
|
425 |
|
426 |
+
// Shortcode handler for transforming the shortcodes to their final <pre>'s
|
427 |
+
function shortcode_callback( $atts, $code = '', $tag = false ) {
|
428 |
+
global $post;
|
429 |
+
|
430 |
+
if ( false === $tag || empty($code) )
|
431 |
+
return $code;
|
432 |
+
|
433 |
+
// Error fixing for [tag="language"]
|
434 |
+
if ( isset($atts[0]) ) {
|
435 |
+
$atts = $this->attributefix( $atts );
|
436 |
+
$atts['language'] = $atts[0];
|
437 |
+
unset($atts[0]);
|
438 |
+
}
|
439 |
+
|
440 |
+
// Default out all of the available parameters to "false" (easy way to check if they're set or not)
|
441 |
+
// Note this isn't the same as if the user passes the string "false" to the shortcode
|
442 |
+
$atts = apply_filters( 'syntaxhighlighter_shortcodeatts', shortcode_atts( array(
|
443 |
+
'language' => false,
|
444 |
+
'lang' => false,
|
445 |
+
'autolinks' => false,
|
446 |
+
'classname' => false,
|
447 |
+
'collapse' => false,
|
448 |
+
'firstline' => false,
|
449 |
+
'gutter' => false,
|
450 |
+
'highlight' => false,
|
451 |
+
'htmlscript' => false,
|
452 |
+
'light' => false,
|
453 |
+
'ruler' => false,
|
454 |
+
'smarttabs' => false,
|
455 |
+
'tabsize' => false,
|
456 |
+
'toolbar' => false,
|
457 |
+
'wraplines' => false,
|
458 |
+
), $atts ) );
|
459 |
+
|
460 |
+
// Check for language shortcode tag such as [php]code[/php]
|
461 |
+
if ( isset($this->brushes[$tag]) ) {
|
462 |
+
$lang = $tag;
|
463 |
+
}
|
464 |
+
|
465 |
+
// If a valid tag is not used, it must be sourcecode/source/code
|
466 |
+
else {
|
467 |
+
$atts = $this->attributefix( $atts );
|
468 |
+
|
469 |
+
// Check for the "language" attribute
|
470 |
+
if ( false !== $atts['language'] )
|
471 |
+
$lang = $atts['language'];
|
472 |
+
|
473 |
+
// Check for the "lang" attribute
|
474 |
+
elseif ( false !== $atts['lang'] )
|
475 |
+
$lang = $atts['lang'];
|
476 |
+
|
477 |
+
// Default to plain text
|
478 |
+
else
|
479 |
+
$lang = 'text';
|
480 |
+
|
481 |
+
// All language aliases are lowercase
|
482 |
+
$lang = strtolower( $lang );
|
483 |
+
|
484 |
+
// Validate passed attribute
|
485 |
+
if ( !isset($this->brushes[$lang]) )
|
486 |
+
return $code;
|
487 |
+
}
|
488 |
+
|
489 |
+
// Switch from the alias to the real brush name (so custom aliases can be used)
|
490 |
+
$lang = $this->brushes[$lang];
|
491 |
|
492 |
+
// Register this brush as used so it's script will be outputted
|
493 |
+
$this->usedbrushes[$lang] = true;
|
494 |
|
495 |
+
$params = array();
|
496 |
+
$params[] = "brush: $lang;";
|
497 |
+
|
498 |
+
// Fix bug that prevents collapse from working if the toolbar is off
|
499 |
+
if ( 1 == $atts['collapse'] || 'true' == $atts['collapse'] ) {
|
500 |
+
$atts['toolbar'] = 'true';
|
501 |
+
$atts['light'] = 'false';
|
502 |
+
}
|
503 |
|
504 |
+
// Enable "htmlscript" for certain brushes
|
505 |
+
//if ( false === $atts['html-script'] && in_array( $lang, apply_filters( 'syntaxhighlighter_htmlscriptbrushes', array( 'php' ) ) ) )
|
506 |
+
// $atts['html-script'] = 'true';
|
507 |
+
|
508 |
+
foreach ( $atts as $key => $value ) {
|
509 |
+
if ( false === $value || in_array( $key, array( 'language', 'lang' ) ) )
|
510 |
+
continue;
|
511 |
+
|
512 |
+
// Parameter renaming (the shortcode API doesn't like parameter names with dashes)
|
513 |
+
$rename_map = array(
|
514 |
+
'autolinks' => 'auto-links',
|
515 |
+
'classname' => 'class-name',
|
516 |
+
'firstline' => 'first-line',
|
517 |
+
'htmlscript' => 'html-script',
|
518 |
+
'smarttabs' => 'smart-tabs',
|
519 |
+
'tabsize' => 'tab-size',
|
520 |
+
'wraplines' => 'wrap-lines',
|
521 |
+
);
|
522 |
+
if ( !empty($rename_map[$key]) )
|
523 |
+
$key = $rename_map[$key];
|
524 |
+
|
525 |
+
// If "html-script", then include the XML brush as it's needed
|
526 |
+
if ( $key == 'html-script' && ( 'true' == $value || 1 == $value ) )
|
527 |
+
$this->usedbrushes['xml'] = true;
|
528 |
+
|
529 |
+
if ( 'highlight' == $key )
|
530 |
+
$params[] = "$key: [$value];";
|
531 |
+
else
|
532 |
+
$params[] = "$key: $value;";
|
533 |
}
|
534 |
|
535 |
+
$content = '<pre class="' . attribute_escape( implode( ' ', $params ) ) . '">';
|
536 |
+
$content .= ( get_post_meta( $post->ID, 'syntaxhighlighter_encoded', true ) ) ? $code : htmlspecialchars( $code );
|
537 |
+
$content .= '</pre>';
|
538 |
+
|
539 |
return $content;
|
540 |
}
|
541 |
|
542 |
|
543 |
+
// Settings page
|
544 |
+
function settings_page() {
|
545 |
+
if ( !empty($_GET['defaults']) ) : ?>
|
546 |
+
<div id="message" class="updated fade"><p><strong><?php _e('Settings reset to defaults.', 'syntaxhighlighter'); ?></strong></p></div>
|
547 |
+
<?php endif; ?>
|
548 |
|
|
|
|
|
|
|
|
|
|
|
549 |
<script type="text/javascript">
|
550 |
+
// <![CDATA[
|
551 |
+
jQuery(document).ready(function() {
|
552 |
+
// Confirm pressing of the "Reset to Defaults" button
|
553 |
+
jQuery("#syntaxhighlighter-defaults").click(function(){
|
554 |
+
var areyousure = confirm("<?php echo js_escape( __('Are you sure you want to reset your settings to the defaults?', 'syntaxhighlighter') ); ?>");
|
555 |
+
if ( true != areyousure ) return false;
|
556 |
+
});
|
557 |
+
});
|
558 |
+
// ]]>
|
559 |
</script>
|
560 |
|
561 |
+
<div class="wrap">
|
562 |
+
<?php if ( function_exists('screen_icon') ) screen_icon(); ?>
|
563 |
+
<h2><?php _e( 'SyntaxHighlighter Settings', 'syntaxhighlighter' ); ?></h2>
|
564 |
+
|
565 |
+
<form method="post" action="admin-post.php">
|
566 |
+
|
567 |
+
<?php wp_nonce_field('syntaxhighlighter'); ?>
|
568 |
+
|
569 |
+
<input type="hidden" name="action" value="syntaxhighlighter" />
|
570 |
+
|
571 |
+
<table class="form-table">
|
572 |
+
<tr valign="top">
|
573 |
+
<th scope="row"><label for="syntaxhighlighter-theme"><?php _e('Color Theme', 'syntaxhighlighter'); ?></label></th>
|
574 |
+
<td>
|
575 |
+
<select name="syntaxhighlighter-theme" id="syntaxhighlighter-theme" class="postform">
|
576 |
+
<?php
|
577 |
+
foreach ( $this->themes as $theme => $name ) {
|
578 |
+
echo ' <option value="' . attribute_escape($theme) . '"';
|
579 |
+
selected( $this->settings['theme'], $theme );
|
580 |
+
echo '>' . htmlspecialchars($name) . "</option>\n";
|
581 |
+
}
|
582 |
+
?>
|
583 |
+
</select>
|
584 |
+
</td>
|
585 |
+
</tr>
|
586 |
+
</table>
|
587 |
+
|
588 |
+
<h3><?php _e('Defaults', 'syntaxhighlighter'); ?></h3>
|
589 |
+
|
590 |
+
<p><?php _e('All of the settings below can also be configured on a per-code box basis.', 'syntaxhighlighter'); ?></p>
|
591 |
+
|
592 |
+
<table class="form-table">
|
593 |
+
<tr valign="top">
|
594 |
+
<th scope="row"><?php _e('Miscellaneous', 'syntaxhighlighter'); ?></th>
|
595 |
+
<td>
|
596 |
+
<fieldset>
|
597 |
+
<legend class="hidden"><?php _e('Miscellaneous', 'syntaxhighlighter'); ?></legend>
|
598 |
+
|
599 |
+
<label for="syntaxhighlighter-gutter"><input name="syntaxhighlighter-gutter" type="checkbox" id="syntaxhighlighter-gutter" value="1" <?php checked( $this->settings['gutter'], 1 ); ?> /> <?php _e('Display line numbers', 'syntaxhighlighter'); ?></label><br />
|
600 |
+
<label for="syntaxhighlighter-toolbar"><input name="syntaxhighlighter-toolbar" type="checkbox" id="syntaxhighlighter-toolbar" value="1" <?php checked( $this->settings['toolbar'], 1 ); ?> /> <?php _e('Display the toolbar', 'syntaxhighlighter'); ?></label><br />
|
601 |
+
<label for="syntaxhighlighter-autolinks"><input name="syntaxhighlighter-autolinks" type="checkbox" id="syntaxhighlighter-autolinks" value="1" <?php checked( $this->settings['autolinks'], 1 ); ?> /> <?php _e('Automatically make URLs clickable', 'syntaxhighlighter'); ?></label><br />
|
602 |
+
<label for="syntaxhighlighter-collapse"><input name="syntaxhighlighter-collapse" type="checkbox" id="syntaxhighlighter-collapse" value="1" <?php checked( $this->settings['collapse'], 1 ); ?> /> <?php _e('Collapse code boxes', 'syntaxhighlighter'); ?></label><br />
|
603 |
+
<label for="syntaxhighlighter-ruler"><input name="syntaxhighlighter-ruler" type="checkbox" id="syntaxhighlighter-ruler" value="1" <?php checked( $this->settings['ruler'], 1 ); ?> /> <?php _e('Show a ruler column along the top of the code box', 'syntaxhighlighter'); ?></label><br />
|
604 |
+
<label for="syntaxhighlighter-light"><input name="syntaxhighlighter-light" type="checkbox" id="syntaxhighlighter-light" value="1" <?php checked( $this->settings['light'], 1 ); ?> /> <?php _e('Use the light display mode, best for single lines of code', 'syntaxhighlighter'); ?></label><br />
|
605 |
+
<label for="syntaxhighlighter-smarttabs"><input name="syntaxhighlighter-smarttabs" type="checkbox" id="syntaxhighlighter-smarttabs" value="1" <?php checked( $this->settings['smarttabs'], 1 ); ?> /> <?php _e('Use smart tabs allowing tabs being used for alignment', 'syntaxhighlighter'); ?></label>
|
606 |
+
<label for="syntaxhighlighter-wraplines"><input name="syntaxhighlighter-wraplines" type="checkbox" id="syntaxhighlighter-wraplines" value="1" <?php checked( $this->settings['wraplines'], 1 ); ?> /> <?php _e('Wrap long lines, using an icon to show where line wraps occur (disabling this will make a scrollbar show instead)', 'syntaxhighlighter'); ?></label>
|
607 |
+
</fieldset>
|
608 |
+
</td>
|
609 |
+
</tr>
|
610 |
+
<tr valign="top">
|
611 |
+
<th scope="row"><label for="syntaxhighlighter-classname"><?php _e('Additional CSS Class(es)', 'syntaxhighlighter'); ?></label></th>
|
612 |
+
<td><input name="syntaxhighlighter-classname" type="text" id="syntaxhighlighter-classname" value="<?php echo attribute_escape( $this->settings['classname'] ); ?>" class="regular-text" /></td>
|
613 |
+
</tr>
|
614 |
+
<tr valign="top">
|
615 |
+
<th scope="row"><label for="syntaxhighlighter-firstline"><?php _e('Starting Line Number', 'syntaxhighlighter'); ?></label></th>
|
616 |
+
<td><input name="syntaxhighlighter-firstline" type="text" id="syntaxhighlighter-firstline" value="<?php echo attribute_escape( $this->settings['firstline'] ); ?>" class="small-text" /></td>
|
617 |
+
</tr>
|
618 |
+
<tr valign="top">
|
619 |
+
<th scope="row"><label for="syntaxhighlighter-tabsize"><?php _e('Tab Size', 'syntaxhighlighter'); ?></label></th>
|
620 |
+
<td><input name="syntaxhighlighter-tabsize" type="text" id="syntaxhighlighter-tabsize" value="<?php echo attribute_escape( $this->settings['tabsize'] ); ?>" class="small-text" /></td>
|
621 |
+
</tr>
|
622 |
+
</table>
|
623 |
+
|
624 |
+
<p class="submit">
|
625 |
+
<input type="submit" name="syntaxhighlighter-submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
|
626 |
+
<input type="submit" name="syntaxhighlighter-defaults" id="syntaxhighlighter-defaults" class="button-primary" value="<?php _e('Reset to Defaults', 'syntaxhighlighter') ?>" />
|
627 |
+
</p>
|
628 |
+
|
629 |
+
</form>
|
630 |
+
|
631 |
+
<h3><?php _e('Preview', 'syntaxhighlighter'); ?></h3>
|
632 |
+
|
633 |
+
<p><?php _e('Click "Save Changes" to update this preview.', 'syntaxhighlighter'); ?>
|
634 |
+
|
635 |
+
<?php
|
636 |
+
|
637 |
+
global $post;
|
638 |
+
|
639 |
+
$post->ID = 0;
|
640 |
+
|
641 |
+
$democode = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
642 |
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
643 |
+
<head>
|
644 |
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
645 |
+
<title>PHP Code Example</title>
|
646 |
+
</head>
|
647 |
+
<body>
|
648 |
+
<h1>PHP Code Example</h1>
|
649 |
+
|
650 |
+
<p><?php echo \'Hello World!\'; ?></p>
|
651 |
+
|
652 |
+
<p>This line is highlighted.</p>
|
653 |
+
|
654 |
+
<div class="foobar">
|
655 |
+
This is an
|
656 |
+
example of smart
|
657 |
+
tabs.
|
658 |
+
</div>
|
659 |
+
|
660 |
+
<p><a href="http://wordpress.org/">WordPress</a></p>
|
661 |
+
</body>
|
662 |
+
</html>';
|
663 |
+
|
664 |
+
echo $this->parse_shortcodes( '[php htmlscript="true" highlight="12"]' . $democode . '[/php]' );
|
665 |
+
|
666 |
+
?>
|
667 |
+
|
668 |
+
<h3 style="margin-top:30px"><?php _e('Shortcode Parameters', 'syntaxhighlighter'); ?></h3>
|
669 |
+
|
670 |
+
<p><?php printf( __('These are the parameters you can pass to the shortcode and what they do. For the booleans (i.e. on/off), pass %1$s/%2$s or %3$s/%4$s.', 'syntaxhighlighter'), '<code>true</code>', '<code>1</code>', '<code>false</code>', '<code>0</code>' ); ?></p>
|
671 |
+
|
672 |
+
<ul class="bulletlist">
|
673 |
+
<li><?php printf( __('%1$s or %2$s — The language syntax to highlight with. You can alternately just use that as the tag, such as <code>[php]code[/php]</code>. <a href="%3$s">Click here</a> for a list of valid tags (under "aliases").', 'syntaxhighlighter'), '<code>lang</code>', '<code>language</code>', 'http://alexgorbatchev.com/wiki/SyntaxHighlighter:Brushes' ); ?></li>
|
674 |
+
<li><?php printf( __('%s — Toggle automatic URL linking.', 'syntaxhighlighter'), '<code>autolinks</code>' ); ?></li>
|
675 |
+
<li><?php printf( __('%s — Add an additional CSS class to the code box.', 'syntaxhighlighter'), '<code>classname</code>' ); ?></li>
|
676 |
+
<li><?php printf( __('%s — Toggle collapsing the code box by default, requiring a click to expand it. Good for large code posts.', 'syntaxhighlighter'), '<code>collapse</code>' ); ?></li>
|
677 |
+
<li><?php printf( __('%s — An interger specifying what number the first line should be (for the line numbering).', 'syntaxhighlighter'), '<code>firstline</code>' ); ?></li>
|
678 |
+
<li><?php printf( __('%s — Toggle the left-side line numbering.', 'syntaxhighlighter'), '<code>gutter</code>' ); ?></li>
|
679 |
+
<li><?php printf( __('%s — A comma-sperated list of line numbers to highlight.', 'syntaxhighlighter'), '<code>highlight</code>' ); ?></li>
|
680 |
+
<li><?php printf( __("%s — Toggle highlighting any extra HTML/XML. Good for when you're mixing HTML/XML with another language, such as having PHP inside an HTML web page. The above preview has it enabled for example.", 'syntaxhighlighter'), '<code>htmlscript</code>' ); ?></li>
|
681 |
+
<li><?php printf( __("%s — Toggle light mode which disables the gutter, toolbar, and ruler all at once.", 'syntaxhighlighter'), '<code>light</code>' ); ?></li>
|
682 |
+
<li><?php printf( __("%s — Toggle the column ruler at the top of the code box.", 'syntaxhighlighter'), '<code>ruler</code>' ); ?></li>
|
683 |
+
<li><?php printf( __("%s — Toggle the toolbar containing the helpful buttons.", 'syntaxhighlighter'), '<code>toolbar</code>' ); ?></li>
|
684 |
+
<li><?php printf( __("%s — Toggle line wrapping.", 'syntaxhighlighter'), '<code>wraplines</code>' ); ?></li>
|
685 |
+
</ul>
|
686 |
+
|
687 |
+
<p><?php _e('Some example shortcodes:', 'syntaxhighlighter'); ?></p>
|
688 |
+
|
689 |
+
<ul class="bulletlist">
|
690 |
+
<li><code>[php]<?php _e('your code here', 'syntaxhighlighter'); ?>[/php]</code></li>
|
691 |
+
<li><code>[css autolinks="false" classname="myclass" collapse="false" firstline="1" gutter="true" highlight="1,2,3" htmlscript="false" light="false" ruler="false" smarttabs="true" tabsize="4" toolbar="true"]<?php _e('your code here', 'syntaxhighlighter'); ?>[/css]</code></li>
|
692 |
+
<li><code>[code lang="js"]<?php _e('your code here', 'syntaxhighlighter'); ?>[/code]</code></li>
|
693 |
+
<li><code>[sourcecode language="plain"]<?php _e('your code here', 'syntaxhighlighter'); ?>[/sourcecode]</code></li>
|
694 |
+
</ul>
|
695 |
+
|
696 |
+
<?php $this->maybe_output_scripts(); ?>
|
697 |
+
|
698 |
+
</div>
|
699 |
+
|
700 |
<?php
|
701 |
}
|
|
|
702 |
|
|
|
|
|
703 |
|
704 |
+
// Handle the results of the settings page
|
705 |
+
function save_settings() {
|
706 |
+
// Capability check
|
707 |
+
if ( !current_user_can('manage_options') )
|
708 |
+
wp_die( __('Cheatin’ uh?') );
|
709 |
+
|
710 |
+
// Form nonce check
|
711 |
+
check_admin_referer('syntaxhighlighter');
|
712 |
+
|
713 |
+
$defaults = false;
|
714 |
+
|
715 |
+
if ( !empty($_POST['syntaxhighlighter-defaults']) ) {
|
716 |
+
$settings = $this->defaultsettings;
|
717 |
+
$defaults = true;
|
718 |
+
} else {
|
719 |
+
$settings = array();
|
720 |
+
|
721 |
+
$settings['theme'] = ( !empty($_POST['syntaxhighlighter-theme']) && isset($this->themes[$_POST['syntaxhighlighter-theme']]) ) ? strtolower($_POST['syntaxhighlighter-theme']) : $this->defaultsettings['theme'];
|
722 |
+
|
723 |
+
$settings['autolinks'] = ( !empty($_POST['syntaxhighlighter-autolinks']) ) ? 1 : 0;
|
724 |
+
$settings['collapse'] = ( !empty($_POST['syntaxhighlighter-collapse']) ) ? 1 : 0;
|
725 |
+
$settings['gutter'] = ( !empty($_POST['syntaxhighlighter-gutter']) ) ? 1 : 0;
|
726 |
+
$settings['light'] = ( !empty($_POST['syntaxhighlighter-light']) ) ? 1 : 0;
|
727 |
+
$settings['ruler'] = ( !empty($_POST['syntaxhighlighter-ruler']) ) ? 1 : 0;
|
728 |
+
$settings['smarttabs'] = ( !empty($_POST['syntaxhighlighter-smarttabs']) ) ? 1 : 0;
|
729 |
+
$settings['toolbar'] = ( !empty($_POST['syntaxhighlighter-toolbar']) ) ? 1 : 0;
|
730 |
+
$settings['wraplines'] = ( !empty($_POST['syntaxhighlighter-wraplines']) ) ? 1 : 0;
|
731 |
+
|
732 |
+
$settings['classname'] = ( !empty($_POST['syntaxhighlighter-classname']) ) ? stripslashes( trim( $_POST['syntaxhighlighter-classname'] ) ) : $this->defaultsettings['classname'];
|
733 |
+
$settings['firstline'] = (int) ( !empty($_POST['syntaxhighlighter-firstline']) ) ? stripslashes( $_POST['syntaxhighlighter-firstline'] ) : $this->defaultsettings['firstline'];
|
734 |
+
$settings['tabsize'] = (int) ( !empty($_POST['syntaxhighlighter-tabsize']) ) ? stripslashes( $_POST['syntaxhighlighter-tabsize'] ) : $this->defaultsettings['tabsize'];
|
735 |
+
}
|
736 |
+
|
737 |
+
update_option( 'syntaxhighlighter_settings', $settings );
|
738 |
+
|
739 |
+
// Redirect back to where we came from (the settings page)
|
740 |
+
$redirectto = remove_query_arg( 'defaults', remove_query_arg( 'updated', wp_get_referer() ) );
|
741 |
+
$redirectto = ( $defaults ) ? add_query_arg( 'defaults', 'true', $redirectto ) : add_query_arg( 'updated', 'true', $redirectto );
|
742 |
+
wp_safe_redirect( $redirectto );
|
743 |
+
}
|
744 |
+
|
745 |
+
|
746 |
+
// PHP4 compatibility
|
747 |
+
function SyntaxHighlighter() {
|
748 |
+
$this->__construct();
|
749 |
}
|
750 |
}
|
751 |
+
|
752 |
+
// Start this plugin once all other plugins are fully loaded
|
753 |
+
add_action( 'init', 'SyntaxHighlighter' ); function SyntaxHighlighter() { global $SyntaxHighlighter; $SyntaxHighlighter = new SyntaxHighlighter(); }
|
754 |
+
|
755 |
?>
|
syntaxhighlighter/LGPLv3.txt
ADDED
@@ -0,0 +1,165 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
GNU LESSER GENERAL PUBLIC LICENSE
|
2 |
+
Version 3, 29 June 2007
|
3 |
+
|
4 |
+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
5 |
+
Everyone is permitted to copy and distribute verbatim copies
|
6 |
+
of this license document, but changing it is not allowed.
|
7 |
+
|
8 |
+
|
9 |
+
This version of the GNU Lesser General Public License incorporates
|
10 |
+
the terms and conditions of version 3 of the GNU General Public
|
11 |
+
License, supplemented by the additional permissions listed below.
|
12 |
+
|
13 |
+
0. Additional Definitions.
|
14 |
+
|
15 |
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
16 |
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
17 |
+
General Public License.
|
18 |
+
|
19 |
+
"The Library" refers to a covered work governed by this License,
|
20 |
+
other than an Application or a Combined Work as defined below.
|
21 |
+
|
22 |
+
An "Application" is any work that makes use of an interface provided
|
23 |
+
by the Library, but which is not otherwise based on the Library.
|
24 |
+
Defining a subclass of a class defined by the Library is deemed a mode
|
25 |
+
of using an interface provided by the Library.
|
26 |
+
|
27 |
+
A "Combined Work" is a work produced by combining or linking an
|
28 |
+
Application with the Library. The particular version of the Library
|
29 |
+
with which the Combined Work was made is also called the "Linked
|
30 |
+
Version".
|
31 |
+
|
32 |
+
The "Minimal Corresponding Source" for a Combined Work means the
|
33 |
+
Corresponding Source for the Combined Work, excluding any source code
|
34 |
+
for portions of the Combined Work that, considered in isolation, are
|
35 |
+
based on the Application, and not on the Linked Version.
|
36 |
+
|
37 |
+
The "Corresponding Application Code" for a Combined Work means the
|
38 |
+
object code and/or source code for the Application, including any data
|
39 |
+
and utility programs needed for reproducing the Combined Work from the
|
40 |
+
Application, but excluding the System Libraries of the Combined Work.
|
41 |
+
|
42 |
+
1. Exception to Section 3 of the GNU GPL.
|
43 |
+
|
44 |
+
You may convey a covered work under sections 3 and 4 of this License
|
45 |
+
without being bound by section 3 of the GNU GPL.
|
46 |
+
|
47 |
+
2. Conveying Modified Versions.
|
48 |
+
|
49 |
+
If you modify a copy of the Library, and, in your modifications, a
|
50 |
+
facility refers to a function or data to be supplied by an Application
|
51 |
+
that uses the facility (other than as an argument passed when the
|
52 |
+
facility is invoked), then you may convey a copy of the modified
|
53 |
+
version:
|
54 |
+
|
55 |
+
a) under this License, provided that you make a good faith effort to
|
56 |
+
ensure that, in the event an Application does not supply the
|
57 |
+
function or data, the facility still operates, and performs
|
58 |
+
whatever part of its purpose remains meaningful, or
|
59 |
+
|
60 |
+
b) under the GNU GPL, with none of the additional permissions of
|
61 |
+
this License applicable to that copy.
|
62 |
+
|
63 |
+
3. Object Code Incorporating Material from Library Header Files.
|
64 |
+
|
65 |
+
The object code form of an Application may incorporate material from
|
66 |
+
a header file that is part of the Library. You may convey such object
|
67 |
+
code under terms of your choice, provided that, if the incorporated
|
68 |
+
material is not limited to numerical parameters, data structure
|
69 |
+
layouts and accessors, or small macros, inline functions and templates
|
70 |
+
(ten or fewer lines in length), you do both of the following:
|
71 |
+
|
72 |
+
a) Give prominent notice with each copy of the object code that the
|
73 |
+
Library is used in it and that the Library and its use are
|
74 |
+
covered by this License.
|
75 |
+
|
76 |
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
77 |
+
document.
|
78 |
+
|
79 |
+
4. Combined Works.
|
80 |
+
|
81 |
+
You may convey a Combined Work under terms of your choice that,
|
82 |
+
taken together, effectively do not restrict modification of the
|
83 |
+
portions of the Library contained in the Combined Work and reverse
|
84 |
+
engineering for debugging such modifications, if you also do each of
|
85 |
+
the following:
|
86 |
+
|
87 |
+
a) Give prominent notice with each copy of the Combined Work that
|
88 |
+
the Library is used in it and that the Library and its use are
|
89 |
+
covered by this License.
|
90 |
+
|
91 |
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
92 |
+
document.
|
93 |
+
|
94 |
+
c) For a Combined Work that displays copyright notices during
|
95 |
+
execution, include the copyright notice for the Library among
|
96 |
+
these notices, as well as a reference directing the user to the
|
97 |
+
copies of the GNU GPL and this license document.
|
98 |
+
|
99 |
+
d) Do one of the following:
|
100 |
+
|
101 |
+
0) Convey the Minimal Corresponding Source under the terms of this
|
102 |
+
License, and the Corresponding Application Code in a form
|
103 |
+
suitable for, and under terms that permit, the user to
|
104 |
+
recombine or relink the Application with a modified version of
|
105 |
+
the Linked Version to produce a modified Combined Work, in the
|
106 |
+
manner specified by section 6 of the GNU GPL for conveying
|
107 |
+
Corresponding Source.
|
108 |
+
|
109 |
+
1) Use a suitable shared library mechanism for linking with the
|
110 |
+
Library. A suitable mechanism is one that (a) uses at run time
|
111 |
+
a copy of the Library already present on the user's computer
|
112 |
+
system, and (b) will operate properly with a modified version
|
113 |
+
of the Library that is interface-compatible with the Linked
|
114 |
+
Version.
|
115 |
+
|
116 |
+
e) Provide Installation Information, but only if you would otherwise
|
117 |
+
be required to provide such information under section 6 of the
|
118 |
+
GNU GPL, and only to the extent that such information is
|
119 |
+
necessary to install and execute a modified version of the
|
120 |
+
Combined Work produced by recombining or relinking the
|
121 |
+
Application with a modified version of the Linked Version. (If
|
122 |
+
you use option 4d0, the Installation Information must accompany
|
123 |
+
the Minimal Corresponding Source and Corresponding Application
|
124 |
+
Code. If you use option 4d1, you must provide the Installation
|
125 |
+
Information in the manner specified by section 6 of the GNU GPL
|
126 |
+
for conveying Corresponding Source.)
|
127 |
+
|
128 |
+
5. Combined Libraries.
|
129 |
+
|
130 |
+
You may place library facilities that are a work based on the
|
131 |
+
Library side by side in a single library together with other library
|
132 |
+
facilities that are not Applications and are not covered by this
|
133 |
+
License, and convey such a combined library under terms of your
|
134 |
+
choice, if you do both of the following:
|
135 |
+
|
136 |
+
a) Accompany the combined library with a copy of the same work based
|
137 |
+
on the Library, uncombined with any other library facilities,
|
138 |
+
conveyed under the terms of this License.
|
139 |
+
|
140 |
+
b) Give prominent notice with the combined library that part of it
|
141 |
+
is a work based on the Library, and explaining where to find the
|
142 |
+
accompanying uncombined form of the same work.
|
143 |
+
|
144 |
+
6. Revised Versions of the GNU Lesser General Public License.
|
145 |
+
|
146 |
+
The Free Software Foundation may publish revised and/or new versions
|
147 |
+
of the GNU Lesser General Public License from time to time. Such new
|
148 |
+
versions will be similar in spirit to the present version, but may
|
149 |
+
differ in detail to address new problems or concerns.
|
150 |
+
|
151 |
+
Each version is given a distinguishing version number. If the
|
152 |
+
Library as you received it specifies that a certain numbered version
|
153 |
+
of the GNU Lesser General Public License "or any later version"
|
154 |
+
applies to it, you have the option of following the terms and
|
155 |
+
conditions either of that published version or of any later version
|
156 |
+
published by the Free Software Foundation. If the Library as you
|
157 |
+
received it does not specify a version number of the GNU Lesser
|
158 |
+
General Public License, you may choose any version of the GNU Lesser
|
159 |
+
General Public License ever published by the Free Software Foundation.
|
160 |
+
|
161 |
+
If the Library as you received it specifies that a proxy can decide
|
162 |
+
whether future versions of the GNU Lesser General Public License shall
|
163 |
+
apply, that proxy's public statement of acceptance of any version is
|
164 |
+
permanent authorization for you to choose that version for the
|
165 |
+
Library.
|
syntaxhighlighter/scripts/clipboard.swf
ADDED
Binary file
|
syntaxhighlighter/scripts/shBrushAS3.js
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.0.320 (May 03 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.AS3 = function()
|
31 |
+
{
|
32 |
+
// Created by Peter Atoria @ http://iAtoria.com
|
33 |
+
|
34 |
+
var inits = 'class interface function package';
|
35 |
+
|
36 |
+
var keywords = '-Infinity ...rest Array as AS3 Boolean break case catch const continue Date decodeURI ' +
|
37 |
+
'decodeURIComponent default delete do dynamic each else encodeURI encodeURIComponent escape ' +
|
38 |
+
'extends false final finally flash_proxy for get if implements import in include Infinity ' +
|
39 |
+
'instanceof int internal is isFinite isNaN isXMLName label namespace NaN native new null ' +
|
40 |
+
'Null Number Object object_proxy override parseFloat parseInt private protected public ' +
|
41 |
+
'return set static String super switch this throw true try typeof uint undefined unescape ' +
|
42 |
+
'use void while with'
|
43 |
+
;
|
44 |
+
|
45 |
+
this.regexList = [
|
46 |
+
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
47 |
+
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
48 |
+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
49 |
+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
50 |
+
{ regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers
|
51 |
+
{ regex: new RegExp(this.getKeywords(inits), 'gm'), css: 'color3' }, // initializations
|
52 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
|
53 |
+
{ regex: new RegExp('var', 'gm'), css: 'variable' }, // variable
|
54 |
+
{ regex: new RegExp('trace', 'gm'), css: 'color1' } // trace
|
55 |
+
];
|
56 |
+
|
57 |
+
this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags);
|
58 |
+
};
|
59 |
+
|
60 |
+
SyntaxHighlighter.brushes.AS3.prototype = new SyntaxHighlighter.Highlighter();
|
61 |
+
SyntaxHighlighter.brushes.AS3.aliases = ['actionscript3', 'as3'];
|
syntaxhighlighter/scripts/shBrushBash.js
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.0.320 (May 03 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.Bash = function()
|
31 |
+
{
|
32 |
+
var keywords = 'if fi then elif else for do done until while break continue case function return in eq ne ge le'; // "gt lt" removed for WordPress plugin
|
33 |
+
var commands = 'alias apropos awk bash bc bg builtin bzip2 cal cat cd cfdisk chgrp chmod chown chroot' +
|
34 |
+
'cksum clear cmp comm command cp cron crontab csplit cut date dc dd ddrescue declare df ' +
|
35 |
+
'diff diff3 dig dir dircolors dirname dirs du echo egrep eject enable env ethtool eval ' +
|
36 |
+
'exec exit expand export expr false fdformat fdisk fg fgrep file find fmt fold format ' +
|
37 |
+
'free fsck ftp gawk getopts grep groups gzip hash head history hostname id ifconfig ' +
|
38 |
+
'import install join kill less let ln local locate logname logout look lpc lpr lprint ' +
|
39 |
+
'lprintd lprintq lprm ls lsof make man mkdir mkfifo mkisofs mknod more mount mtools ' +
|
40 |
+
'mv netstat nice nl nohup nslookup open op passwd paste pathchk ping popd pr printcap ' +
|
41 |
+
'printenv printf ps pushd pwd quota quotacheck quotactl ram rcp read readonly renice ' +
|
42 |
+
'remsync rm rmdir rsync screen scp sdiff sed select seq set sftp shift shopt shutdown ' +
|
43 |
+
'sleep sort source split ssh strace su sudo sum symlink sync tail tar tee test time ' +
|
44 |
+
'times touch top traceroute trap tr true tsort tty type ulimit umask umount unalias ' +
|
45 |
+
'uname unexpand uniq units unset unshar useradd usermod users uuencode uudecode v vdir ' +
|
46 |
+
'vi watch wc whereis which who whoami Wget xargs yes'
|
47 |
+
;
|
48 |
+
|
49 |
+
this.regexList = [
|
50 |
+
{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments
|
51 |
+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
52 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
|
53 |
+
{ regex: new RegExp(this.getKeywords(commands), 'gm'), css: 'functions' } // commands
|
54 |
+
];
|
55 |
+
}
|
56 |
+
|
57 |
+
SyntaxHighlighter.brushes.Bash.prototype = new SyntaxHighlighter.Highlighter();
|
58 |
+
SyntaxHighlighter.brushes.Bash.aliases = ['bash', 'shell'];
|
59 |
+
|
syntaxhighlighter/scripts/shBrushCSharp.js
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.0.320 (May 03 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.CSharp = function()
|
31 |
+
{
|
32 |
+
var keywords = 'abstract as base bool break byte case catch char checked class const ' +
|
33 |
+
'continue decimal default delegate do double else enum event explicit ' +
|
34 |
+
'extern false finally fixed float for foreach get goto if implicit in int ' +
|
35 |
+
'interface internal is lock long namespace new null object operator out ' +
|
36 |
+
'override params private protected public readonly ref return sbyte sealed set ' +
|
37 |
+
'short sizeof stackalloc static string struct switch this throw true try ' +
|
38 |
+
'typeof uint ulong unchecked unsafe ushort using virtual void while';
|
39 |
+
|
40 |
+
function fixComments(match, regexInfo)
|
41 |
+
{
|
42 |
+
var css = (match[0].indexOf("///") == 0)
|
43 |
+
? 'color1'
|
44 |
+
: 'comments'
|
45 |
+
;
|
46 |
+
|
47 |
+
return [new SyntaxHighlighter.Match(match[0], match.index, css)];
|
48 |
+
}
|
49 |
+
|
50 |
+
this.regexList = [
|
51 |
+
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, func : fixComments }, // one line comments
|
52 |
+
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
53 |
+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
54 |
+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
55 |
+
{ regex: /^\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
|
56 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // c# keyword
|
57 |
+
];
|
58 |
+
|
59 |
+
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
60 |
+
};
|
61 |
+
|
62 |
+
SyntaxHighlighter.brushes.CSharp.prototype = new SyntaxHighlighter.Highlighter();
|
63 |
+
SyntaxHighlighter.brushes.CSharp.aliases = ['c#', 'c-sharp', 'csharp'];
|
64 |
+
|
syntaxhighlighter/scripts/shBrushCpp.js
ADDED
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.0.320 (May 03 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.Cpp = function()
|
31 |
+
{
|
32 |
+
// Copyright 2006 Shin, YoungJin
|
33 |
+
|
34 |
+
var datatypes = 'ATOM BOOL BOOLEAN BYTE CHAR COLORREF DWORD DWORDLONG DWORD_PTR ' +
|
35 |
+
'DWORD32 DWORD64 FLOAT HACCEL HALF_PTR HANDLE HBITMAP HBRUSH ' +
|
36 |
+
'HCOLORSPACE HCONV HCONVLIST HCURSOR HDC HDDEDATA HDESK HDROP HDWP ' +
|
37 |
+
'HENHMETAFILE HFILE HFONT HGDIOBJ HGLOBAL HHOOK HICON HINSTANCE HKEY ' +
|
38 |
+
'HKL HLOCAL HMENU HMETAFILE HMODULE HMONITOR HPALETTE HPEN HRESULT ' +
|
39 |
+
'HRGN HRSRC HSZ HWINSTA HWND INT INT_PTR INT32 INT64 LANGID LCID LCTYPE ' +
|
40 |
+
'LGRPID LONG LONGLONG LONG_PTR LONG32 LONG64 LPARAM LPBOOL LPBYTE LPCOLORREF ' +
|
41 |
+
'LPCSTR LPCTSTR LPCVOID LPCWSTR LPDWORD LPHANDLE LPINT LPLONG LPSTR LPTSTR ' +
|
42 |
+
'LPVOID LPWORD LPWSTR LRESULT PBOOL PBOOLEAN PBYTE PCHAR PCSTR PCTSTR PCWSTR ' +
|
43 |
+
'PDWORDLONG PDWORD_PTR PDWORD32 PDWORD64 PFLOAT PHALF_PTR PHANDLE PHKEY PINT ' +
|
44 |
+
'PINT_PTR PINT32 PINT64 PLCID PLONG PLONGLONG PLONG_PTR PLONG32 PLONG64 POINTER_32 ' +
|
45 |
+
'POINTER_64 PSHORT PSIZE_T PSSIZE_T PSTR PTBYTE PTCHAR PTSTR PUCHAR PUHALF_PTR ' +
|
46 |
+
'PUINT PUINT_PTR PUINT32 PUINT64 PULONG PULONGLONG PULONG_PTR PULONG32 PULONG64 ' +
|
47 |
+
'PUSHORT PVOID PWCHAR PWORD PWSTR SC_HANDLE SC_LOCK SERVICE_STATUS_HANDLE SHORT ' +
|
48 |
+
'SIZE_T SSIZE_T TBYTE TCHAR UCHAR UHALF_PTR UINT UINT_PTR UINT32 UINT64 ULONG ' +
|
49 |
+
'ULONGLONG ULONG_PTR ULONG32 ULONG64 USHORT USN VOID WCHAR WORD WPARAM WPARAM WPARAM ' +
|
50 |
+
'char bool short int __int32 __int64 __int8 __int16 long float double __wchar_t ' +
|
51 |
+
'clock_t _complex _dev_t _diskfree_t div_t ldiv_t _exception _EXCEPTION_POINTERS ' +
|
52 |
+
'FILE _finddata_t _finddatai64_t _wfinddata_t _wfinddatai64_t __finddata64_t ' +
|
53 |
+
'__wfinddata64_t _FPIEEE_RECORD fpos_t _HEAPINFO _HFILE lconv intptr_t ' +
|
54 |
+
'jmp_buf mbstate_t _off_t _onexit_t _PNH ptrdiff_t _purecall_handler ' +
|
55 |
+
'sig_atomic_t size_t _stat __stat64 _stati64 terminate_function ' +
|
56 |
+
'time_t __time64_t _timeb __timeb64 tm uintptr_t _utimbuf ' +
|
57 |
+
'va_list wchar_t wctrans_t wctype_t wint_t signed';
|
58 |
+
|
59 |
+
var keywords = 'break case catch class const __finally __exception __try ' +
|
60 |
+
'const_cast continue private public protected __declspec ' +
|
61 |
+
'default delete deprecated dllexport dllimport do dynamic_cast ' +
|
62 |
+
'else enum explicit extern if for friend goto inline ' +
|
63 |
+
'mutable naked namespace new noinline noreturn nothrow ' +
|
64 |
+
'register reinterpret_cast return selectany ' +
|
65 |
+
'sizeof static static_cast struct switch template this ' +
|
66 |
+
'thread throw true false try typedef typeid typename union ' +
|
67 |
+
'using uuid virtual void volatile whcar_t while';
|
68 |
+
|
69 |
+
var functions = 'assert isalnum isalpha iscntrl isdigit isgraph islower isprint' +
|
70 |
+
'ispunct isspace isupper isxdigit tolower toupper errno localeconv ' +
|
71 |
+
'setlocale acos asin atan atan2 ceil cos cosh exp fabs floor fmod ' +
|
72 |
+
'frexp ldexp log log10 modf pow sin sinh sqrt tan tanh jmp_buf ' +
|
73 |
+
'longjmp setjmp raise signal sig_atomic_t va_arg va_end va_start ' +
|
74 |
+
'clearerr fclose feof ferror fflush fgetc fgetpos fgets fopen ' +
|
75 |
+
'fprintf fputc fputs fread freopen fscanf fseek fsetpos ftell ' +
|
76 |
+
'fwrite getc getchar gets perror printf putc putchar puts remove ' +
|
77 |
+
'rename rewind scanf setbuf setvbuf sprintf sscanf tmpfile tmpnam ' +
|
78 |
+
'ungetc vfprintf vprintf vsprintf abort abs atexit atof atoi atol ' +
|
79 |
+
'bsearch calloc div exit free getenv labs ldiv malloc mblen mbstowcs ' +
|
80 |
+
'mbtowc qsort rand realloc srand strtod strtol strtoul system ' +
|
81 |
+
'wcstombs wctomb memchr memcmp memcpy memmove memset strcat strchr ' +
|
82 |
+
'strcmp strcoll strcpy strcspn strerror strlen strncat strncmp ' +
|
83 |
+
'strncpy strpbrk strrchr strspn strstr strtok strxfrm asctime ' +
|
84 |
+
'clock ctime difftime gmtime localtime mktime strftime time';
|
85 |
+
|
86 |
+
this.regexList = [
|
87 |
+
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
88 |
+
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
89 |
+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
90 |
+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
91 |
+
{ regex: /^ *#.*/gm, css: 'preprocessor' },
|
92 |
+
{ regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'color1 bold' },
|
93 |
+
{ regex: new RegExp(this.getKeywords(functions), 'gm'), css: 'functions bold' },
|
94 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword bold' }
|
95 |
+
];
|
96 |
+
};
|
97 |
+
|
98 |
+
SyntaxHighlighter.brushes.Cpp.prototype = new SyntaxHighlighter.Highlighter();
|
99 |
+
SyntaxHighlighter.brushes.Cpp.aliases = ['cpp', 'c'];
|
syntaxhighlighter/scripts/shBrushCss.js
ADDED
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.0.320 (May 03 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.CSS = function()
|
31 |
+
{
|
32 |
+
function getKeywordsCSS(str)
|
33 |
+
{
|
34 |
+
return '\\b([a-z_]|)' + str.replace(/ /g, '(?=:)\\b|\\b([a-z_\\*]|\\*|)') + '(?=:)\\b';
|
35 |
+
};
|
36 |
+
|
37 |
+
function getValuesCSS(str)
|
38 |
+
{
|
39 |
+
return '\\b' + str.replace(/ /g, '(?!-)(?!:)\\b|\\b()') + '\:\\b';
|
40 |
+
};
|
41 |
+
|
42 |
+
var keywords = 'ascent azimuth background-attachment background-color background-image background-position ' +
|
43 |
+
'background-repeat background baseline bbox border-collapse border-color border-spacing border-style border-top ' +
|
44 |
+
'border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color ' +
|
45 |
+
'border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width ' +
|
46 |
+
'border-bottom-width border-left-width border-width border bottom cap-height caption-side centerline clear clip color ' +
|
47 |
+
'content counter-increment counter-reset cue-after cue-before cue cursor definition-src descent direction display ' +
|
48 |
+
'elevation empty-cells float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font ' +
|
49 |
+
'height left letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top ' +
|
50 |
+
'margin-right margin-bottom margin-left margin marker-offset marks mathline max-height max-width min-height min-width orphans ' +
|
51 |
+
'outline-color outline-style outline-width outline overflow padding-top padding-right padding-bottom padding-left padding page ' +
|
52 |
+
'page-break-after page-break-before page-break-inside pause pause-after pause-before pitch pitch-range play-during position ' +
|
53 |
+
'quotes right richness size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress ' +
|
54 |
+
'table-layout text-align top text-decoration text-indent text-shadow text-transform unicode-bidi unicode-range units-per-em ' +
|
55 |
+
'vertical-align visibility voice-family volume white-space widows width widths word-spacing x-height z-index';
|
56 |
+
|
57 |
+
var values = 'above absolute all always aqua armenian attr aural auto avoid baseline behind below bidi-override black blink block blue bold bolder '+
|
58 |
+
'both bottom braille capitalize caption center center-left center-right circle close-quote code collapse compact condensed '+
|
59 |
+
'continuous counter counters crop cross crosshair cursive dashed decimal decimal-leading-zero default digits disc dotted double '+
|
60 |
+
'embed embossed e-resize expanded extra-condensed extra-expanded fantasy far-left far-right fast faster fixed format fuchsia '+
|
61 |
+
'gray green groove handheld hebrew help hidden hide high higher icon inline-table inline inset inside invert italic '+
|
62 |
+
'justify landscape large larger left-side left leftwards level lighter lime line-through list-item local loud lower-alpha '+
|
63 |
+
'lowercase lower-greek lower-latin lower-roman lower low ltr marker maroon medium message-box middle mix move narrower '+
|
64 |
+
'navy ne-resize no-close-quote none no-open-quote no-repeat normal nowrap n-resize nw-resize oblique olive once open-quote outset '+
|
65 |
+
'outside overline pointer portrait pre print projection purple red relative repeat repeat-x repeat-y rgb ridge right right-side '+
|
66 |
+
'rightwards rtl run-in screen scroll semi-condensed semi-expanded separate se-resize show silent silver slower slow '+
|
67 |
+
'small small-caps small-caption smaller soft solid speech spell-out square s-resize static status-bar sub super sw-resize '+
|
68 |
+
'table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group teal '+
|
69 |
+
'text-bottom text-top thick thin top transparent tty tv ultra-condensed ultra-expanded underline upper-alpha uppercase upper-latin '+
|
70 |
+
'upper-roman url visible wait white wider w-resize x-fast x-high x-large x-loud x-low x-slow x-small x-soft xx-large xx-small yellow';
|
71 |
+
|
72 |
+
var fonts = '[mM]onospace [tT]ahoma [vV]erdana [aA]rial [hH]elvetica [sS]ans-serif [sS]erif [cC]ourier mono sans serif';
|
73 |
+
|
74 |
+
this.regexList = [
|
75 |
+
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
76 |
+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
77 |
+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
78 |
+
{ regex: /\#[a-fA-F0-9]{3,6}/g, css: 'value' }, // html colors
|
79 |
+
{ regex: /(-?\d+)(\.\d+)?(px|em|pt|\:|\%|)/g, css: 'value' }, // sizes
|
80 |
+
{ regex: /!important/g, css: 'color3' }, // !important
|
81 |
+
{ regex: new RegExp(getKeywordsCSS(keywords), 'gm'), css: 'keyword' }, // keywords
|
82 |
+
{ regex: new RegExp(getValuesCSS(values), 'g'), css: 'value' }, // values
|
83 |
+
{ regex: new RegExp(this.getKeywords(fonts), 'g'), css: 'color1' } // fonts
|
84 |
+
];
|
85 |
+
|
86 |
+
this.forHtmlScript({
|
87 |
+
left: /(<|<)\s*style.*?(>|>)/gi,
|
88 |
+
right: /(<|<)\/\s*style\s*(>|>)/gi
|
89 |
+
});
|
90 |
+
};
|
91 |
+
|
92 |
+
SyntaxHighlighter.brushes.CSS.prototype = new SyntaxHighlighter.Highlighter();
|
93 |
+
SyntaxHighlighter.brushes.CSS.aliases = ['css'];
|
syntaxhighlighter/scripts/shBrushDelphi.js
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.0.320 (May 03 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.Delphi = function()
|
31 |
+
{
|
32 |
+
var keywords = 'abs addr and ansichar ansistring array as asm begin boolean byte cardinal ' +
|
33 |
+
'case char class comp const constructor currency destructor div do double ' +
|
34 |
+
'downto else end except exports extended false file finalization finally ' +
|
35 |
+
'for function goto if implementation in inherited int64 initialization ' +
|
36 |
+
'integer interface is label library longint longword mod nil not object ' +
|
37 |
+
'of on or packed pansichar pansistring pchar pcurrency pdatetime pextended ' +
|
38 |
+
'pint64 pointer private procedure program property pshortstring pstring ' +
|
39 |
+
'pvariant pwidechar pwidestring protected public published raise real real48 ' +
|
40 |
+
'record repeat set shl shortint shortstring shr single smallint string then ' +
|
41 |
+
'threadvar to true try type unit until uses val var varirnt while widechar ' +
|
42 |
+
'widestring with word write writeln xor';
|
43 |
+
|
44 |
+
this.regexList = [
|
45 |
+
{ regex: /\(\*[\s\S]*?\*\)/gm, css: 'comments' }, // multiline comments (* *)
|
46 |
+
{ regex: /{(?!\$)[\s\S]*?}/gm, css: 'comments' }, // multiline comments { }
|
47 |
+
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line
|
48 |
+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
49 |
+
{ regex: /\{\$[a-zA-Z]+ .+\}/g, css: 'color1' }, // compiler Directives and Region tags
|
50 |
+
{ regex: /\b[\d\.]+\b/g, css: 'value' }, // numbers 12345
|
51 |
+
{ regex: /\$[a-zA-Z0-9]+\b/g, css: 'value' }, // numbers $F5D3
|
52 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keyword
|
53 |
+
];
|
54 |
+
};
|
55 |
+
|
56 |
+
SyntaxHighlighter.brushes.Delphi.prototype = new SyntaxHighlighter.Highlighter();
|
57 |
+
SyntaxHighlighter.brushes.Delphi.aliases = ['delphi', 'pascal'];
|
syntaxhighlighter/scripts/shBrushDiff.js
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.0.320 (May 03 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.Diff = function()
|
31 |
+
{
|
32 |
+
this.regexList = [
|
33 |
+
{ regex: /^\+\+\+.*$/gm, css: 'color2' },
|
34 |
+
{ regex: /^\-\-\-.*$/gm, css: 'color2' },
|
35 |
+
{ regex: /^\s.*$/gm, css: 'color1' },
|
36 |
+
{ regex: /^@@.*@@$/gm, css: 'variable' },
|
37 |
+
{ regex: /^\+[^\+]{1}.*$/gm, css: 'string' },
|
38 |
+
{ regex: /^\-[^\-]{1}.*$/gm, css: 'comments' }
|
39 |
+
];
|
40 |
+
};
|
41 |
+
|
42 |
+
SyntaxHighlighter.brushes.Diff.prototype = new SyntaxHighlighter.Highlighter();
|
43 |
+
SyntaxHighlighter.brushes.Diff.aliases = ['diff', 'patch'];
|
syntaxhighlighter/scripts/shBrushGroovy.js
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.0.320 (May 03 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.Groovy = function()
|
31 |
+
{
|
32 |
+
// Contributed by Andres Almiray
|
33 |
+
// http://jroller.com/aalmiray/entry/nice_source_code_syntax_highlighter
|
34 |
+
|
35 |
+
var keywords = 'as assert break case catch class continue def default do else extends finally ' +
|
36 |
+
'if in implements import instanceof interface new package property return switch ' +
|
37 |
+
'throw throws try while public protected private static';
|
38 |
+
var types = 'void boolean byte char short int long float double';
|
39 |
+
var constants = 'null';
|
40 |
+
var methods = 'allProperties count get size '+
|
41 |
+
'collect each eachProperty eachPropertyName eachWithIndex find findAll ' +
|
42 |
+
'findIndexOf grep inject max min reverseEach sort ' +
|
43 |
+
'asImmutable asSynchronized flatten intersect join pop reverse subMap toList ' +
|
44 |
+
'padRight padLeft contains eachMatch toCharacter toLong toUrl tokenize ' +
|
45 |
+
'eachFile eachFileRecurse eachB yte eachLine readBytes readLine getText ' +
|
46 |
+
'splitEachLine withReader append encodeBase64 decodeBase64 filterLine ' +
|
47 |
+
'transformChar transformLine withOutputStream withPrintWriter withStream ' +
|
48 |
+
'withStreams withWriter withWriterAppend write writeLine '+
|
49 |
+
'dump inspect invokeMethod print println step times upto use waitForOrKill '+
|
50 |
+
'getText';
|
51 |
+
|
52 |
+
this.regexList = [
|
53 |
+
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
54 |
+
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
55 |
+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
56 |
+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
57 |
+
{ regex: /""".*"""/g, css: 'string' }, // GStrings
|
58 |
+
{ regex: new RegExp('\\b([\\d]+(\\.[\\d]+)?|0x[a-f0-9]+)\\b', 'gi'), css: 'value' }, // numbers
|
59 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // goovy keyword
|
60 |
+
{ regex: new RegExp(this.getKeywords(types), 'gm'), css: 'color1' }, // goovy/java type
|
61 |
+
{ regex: new RegExp(this.getKeywords(constants), 'gm'), css: 'constants' }, // constants
|
62 |
+
{ regex: new RegExp(this.getKeywords(methods), 'gm'), css: 'functions' } // methods
|
63 |
+
];
|
64 |
+
|
65 |
+
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
66 |
+
}
|
67 |
+
|
68 |
+
SyntaxHighlighter.brushes.Groovy.prototype = new SyntaxHighlighter.Highlighter();
|
69 |
+
SyntaxHighlighter.brushes.Groovy.aliases = ['groovy'];
|
syntaxhighlighter/scripts/shBrushJScript.js
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.0.320 (May 03 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.JScript = function()
|
31 |
+
{
|
32 |
+
var keywords = 'break case catch continue ' +
|
33 |
+
'default delete do else false ' +
|
34 |
+
'for function if in instanceof ' +
|
35 |
+
'new null return super switch ' +
|
36 |
+
'this throw true try typeof var while with'
|
37 |
+
;
|
38 |
+
|
39 |
+
this.regexList = [
|
40 |
+
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
41 |
+
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
42 |
+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
43 |
+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
44 |
+
{ regex: /\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
|
45 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords
|
46 |
+
];
|
47 |
+
|
48 |
+
this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags);
|
49 |
+
};
|
50 |
+
|
51 |
+
SyntaxHighlighter.brushes.JScript.prototype = new SyntaxHighlighter.Highlighter();
|
52 |
+
SyntaxHighlighter.brushes.JScript.aliases = ['js', 'jscript', 'javascript'];
|
syntaxhighlighter/scripts/shBrushJava.js
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.0.320 (May 03 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.Java = function()
|
31 |
+
{
|
32 |
+
var keywords = 'abstract assert boolean break byte case catch char class const ' +
|
33 |
+
'continue default do double else enum extends ' +
|
34 |
+
'false final finally float for goto if implements import ' +
|
35 |
+
'instanceof int interface long native new null ' +
|
36 |
+
'package private protected public return ' +
|
37 |
+
'short static strictfp super switch synchronized this throw throws true ' +
|
38 |
+
'transient try void volatile while';
|
39 |
+
|
40 |
+
this.regexList = [
|
41 |
+
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
42 |
+
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
43 |
+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
44 |
+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
45 |
+
{ regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers
|
46 |
+
{ regex: /(?!\@interface\b)\@[\$\w]+\b/g, css: 'color1' }, // annotation @anno
|
47 |
+
{ regex: /\@interface\b/g, css: 'color2' }, // @interface keyword
|
48 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // java keyword
|
49 |
+
];
|
50 |
+
|
51 |
+
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
52 |
+
};
|
53 |
+
|
54 |
+
SyntaxHighlighter.brushes.Java.prototype = new SyntaxHighlighter.Highlighter();
|
55 |
+
SyntaxHighlighter.brushes.Java.aliases = ['java'];
|
syntaxhighlighter/scripts/shBrushJavaFX.js
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.0.320 (May 03 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.JavaFX = function()
|
31 |
+
{
|
32 |
+
// Contributed by Patrick Webster
|
33 |
+
// http://patrickwebster.blogspot.com/2009/04/javafx-brush-for-syntaxhighlighter.html
|
34 |
+
var datatypes = 'Boolean Byte Character Double Duration '
|
35 |
+
+ 'Float Integer Long Number Short String Void'
|
36 |
+
;
|
37 |
+
|
38 |
+
var keywords = 'abstract after and as assert at before bind bound break catch class '
|
39 |
+
+ 'continue def delete else exclusive extends false finally first for from '
|
40 |
+
+ 'function if import in indexof init insert instanceof into inverse last '
|
41 |
+
+ 'lazy mixin mod nativearray new not null on or override package postinit '
|
42 |
+
+ 'protected public public-init public-read replace return reverse sizeof '
|
43 |
+
+ 'step super then this throw true try tween typeof var where while with '
|
44 |
+
+ 'attribute let private readonly static trigger'
|
45 |
+
;
|
46 |
+
|
47 |
+
this.regexList = [
|
48 |
+
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' },
|
49 |
+
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' },
|
50 |
+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
|
51 |
+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
|
52 |
+
{ regex: /(-?\.?)(\b(\d*\.?\d+|\d+\.?\d*)(e[+-]?\d+)?|0x[a-f\d]+)\b\.?/gi, css: 'color2' }, // numbers
|
53 |
+
{ regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'variable' }, // datatypes
|
54 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
|
55 |
+
];
|
56 |
+
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
57 |
+
};
|
58 |
+
|
59 |
+
SyntaxHighlighter.brushes.JavaFX.prototype = new SyntaxHighlighter.Highlighter();
|
60 |
+
SyntaxHighlighter.brushes.JavaFX.aliases = ['jfx', 'javafx'];
|
syntaxhighlighter/scripts/shBrushObjC.js
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Wordpress SyntaxHighlighter brush for Objective-C
|
3 |
+
* By Matej Bukovinski, www.bukovinski.com
|
4 |
+
*
|
5 |
+
* Copyright (C) 2009 Matej Bukovinski
|
6 |
+
*
|
7 |
+
* Adapted from:
|
8 |
+
* SyntaxHighlighter - Objective-C Brush, version 1.0.0
|
9 |
+
* http://codepirate.seaandco.com/
|
10 |
+
* Copyright (C) 2009 Geoffrey Byers.
|
11 |
+
*
|
12 |
+
* Licensed under a GNU Lesser General Public License.
|
13 |
+
* http://creativecommons.org/licenses/LGPL/2.1/
|
14 |
+
*
|
15 |
+
*/
|
16 |
+
|
17 |
+
dp.sh.Brushes.ObjC = function() {
|
18 |
+
|
19 |
+
var datatypes = 'char bool BOOL double float int long short id void';
|
20 |
+
|
21 |
+
var keywords = 'IBAction IBOutlet SEL YES NO readwrite readonly nonatomic nil NULL ';
|
22 |
+
keywords += 'super self copy ';
|
23 |
+
keywords += 'break case catch class const copy __finally __exception __try ';
|
24 |
+
keywords += 'const_cast continue private public protected __declspec ';
|
25 |
+
keywords += 'default delete deprecated dllexport dllimport do dynamic_cast ';
|
26 |
+
keywords += 'else enum explicit extern if for friend goto inline ';
|
27 |
+
keywords += 'mutable naked namespace new noinline noreturn nothrow ';
|
28 |
+
keywords += 'register reinterpret_cast return selectany ';
|
29 |
+
keywords += 'sizeof static static_cast struct switch template this ';
|
30 |
+
keywords += 'thread throw true false try typedef typeid typename union ';
|
31 |
+
keywords += 'using uuid virtual volatile whcar_t while';
|
32 |
+
|
33 |
+
this.regexList = [
|
34 |
+
{ regex: dp.sh.RegexLib.SingleLineCComments, css: 'comment' }, // one line comments
|
35 |
+
{ regex: dp.sh.RegexLib.MultiLineCComments, css: 'comment' }, // multiline comments
|
36 |
+
{ regex: dp.sh.RegexLib.DoubleQuotedString, css: 'string' }, // double quoted strings
|
37 |
+
{ regex: dp.sh.RegexLib.SingleQuotedString, css: 'string' }, // single quoted strings
|
38 |
+
{ regex: new RegExp('^ *#.*', 'gm'), css: 'preprocessor' }, // preprocessor
|
39 |
+
{ regex: new RegExp(this.GetKeywords(datatypes), 'gm'), css: 'datatypes' }, // datatypes
|
40 |
+
{ regex: new RegExp(this.GetKeywords(keywords), 'gm'), css: 'keyword' }, // keyword
|
41 |
+
{ regex: new RegExp('\\bNS\\w+\\b', 'g'), css: 'keyword' }, // keyword
|
42 |
+
{ regex: new RegExp('@\\w+\\b', 'g'), css: 'keyword' }, // keyword
|
43 |
+
{ regex: new RegExp('@"(?:\\.|(\\\\\\")|[^\\""\\n])*"', 'g'), css: 'string' } // objc string
|
44 |
+
];
|
45 |
+
|
46 |
+
}
|
47 |
+
|
48 |
+
dp.sh.Brushes.ObjC.prototype = new dp.sh.Highlighter();
|
49 |
+
dp.sh.Brushes.ObjC.Aliases = ['objc', 'obj-c'];
|
syntaxhighlighter/scripts/shBrushPerl.js
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.0.320 (May 03 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.Perl = function()
|
31 |
+
{
|
32 |
+
// Contributed by David Simmons-Duffin and Marty Kube
|
33 |
+
|
34 |
+
var funcs =
|
35 |
+
'abs accept alarm atan2 bind binmode chdir chmod chomp chop chown chr ' +
|
36 |
+
'chroot close closedir connect cos crypt defined delete each endgrent ' +
|
37 |
+
'endhostent endnetent endprotoent endpwent endservent eof exec exists ' +
|
38 |
+
'exp fcntl fileno flock fork format formline getc getgrent getgrgid ' +
|
39 |
+
'getgrnam gethostbyaddr gethostbyname gethostent getlogin getnetbyaddr ' +
|
40 |
+
'getnetbyname getnetent getpeername getpgrp getppid getpriority ' +
|
41 |
+
'getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid ' +
|
42 |
+
'getservbyname getservbyport getservent getsockname getsockopt glob ' +
|
43 |
+
'gmtime grep hex index int ioctl join keys kill lc lcfirst length link ' +
|
44 |
+
'listen localtime lock log lstat map mkdir msgctl msgget msgrcv msgsnd ' +
|
45 |
+
'oct open opendir ord pack pipe pop pos print printf prototype push ' +
|
46 |
+
'quotemeta rand read readdir readline readlink readpipe recv rename ' +
|
47 |
+
'reset reverse rewinddir rindex rmdir scalar seek seekdir select semctl ' +
|
48 |
+
'semget semop send setgrent sethostent setnetent setpgrp setpriority ' +
|
49 |
+
'setprotoent setpwent setservent setsockopt shift shmctl shmget shmread ' +
|
50 |
+
'shmwrite shutdown sin sleep socket socketpair sort splice split sprintf ' +
|
51 |
+
'sqrt srand stat study substr symlink syscall sysopen sysread sysseek ' +
|
52 |
+
'system syswrite tell telldir time times tr truncate uc ucfirst umask ' +
|
53 |
+
'undef unlink unpack unshift utime values vec wait waitpid warn write';
|
54 |
+
|
55 |
+
var keywords =
|
56 |
+
'bless caller continue dbmclose dbmopen die do dump else elsif eval exit ' +
|
57 |
+
'for foreach goto if import last local my next no our package redo ref ' +
|
58 |
+
'require return sub tie tied unless untie until use wantarray while';
|
59 |
+
|
60 |
+
this.regexList = [
|
61 |
+
{ regex: new RegExp('#[^!].*$', 'gm'), css: 'comments' },
|
62 |
+
{ regex: new RegExp('^\\s*#!.*$', 'gm'), css: 'preprocessor' }, // shebang
|
63 |
+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
|
64 |
+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
|
65 |
+
{ regex: new RegExp('(\\$|@|%)\\w+', 'g'), css: 'variable' },
|
66 |
+
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' },
|
67 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
|
68 |
+
];
|
69 |
+
|
70 |
+
this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
|
71 |
+
}
|
72 |
+
|
73 |
+
SyntaxHighlighter.brushes.Perl.prototype = new SyntaxHighlighter.Highlighter();
|
74 |
+
SyntaxHighlighter.brushes.Perl.aliases = ['perl', 'Perl', 'pl'];
|
syntaxhighlighter/scripts/shBrushPhp.js
ADDED
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.0.320 (May 03 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.Php = function()
|
31 |
+
{
|
32 |
+
var funcs = 'abs acos acosh addcslashes addslashes ' +
|
33 |
+
'array_change_key_case array_chunk array_combine array_count_values array_diff '+
|
34 |
+
'array_diff_assoc array_diff_key array_diff_uassoc array_diff_ukey array_fill '+
|
35 |
+
'array_filter array_flip array_intersect array_intersect_assoc array_intersect_key '+
|
36 |
+
'array_intersect_uassoc array_intersect_ukey array_key_exists array_keys array_map '+
|
37 |
+
'array_merge array_merge_recursive array_multisort array_pad array_pop array_product '+
|
38 |
+
'array_push array_rand array_reduce array_reverse array_search array_shift '+
|
39 |
+
'array_slice array_splice array_sum array_udiff array_udiff_assoc '+
|
40 |
+
'array_udiff_uassoc array_uintersect array_uintersect_assoc '+
|
41 |
+
'array_uintersect_uassoc array_unique array_unshift array_values array_walk '+
|
42 |
+
'array_walk_recursive atan atan2 atanh base64_decode base64_encode base_convert '+
|
43 |
+
'basename bcadd bccomp bcdiv bcmod bcmul bindec bindtextdomain bzclose bzcompress '+
|
44 |
+
'bzdecompress bzerrno bzerror bzerrstr bzflush bzopen bzread bzwrite ceil chdir '+
|
45 |
+
'checkdate checkdnsrr chgrp chmod chop chown chr chroot chunk_split class_exists '+
|
46 |
+
'closedir closelog copy cos cosh count count_chars date decbin dechex decoct '+
|
47 |
+
'deg2rad delete ebcdic2ascii echo empty end ereg ereg_replace eregi eregi_replace error_log '+
|
48 |
+
'error_reporting escapeshellarg escapeshellcmd eval exec exit exp explode extension_loaded '+
|
49 |
+
'feof fflush fgetc fgetcsv fgets fgetss file_exists file_get_contents file_put_contents '+
|
50 |
+
'fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype '+
|
51 |
+
'floatval flock floor flush fmod fnmatch fopen fpassthru fprintf fputcsv fputs fread fscanf '+
|
52 |
+
'fseek fsockopen fstat ftell ftok getallheaders getcwd getdate getenv gethostbyaddr gethostbyname '+
|
53 |
+
'gethostbynamel getimagesize getlastmod getmxrr getmygid getmyinode getmypid getmyuid getopt '+
|
54 |
+
'getprotobyname getprotobynumber getrandmax getrusage getservbyname getservbyport gettext '+
|
55 |
+
'gettimeofday gettype glob gmdate gmmktime ini_alter ini_get ini_get_all ini_restore ini_set '+
|
56 |
+
'interface_exists intval ip2long is_a is_array is_bool is_callable is_dir is_double '+
|
57 |
+
'is_executable is_file is_finite is_float is_infinite is_int is_integer is_link is_long '+
|
58 |
+
'is_nan is_null is_numeric is_object is_readable is_real is_resource is_scalar is_soap_fault '+
|
59 |
+
'is_string is_subclass_of is_uploaded_file is_writable is_writeable mkdir mktime nl2br '+
|
60 |
+
'parse_ini_file parse_str parse_url passthru pathinfo readlink realpath rewind rewinddir rmdir '+
|
61 |
+
'round str_ireplace str_pad str_repeat str_replace str_rot13 str_shuffle str_split '+
|
62 |
+
'str_word_count strcasecmp strchr strcmp strcoll strcspn strftime strip_tags stripcslashes '+
|
63 |
+
'stripos stripslashes stristr strlen strnatcasecmp strnatcmp strncasecmp strncmp strpbrk '+
|
64 |
+
'strpos strptime strrchr strrev strripos strrpos strspn strstr strtok strtolower strtotime '+
|
65 |
+
'strtoupper strtr strval substr substr_compare';
|
66 |
+
|
67 |
+
var keywords = 'and or xor array as break case ' +
|
68 |
+
'cfunction class const continue declare default die do else ' +
|
69 |
+
'elseif enddeclare endfor endforeach endif endswitch endwhile ' +
|
70 |
+
'extends for foreach function include include_once global if ' +
|
71 |
+
'new old_function return static switch use require require_once ' +
|
72 |
+
'var while abstract interface public implements extends private protected throw';
|
73 |
+
|
74 |
+
var constants = '__FILE__ __LINE__ __METHOD__ __FUNCTION__ __CLASS__';
|
75 |
+
|
76 |
+
this.regexList = [
|
77 |
+
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
78 |
+
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
79 |
+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
80 |
+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
81 |
+
{ regex: /\$\w+/g, css: 'variable' }, // variables
|
82 |
+
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // common functions
|
83 |
+
{ regex: new RegExp(this.getKeywords(constants), 'gmi'), css: 'constants' }, // constants
|
84 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keyword
|
85 |
+
];
|
86 |
+
|
87 |
+
this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
|
88 |
+
};
|
89 |
+
|
90 |
+
SyntaxHighlighter.brushes.Php.prototype = new SyntaxHighlighter.Highlighter();
|
91 |
+
SyntaxHighlighter.brushes.Php.aliases = ['php'];
|
syntaxhighlighter/scripts/shBrushPlain.js
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.0.320 (May 03 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.Plain = function()
|
31 |
+
{
|
32 |
+
};
|
33 |
+
|
34 |
+
SyntaxHighlighter.brushes.Plain.prototype = new SyntaxHighlighter.Highlighter();
|
35 |
+
SyntaxHighlighter.brushes.Plain.aliases = ['text', 'plain'];
|
syntaxhighlighter/scripts/shBrushPowerShell.js
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.0.320 (May 03 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.PowerShell = function()
|
31 |
+
{
|
32 |
+
// Contributes by B.v.Zanten, Getronics
|
33 |
+
// http://confluence.atlassian.com/display/CONFEXT/New+Code+Macro
|
34 |
+
|
35 |
+
var keywords = 'Add-Content Add-History Add-Member Add-PSSnapin Clear(-Content)? Clear-Item ' +
|
36 |
+
'Clear-ItemProperty Clear-Variable Compare-Object ConvertFrom-SecureString Convert-Path ' +
|
37 |
+
'ConvertTo-Html ConvertTo-SecureString Copy(-Item)? Copy-ItemProperty Export-Alias ' +
|
38 |
+
'Export-Clixml Export-Console Export-Csv ForEach(-Object)? Format-Custom Format-List ' +
|
39 |
+
'Format-Table Format-Wide Get-Acl Get-Alias Get-AuthenticodeSignature Get-ChildItem Get-Command ' +
|
40 |
+
'Get-Content Get-Credential Get-Culture Get-Date Get-EventLog Get-ExecutionPolicy ' +
|
41 |
+
'Get-Help Get-History Get-Host Get-Item Get-ItemProperty Get-Location Get-Member ' +
|
42 |
+
'Get-PfxCertificate Get-Process Get-PSDrive Get-PSProvider Get-PSSnapin Get-Service ' +
|
43 |
+
'Get-TraceSource Get-UICulture Get-Unique Get-Variable Get-WmiObject Group-Object ' +
|
44 |
+
'Import-Alias Import-Clixml Import-Csv Invoke-Expression Invoke-History Invoke-Item ' +
|
45 |
+
'Join-Path Measure-Command Measure-Object Move(-Item)? Move-ItemProperty New-Alias ' +
|
46 |
+
'New-Item New-ItemProperty New-Object New-PSDrive New-Service New-TimeSpan ' +
|
47 |
+
'New-Variable Out-Default Out-File Out-Host Out-Null Out-Printer Out-String Pop-Location ' +
|
48 |
+
'Push-Location Read-Host Remove-Item Remove-ItemProperty Remove-PSDrive Remove-PSSnapin ' +
|
49 |
+
'Remove-Variable Rename-Item Rename-ItemProperty Resolve-Path Restart-Service Resume-Service ' +
|
50 |
+
'Select-Object Select-String Set-Acl Set-Alias Set-AuthenticodeSignature Set-Content ' +
|
51 |
+
'Set-Date Set-ExecutionPolicy Set-Item Set-ItemProperty Set-Location Set-PSDebug ' +
|
52 |
+
'Set-Service Set-TraceSource Set(-Variable)? Sort-Object Split-Path Start-Service ' +
|
53 |
+
'Start-Sleep Start-Transcript Stop-Process Stop-Service Stop-Transcript Suspend-Service ' +
|
54 |
+
'Tee-Object Test-Path Trace-Command Update-FormatData Update-TypeData Where(-Object)? ' +
|
55 |
+
'Write-Debug Write-Error Write(-Host)? Write-Output Write-Progress Write-Verbose Write-Warning';
|
56 |
+
var alias = 'ac asnp clc cli clp clv cpi cpp cvpa diff epal epcsv fc fl ' +
|
57 |
+
'ft fw gal gc gci gcm gdr ghy gi gl gm gp gps group gsv ' +
|
58 |
+
'gsnp gu gv gwmi iex ihy ii ipal ipcsv mi mp nal ndr ni nv oh rdr ' +
|
59 |
+
'ri rni rnp rp rsnp rv rvpa sal sasv sc select si sl sleep sort sp ' +
|
60 |
+
'spps spsv sv tee cat cd cp h history kill lp ls ' +
|
61 |
+
'mount mv popd ps pushd pwd r rm rmdir echo cls chdir del dir ' +
|
62 |
+
'erase rd ren type % \\?';
|
63 |
+
|
64 |
+
this.regexList = [
|
65 |
+
{ regex: /#.*$/gm, css: 'comments' }, // one line comments
|
66 |
+
{ regex: /\$[a-zA-Z0-9]+\b/g, css: 'value' }, // variables $Computer1
|
67 |
+
{ regex: /\-[a-zA-Z]+\b/g, css: 'keyword' }, // Operators -not -and -eq
|
68 |
+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
69 |
+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
70 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' },
|
71 |
+
{ regex: new RegExp(this.getKeywords(alias), 'gmi'), css: 'keyword' }
|
72 |
+
];
|
73 |
+
};
|
74 |
+
|
75 |
+
SyntaxHighlighter.brushes.PowerShell.prototype = new SyntaxHighlighter.Highlighter();
|
76 |
+
SyntaxHighlighter.brushes.PowerShell.aliases = ['powershell', 'ps'];
|
syntaxhighlighter/scripts/shBrushPython.js
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.0.320 (May 03 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.Python = function()
|
31 |
+
{
|
32 |
+
// Contributed by Gheorghe Milas
|
33 |
+
|
34 |
+
var keywords = 'and assert break class continue def del elif else ' +
|
35 |
+
'except exec finally for from global if import in is ' +
|
36 |
+
'lambda not or pass print raise return try yield while';
|
37 |
+
|
38 |
+
var special = 'None True False self cls class_';
|
39 |
+
|
40 |
+
this.regexList = [
|
41 |
+
{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' },
|
42 |
+
{ regex: /^\s*@\w+/gm, css: 'decorator' },
|
43 |
+
{ regex: /(['\"]{3})([^\1])*?\1/gm, css: 'comments' },
|
44 |
+
{ regex: /"(?!")(?:\.|\\\"|[^\""\n])*"/gm, css: 'string' },
|
45 |
+
{ regex: /'(?!')(?:\.|(\\\')|[^\''\n])*'/gm, css: 'string' },
|
46 |
+
{ regex: /\+|\-|\*|\/|\%|=|==/gm, css: 'keyword' },
|
47 |
+
{ regex: /\b\d+\.?\w*/g, css: 'value' },
|
48 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' },
|
49 |
+
{ regex: new RegExp(this.getKeywords(special), 'gm'), css: 'color1' }
|
50 |
+
];
|
51 |
+
|
52 |
+
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
53 |
+
};
|
54 |
+
|
55 |
+
SyntaxHighlighter.brushes.Python.prototype = new SyntaxHighlighter.Highlighter();
|
56 |
+
SyntaxHighlighter.brushes.Python.aliases = ['py', 'python'];
|
syntaxhighlighter/scripts/shBrushRuby.js
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.0.320 (May 03 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.Ruby = function()
|
31 |
+
{
|
32 |
+
// Contributed by Erik Peterson.
|
33 |
+
|
34 |
+
var keywords = 'alias and BEGIN begin break case class def define_method defined do each else elsif ' +
|
35 |
+
'END end ensure false for if in module new next nil not or raise redo rescue retry return ' +
|
36 |
+
'self super then throw true undef unless until when while yield';
|
37 |
+
|
38 |
+
var builtins = 'Array Bignum Binding Class Continuation Dir Exception FalseClass File::Stat File Fixnum Fload ' +
|
39 |
+
'Hash Integer IO MatchData Method Module NilClass Numeric Object Proc Range Regexp String Struct::TMS Symbol ' +
|
40 |
+
'ThreadGroup Thread Time TrueClass';
|
41 |
+
|
42 |
+
this.regexList = [
|
43 |
+
{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments
|
44 |
+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
45 |
+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
46 |
+
{ regex: /\b[A-Z0-9_]+\b/g, css: 'constants' }, // constants
|
47 |
+
{ regex: /:[a-z][A-Za-z0-9_]*/g, css: 'color2' }, // symbols
|
48 |
+
{ regex: /(\$|@@|@)\w+/g, css: 'variable bold' }, // $global, @instance, and @@class variables
|
49 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
|
50 |
+
{ regex: new RegExp(this.getKeywords(builtins), 'gm'), css: 'color1' } // builtins
|
51 |
+
];
|
52 |
+
|
53 |
+
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
54 |
+
};
|
55 |
+
|
56 |
+
SyntaxHighlighter.brushes.Ruby.prototype = new SyntaxHighlighter.Highlighter();
|
57 |
+
SyntaxHighlighter.brushes.Ruby.aliases = ['ruby', 'rails', 'ror'];
|
syntaxhighlighter/scripts/shBrushScala.js
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.0.320 (May 03 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.Scala = function()
|
31 |
+
{
|
32 |
+
// Contributed by Yegor Jbanov and David Bernard.
|
33 |
+
|
34 |
+
var keywords = 'val sealed case def true trait implicit forSome import match object null finally super ' +
|
35 |
+
'override try lazy for var catch throw type extends class while with new final yield abstract ' +
|
36 |
+
'else do if return protected private this package false';
|
37 |
+
|
38 |
+
var keyops = '[_:=><%#@]+';
|
39 |
+
|
40 |
+
this.regexList = [
|
41 |
+
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
42 |
+
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
43 |
+
{ regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // multi-line strings
|
44 |
+
{ regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double-quoted string
|
45 |
+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
46 |
+
{ regex: /0x[a-f0-9]+|\d+(\.\d+)?/gi, css: 'value' }, // numbers
|
47 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
|
48 |
+
{ regex: new RegExp(keyops, 'gm'), css: 'keyword' } // scala keyword
|
49 |
+
];
|
50 |
+
}
|
51 |
+
|
52 |
+
SyntaxHighlighter.brushes.Scala.prototype = new SyntaxHighlighter.Highlighter();
|
53 |
+
SyntaxHighlighter.brushes.Scala.aliases = ['scala'];
|
syntaxhighlighter/scripts/shBrushSql.js
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.0.320 (May 03 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.Sql = function()
|
31 |
+
{
|
32 |
+
var funcs = 'abs avg case cast coalesce convert count current_timestamp ' +
|
33 |
+
'current_user day isnull left lower month nullif replace right ' +
|
34 |
+
'session_user space substring sum system_user upper user year';
|
35 |
+
|
36 |
+
var keywords = 'absolute action add after alter as asc at authorization begin bigint ' +
|
37 |
+
'binary bit by cascade char character check checkpoint close collate ' +
|
38 |
+
'column commit committed connect connection constraint contains continue ' +
|
39 |
+
'create cube current current_date current_time cursor database date ' +
|
40 |
+
'deallocate dec decimal declare default delete desc distinct double drop ' +
|
41 |
+
'dynamic else end end-exec escape except exec execute false fetch first ' +
|
42 |
+
'float for force foreign forward free from full function global goto grant ' +
|
43 |
+
'group grouping having hour ignore index inner insensitive insert instead ' +
|
44 |
+
'int integer intersect into is isolation key last level load local max min ' +
|
45 |
+
'minute modify move name national nchar next no numeric of off on only ' +
|
46 |
+
'open option order out output partial password precision prepare primary ' +
|
47 |
+
'prior privileges procedure public read real references relative repeatable ' +
|
48 |
+
'restrict return returns revoke rollback rollup rows rule schema scroll ' +
|
49 |
+
'second section select sequence serializable set size smallint static ' +
|
50 |
+
'statistics table temp temporary then time timestamp to top transaction ' +
|
51 |
+
'translation trigger true truncate uncommitted union unique update values ' +
|
52 |
+
'varchar varying view when where with work';
|
53 |
+
|
54 |
+
var operators = 'all and any between cross in join like not null or outer some';
|
55 |
+
|
56 |
+
this.regexList = [
|
57 |
+
{ regex: /--(.*)$/gm, css: 'comments' }, // one line and multiline comments
|
58 |
+
{ regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings
|
59 |
+
{ regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // single quoted strings
|
60 |
+
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'color2' }, // functions
|
61 |
+
{ regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // operators and such
|
62 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
|
63 |
+
];
|
64 |
+
};
|
65 |
+
|
66 |
+
SyntaxHighlighter.brushes.Sql.prototype = new SyntaxHighlighter.Highlighter();
|
67 |
+
SyntaxHighlighter.brushes.Sql.aliases = ['sql'];
|
68 |
+
|
syntaxhighlighter/scripts/shBrushVb.js
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.0.320 (May 03 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.Vb = function()
|
31 |
+
{
|
32 |
+
var keywords = 'AddHandler AddressOf AndAlso Alias And Ansi As Assembly Auto ' +
|
33 |
+
'Boolean ByRef Byte ByVal Call Case Catch CBool CByte CChar CDate ' +
|
34 |
+
'CDec CDbl Char CInt Class CLng CObj Const CShort CSng CStr CType ' +
|
35 |
+
'Date Decimal Declare Default Delegate Dim DirectCast Do Double Each ' +
|
36 |
+
'Else ElseIf End Enum Erase Error Event Exit False Finally For Friend ' +
|
37 |
+
'Function Get GetType GoSub GoTo Handles If Implements Imports In ' +
|
38 |
+
'Inherits Integer Interface Is Let Lib Like Long Loop Me Mod Module ' +
|
39 |
+
'MustInherit MustOverride MyBase MyClass Namespace New Next Not Nothing ' +
|
40 |
+
'NotInheritable NotOverridable Object On Option Optional Or OrElse ' +
|
41 |
+
'Overloads Overridable Overrides ParamArray Preserve Private Property ' +
|
42 |
+
'Protected Public RaiseEvent ReadOnly ReDim REM RemoveHandler Resume ' +
|
43 |
+
'Return Select Set Shadows Shared Short Single Static Step Stop String ' +
|
44 |
+
'Structure Sub SyncLock Then Throw To True Try TypeOf Unicode Until ' +
|
45 |
+
'Variant When While With WithEvents WriteOnly Xor';
|
46 |
+
|
47 |
+
this.regexList = [
|
48 |
+
{ regex: /'.*$/gm, css: 'comments' }, // one line comments
|
49 |
+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
50 |
+
{ regex: /^\s*#.*$/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
|
51 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // vb keyword
|
52 |
+
];
|
53 |
+
|
54 |
+
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
55 |
+
};
|
56 |
+
|
57 |
+
SyntaxHighlighter.brushes.Vb.prototype = new SyntaxHighlighter.Highlighter();
|
58 |
+
SyntaxHighlighter.brushes.Vb.aliases = ['vb', 'vbnet'];
|
syntaxhighlighter/scripts/shBrushXml.js
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.0.320 (May 03 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.Xml = function()
|
31 |
+
{
|
32 |
+
function process(match, regexInfo)
|
33 |
+
{
|
34 |
+
var constructor = SyntaxHighlighter.Match,
|
35 |
+
code = match[0],
|
36 |
+
tag = new XRegExp('(<|<)[\\s\\/\\?]*(?<name>[:\\w-\\.]+)', 'xg').exec(code),
|
37 |
+
result = []
|
38 |
+
;
|
39 |
+
|
40 |
+
if (match.attributes != null)
|
41 |
+
{
|
42 |
+
var attributes,
|
43 |
+
regex = new XRegExp('(?<name> [\\w:\\-\\.]+)' +
|
44 |
+
'\\s*=\\s*' +
|
45 |
+
'(?<value> ".*?"|\'.*?\'|\\w+)',
|
46 |
+
'xg');
|
47 |
+
|
48 |
+
while ((attributes = regex.exec(code)) != null)
|
49 |
+
{
|
50 |
+
result.push(new constructor(attributes.name, match.index + attributes.index, 'color1'));
|
51 |
+
result.push(new constructor(attributes.value, match.index + attributes.index + attributes[0].indexOf(attributes.value), 'string'));
|
52 |
+
}
|
53 |
+
}
|
54 |
+
|
55 |
+
if (tag != null)
|
56 |
+
result.push(
|
57 |
+
new constructor(tag.name, match.index + tag[0].indexOf(tag.name), 'keyword')
|
58 |
+
);
|
59 |
+
|
60 |
+
return result;
|
61 |
+
}
|
62 |
+
|
63 |
+
this.regexList = [
|
64 |
+
{ regex: new XRegExp('(\\<|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\\>|>)', 'gm'), css: 'color2' }, // <![ ... [ ... ]]>
|
65 |
+
{ regex: new XRegExp('(\\<|<)!--\\s*.*?\\s*--(\\>|>)', 'gm'), css: 'comments' }, // <!-- ... -->
|
66 |
+
{ regex: new XRegExp('(<|<)[\\s\\/\\?]*(\\w+)(?<attributes>.*?)[\\s\\/\\?]*(>|>)', 'sg'), func: process }
|
67 |
+
];
|
68 |
+
};
|
69 |
+
|
70 |
+
SyntaxHighlighter.brushes.Xml.prototype = new SyntaxHighlighter.Highlighter();
|
71 |
+
SyntaxHighlighter.brushes.Xml.aliases = ['xml', 'xhtml', 'xslt', 'html', 'xhtml'];
|
syntaxhighlighter/scripts/shCore.js
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.0.320 (May 03 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('f(!1q.2E){l 2E=h(){l p={77:{"1e-1f":"","79-2P":1,"1I":u,"6V-70":U,"1C-2A":4,"5f":N,"4Z":U,"1z":U,"56":N,"7G-7F":U,"6Z":N,"4S-1m":U},M:{52:u,5P:16,5S:16,8k:N,8l:N,83:"4R",1k:{3Y:"97 1c",41:"9b 1c",5U:"9O 93 7A",6t:"9B I 9E 23 8w 7A 8o",34:"34",6P:"?",1v:"2E\\n\\n",6F:"8p\'t 8I 87 D: ",7X:"8V 8v\'t bD D 2u-2c bf: ",6H:"<!be 2u aV \\"-//9V//6U bz 1.0 bx//bI\\" \\"2g://6D.6v.6m/bi/7c/6U/7c-a4.aw\\"><2u ay=\\"2g://6D.6v.6m/as/8r\\"><6l><8T 2g-92=\\"8P-8L\\" 5B=\\"2d/2u; 8E=8s-8\\" /><3B>8C 2E</3B></6l><2L 1n=\\"3N-8x:8Z,9y,9H,9I-9Q;9S-4v:#9K;4v:#9J;3N-2A:9L;2d-6k:6i;\\"><A 1n=\\"2d-6k:6i;5D-43:99;\\"><A 1n=\\"3N-2A:9p-9o;\\">2E</A><A 1n=\\"3N-2A:.9m;5D-9l:9k;\\"><A>6f 2.0.9j (9n 9s 6n)</A><A><a 2q=\\"2g://6j.4U\\" 9r=\\"57\\" 1n=\\"4v:#9h;2d-9g:98;\\">2g://6j.4U</a></A></A><A>96 I 94 95.</A><A>9f 9e-6n 9c 9t.</A></A></2L></2u>"},6T:N},1t:{4D:u,3k:u,3P:u,5K:{}},2B:{},85:{9u:/\\/\\*[\\s\\S]*?\\*\\//4k,9N:/\\/\\/.*$/4k,9M:/#.*$/4k,9P:/"(?:\\.|(\\\\\\")|[^\\""\\n])*"/g,9T:/\'(?:\\.|(\\\\\\\')|[^\\\'\'\\n])*\'/g,9R:/"(?:\\.|(\\\\\\")|[^\\""])*"/g,9z:/\'(?:\\.|(\\\\\\\')|[^\\\'\'])*\'/g,3p:/\\w+:\\/\\/[\\w-.\\/?%&=]*/g,9x:{E:/(&1F;|<)\\?=?/g,13:/\\?(&2o;|>)/g},9v:{E:/(&1F;|<)%=?/g,13:/%(&2o;|>)/g},9w:{E:/(&1F;|<)\\s*2c.*?(&2o;|>)/4x,13:/(&1F;|<)\\/\\s*2c\\s*(&2o;|>)/4x}},1z:{12:h(3s){l 3y=L.1s("3j"),4o=p.1z.65;3y.J="1z";D(l 2Y 23 4o){l 6o=4o[2Y],4J=T 6o(3s),28=4J.12();3s.5I[2Y]=4J;f(28==u){1H}f(9G(28)=="9F"){28=p.1z.6s(28,3s.1g,2Y)}28.J+="5k "+2Y;3y.1G(28)}q 3y},6s:h(4A,6r,4h){l a=L.1s("a"),4Q=a.1n,4P=p.M,4F=4P.5P,48=4P.5S;a.2q="#"+4h;a.3B=4A;a.5M=6r;a.6q=4h;a.1x=4A;f(55(4F)==N){4Q.1S=4F+"5x"}f(55(48)==N){4Q.2t=48+"5x"}a.8t=h(e){8D{p.1z.6p(c,e||1q.6w,c.5M,c.6q)}8m(e){p.B.1v(e.6u)}q N};q a},6p:h(69,68,6h,6g,67){l 3U=p.1t.5K[6h],3X;f(3U==u||(3X=3U.5I[6g])==u){q u}q 3X.2h(69,68,67)},65:{3Y:h(4b){c.12=h(){f(4b.V("56")!=U){q}q p.M.1k.3Y};c.2h=h(42,8X,91){l A=4b.A;42.7T.5a(42);A.J=A.J.C("51","")}},41:h(66){c.12=h(){q p.M.1k.41};c.2h=h(8R,8Q,8J){l 3Q=p.B.3G(66.4W).C(/</g,"&1F;"),2i=p.B.54("","57",8H,8G,"8K=0, 8O=1, 8N=0, 6O=1");3Q=p.B.2D(3Q);2i.L.3h("<4R>"+3Q+"</4R>");2i.L.5O()}},5U:h(5e){l 3S,8F,5L=5e.1g;c.12=h(){l 2S=p.M;f(2S.52==u){q u}h 1A(5E){l 5s="";D(l 5y 23 5E){5s+="<8S 1f=\'"+5y+"\' 1U=\'"+5E[5y]+"\'/>"}q 5s};h 2v(5t){l 5Q="";D(l 5w 23 5t){5Q+=" "+5w+"=\'"+5t[5w]+"\'"}q 5Q};l 5m={1S:2S.5P,2t:2S.5S,1g:5L+"b8",6N:"b7/x-6a-6b",3B:p.M.1k.5U},5h={b6:"b4",b5:"b9",ba:"5M="+5L,bd:"N"},5g=2S.52,3H;f(/bb/i.1R(5Z.5W)){3H="<6e"+2v({bc:"b3:b2-aU-aT-aS-aQ",aR:"2g://aW.b1.4U/b0/6a/aX/6b/bg.bh#6f=9,0,0,0"})+2v(5m)+">"+1A(5h)+1A({bB:5g})+"</6e>"}F{3H="<bA"+2v(5m)+2v(5h)+2v({bC:5g})+"/>"}3S=L.1s("A");3S.1x=3H;q 3S};c.2h=h(bH,bG,5T){l 6d=5T.bE;6z(6d){2N"7u":l 53=p.B.2D(p.B.3G(5e.4W).C(/&1F;/g,"<").C(/&2o;/g,">").C(/&bw;/g,"&"));f(1q.6c){1q.6c.bm("2d",53)}F{q p.B.2D(53)}2N"bk":p.B.1v(p.M.1k.6t);2m;2N"bj":p.B.1v(5T.6u);2m}}},bo:h(58){c.12=h(){q p.M.1k.34};c.2h=h(bu,bt,bs){l 1W=L.1s("bp"),1O=u;f(p.1t.3P!=u){L.2L.5a(p.1t.3P)}p.1t.3P=1W;1W.1n.bq="aP:aO;1S:6L;2t:6L;E:-6K;43:-6K;";L.2L.1G(1W);1O=1W.5c.L;6J(1O,1q.L);1O.3h("<A 1e=\\""+58.A.J.C("51","")+" ae\\">"+58.A.1x+"</A>");1O.5O();1W.5c.4d();1W.5c.34();h 6J(6M,64){l 2F=64.82("4Y");D(l i=0;i<2F.v;i++){f(2F[i].6R.ac()=="6Q"&&/aa\\.19$/.1R(2F[i].2q)){6M.3h("<4Y 6N=\\"2d/19\\" 6R=\\"6Q\\" 2q=\\""+2F[i].2q+"\\"></4Y>")}}}}},af:h(ag){c.12=h(){q p.M.1k.6P};c.2h=h(aj,ah){l 2i=p.B.54("","57",ai,a9,"6O=0"),1O=2i.L;1O.3h(p.M.1k.6H);1O.5O();2i.4d()}}}},B:{5H:h(6G){q 6G+3J.9Y(3J.9W()*9X).2r()},5o:h(5R,5G){l 3m={},1T;D(1T 23 5R){3m[1T]=5R[1T]}D(1T 23 5G){3m[1T]=5G[1T]}q 3m},8d:h(5z){6z(5z){2N"U":q U;2N"N":q N}q 5z},54:h(3p,6x,44,4c,2J){l x=(6y.1S-44)/2,y=(6y.2t-4c)/2;2J+=", E="+x+", 43="+y+", 1S="+44+", 2t="+4c;2J=2J.C(/^,/,"");l 49=1q.a5(3p,6x,2J);49.4d();q 49},7Q:h(1M,25,24){f(1M.6A){1M["e"+25+24]=24;1M[25+24]=h(){1M["e"+25+24](1q.6w)};1M.6A("an"+25,1M[25+24])}F{1M.aG(25,24,N)}},1v:h(z){1v(p.M.1k.1v+z)},4l:h(4M,6B){l 2k=p.1t.4D,3b=u;f(2k==u){2k={};D(l 4G 23 p.2B){l 37=p.2B[4G].aF;f(37==u){1H}D(l i=0;i<37.v;i++){2k[37[i]]=4G}}p.1t.4D=2k}3b=p.2B[2k[4M]];f(3b==u&&6B!=N){p.B.1v(p.M.1k.6F+4M)}q 3b},4n:h(z,6E){l 2U=z.1P("\\n");D(l i=0;i<2U.v;i++){2U[i]=6E(2U[i])}q 2U.5u("\\n")},74:h(){l A=L.1s("A"),3e=L.1s("A"),6C=10,i=1;29(i<=aD){f(i%6C===0){A.1x+=i;i+=(i+"").v}F{A.1x+="&aI;";i++}}3e.J="5f 2P";3e.1G(A);q 3e},6W:h(z){q z.C(/^[ ]*[\\n]+|[\\n]*[ ]*$/g,"")},84:h(z){l 3d,4u={},4p=T R("^\\\\[(?<4q>(.*?))\\\\]$"),6S=T R("(?<1f>[\\\\w-]+)"+"\\\\s*:\\\\s*"+"(?<1U>"+"[\\\\w-%#]+|"+"\\\\[.*?\\\\]|"+"\\".*?\\"|"+"\'.*?\'"+")\\\\s*;?","g");29((3d=6S.Q(z))!=u){l 2f=3d.1U.C(/^[\'"]|[\'"]$/g,"");f(2f!=u&&4p.1R(2f)){l m=4p.Q(2f);2f=m.4q.v>0?m.4q.1P(/\\s*,\\s*/):[]}4u[3d.1f]=2f}q 4u},7g:h(z,19){f(z==u||z.v==0||z=="\\n"){q z}z=z.C(/</g,"&1F;");z=z.C(/ {2,}/g,h(m){l 4r="";D(l i=0;i<m.v-1;i++){4r+="&1X;"}q 4r+" "});f(19!=u){z=p.B.4n(z,h(2s){f(2s.v==0){q""}l 3c="";2s=2s.C(/^(&1X;| )+/,h(s){3c=s;q""});f(2s.v==0){q 3c}q 3c+"<I 1e=\\""+19+"\\">"+2s+"</I>"})}q z},7a:h(61,62){l 2I=61.2r();29(2I.v<62){2I="0"+2I}q 2I},5p:h(){l 3x=L.1s("A"),35,3r=0,5i=L.2L,1g=p.B.5H("5p"),2Q="<A 1e=\\"",2V="</A>",4H="</1V>";3x.1x=2Q+"7P\\">"+2Q+"1m\\">"+2Q+"2P\\">"+2Q+"5B"+"\\"><1V 1e=\\"7i\\"><1V 1g=\\""+1g+"\\">&1X;"+4H+4H+2V+2V+2V+2V;5i.1G(3x);35=L.ar(1g);f(/aq/i.1R(5Z.5W)){l 63=1q.ao(35,u);3r=7b(63.ap("1S"))}F{3r=35.at}5i.5a(3x);q 3r},76:h(5Y,60){l 1C="";D(l i=0;i<60;i++){1C+=" "}q 5Y.C(/\\t/g,1C)},71:h(2C,4w){l az=2C.1P("\\n"),1C="\\t",40="";D(l i=0;i<50;i++){40+=" "}h 6I(3z,18,5X){q 3z.1Q(0,18)+40.1Q(0,5X)+3z.1Q(18+1,3z.v)};2C=p.B.4n(2C,h(2a){f(2a.1i(1C)==-1){q 2a}l 18=0;29((18=2a.1i(1C))!=-1){l 7r=4w-18%4w;2a=6I(2a,18,7r)}q 2a});q 2C},3G:h(z){l br=/<br\\s*\\/?>|&1F;br\\s*\\/?&2o;/4x;f(p.M.8k==U){z=z.C(br,"\\n")}f(p.M.8l==U){z=z.C(br,"")}q z},33:h(z){q z.C(/\\s*$/g,"").C(/^\\s*/,"")},2D:h(z){l 21=p.B.3G(z).1P("\\n"),av=T 5V(),8a=/^\\s*/,1Z=ax;D(l i=0;i<21.v&&1Z>0;i++){l 3V=21[i];f(p.B.33(3V).v==0){1H}l 3W=8a.Q(3V);f(3W==u){q z}1Z=3J.1Z(3W[0].v,1Z)}f(1Z>0){D(l i=0;i<21.v;i++){21[i]=21[i].1Q(1Z)}}q 21.5u("\\n")},7d:h(2K,2O){f(2K.G<2O.G){q-1}F{f(2K.G>2O.G){q 1}F{f(2K.v<2O.v){q-1}F{f(2K.v>2O.v){q 1}}}}q 0},30:h(7S,2H){h 7R(4V,7Y){q[T p.4i(4V[0],4V.G,7Y.19)]};l au=0,5N=u,39=[],7Z=2H.4L?2H.4L:7R;29((5N=2H.3q.Q(7S))!=u){39=39.31(7Z(5N,2H))}q 39},7C:h(86){q 86.C(p.85.3p,h(m){q"<a 2q=\\""+m+"\\">"+m+"</a>"})}},1I:h(88,4T){h 81(5j){l 59=[];D(l i=0;i<5j.v;i++){59.K(5j[i])}q 59};l 3g=4T?[4T]:81(L.82(p.M.83)),80="1x",2e=u;f(3g.v===0){q}D(l i=0;i<3g.v;i++){l 2G=3g[i],2l=p.B.84(2G.J),32;2l=p.B.5o(88,2l);32=2l["87"];f(32==u){1H}f(2l["2u-2c"]=="U"){2e=T p.4B(32)}F{l 4O=p.B.4l(32);f(4O){2e=T 4O()}F{1H}}2e.1I(2G[80],2l);l 2p=2e.A;f(p.M.6T){2p=L.1s("aA");2p.1U=2e.A.1x;2p.1n.1S="aB";2p.1n.2t="aK"}2G.7T.aJ(2p,2G)}},aL:h(7U){p.B.7Q(1q,"aM",h(){p.1I(7U)})}};p.4i=h(4j,7V,19){c.1U=4j;c.G=7V;c.v=4j.v;c.19=19};p.4i.Y.2r=h(){q c.1U};p.4B=h(4y){l 1J=p.B.4l(4y),4z=T p.2B.aN(),aH=u;f(1J==u){q}1J=T 1J();c.4E=4z;f(1J.3O==u){p.B.1v(p.M.1k.7X+4y);q}4z.5n.K({3q:1J.3O.I,4L:89});h 3a(4K,7W){D(l j=0;j<4K.v;j++){4K[j].G+=7W}};h 89(17,aC){l 8f=17.I,1L=[],4N=1J.5n,8e=17.G+17.E.v,2Z=1J.3O,1l;D(l i=0;i<4N.v;i++){1l=p.B.30(8f,4N[i]);3a(1l,8e);1L=1L.31(1l)}f(2Z.E!=u&&17.E!=u){1l=p.B.30(17.E,2Z.E);3a(1l,17.G);1L=1L.31(1l)}f(2Z.13!=u&&17.13!=u){1l=p.B.30(17.13,2Z.13);3a(1l,17.G+17[0].aE(17.13));1L=1L.31(1l)}q 1L}};p.4B.Y.1I=h(8h,8i){c.4E.1I(8h,8i);c.A=c.4E.A};p.8b=h(){};p.8b.Y={V:h(8c,8g){l 3Z=c.1A[8c];q p.B.8d(3Z==u?8g:3Z)},12:h(8j){q L.1s(8j)},72:h(38,7O){l 2w=[];f(38!=u){D(l i=0;i<38.v;i++){2w=2w.31(p.B.30(7O,38[i]))}}2w=2w.am(p.B.7d);q 2w},73:h(){l 26=c.2R;D(l i=0;i<26.v;i++){f(26[i]===u){1H}l 2x=26[i],45=2x.G+2x.v;D(l j=i+1;j<26.v&&26[i]!==u;j++){l 20=26[j];f(20===u){1H}F{f(20.G>45){2m}F{f(20.G==2x.G&&20.v>2x.v){c.2R[i]=u}F{f(20.G>=2x.G&&20.G<45){c.2R[j]=u}}}}}}},7m:h(2M){l 36=2M.1P(/\\n/g),3f=7b(c.V("79-2P")),7e=(3f+36.v).2r().v,7f=c.V("1I",[]);2M="";D(l i=0;i<36.v;i++){l 1r=36[i],2y=/^(&1X;|\\s)+/.Q(1r),5A="2P a3"+(i%2==0?1:2),7j=p.B.7a(3f+i,7e),7k=7f.1i((3f+i).2r())!=-1,1E=u;f(2y!=u){1E=2y[0].2r();1r=1r.1Q(1E.v);1E=1E.C(/&1X;/g," ");2y=p.1t.3k*1E.v}F{2y=0}1r=p.B.33(1r);f(1r.v==0){1r="&1X;"}f(7k){5A+=" a6"}2M+="<A 1e=\\""+5A+"\\">"+"<I 1e=\\"a7\\">"+7j+".</I>"+"<1V 1e=\\"5B\\">"+(1E!=u?"<I 1e=\\"a2\\">"+1E.C(/\\s/g,"&1X;")+"</I>":"")+"<1V 1e=\\"7i\\" 1n=\\"5D-E: "+2y+"5x !78;\\">"+1r+"</1V>"+"</1V>"+"</A>"}q 2M},7l:h(5v,5r){l 18=0,3o="",3n=p.B.7g;D(l i=0;i<5r.v;i++){l 1N=5r[i];f(1N===u||1N.v===0){1H}3o+=3n(5v.1Q(18,1N.G-18),"7h")+3n(1N.1U,1N.19);18=1N.G+1N.v}3o+=3n(5v.1Q(18),"7h");q 3o},1I:h(1j,6Y){l a1=p.M,3l=p.1t,A,9Z,3i,a0="78";c.1A={};c.A=u;c.1m=u;c.I=u;c.1h=u;c.5I={};c.1g=p.B.5H("a8");3l.5K[c.1g]=c;f(1j===u){1j=""}f(3l.3k===u){3l.3k=p.B.5p()}c.1A=p.B.5o(p.77,6Y||{});f(c.V("6Z")==U){c.1A.1z=c.1A.4Z=N}c.A=A=c.12("3j");c.1m=c.12("3j");c.1m.J="1m";J="7P";A.1g=c.1g;f(c.V("56")){J+=" 51"}f(c.V("4Z")==N){J+=" ak"}f(c.V("4S-1m")==N){c.1m.J+=" al-4S"}J+=" "+c.V("1e-1f");A.J=J;c.4W=1j;c.I=p.B.6W(1j).C(/\\r/g," ");3i=c.V("1C-2A");c.I=c.V("6V-70")==U?p.B.71(c.I,3i):p.B.76(c.I,3i);c.I=p.B.2D(c.I);f(c.V("1z")){c.1h=c.12("3j");c.1h.J="1h";c.1h.1G(p.1z.12(c));A.1G(c.1h);l 1h=c.1h;h 5d(){1h.J=1h.J.C("75","")};A.ab=h(){5d();1h.J+=" 75"};A.ad=h(){5d()}}f(c.V("5f")){A.1G(p.B.74())}A.1G(c.1m);c.2R=c.72(c.5n,c.I);c.73();1j=c.7l(c.I,c.2R);1j=c.7m(p.B.33(1j));f(c.V("7G-7F")){1j=p.B.7C(1j)}c.1m.1x=1j},bn:h(z){z=z.C(/^\\s+|\\s+$/g,"").C(/\\s+/g,"\\\\b|\\\\b");q"\\\\b"+z+"\\\\b"},bl:h(2W){c.3O={E:{3q:2W.E,19:"2c"},13:{3q:2W.13,19:"2c"},I:T R("(?<E>"+2W.E.1c+")"+"(?<I>.*?)"+"(?<13>"+2W.13.1c+")","bv")}}};q p}()}f(!5V.1i){5V.Y.1i=h(7M,3R){3R=3J.bF(3R||0,0);D(l i=3R;i<c.v;i++){f(c[i]==7M){q i}}q-1}}f(!1q.R){(h(){l 2z={Q:11.Y.Q,7K:5b.Y.7K,C:5b.Y.C,1P:5b.Y.1P},1K={W:/(?:[^\\\\([#\\s.]+|\\\\(?!k<[\\w$]+>|[7B]{[^}]+})[\\S\\s]?|\\((?=\\?(?!#|<[\\w$]+>)))+|(\\()(?:\\?(?:(#)[^)]*\\)|<([$\\w]+)>))?|\\\\(?:k<([\\w$]+)>|[7B]{([^}]+)})|(\\[\\^?)|([\\S\\s])/g,by:/(?:[^$]+|\\$(?![1-9$&`\']|{[$\\w]+}))+|\\$(?:([1-9]\\d*|[$&`\'])|{([$\\w]+)})/g,3M:/^(?:\\s+|#.*)+/,5F:/^(?:[?*+]|{\\d+(?:,\\d*)?})/,7x:/&&\\[\\^?/g,7v:/]/g},7n=h(5l,5k,4X){D(l i=4X||0;i<5l.v;i++){f(5l[i]===5k){q i}}q-1},7y=/()??/.Q("")[1]!==3K,3w={};R=h(1d,1Y){f(1d 3T 11){f(1Y!==3K){3L 7N("4C\'t 4I bJ 7H aY 7J 11 4X aZ")}q 1d.3C()}l 1Y=1Y||"",7w=1Y.1i("s")>-1,6X=1Y.1i("x")>-1,5q=N,3u=[],14=[],W=1K.W,H,3D,3F,3E,3v;W.O=0;29(H=2z.Q.2n(W,1d)){f(H[2]){f(!1K.5F.1R(1d.15(W.O))){14.K("(?:)")}}F{f(H[1]){3u.K(H[3]||u);f(H[3]){5q=U}14.K("(")}F{f(H[4]){3E=7n(3u,H[4]);14.K(3E>-1?"\\\\"+(3E+1)+(55(1d.5J(W.O))?"":"(?:)"):H[0])}F{f(H[5]){14.K(3w.7t?3w.7t.7u(H[5],H[0].5J(1)==="P"):H[0])}F{f(H[6]){f(1d.5J(W.O)==="]"){14.K(H[6]==="["?"(?!)":"[\\\\S\\\\s]");W.O++}F{3D=R.7q("&&"+1d.15(H.G),1K.7x,1K.7v,"",{7s:"\\\\"})[0];14.K(H[6]+3D+"]");W.O+=3D.v+1}}F{f(H[7]){f(7w&&H[7]==="."){14.K("[\\\\S\\\\s]")}F{f(6X&&1K.3M.1R(H[7])){3F=2z.Q.2n(1K.3M,1d.15(W.O-1))[0].v;f(!1K.5F.1R(1d.15(W.O-1+3F))){14.K("(?:)")}W.O+=3F-1}F{14.K(H[7])}}}F{14.K(H[0])}}}}}}}3v=11(14.5u(""),2z.C.2n(1Y,/[8y]+/g,""));3v.1u={1c:1d,2j:5q?3u:u};q 3v};R.8B=h(1f,o){3w[1f]=o};11.Y.Q=h(z){l 1b=2z.Q.2n(c,z),1f,i,5C;f(1b){f(7y&&1b.v>1){5C=T 11("^"+c.1c+"$(?!\\\\s)",c.4a());2z.C.2n(1b[0],5C,h(){D(i=1;i<7z.v-2;i++){f(7z[i]===3K){1b[i]=3K}}})}f(c.1u&&c.1u.2j){D(i=1;i<1b.v;i++){1f=c.1u.2j[i-1];f(1f){1b[1f]=1b[i]}}}f(c.3A&&c.O>(1b.G+1b[0].v)){c.O--}}q 1b}})()}11.Y.4a=h(){q(c.3A?"g":"")+(c.8M?"i":"")+(c.7D?"m":"")+(c.3M?"x":"")+(c.8Y?"y":"")};11.Y.3C=h(7o){l 4g=T R(c.1c,(7o||"")+c.4a());f(c.1u){4g.1u={1c:c.1u.1c,2j:c.1u.2j?c.1u.2j.15(0):u}}q 4g};11.Y.2n=h(90,z){q c.Q(z)};11.Y.8W=h(8U,7p){q c.Q(7p[0])};R.47=h(4f,4e){l 46="/"+4f+"/"+(4e||"");q R.47[46]||(R.47[46]=T R(4f,4e))};R.3t=h(z){q z.C(/[-[\\]{}()*+?.\\\\^$|,#\\s]/g,"\\\\$&")};R.7q=h(z,E,Z,1a,2T){l 2T=2T||{},2X=2T.7s,X=2T.8A,1a=1a||"",4s=1a.1i("g")>-1,7E=1a.1i("i")>-1,7L=1a.1i("m")>-1,4t=1a.1i("y")>-1,1a=1a.C(/y/g,""),E=E 3T 11?(E.3A?E:E.3C("g")):T R(E,"g"+1a),Z=Z 3T 11?(Z.3A?Z:Z.3C("g")):T R(Z,"g"+1a),1D=[],2b=0,1o=0,1p=0,1y=0,27,22,1w,1B,3I,4m;f(2X){f(2X.v>1){3L 8n("4C\'t 4I 8q 8z 7J 3t 7I")}f(7L){3L 7N("4C\'t 4I 3t 7I 7H 9U 9D 7D 9C")}3I=R.3t(2X);4m=T 11("^(?:"+3I+"[\\\\S\\\\s]|(?:(?!"+E.1c+"|"+Z.1c+")[^"+3I+"])+)+",7E?"i":"")}29(U){E.O=Z.O=1p+(2X?(4m.Q(z.15(1p))||[""])[0].v:0);1w=E.Q(z);1B=Z.Q(z);f(1w&&1B){f(1w.G<=1B.G){1B=u}F{1w=u}}f(1w||1B){1o=(1w||1B).G;1p=(1w?E:Z).O}F{f(!2b){2m}}f(4t&&!2b&&1o>1y){2m}f(1w){f(!2b++){27=1o;22=1p}}F{f(1B&&2b){f(!--2b){f(X){f(X[0]&&27>1y){1D.K([X[0],z.15(1y,27),1y,27])}f(X[1]){1D.K([X[1],z.15(27,22),27,22])}f(X[2]){1D.K([X[2],z.15(22,1o),22,1o])}f(X[3]){1D.K([X[3],z.15(1o,1p),1o,1p])}}F{1D.K(z.15(22,1o))}1y=1p;f(!4s){2m}}}F{E.O=Z.O=0;3L 9q("9A 9i 9a 9d 8u")}}f(1o===1p){1p++}}f(4s&&!4t&&X&&X[0]&&z.v>1y){1D.K([X[0],z.15(1y),1y,z.v])}E.O=Z.O=0;q 1D};',62,728,'||||||||||||this|||if||function||||var||||sh|return||||null|length||||str|div|utils|replace|for|left|else|index|_10f|code|className|push|document|config|false|lastIndex||exec|XRegExp||new|true|getParam|part|vN|prototype|_127||RegExp|create|right|_10d|slice||_c4|pos|css|_128|_117|source|_107|class|name|id|bar|indexOf|_f0|strings|_cb|lines|style|_132|_133|window|_e3|createElement|vars|_x|alert|_137|innerHTML|_134|toolbar|params|_138|tab|_130|_e8|lt|appendChild|continue|highlight|_be|lib|_c7|obj|_ef|doc|split|substr|test|width|_4b|value|span|_3c|nbsp|_108|min|_dc|_98|_136|in|_57|_56|_d7|_135|_8|while|_91|_131|script|text|_b2|_6e|http|execute|wnd|captureNames|_5b|_b5|break|call|gt|_b8|href|toString|_75|height|html|attributes|_d5|_d9|_e4|_fe|size|brushes|_88|unindent|SyntaxHighlighter|_40|_b4|_a2|_7a|_51|m1|body|_dd|case|m2|line|_80|matches|_28|_129|_62|_81|_fa|_12a|_5|_ca|getMatches|concat|_b6|trim|print|_7c|_de|_5e|_d3|_a7|offsetMatches|_5c|_76|_6a|_65|_df|_b0|write|_f6|DIV|spaceWidth|_f3|_4a|_ed|_ec|url|regex|_7d|_2|escape|_10c|_113|_106|_7b|_3|_8e|global|title|addFlags|cc|_112|len|fixInputString|_32|_139|Math|undefined|throw|extended|font|htmlScript|printFrame|_22|_fc|_25|instanceof|_17|_9d|_9e|_18|expandSource|_d1|_8c|viewSource|_1a|top|_4f|_da|key|cache|_10|win|getNativeFlags|_19|_50|focus|_122|_121|_11c|_b|Match|_ba|gm|findBrush|esc|eachLine|_4|_6c|values|_73|_12c|_12f|_6b|color|_89|gi|_bd|_bf|_9|HtmlScript|can|discoveredBrushes|xmlBrush|_f|_5d|_82|supply|_7|_c1|func|_59|_c8|_b7|_e|_d|pre|wrap|_ac|com|_a3|originalCode|from|link|gutter||collapsed|clipboardSwf|_37|popup|isNaN|collapse|_blank|_38|_ae|removeChild|String|contentWindow|hide|_24|ruler|swf|_30|_7e|_ad|item|_101|_2f|regexList|merge|measureSpace|_10b|_ea|_2a|_2c|join|_e9|_2e|px|_2b|_4c|_e5|content|r2|margin|_29|quantifier|_49|guid|toolbarCommands|charAt|highlighters|_27|highlighterId|_a6|close|toolbarItemWidth|_2d|_48|toolbarItemHeight|_35|copyToClipboard|Array|userAgent|_90|_84|navigator|_85|_78|_79|_83|_3f|items|_1e|_16|_13|_12|shockwave|flash|clipboardData|_36|object|version|_15|_14|center|alexgorbatchev|align|head|org|2009|_6|executeCommand|commandName|_a|createButton|copyToClipboardConfirmation|message|w3|event|_4e|screen|switch|attachEvent|_5a|_66|www|_61|noBrush|_47|aboutDialog|insertSpaces|copyStyles|500px|0px|_3e|type|scrollbars|help|stylesheet|rel|_6d|debug|DTD|smart|trimFirstAndLastLines|_10a|_f1|light|tabs|processSmartTabs|findMatches|removeNestedMatches|createRuler|show|processTabs|defaults|important|first|padNumber|parseInt|xhtml1|matchesSortCallback|_e0|_e1|decorate|plain|block|_e6|_e7|processMatches|createDisplayLines|_100|_11b|args|matchRecursive|_93|escapeChar|unicode|get|classRight|_109|classLeft|_105|arguments|clipboard|pP|processUrls|multiline|_12d|links|auto|when|character|one|match|_12e|_fb|TypeError|_d4|syntaxhighlighter|addEvent|defaultAdd|_a1|parentNode|_b9|_bb|_c2|brushNotHtmlScript|_a4|_a8|_b1|toArray|getElementsByTagName|tagName|parseParams|regexLib|_a9|brush|_ab|process|_9a|Highlighter|_cf|toBoolean|_c9|_c6|_d0|_cd|_ce|_d2|bloggerMode|stripBrs|catch|SyntaxError|now|Can|more|xhtml|utf|onclick|delimiters|wasn|your|family|sx|than|valueNames|addPlugin|About|try|charset|_26|400|750|find|_21|location|Type|ignoreCase|menubar|resizable|Content|_20|_1f|param|meta|_11f|Brush|apply|_1b|sticky|Geneva|_11d|_1c|equiv|to|syntax|highlighter|JavaScript|expand|none|3em|contains|view|Alex|unbalanced|2004|Copyright|decoration|0099FF|data|320|4em|bottom|75em|May|large|xx|Error|target|03|Gorbatchev|multiLineCComments|aspScriptTags|scriptScriptTags|phpScriptTags|Arial|multiLineSingleQuotedString|subject|The|flag|the|is|string|typeof|Helvetica|sans|000|fff|1em|singleLinePerlComments|singleLineCComments|copy|doubleQuotedString|serif|multiLineDoubleQuotedString|background|singleQuotedString|using|W3C|random|1000000|round|_f5|_f7|_f2|spaces|alt|transitional|open|highlighted|number|highlighter_|250|shCore|onmouseover|toLowerCase|onmouseout|printing|about|_42|_44|500|_43|nogutter|no|sort|on|getComputedStyle|getPropertyValue|opera|getElementById|1999|offsetWidth|_a5|_99|dtd|1000|xmlns|_8a|textarea|70em|_c5|150|lastIndexOf|aliases|addEventListener|_c0|middot|replaceChild|30em|all|load|Xml|absolute|position|444553540000|codebase|96b8|11cf|ae6d|PUBLIC|download|cabs|constructing|another|pub|macromedia|d27cdb6e|clsid|always|wmode|allowScriptAccess|application|_clipboard|transparent|flashVars|msie|classid|menu|DOCTYPE|option|swflash|cab|TR|error|ok|forHtmlScript|setData|getKeywords|printSource|IFRAME|cssText||_3b|_3a|_39|sgi|amp|Transitional|replaceVar|XHTML|embed|movie|src|configured|command|max|_34|_33|EN|flags'.split('|'),0,{}))
|
syntaxhighlighter/scripts/shLegacy.js
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.0.320 (May 03 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('1 y={d:{}};y.d={F:6(S,l,q,k,m,n){6 J(z,Y){1 V=16 15("^"+Y+"\\\\[(?<o>\\\\w+)\\\\]$","14"),x=2;h(1 i=0;i<z.g;i++){7((x=V.17(z[i]))!=2){4 x.o}}4 2};6 3(r,U){4 r!=2?r:U};6 9(s){4 s!=2?s.13():2};1 f=S.18(":"),E=f[0],c={},u={"p":"p"};C={"p":"1a"},v=2,5=d.5;h(1 i 19 f){c[f[i]]="p"}l=9(3(l,5.O));q=9(3(q,5.T));k=9(3(k,5.A));n=9(3(n,5.W));m=9(3(m,5["K-L"]));v={1b:E,O:3(C[c.12],l),T:3(C[c.1g],q),A:3(u[c.A],k),W:3(u[c.1t],n),"K-L":3(J(f,"1q"),m)};4 v},1x:6(B,I,D,H,N,M){6 Z(){1 a=1r;h(1 i=0;i<a.g;i++){7(a[i]===2){10}7(G(a[i])=="1s"&&a[i]!=""){4 a[i]+""}7(G(a[i])=="1c"&&a[i].o!=""){4 a[i].o+""}}4 2};6 t(Q,R,11){1 j=1w.1v(11);h(1 i=0;i<j.g;i++){7(j[i].1u("1p")==R){Q.1n(j[i])}}};1 b=[],1o=2,1f={},1e="1d";t(b,B,"1h");t(b,B,"1i");7(b.g===0){4}h(1 i=0;i<b.g;i++){1 8=b[i],e=Z(8.X["1m"],8.1l,8.X["P"],8.P),1k="";7(e===2){10}e=y.d.F(e,I,D,H,N,M);d.1j(e,8)}}};',62,96,'|var|null|defaultValue|return|defaults|function|if|_26|asString||_21|_11|SyntaxHighlighter|_27|_f|length|for||_1f|_4|_2|_5|_6|value|true|_3|_c|_e|findTagsByName|_12|result||_a|dp|_7|collapse|_14|reverse|_16|_10|parseParams|typeof|_17|_15|getValue|first|line|_19|_18|gutter|language|_1c|_1d|_1|toolbar|_d|_9|ruler|attributes|_8|findValue|continue|_1e|nogutter|toString|gi|XRegExp|new|exec|split|in|false|brush|object|innerHTML|_24|_23|nocontrols|pre|textarea|highlight|_28|className|class|push|_22|name|firstline|arguments|string|showcolumns|getAttribute|getElementsByTagName|document|HighlightAll'.split('|'),0,{}))
|
syntaxhighlighter/styles/help.png
ADDED
Binary file
|
syntaxhighlighter/styles/magnifier.png
ADDED
Binary file
|
syntaxhighlighter/styles/page_white_code.png
ADDED
Binary file
|
syntaxhighlighter/styles/page_white_copy.png
ADDED
Binary file
|
syntaxhighlighter/styles/printer.png
ADDED
Binary file
|
syntaxhighlighter/styles/shCore.css
ADDED
@@ -0,0 +1,342 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.0.320 (May 03 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
.syntaxhighlighter,
|
31 |
+
.syntaxhighlighter div,
|
32 |
+
.syntaxhighlighter code,
|
33 |
+
.syntaxhighlighter span
|
34 |
+
{
|
35 |
+
margin: 0 !important;
|
36 |
+
padding: 0 !important;
|
37 |
+
border: 0 !important;
|
38 |
+
outline: 0 !important;
|
39 |
+
background: none !important;
|
40 |
+
text-align: left !important;
|
41 |
+
float: none !important;
|
42 |
+
vertical-align: baseline !important;
|
43 |
+
position: static !important;
|
44 |
+
left: auto !important;
|
45 |
+
top: auto !important;
|
46 |
+
right: auto !important;
|
47 |
+
bottom: auto !important;
|
48 |
+
height: auto !important;
|
49 |
+
width: auto !important;
|
50 |
+
line-height: 1.1em !important;
|
51 |
+
font-family: "Consolas", "Monaco", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
|
52 |
+
font-weight: normal !important;
|
53 |
+
font-style: normal !important;
|
54 |
+
font-size: 1em !important;
|
55 |
+
}
|
56 |
+
|
57 |
+
.syntaxhighlighter
|
58 |
+
{
|
59 |
+
width: 100% !important;
|
60 |
+
margin: 1em 0 1em 0 !important;
|
61 |
+
padding: 1px !important; /* adds a little border on top and bottom */
|
62 |
+
position: relative !important;
|
63 |
+
}
|
64 |
+
|
65 |
+
.syntaxhighlighter code {
|
66 |
+
display: inline !important;
|
67 |
+
}
|
68 |
+
|
69 |
+
.syntaxhighlighter .bold {
|
70 |
+
font-weight: bold !important;
|
71 |
+
}
|
72 |
+
|
73 |
+
.syntaxhighlighter .italic {
|
74 |
+
font-style: italic !important;
|
75 |
+
}
|
76 |
+
|
77 |
+
.syntaxhighlighter .line .number
|
78 |
+
{
|
79 |
+
float: left !important;
|
80 |
+
width: 3em !important;
|
81 |
+
padding-right: .3em !important;
|
82 |
+
text-align: right !important;
|
83 |
+
display: block !important;
|
84 |
+
}
|
85 |
+
|
86 |
+
/* Disable numbers when no gutter option is set */
|
87 |
+
.syntaxhighlighter.nogutter .line .number
|
88 |
+
{
|
89 |
+
display: none !important;
|
90 |
+
}
|
91 |
+
|
92 |
+
.syntaxhighlighter .line .content
|
93 |
+
{
|
94 |
+
margin-left: 3.3em !important;
|
95 |
+
padding-left: .5em !important;
|
96 |
+
display: block !important;
|
97 |
+
}
|
98 |
+
|
99 |
+
.syntaxhighlighter .line .content .block
|
100 |
+
{
|
101 |
+
display: block !important;
|
102 |
+
padding-left: 1.5em !important;
|
103 |
+
text-indent: -1.5em !important;
|
104 |
+
}
|
105 |
+
|
106 |
+
.syntaxhighlighter .line .content .spaces
|
107 |
+
{
|
108 |
+
display: none !important;
|
109 |
+
}
|
110 |
+
|
111 |
+
/* Disable border and margin on the lines when no gutter option is set */
|
112 |
+
.syntaxhighlighter.nogutter .line .content
|
113 |
+
{
|
114 |
+
margin-left: 0 !important;
|
115 |
+
border-left: none !important;
|
116 |
+
}
|
117 |
+
|
118 |
+
.syntaxhighlighter .bar
|
119 |
+
{
|
120 |
+
display: none !important;
|
121 |
+
}
|
122 |
+
|
123 |
+
.syntaxhighlighter .bar.show
|
124 |
+
{
|
125 |
+
display: block !important;
|
126 |
+
}
|
127 |
+
|
128 |
+
.syntaxhighlighter.collapsed .bar
|
129 |
+
{
|
130 |
+
display: block !important;
|
131 |
+
}
|
132 |
+
|
133 |
+
.syntaxhighlighter.nogutter .ruler
|
134 |
+
{
|
135 |
+
margin-left: 0 !important;
|
136 |
+
padding-left: 0 !important;
|
137 |
+
}
|
138 |
+
|
139 |
+
.syntaxhighlighter .ruler
|
140 |
+
{
|
141 |
+
padding: 0 0 .5em .5em !important;
|
142 |
+
margin-left: 3.3em !important;
|
143 |
+
overflow: hidden !important;
|
144 |
+
}
|
145 |
+
|
146 |
+
/* Adjust some properties when collapsed */
|
147 |
+
|
148 |
+
.syntaxhighlighter.collapsed .lines,
|
149 |
+
.syntaxhighlighter.collapsed .ruler
|
150 |
+
{
|
151 |
+
display: none !important;
|
152 |
+
}
|
153 |
+
|
154 |
+
.syntaxhighlighter .lines.no-wrap
|
155 |
+
{
|
156 |
+
overflow: auto;
|
157 |
+
overflow-y: hidden;
|
158 |
+
}
|
159 |
+
|
160 |
+
/* Styles for the toolbar */
|
161 |
+
|
162 |
+
.syntaxhighlighter .toolbar
|
163 |
+
{
|
164 |
+
position: absolute !important;
|
165 |
+
right: 0px !important;
|
166 |
+
top: 0px !important;
|
167 |
+
font-size: 1px !important;
|
168 |
+
padding: 8px 8px 8px 0 !important; /* in px because images don't scale with ems */
|
169 |
+
}
|
170 |
+
|
171 |
+
.syntaxhighlighter.collapsed .toolbar
|
172 |
+
{
|
173 |
+
font-size: 80% !important;
|
174 |
+
padding: .2em 0 .5em .5em !important;
|
175 |
+
position: static !important;
|
176 |
+
}
|
177 |
+
|
178 |
+
.syntaxhighlighter .toolbar a.item,
|
179 |
+
.syntaxhighlighter .toolbar .item
|
180 |
+
{
|
181 |
+
display: block !important;
|
182 |
+
float: left !important;
|
183 |
+
margin-left: 8px !important;
|
184 |
+
background-repeat: no-repeat !important;
|
185 |
+
overflow: hidden !important;
|
186 |
+
text-indent: -5000px !important;
|
187 |
+
}
|
188 |
+
|
189 |
+
.syntaxhighlighter.collapsed .toolbar .item
|
190 |
+
{
|
191 |
+
display: none !important;
|
192 |
+
}
|
193 |
+
|
194 |
+
.syntaxhighlighter.collapsed .toolbar .item.expandSource
|
195 |
+
{
|
196 |
+
background-image: url(magnifier.png) !important;
|
197 |
+
display: inline !important;
|
198 |
+
text-indent: 0 !important;
|
199 |
+
width: auto !important;
|
200 |
+
float: none !important;
|
201 |
+
height: 16px !important;
|
202 |
+
padding-left: 20px !important;
|
203 |
+
}
|
204 |
+
|
205 |
+
.syntaxhighlighter .toolbar .item.viewSource
|
206 |
+
{
|
207 |
+
background-image: url(page_white_code.png) !important;
|
208 |
+
}
|
209 |
+
|
210 |
+
.syntaxhighlighter .toolbar .item.printSource
|
211 |
+
{
|
212 |
+
background-image: url(printer.png) !important;
|
213 |
+
}
|
214 |
+
|
215 |
+
.syntaxhighlighter .toolbar .item.copyToClipboard
|
216 |
+
{
|
217 |
+
text-indent: 0 !important;
|
218 |
+
background: none !important;
|
219 |
+
overflow: visible !important;
|
220 |
+
}
|
221 |
+
|
222 |
+
.syntaxhighlighter .toolbar .item.about
|
223 |
+
{
|
224 |
+
background-image: url(help.png) !important;
|
225 |
+
}
|
226 |
+
|
227 |
+
/**
|
228 |
+
* Print view.
|
229 |
+
* Colors are based on the default theme without background.
|
230 |
+
*/
|
231 |
+
|
232 |
+
.syntaxhighlighter.printing,
|
233 |
+
.syntaxhighlighter.printing .line.alt1 .content,
|
234 |
+
.syntaxhighlighter.printing .line.alt2 .content,
|
235 |
+
.syntaxhighlighter.printing .line.highlighted .number,
|
236 |
+
.syntaxhighlighter.printing .line.highlighted.alt1 .content,
|
237 |
+
.syntaxhighlighter.printing .line.highlighted.alt2 .content,
|
238 |
+
.syntaxhighlighter.printing .line .content .block
|
239 |
+
{
|
240 |
+
background: none !important;
|
241 |
+
}
|
242 |
+
|
243 |
+
.syntaxhighlighter .no-wrap .line .content .block
|
244 |
+
{
|
245 |
+
white-space: nowrap !important;
|
246 |
+
}
|
247 |
+
|
248 |
+
/* Gutter line numbers */
|
249 |
+
.syntaxhighlighter.printing .line .number
|
250 |
+
{
|
251 |
+
color: #bbb !important;
|
252 |
+
}
|
253 |
+
|
254 |
+
/* Add border to the lines */
|
255 |
+
.syntaxhighlighter.printing .line .content
|
256 |
+
{
|
257 |
+
color: #000 !important;
|
258 |
+
}
|
259 |
+
|
260 |
+
/* Toolbar when visible */
|
261 |
+
.syntaxhighlighter.printing .toolbar,
|
262 |
+
.syntaxhighlighter.printing .ruler
|
263 |
+
{
|
264 |
+
display: none !important;
|
265 |
+
}
|
266 |
+
|
267 |
+
.syntaxhighlighter.printing a
|
268 |
+
{
|
269 |
+
text-decoration: none !important;
|
270 |
+
}
|
271 |
+
|
272 |
+
.syntaxhighlighter.printing .plain,
|
273 |
+
.syntaxhighlighter.printing .plain a
|
274 |
+
{
|
275 |
+
color: #000 !important;
|
276 |
+
}
|
277 |
+
|
278 |
+
.syntaxhighlighter.printing .comments,
|
279 |
+
.syntaxhighlighter.printing .comments a
|
280 |
+
{
|
281 |
+
color: #008200 !important;
|
282 |
+
}
|
283 |
+
|
284 |
+
.syntaxhighlighter.printing .string,
|
285 |
+
.syntaxhighlighter.printing .string a
|
286 |
+
{
|
287 |
+
color: blue !important;
|
288 |
+
}
|
289 |
+
|
290 |
+
.syntaxhighlighter.printing .keyword
|
291 |
+
{
|
292 |
+
color: #069 !important;
|
293 |
+
font-weight: bold !important;
|
294 |
+
}
|
295 |
+
|
296 |
+
.syntaxhighlighter.printing .preprocessor
|
297 |
+
{
|
298 |
+
color: gray !important;
|
299 |
+
}
|
300 |
+
|
301 |
+
.syntaxhighlighter.printing .variable
|
302 |
+
{
|
303 |
+
color: #a70 !important;
|
304 |
+
}
|
305 |
+
|
306 |
+
.syntaxhighlighter.printing .value
|
307 |
+
{
|
308 |
+
color: #090 !important;
|
309 |
+
}
|
310 |
+
|
311 |
+
.syntaxhighlighter.printing .functions
|
312 |
+
{
|
313 |
+
color: #ff1493 !important;
|
314 |
+
}
|
315 |
+
|
316 |
+
.syntaxhighlighter.printing .constants
|
317 |
+
{
|
318 |
+
color: #0066CC !important;
|
319 |
+
}
|
320 |
+
|
321 |
+
.syntaxhighlighter.printing .script
|
322 |
+
{
|
323 |
+
font-weight: bold !important;
|
324 |
+
}
|
325 |
+
|
326 |
+
.syntaxhighlighter.printing .color1,
|
327 |
+
.syntaxhighlighter.printing .color1 a
|
328 |
+
{
|
329 |
+
color: #808080 !important;
|
330 |
+
}
|
331 |
+
|
332 |
+
.syntaxhighlighter.printing .color2,
|
333 |
+
.syntaxhighlighter.printing .color2 a
|
334 |
+
{
|
335 |
+
color: #ff1493 !important;
|
336 |
+
}
|
337 |
+
|
338 |
+
.syntaxhighlighter.printing .color3,
|
339 |
+
.syntaxhighlighter.printing .color3 a
|
340 |
+
{
|
341 |
+
color: red !important;
|
342 |
+
}
|
syntaxhighlighter/styles/shThemeDefault.css
ADDED
@@ -0,0 +1,191 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.0.320 (May 03 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
/************************************
|
31 |
+
* Default Syntax Highlighter theme.
|
32 |
+
*
|
33 |
+
* Interface elements.
|
34 |
+
************************************/
|
35 |
+
|
36 |
+
.syntaxhighlighter
|
37 |
+
{
|
38 |
+
background-color: #E7E5DC !important;
|
39 |
+
}
|
40 |
+
|
41 |
+
/* Highlighed line number */
|
42 |
+
.syntaxhighlighter .line.highlighted .number
|
43 |
+
{
|
44 |
+
background-color: #6CE26C !important;
|
45 |
+
color: black !important;
|
46 |
+
}
|
47 |
+
|
48 |
+
/* Highlighed line */
|
49 |
+
.syntaxhighlighter .line.highlighted.alt1 .content,
|
50 |
+
.syntaxhighlighter .line.highlighted.alt2 .content
|
51 |
+
{
|
52 |
+
background-color: #6CE26C !important;
|
53 |
+
}
|
54 |
+
|
55 |
+
/* Gutter line numbers */
|
56 |
+
.syntaxhighlighter .line .number
|
57 |
+
{
|
58 |
+
color: #5C5C5C !important;
|
59 |
+
}
|
60 |
+
|
61 |
+
/* Add border to the lines */
|
62 |
+
.syntaxhighlighter .line .content
|
63 |
+
{
|
64 |
+
border-left: 3px solid #6CE26C !important;
|
65 |
+
color: #000 !important;
|
66 |
+
}
|
67 |
+
|
68 |
+
.syntaxhighlighter.printing .line .content
|
69 |
+
{
|
70 |
+
border: 0 !important;
|
71 |
+
}
|
72 |
+
|
73 |
+
/* First line */
|
74 |
+
.syntaxhighlighter .line.alt1 .content
|
75 |
+
{
|
76 |
+
background-color: #fff !important;
|
77 |
+
}
|
78 |
+
|
79 |
+
/* Second line */
|
80 |
+
.syntaxhighlighter .line.alt2 .content
|
81 |
+
{
|
82 |
+
background-color: #F8F8F8 !important;
|
83 |
+
}
|
84 |
+
|
85 |
+
.syntaxhighlighter .line .content .block
|
86 |
+
{
|
87 |
+
background: url(wrapping.png) 0 1.1em no-repeat !important;
|
88 |
+
}
|
89 |
+
|
90 |
+
.syntaxhighlighter .ruler
|
91 |
+
{
|
92 |
+
color: silver !important;
|
93 |
+
background-color: #F8F8F8 !important;
|
94 |
+
border-left: 3px solid #6CE26C !important;
|
95 |
+
}
|
96 |
+
|
97 |
+
.syntaxhighlighter.nogutter .ruler
|
98 |
+
{
|
99 |
+
border: 0 !important;
|
100 |
+
}
|
101 |
+
|
102 |
+
.syntaxhighlighter .toolbar
|
103 |
+
{
|
104 |
+
background-color: #F8F8F8 !important;
|
105 |
+
border: #E7E5DC solid 1px !important;
|
106 |
+
}
|
107 |
+
|
108 |
+
.syntaxhighlighter .toolbar a
|
109 |
+
{
|
110 |
+
color: #a0a0a0 !important;
|
111 |
+
}
|
112 |
+
|
113 |
+
.syntaxhighlighter .toolbar a:hover
|
114 |
+
{
|
115 |
+
color: red !important;
|
116 |
+
}
|
117 |
+
|
118 |
+
/************************************
|
119 |
+
* Actual syntax highlighter colors.
|
120 |
+
************************************/
|
121 |
+
.syntaxhighlighter .plain,
|
122 |
+
.syntaxhighlighter .plain a
|
123 |
+
{
|
124 |
+
color: #000 !important;
|
125 |
+
}
|
126 |
+
|
127 |
+
.syntaxhighlighter .comments,
|
128 |
+
.syntaxhighlighter .comments a
|
129 |
+
{
|
130 |
+
color: #008200 !important;
|
131 |
+
}
|
132 |
+
|
133 |
+
.syntaxhighlighter .string,
|
134 |
+
.syntaxhighlighter .string a
|
135 |
+
{
|
136 |
+
color: blue !important;
|
137 |
+
}
|
138 |
+
|
139 |
+
.syntaxhighlighter .keyword
|
140 |
+
{
|
141 |
+
color: #069 !important;
|
142 |
+
font-weight: bold !important;
|
143 |
+
}
|
144 |
+
|
145 |
+
.syntaxhighlighter .preprocessor
|
146 |
+
{
|
147 |
+
color: gray !important;
|
148 |
+
}
|
149 |
+
|
150 |
+
.syntaxhighlighter .variable
|
151 |
+
{
|
152 |
+
color: #a70 !important;
|
153 |
+
}
|
154 |
+
|
155 |
+
.syntaxhighlighter .value
|
156 |
+
{
|
157 |
+
color: #090 !important;
|
158 |
+
}
|
159 |
+
|
160 |
+
.syntaxhighlighter .functions
|
161 |
+
{
|
162 |
+
color: #ff1493 !important;
|
163 |
+
}
|
164 |
+
|
165 |
+
.syntaxhighlighter .constants
|
166 |
+
{
|
167 |
+
color: #0066CC !important;
|
168 |
+
}
|
169 |
+
|
170 |
+
.syntaxhighlighter .script
|
171 |
+
{
|
172 |
+
background-color: yellow !important;
|
173 |
+
}
|
174 |
+
|
175 |
+
.syntaxhighlighter .color1,
|
176 |
+
.syntaxhighlighter .color1 a
|
177 |
+
{
|
178 |
+
color: #808080 !important;
|
179 |
+
}
|
180 |
+
|
181 |
+
.syntaxhighlighter .color2,
|
182 |
+
.syntaxhighlighter .color2 a
|
183 |
+
{
|
184 |
+
color: #ff1493 !important;
|
185 |
+
}
|
186 |
+
|
187 |
+
.syntaxhighlighter .color3,
|
188 |
+
.syntaxhighlighter .color3 a
|
189 |
+
{
|
190 |
+
color: red !important;
|
191 |
+
}
|
syntaxhighlighter/styles/shThemeDjango.css
ADDED
@@ -0,0 +1,193 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.0.320 (May 03 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
/**
|
31 |
+
* Django SyntaxHighlighter theme
|
32 |
+
*/
|
33 |
+
|
34 |
+
/************************************
|
35 |
+
* Interface elements.
|
36 |
+
************************************/
|
37 |
+
|
38 |
+
.syntaxhighlighter
|
39 |
+
{
|
40 |
+
background-color: #0B2F20 !important;
|
41 |
+
}
|
42 |
+
|
43 |
+
/* Gutter line numbers */
|
44 |
+
.syntaxhighlighter .line .number
|
45 |
+
{
|
46 |
+
color: #497958 !important;
|
47 |
+
}
|
48 |
+
|
49 |
+
/* Add border to the lines */
|
50 |
+
.syntaxhighlighter .line .content
|
51 |
+
{
|
52 |
+
border-left: 3px solid #41A83E !important;
|
53 |
+
color: #B9BDB6 !important;
|
54 |
+
}
|
55 |
+
|
56 |
+
.syntaxhighlighter.printing .line .content
|
57 |
+
{
|
58 |
+
border: 0 !important;
|
59 |
+
}
|
60 |
+
|
61 |
+
/* First line */
|
62 |
+
.syntaxhighlighter .line.alt1 .content
|
63 |
+
{
|
64 |
+
}
|
65 |
+
|
66 |
+
/* Second line */
|
67 |
+
.syntaxhighlighter .line.alt2 .content
|
68 |
+
{
|
69 |
+
background-color: #0a2b1d !important;
|
70 |
+
}
|
71 |
+
|
72 |
+
.syntaxhighlighter .line .content .block
|
73 |
+
{
|
74 |
+
background: url(wrapping.png) 0 1.1em no-repeat !important;
|
75 |
+
}
|
76 |
+
|
77 |
+
/* Highlighed line number */
|
78 |
+
.syntaxhighlighter .line.highlighted .number
|
79 |
+
{
|
80 |
+
background-color: #336442 !important;
|
81 |
+
color: #fff !important;
|
82 |
+
}
|
83 |
+
|
84 |
+
/* Highlighed line */
|
85 |
+
.syntaxhighlighter .line.highlighted.alt1 .content,
|
86 |
+
.syntaxhighlighter .line.highlighted.alt2 .content
|
87 |
+
{
|
88 |
+
background-color: #336442 !important;
|
89 |
+
}
|
90 |
+
|
91 |
+
.syntaxhighlighter .ruler
|
92 |
+
{
|
93 |
+
color: #C4B14A !important;
|
94 |
+
background-color: #245032 !important;
|
95 |
+
border-left: 3px solid #41A83E !important;
|
96 |
+
}
|
97 |
+
|
98 |
+
.syntaxhighlighter.nogutter .ruler
|
99 |
+
{
|
100 |
+
border: 0 !important;
|
101 |
+
}
|
102 |
+
|
103 |
+
.syntaxhighlighter .toolbar
|
104 |
+
{
|
105 |
+
background-color: #245032 !important;
|
106 |
+
border: #0B2F20 solid 1px !important;
|
107 |
+
}
|
108 |
+
|
109 |
+
.syntaxhighlighter .toolbar a
|
110 |
+
{
|
111 |
+
color: #C4B14A !important;
|
112 |
+
}
|
113 |
+
|
114 |
+
.syntaxhighlighter .toolbar a:hover
|
115 |
+
{
|
116 |
+
color: #FFE862 !important;
|
117 |
+
}
|
118 |
+
|
119 |
+
/************************************
|
120 |
+
* Actual syntax highlighter colors.
|
121 |
+
************************************/
|
122 |
+
.syntaxhighlighter .plain,
|
123 |
+
.syntaxhighlighter .plain a
|
124 |
+
{
|
125 |
+
color: #F8F8F8 !important;
|
126 |
+
}
|
127 |
+
|
128 |
+
.syntaxhighlighter .comments,
|
129 |
+
.syntaxhighlighter .comments a
|
130 |
+
{
|
131 |
+
color: #336442 !important;
|
132 |
+
font-style: italic !important;
|
133 |
+
}
|
134 |
+
|
135 |
+
.syntaxhighlighter .string,
|
136 |
+
.syntaxhighlighter .string a
|
137 |
+
{
|
138 |
+
color: #9DF39F !important;
|
139 |
+
}
|
140 |
+
|
141 |
+
.syntaxhighlighter .keyword
|
142 |
+
{
|
143 |
+
color: #96DD3B !important;
|
144 |
+
font-weight: bold !important;
|
145 |
+
}
|
146 |
+
|
147 |
+
.syntaxhighlighter .preprocessor
|
148 |
+
{
|
149 |
+
color: #91BB9E !important;
|
150 |
+
}
|
151 |
+
|
152 |
+
.syntaxhighlighter .variable
|
153 |
+
{
|
154 |
+
color: #FFAA3E !important;
|
155 |
+
}
|
156 |
+
|
157 |
+
.syntaxhighlighter .value
|
158 |
+
{
|
159 |
+
color: #F7E741 !important;
|
160 |
+
}
|
161 |
+
|
162 |
+
.syntaxhighlighter .functions
|
163 |
+
{
|
164 |
+
color: #FFAA3E !important;
|
165 |
+
}
|
166 |
+
|
167 |
+
.syntaxhighlighter .constants
|
168 |
+
{
|
169 |
+
color: #E0E8FF !important;
|
170 |
+
}
|
171 |
+
|
172 |
+
.syntaxhighlighter .script
|
173 |
+
{
|
174 |
+
background-color: #497958 !important;
|
175 |
+
}
|
176 |
+
|
177 |
+
.syntaxhighlighter .color1,
|
178 |
+
.syntaxhighlighter .color1 a
|
179 |
+
{
|
180 |
+
color: #EB939A !important;
|
181 |
+
}
|
182 |
+
|
183 |
+
.syntaxhighlighter .color2,
|
184 |
+
.syntaxhighlighter .color2 a
|
185 |
+
{
|
186 |
+
color: #91BB9E !important;
|
187 |
+
}
|
188 |
+
|
189 |
+
.syntaxhighlighter .color3,
|
190 |
+
.syntaxhighlighter .color3 a
|
191 |
+
{
|
192 |
+
color: #EDEF7D !important;
|
193 |
+
}
|
syntaxhighlighter/styles/shThemeEmacs.css
ADDED
@@ -0,0 +1,192 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.0.320 (May 03 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
/**
|
31 |
+
* Emacs SyntaxHighlighter theme based on theme by Joshua Emmons
|
32 |
+
* http://www.skia.net/
|
33 |
+
*/
|
34 |
+
|
35 |
+
/************************************
|
36 |
+
* Interface elements.
|
37 |
+
************************************/
|
38 |
+
|
39 |
+
.syntaxhighlighter
|
40 |
+
{
|
41 |
+
background-color: #000000 !important;
|
42 |
+
}
|
43 |
+
|
44 |
+
/* Gutter line numbers */
|
45 |
+
.syntaxhighlighter .line .number
|
46 |
+
{
|
47 |
+
color: #D3D3D3 !important;
|
48 |
+
}
|
49 |
+
|
50 |
+
/* Add border to the lines */
|
51 |
+
.syntaxhighlighter .line .content
|
52 |
+
{
|
53 |
+
border-left: 3px solid #990000 !important;
|
54 |
+
color: #B9BDB6 !important;
|
55 |
+
}
|
56 |
+
|
57 |
+
.syntaxhighlighter.printing .line .content
|
58 |
+
{
|
59 |
+
border: 0 !important;
|
60 |
+
}
|
61 |
+
|
62 |
+
/* First line */
|
63 |
+
.syntaxhighlighter .line.alt1 .content
|
64 |
+
{
|
65 |
+
}
|
66 |
+
|
67 |
+
/* Second line */
|
68 |
+
.syntaxhighlighter .line.alt2 .content
|
69 |
+
{
|
70 |
+
background-color: #0f0f0f !important;
|
71 |
+
}
|
72 |
+
|
73 |
+
.syntaxhighlighter .line .content .block
|
74 |
+
{
|
75 |
+
background: url(wrapping.png) 0 1.1em no-repeat !important;
|
76 |
+
}
|
77 |
+
|
78 |
+
/* Highlighed line number */
|
79 |
+
.syntaxhighlighter .line.highlighted .number
|
80 |
+
{
|
81 |
+
background-color: #435A5F !important;
|
82 |
+
color: #fff !important;
|
83 |
+
}
|
84 |
+
|
85 |
+
/* Highlighed line */
|
86 |
+
.syntaxhighlighter .line.highlighted.alt1 .content,
|
87 |
+
.syntaxhighlighter .line.highlighted.alt2 .content
|
88 |
+
{
|
89 |
+
background-color: #435A5F !important;
|
90 |
+
}
|
91 |
+
|
92 |
+
.syntaxhighlighter .ruler
|
93 |
+
{
|
94 |
+
color: silver !important;
|
95 |
+
background-color: #000000 !important;
|
96 |
+
border-left: 3px solid #990000 !important;
|
97 |
+
}
|
98 |
+
|
99 |
+
.syntaxhighlighter.nogutter .ruler
|
100 |
+
{
|
101 |
+
border: 0 !important;
|
102 |
+
}
|
103 |
+
|
104 |
+
.syntaxhighlighter .toolbar
|
105 |
+
{
|
106 |
+
background-color: #000000 !important;
|
107 |
+
border: #000000 solid 1px !important;
|
108 |
+
}
|
109 |
+
|
110 |
+
.syntaxhighlighter .toolbar a
|
111 |
+
{
|
112 |
+
color: #646763 !important;
|
113 |
+
}
|
114 |
+
|
115 |
+
.syntaxhighlighter .toolbar a:hover
|
116 |
+
{
|
117 |
+
color: #9CCFF4 !important;
|
118 |
+
}
|
119 |
+
|
120 |
+
/************************************
|
121 |
+
* Actual syntax highlighter colors.
|
122 |
+
************************************/
|
123 |
+
.syntaxhighlighter .plain,
|
124 |
+
.syntaxhighlighter .plain a
|
125 |
+
{
|
126 |
+
color: #D3D3D3 !important;
|
127 |
+
}
|
128 |
+
|
129 |
+
.syntaxhighlighter .comments,
|
130 |
+
.syntaxhighlighter .comments a
|
131 |
+
{
|
132 |
+
color: #FF7D27 !important;
|
133 |
+
}
|
134 |
+
|
135 |
+
.syntaxhighlighter .string,
|
136 |
+
.syntaxhighlighter .string a
|
137 |
+
{
|
138 |
+
color: #FF9E7B !important;
|
139 |
+
}
|
140 |
+
|
141 |
+
.syntaxhighlighter .keyword
|
142 |
+
{
|
143 |
+
color: #00FFFF !important;
|
144 |
+
}
|
145 |
+
|
146 |
+
.syntaxhighlighter .preprocessor
|
147 |
+
{
|
148 |
+
color: #AEC4DE !important;
|
149 |
+
}
|
150 |
+
|
151 |
+
.syntaxhighlighter .variable
|
152 |
+
{
|
153 |
+
color: #FFAA3E !important;
|
154 |
+
}
|
155 |
+
|
156 |
+
.syntaxhighlighter .value
|
157 |
+
{
|
158 |
+
color: #090 !important;
|
159 |
+
}
|
160 |
+
|
161 |
+
.syntaxhighlighter .functions
|
162 |
+
{
|
163 |
+
color: #81CEF9 !important;
|
164 |
+
}
|
165 |
+
|
166 |
+
.syntaxhighlighter .constants
|
167 |
+
{
|
168 |
+
color: #FF9E7B !important;
|
169 |
+
}
|
170 |
+
|
171 |
+
.syntaxhighlighter .script
|
172 |
+
{
|
173 |
+
background-color: #990000 !important;
|
174 |
+
}
|
175 |
+
|
176 |
+
.syntaxhighlighter .color1,
|
177 |
+
.syntaxhighlighter .color1 a
|
178 |
+
{
|
179 |
+
color: #EBDB8D !important;
|
180 |
+
}
|
181 |
+
|
182 |
+
.syntaxhighlighter .color2,
|
183 |
+
.syntaxhighlighter .color2 a
|
184 |
+
{
|
185 |
+
color: #FF7D27 !important;
|
186 |
+
}
|
187 |
+
|
188 |
+
.syntaxhighlighter .color3,
|
189 |
+
.syntaxhighlighter .color3 a
|
190 |
+
{
|
191 |
+
color: #AEC4DE !important;
|
192 |
+
}
|
syntaxhighlighter/styles/shThemeFadeToGrey.css
ADDED
@@ -0,0 +1,193 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.0.320 (May 03 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
/**
|
31 |
+
* Fade to Grey SyntaxHighlighter theme based on theme by Brasten Sager
|
32 |
+
* http://www.ibrasten.com/
|
33 |
+
*/
|
34 |
+
|
35 |
+
/************************************
|
36 |
+
* Interface elements.
|
37 |
+
************************************/
|
38 |
+
|
39 |
+
.syntaxhighlighter
|
40 |
+
{
|
41 |
+
background-color: #121212 !important;
|
42 |
+
}
|
43 |
+
|
44 |
+
/* Gutter line numbers */
|
45 |
+
.syntaxhighlighter .line .number
|
46 |
+
{
|
47 |
+
color: #C3C3C3 !important;
|
48 |
+
}
|
49 |
+
|
50 |
+
/* Add border to the lines */
|
51 |
+
.syntaxhighlighter .line .content
|
52 |
+
{
|
53 |
+
border-left: 3px solid #3185B9 !important;
|
54 |
+
color: #B9BDB6 !important;
|
55 |
+
}
|
56 |
+
|
57 |
+
.syntaxhighlighter.printing .line .content
|
58 |
+
{
|
59 |
+
border: 0 !important;
|
60 |
+
}
|
61 |
+
|
62 |
+
/* First line */
|
63 |
+
.syntaxhighlighter .line.alt1 .content
|
64 |
+
{
|
65 |
+
}
|
66 |
+
|
67 |
+
/* Second line */
|
68 |
+
.syntaxhighlighter .line.alt2 .content
|
69 |
+
{
|
70 |
+
background-color: #000000 !important;
|
71 |
+
}
|
72 |
+
|
73 |
+
.syntaxhighlighter .line .content .block
|
74 |
+
{
|
75 |
+
background: url(wrapping.png) 0 1.1em no-repeat !important;
|
76 |
+
}
|
77 |
+
|
78 |
+
/* Highlighed line number */
|
79 |
+
.syntaxhighlighter .line.highlighted .number
|
80 |
+
{
|
81 |
+
background-color: #3A3A00 !important;
|
82 |
+
color: #fff !important;
|
83 |
+
}
|
84 |
+
|
85 |
+
/* Highlighed line */
|
86 |
+
.syntaxhighlighter .line.highlighted.alt1 .content,
|
87 |
+
.syntaxhighlighter .line.highlighted.alt2 .content
|
88 |
+
{
|
89 |
+
background-color: #3A3A00 !important;
|
90 |
+
}
|
91 |
+
|
92 |
+
.syntaxhighlighter .ruler
|
93 |
+
{
|
94 |
+
color: silver !important;
|
95 |
+
border-left: 3px solid #3185B9 !important;
|
96 |
+
}
|
97 |
+
|
98 |
+
.syntaxhighlighter.nogutter .ruler
|
99 |
+
{
|
100 |
+
border: 0 !important;
|
101 |
+
}
|
102 |
+
|
103 |
+
.syntaxhighlighter .toolbar
|
104 |
+
{
|
105 |
+
background-color: #000000 !important;
|
106 |
+
border: #000000 solid 1px !important;
|
107 |
+
}
|
108 |
+
|
109 |
+
.syntaxhighlighter .toolbar a
|
110 |
+
{
|
111 |
+
color: #808080 !important;
|
112 |
+
}
|
113 |
+
|
114 |
+
.syntaxhighlighter .toolbar a:hover
|
115 |
+
{
|
116 |
+
color: #96DAFF !important;
|
117 |
+
}
|
118 |
+
|
119 |
+
/************************************
|
120 |
+
* Actual syntax highlighter colors.
|
121 |
+
************************************/
|
122 |
+
.syntaxhighlighter .plain,
|
123 |
+
.syntaxhighlighter .plain a
|
124 |
+
{
|
125 |
+
color: #FFFFFF !important;
|
126 |
+
}
|
127 |
+
|
128 |
+
.syntaxhighlighter .comments,
|
129 |
+
.syntaxhighlighter .comments a
|
130 |
+
{
|
131 |
+
color: #696854 !important;
|
132 |
+
}
|
133 |
+
|
134 |
+
.syntaxhighlighter .string,
|
135 |
+
.syntaxhighlighter .string a
|
136 |
+
{
|
137 |
+
color: #E3E658 !important;
|
138 |
+
}
|
139 |
+
|
140 |
+
.syntaxhighlighter .keyword
|
141 |
+
{
|
142 |
+
color: #D01D33 !important;
|
143 |
+
}
|
144 |
+
|
145 |
+
.syntaxhighlighter .preprocessor
|
146 |
+
{
|
147 |
+
color: #435A5F !important;
|
148 |
+
}
|
149 |
+
|
150 |
+
.syntaxhighlighter .variable
|
151 |
+
{
|
152 |
+
color: #898989 !important;
|
153 |
+
}
|
154 |
+
|
155 |
+
.syntaxhighlighter .value
|
156 |
+
{
|
157 |
+
color: #090 !important;
|
158 |
+
}
|
159 |
+
|
160 |
+
.syntaxhighlighter .functions
|
161 |
+
{
|
162 |
+
color: #AAAAAA !important;
|
163 |
+
font-weight: bold !important;
|
164 |
+
}
|
165 |
+
|
166 |
+
.syntaxhighlighter .constants
|
167 |
+
{
|
168 |
+
color: #96DAFF !important;
|
169 |
+
}
|
170 |
+
|
171 |
+
.syntaxhighlighter .script
|
172 |
+
{
|
173 |
+
background-color: #C3C3C3 !important;
|
174 |
+
color: #000 !important;
|
175 |
+
}
|
176 |
+
|
177 |
+
.syntaxhighlighter .color1,
|
178 |
+
.syntaxhighlighter .color1 a
|
179 |
+
{
|
180 |
+
color: #FFC074 !important;
|
181 |
+
}
|
182 |
+
|
183 |
+
.syntaxhighlighter .color2,
|
184 |
+
.syntaxhighlighter .color2 a
|
185 |
+
{
|
186 |
+
color: #4A8CDB !important;
|
187 |
+
}
|
188 |
+
|
189 |
+
.syntaxhighlighter .color3,
|
190 |
+
.syntaxhighlighter .color3 a
|
191 |
+
{
|
192 |
+
color: #96DAFF !important;
|
193 |
+
}
|
syntaxhighlighter/styles/shThemeMidnight.css
ADDED
@@ -0,0 +1,192 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.0.320 (May 03 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
/**
|
31 |
+
* Midnight SyntaxHighlighter theme based on theme by J.D. Myers
|
32 |
+
* http://webdesign.lsnjd.com/
|
33 |
+
*/
|
34 |
+
|
35 |
+
/************************************
|
36 |
+
* Interface elements.
|
37 |
+
************************************/
|
38 |
+
|
39 |
+
.syntaxhighlighter
|
40 |
+
{
|
41 |
+
background-color: #0F192A !important;
|
42 |
+
}
|
43 |
+
|
44 |
+
/* Gutter line numbers */
|
45 |
+
.syntaxhighlighter .line .number
|
46 |
+
{
|
47 |
+
color: #38566F !important;
|
48 |
+
}
|
49 |
+
|
50 |
+
/* Add border to the lines */
|
51 |
+
.syntaxhighlighter .line .content
|
52 |
+
{
|
53 |
+
border-left: 3px solid #435A5F !important;
|
54 |
+
color: #B9BDB6 !important;
|
55 |
+
}
|
56 |
+
|
57 |
+
.syntaxhighlighter.printing .line .content
|
58 |
+
{
|
59 |
+
border: 0 !important;
|
60 |
+
}
|
61 |
+
|
62 |
+
/* First line */
|
63 |
+
.syntaxhighlighter .line.alt1 .content
|
64 |
+
{
|
65 |
+
background-color: #0F192A !important;
|
66 |
+
}
|
67 |
+
|
68 |
+
/* Second line */
|
69 |
+
.syntaxhighlighter .line.alt2 .content
|
70 |
+
{
|
71 |
+
background-color: #0F192A !important;
|
72 |
+
}
|
73 |
+
|
74 |
+
.syntaxhighlighter .line .content .block
|
75 |
+
{
|
76 |
+
background: url(wrapping.png) 0 1.1em no-repeat !important;
|
77 |
+
}
|
78 |
+
|
79 |
+
/* Highlighed line number */
|
80 |
+
.syntaxhighlighter .line.highlighted .number
|
81 |
+
{
|
82 |
+
background-color: #253E5A !important;
|
83 |
+
color: #fff !important;
|
84 |
+
}
|
85 |
+
|
86 |
+
/* Highlighed line */
|
87 |
+
.syntaxhighlighter .line.highlighted.alt1 .content,
|
88 |
+
.syntaxhighlighter .line.highlighted.alt2 .content
|
89 |
+
{
|
90 |
+
background-color: #253E5A !important;
|
91 |
+
}
|
92 |
+
|
93 |
+
.syntaxhighlighter .ruler
|
94 |
+
{
|
95 |
+
color: #38566F !important;
|
96 |
+
background-color: #0F192A !important;
|
97 |
+
border-left: 3px solid #435A5F !important;
|
98 |
+
}
|
99 |
+
|
100 |
+
.syntaxhighlighter.nogutter .ruler
|
101 |
+
{
|
102 |
+
border: 0 !important;
|
103 |
+
}
|
104 |
+
|
105 |
+
.syntaxhighlighter .toolbar
|
106 |
+
{
|
107 |
+
background-color: #0F192A !important;
|
108 |
+
}
|
109 |
+
|
110 |
+
.syntaxhighlighter .toolbar a
|
111 |
+
{
|
112 |
+
color: #38566F !important;
|
113 |
+
}
|
114 |
+
|
115 |
+
.syntaxhighlighter .toolbar a:hover
|
116 |
+
{
|
117 |
+
color: #8AA6C1 !important;
|
118 |
+
}
|
119 |
+
|
120 |
+
/************************************
|
121 |
+
* Actual syntax highlighter colors.
|
122 |
+
************************************/
|
123 |
+
.syntaxhighlighter .plain,
|
124 |
+
.syntaxhighlighter .plain a
|
125 |
+
{
|
126 |
+
color: #D1EDFF !important;
|
127 |
+
}
|
128 |
+
|
129 |
+
.syntaxhighlighter .comments,
|
130 |
+
.syntaxhighlighter .comments a
|
131 |
+
{
|
132 |
+
color: #428BDD !important;
|
133 |
+
}
|
134 |
+
|
135 |
+
.syntaxhighlighter .string,
|
136 |
+
.syntaxhighlighter .string a
|
137 |
+
{
|
138 |
+
color: #1DC116 !important;
|
139 |
+
}
|
140 |
+
|
141 |
+
.syntaxhighlighter .keyword
|
142 |
+
{
|
143 |
+
color: #B43D3D !important;
|
144 |
+
}
|
145 |
+
|
146 |
+
.syntaxhighlighter .preprocessor
|
147 |
+
{
|
148 |
+
color: #8AA6C1 !important;
|
149 |
+
}
|
150 |
+
|
151 |
+
.syntaxhighlighter .variable
|
152 |
+
{
|
153 |
+
color: #FFAA3E !important;
|
154 |
+
}
|
155 |
+
|
156 |
+
.syntaxhighlighter .value
|
157 |
+
{
|
158 |
+
color: #F7E741 !important;
|
159 |
+
}
|
160 |
+
|
161 |
+
.syntaxhighlighter .functions
|
162 |
+
{
|
163 |
+
color: #FFAA3E !important;
|
164 |
+
}
|
165 |
+
|
166 |
+
.syntaxhighlighter .constants
|
167 |
+
{
|
168 |
+
color: #E0E8FF !important;
|
169 |
+
}
|
170 |
+
|
171 |
+
.syntaxhighlighter .script
|
172 |
+
{
|
173 |
+
background-color: #404040 !important;
|
174 |
+
}
|
175 |
+
|
176 |
+
.syntaxhighlighter .color1,
|
177 |
+
.syntaxhighlighter .color1 a
|
178 |
+
{
|
179 |
+
color: #F8BB00 !important;
|
180 |
+
}
|
181 |
+
|
182 |
+
.syntaxhighlighter .color2,
|
183 |
+
.syntaxhighlighter .color2 a
|
184 |
+
{
|
185 |
+
color: #FFFFFF !important;
|
186 |
+
}
|
187 |
+
|
188 |
+
.syntaxhighlighter .color3,
|
189 |
+
.syntaxhighlighter .color3 a
|
190 |
+
{
|
191 |
+
color: #FFAA3E !important;
|
192 |
+
}
|
syntaxhighlighter/styles/shThemeRDark.css
ADDED
@@ -0,0 +1,192 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.0.320 (May 03 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
/**
|
31 |
+
* RDark SyntaxHighlighter theme based on theme by Radu Dineiu
|
32 |
+
* http://www.vim.org/scripts/script.php?script_id=1732
|
33 |
+
*/
|
34 |
+
|
35 |
+
/************************************
|
36 |
+
* Interface elements.
|
37 |
+
************************************/
|
38 |
+
|
39 |
+
.syntaxhighlighter
|
40 |
+
{
|
41 |
+
background-color: #1B2426 !important;
|
42 |
+
}
|
43 |
+
|
44 |
+
/* Gutter line numbers */
|
45 |
+
.syntaxhighlighter .line .number
|
46 |
+
{
|
47 |
+
color: #B9BDB6 !important;
|
48 |
+
}
|
49 |
+
|
50 |
+
/* Add border to the lines */
|
51 |
+
.syntaxhighlighter .line .content
|
52 |
+
{
|
53 |
+
border-left: 3px solid #435A5F !important;
|
54 |
+
color: #B9BDB6 !important;
|
55 |
+
}
|
56 |
+
|
57 |
+
.syntaxhighlighter.printing .line .content
|
58 |
+
{
|
59 |
+
border: 0 !important;
|
60 |
+
}
|
61 |
+
|
62 |
+
/* First line */
|
63 |
+
.syntaxhighlighter .line.alt1 .content
|
64 |
+
{
|
65 |
+
background-color: #1B2426 !important;
|
66 |
+
}
|
67 |
+
|
68 |
+
/* Second line */
|
69 |
+
.syntaxhighlighter .line.alt2 .content
|
70 |
+
{
|
71 |
+
background-color: #1B2426 !important;
|
72 |
+
}
|
73 |
+
|
74 |
+
.syntaxhighlighter .line .content .block
|
75 |
+
{
|
76 |
+
background: url(wrapping.png) 0 1.1em no-repeat !important;
|
77 |
+
}
|
78 |
+
|
79 |
+
/* Highlighed line number */
|
80 |
+
.syntaxhighlighter .line.highlighted .number
|
81 |
+
{
|
82 |
+
background-color: #435A5F !important;
|
83 |
+
color: #fff !important;
|
84 |
+
}
|
85 |
+
|
86 |
+
/* Highlighed line */
|
87 |
+
.syntaxhighlighter .line.highlighted.alt1 .content,
|
88 |
+
.syntaxhighlighter .line.highlighted.alt2 .content
|
89 |
+
{
|
90 |
+
background-color: #435A5F !important;
|
91 |
+
}
|
92 |
+
|
93 |
+
.syntaxhighlighter .ruler
|
94 |
+
{
|
95 |
+
color: silver !important;
|
96 |
+
background-color: #1B2426 !important;
|
97 |
+
border-left: 3px solid #435A5F !important;
|
98 |
+
}
|
99 |
+
|
100 |
+
.syntaxhighlighter.nogutter .ruler
|
101 |
+
{
|
102 |
+
border: 0 !important;
|
103 |
+
}
|
104 |
+
|
105 |
+
.syntaxhighlighter .toolbar
|
106 |
+
{
|
107 |
+
background-color: #1B2426 !important;
|
108 |
+
}
|
109 |
+
|
110 |
+
.syntaxhighlighter .toolbar a
|
111 |
+
{
|
112 |
+
color: #646763 !important;
|
113 |
+
}
|
114 |
+
|
115 |
+
.syntaxhighlighter .toolbar a:hover
|
116 |
+
{
|
117 |
+
color: #E0E8FF !important;
|
118 |
+
}
|
119 |
+
|
120 |
+
/************************************
|
121 |
+
* Actual syntax highlighter colors.
|
122 |
+
************************************/
|
123 |
+
.syntaxhighlighter .plain,
|
124 |
+
.syntaxhighlighter .plain a
|
125 |
+
{
|
126 |
+
color: #B9BDB6 !important;
|
127 |
+
}
|
128 |
+
|
129 |
+
.syntaxhighlighter .comments,
|
130 |
+
.syntaxhighlighter .comments a
|
131 |
+
{
|
132 |
+
color: #878A85 !important;
|
133 |
+
}
|
134 |
+
|
135 |
+
.syntaxhighlighter .string,
|
136 |
+
.syntaxhighlighter .string a
|
137 |
+
{
|
138 |
+
color: #5CE638 !important;
|
139 |
+
}
|
140 |
+
|
141 |
+
.syntaxhighlighter .keyword
|
142 |
+
{
|
143 |
+
color: #5BA1CF !important;
|
144 |
+
}
|
145 |
+
|
146 |
+
.syntaxhighlighter .preprocessor
|
147 |
+
{
|
148 |
+
color: #435A5F !important;
|
149 |
+
}
|
150 |
+
|
151 |
+
.syntaxhighlighter .variable
|
152 |
+
{
|
153 |
+
color: #FFAA3E !important;
|
154 |
+
}
|
155 |
+
|
156 |
+
.syntaxhighlighter .value
|
157 |
+
{
|
158 |
+
color: #090 !important;
|
159 |
+
}
|
160 |
+
|
161 |
+
.syntaxhighlighter .functions
|
162 |
+
{
|
163 |
+
color: #FFAA3E !important;
|
164 |
+
}
|
165 |
+
|
166 |
+
.syntaxhighlighter .constants
|
167 |
+
{
|
168 |
+
color: #E0E8FF !important;
|
169 |
+
}
|
170 |
+
|
171 |
+
.syntaxhighlighter .script
|
172 |
+
{
|
173 |
+
background-color: #435A5F !important;
|
174 |
+
}
|
175 |
+
|
176 |
+
.syntaxhighlighter .color1,
|
177 |
+
.syntaxhighlighter .color1 a
|
178 |
+
{
|
179 |
+
color: #E0E8FF !important;
|
180 |
+
}
|
181 |
+
|
182 |
+
.syntaxhighlighter .color2,
|
183 |
+
.syntaxhighlighter .color2 a
|
184 |
+
{
|
185 |
+
color: #FFFFFF !important;
|
186 |
+
}
|
187 |
+
|
188 |
+
.syntaxhighlighter .color3,
|
189 |
+
.syntaxhighlighter .color3 a
|
190 |
+
{
|
191 |
+
color: #FFAA3E !important;
|
192 |
+
}
|
syntaxhighlighter/styles/wrapping.png
ADDED
Binary file
|
syntaxhighlighter_mce.js
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* SyntaxHighlighter shortcode plugin
|
3 |
+
* by Andrew Ozz of Automattic
|
4 |
+
*/
|
5 |
+
|
6 |
+
// Avoid JS errors
|
7 |
+
if ( typeof syntaxHLcodes == 'undefined' ) {
|
8 |
+
var syntaxHLcodes = 'sourcecode';
|
9 |
+
}
|
10 |
+
|
11 |
+
(function() {
|
12 |
+
tinymce.create('tinymce.plugins.SyntaxHighlighterPlugin', {
|
13 |
+
|
14 |
+
init : function(ed, url) {
|
15 |
+
var t = this;
|
16 |
+
|
17 |
+
ed.onBeforeSetContent.add(function(ed, o) {
|
18 |
+
o.content = t._htmlToVisual(o.content);
|
19 |
+
});
|
20 |
+
|
21 |
+
ed.onPostProcess.add(function(ed, o) {
|
22 |
+
if ( o.save ) {
|
23 |
+
o.content = t._visualToHtml(o.content);
|
24 |
+
}
|
25 |
+
});
|
26 |
+
},
|
27 |
+
|
28 |
+
getInfo : function() {
|
29 |
+
return {
|
30 |
+
longname : 'SyntaxHighlighter Assister',
|
31 |
+
author : 'Automattic',
|
32 |
+
authorurl : 'http://wordpress.com/',
|
33 |
+
infourl : 'http://wordpress.org/extend/plugins/syntaxhighlighter/',
|
34 |
+
version : tinymce.majorVersion + "." + tinymce.minorVersion
|
35 |
+
};
|
36 |
+
},
|
37 |
+
|
38 |
+
// Private methods
|
39 |
+
_visualToHtml : function(content) {
|
40 |
+
content = tinymce.trim(content);
|
41 |
+
// 2 <br> get converted to \n\n and are needed to preserve the next <p>
|
42 |
+
content = content.replace(new RegExp('(<pre>\\s*)?(\\[(' + syntaxHLcodes + ')[^\\]]*\\][\\s\\S]*?\\[\\/\\3\\])(\\s*<\\/pre>)?', 'gi'),
|
43 |
+
function(a) {
|
44 |
+
a = a.replace( /<br \/>([\t ])/g, '<br \/><%%KEEPWHITESPACE%%>$1' );
|
45 |
+
return a + '<br /><br />';
|
46 |
+
});
|
47 |
+
content = content.replace(/<\/pre>(<br \/><br \/>)?<pre>/gi, '\n');
|
48 |
+
return content;
|
49 |
+
},
|
50 |
+
|
51 |
+
_htmlToVisual : function(content) {
|
52 |
+
content = tinymce.trim(content);
|
53 |
+
|
54 |
+
content = content.replace(new RegExp('(<p>\\s*)?(<pre>\\s*)?(\\[(' + syntaxHLcodes + ')[^\\]]*\\][\\s\\S]*?\\[\\/\\4\\])(\\s*<\\/pre>)?(\\s*<\\/p>)?', 'gi'), '<pre>$3</pre>');
|
55 |
+
content = content.replace(/<\/pre><pre>/gi, '\n');
|
56 |
+
|
57 |
+
// Remove anonymous, empty paragraphs.
|
58 |
+
content = content.replace(/<p>(\s| )*<\/p>/mg, '');
|
59 |
+
|
60 |
+
// Look for <p> <br> in the [tag]s, replace with <br />
|
61 |
+
content = content.replace(new RegExp('\\[(' + syntaxHLcodes + ')[^\\]]*\\][\\s\\S]+?\\[\\/\\1\\]', 'gi'),
|
62 |
+
function(a) {
|
63 |
+
return a.replace(/<br ?\/?>[\r\n]*/g, '<br />').replace(/<\/?p( [^>]*)?>[\r\n]*/g, '<br />');
|
64 |
+
});
|
65 |
+
|
66 |
+
return content;
|
67 |
+
}
|
68 |
+
});
|
69 |
+
|
70 |
+
// Register plugin
|
71 |
+
tinymce.PluginManager.add('syntaxhighlighter', tinymce.plugins.SyntaxHighlighterPlugin);
|
72 |
+
})();
|
73 |
+
|
74 |
+
var syntaxHLlast = 0;
|
75 |
+
function pre_wpautop2(content) {
|
76 |
+
var d = new Date(), time = d.getTime();
|
77 |
+
|
78 |
+
if ( time - syntaxHLlast < 500 )
|
79 |
+
return content;
|
80 |
+
|
81 |
+
syntaxHLlast = time;
|
82 |
+
|
83 |
+
content = content.replace(new RegExp('<pre>\\s*\\[(' + syntaxHLcodes + ')', 'gi'), '[$1');
|
84 |
+
content = content.replace(new RegExp('\\[\\/(' + syntaxHLcodes + ')\\]\\s*<\\/pre>', 'gi'), '[/$1]');
|
85 |
+
|
86 |
+
content = this._pre_wpautop(content);
|
87 |
+
|
88 |
+
content = content.replace(new RegExp('\\[(' + syntaxHLcodes + ')[^\\]]*\\][\\s\\S]+?\\[\\/\\1\\]', 'gi'),
|
89 |
+
function(a) {
|
90 |
+
return a.replace(/</g, '<').replace(/>/g, '>').replace(/&/g, '&').replace(/<%%KEEPWHITESPACE%%>/g, '');
|
91 |
+
});
|
92 |
+
|
93 |
+
return content;
|
94 |
+
}
|
95 |
+
|
96 |
+
function wpautop2(content) {
|
97 |
+
// js htmlspecialchars
|
98 |
+
content = content.replace(new RegExp('\\[(' + syntaxHLcodes + ')[^\\]]*\\][\\s\\S]+?\\[\\/\\1\\]', 'gi'),
|
99 |
+
function(a) {
|
100 |
+
return a.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
|
101 |
+
});
|
102 |
+
|
103 |
+
return this._wpautop(content);
|
104 |
+
}
|
105 |
+
|
106 |
+
switchEditors._pre_wpautop = switchEditors.pre_wpautop;
|
107 |
+
switchEditors._wpautop = switchEditors.wpautop;
|
108 |
+
switchEditors.pre_wpautop = pre_wpautop2;
|
109 |
+
switchEditors.wpautop = wpautop2;
|