Version Description
Download this release
Release Info
Developer | Viper007Bond |
Plugin | SyntaxHighlighter Evolved |
Version | 2.3.2 |
Comparing to | |
See all releases |
Code changes from version 2.2.2 to 2.3.2
- localization/_syntaxhighlighter-template.po +126 -76
- localization/syntaxhighlighter-da_DK.mo +0 -0
- localization/syntaxhighlighter-da_DK.po +129 -86
- localization/syntaxhighlighter-it_IT.mo +0 -0
- localization/syntaxhighlighter-it_IT.po +146 -87
- readme.txt +44 -10
- syntaxhighlighter.php +525 -215
- syntaxhighlighter/scripts/shBrushAS3.js +1 -1
- syntaxhighlighter/scripts/shBrushBash.js +12 -5
- syntaxhighlighter/scripts/shBrushCSharp.js +5 -2
- syntaxhighlighter/scripts/shBrushColdFusion.js +102 -0
- syntaxhighlighter/scripts/shBrushCpp.js +1 -1
- syntaxhighlighter/scripts/shBrushCss.js +1 -1
- syntaxhighlighter/scripts/shBrushDelphi.js +3 -3
- syntaxhighlighter/scripts/shBrushDiff.js +1 -1
- syntaxhighlighter/scripts/shBrushErlang.js +54 -0
- syntaxhighlighter/scripts/shBrushGroovy.js +1 -1
- syntaxhighlighter/scripts/shBrushJScript.js +1 -1
- syntaxhighlighter/scripts/shBrushJava.js +7 -3
- syntaxhighlighter/scripts/shBrushJavaFX.js +1 -1
- syntaxhighlighter/scripts/shBrushPerl.js +1 -1
- syntaxhighlighter/scripts/shBrushPhp.js +1 -1
- syntaxhighlighter/scripts/shBrushPlain.js +1 -1
- syntaxhighlighter/scripts/shBrushPowerShell.js +1 -1
- syntaxhighlighter/scripts/shBrushPython.js +27 -17
- syntaxhighlighter/scripts/shBrushRuby.js +2 -2
- syntaxhighlighter/scripts/shBrushScala.js +1 -1
- syntaxhighlighter/scripts/shBrushSql.js +1 -1
- syntaxhighlighter/scripts/shBrushVb.js +1 -1
- syntaxhighlighter/scripts/shBrushXml.js +3 -3
- syntaxhighlighter/scripts/shCore.js +2 -2
- syntaxhighlighter/scripts/shLegacy.js +1 -1
- syntaxhighlighter/styles/shCore.css +45 -51
- syntaxhighlighter/styles/shThemeDefault.css +12 -26
- syntaxhighlighter/styles/shThemeDjango.css +5 -22
- syntaxhighlighter/styles/shThemeEclipse.css +190 -0
- syntaxhighlighter/styles/shThemeEmacs.css +5 -22
- syntaxhighlighter/styles/shThemeFadeToGrey.css +5 -21
- syntaxhighlighter/styles/shThemeMidnight.css +5 -22
- syntaxhighlighter/styles/shThemeRDark.css +5 -22
- syntaxhighlighter/styles/wrapping.png +0 -0
localization/_syntaxhighlighter-template.po
CHANGED
@@ -8,7 +8,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-
|
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"
|
@@ -16,177 +16,218 @@ msgstr ""
|
|
16 |
"Content-Type: text/plain; charset=CHARSET\n"
|
17 |
"Content-Transfer-Encoding: 8bit\n"
|
18 |
|
19 |
-
#: syntaxhighlighter.php:
|
20 |
msgid "Default"
|
21 |
msgstr ""
|
22 |
|
23 |
-
#: syntaxhighlighter.php:
|
24 |
msgid "Django"
|
25 |
msgstr ""
|
26 |
|
27 |
-
#: syntaxhighlighter.php:
|
|
|
|
|
|
|
|
|
28 |
msgid "Emacs"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: syntaxhighlighter.php:
|
32 |
msgid "Fade to Grey"
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: syntaxhighlighter.php:
|
36 |
msgid "Midnight"
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: syntaxhighlighter.php:
|
40 |
msgid "RDark"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: syntaxhighlighter.php:
|
44 |
msgid "[None]"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: syntaxhighlighter.php:
|
48 |
msgid "SyntaxHighlighter Settings"
|
49 |
msgstr ""
|
50 |
|
51 |
-
|
52 |
-
#. Plugin Name of an extension
|
53 |
-
#: syntaxhighlighter.php:181
|
54 |
msgid "SyntaxHighlighter"
|
55 |
msgstr ""
|
56 |
|
57 |
-
#: syntaxhighlighter.php:
|
58 |
-
msgid "
|
|
|
|
|
|
|
|
|
59 |
msgstr ""
|
60 |
|
61 |
-
#: syntaxhighlighter.php:
|
62 |
msgid "view source"
|
63 |
msgstr ""
|
64 |
|
65 |
-
#: syntaxhighlighter.php:
|
66 |
msgid "copy to clipboard"
|
67 |
msgstr ""
|
68 |
|
69 |
-
#: syntaxhighlighter.php:
|
70 |
msgid "The code is in your clipboard now"
|
71 |
msgstr ""
|
72 |
|
73 |
-
#: syntaxhighlighter.php:
|
74 |
msgid "print"
|
75 |
msgstr ""
|
76 |
|
77 |
-
#: syntaxhighlighter.php:
|
78 |
msgid "?"
|
79 |
msgstr ""
|
80 |
|
81 |
-
#: syntaxhighlighter.php:
|
82 |
msgid "SyntaxHighlighter\\n\\n"
|
83 |
msgstr ""
|
84 |
|
85 |
-
#: syntaxhighlighter.php:
|
86 |
msgid "Can't find brush for: "
|
87 |
msgstr ""
|
88 |
|
89 |
-
#: syntaxhighlighter.php:
|
90 |
msgid "Brush wasn't configured for html-script option: "
|
91 |
msgstr ""
|
92 |
|
93 |
-
#: syntaxhighlighter.php:
|
94 |
-
msgid "
|
95 |
msgstr ""
|
96 |
|
97 |
-
#: syntaxhighlighter.php:
|
98 |
-
msgid "
|
99 |
msgstr ""
|
100 |
|
101 |
-
#: syntaxhighlighter.php:
|
102 |
msgid "Color Theme"
|
103 |
msgstr ""
|
104 |
|
105 |
-
#: syntaxhighlighter.php:
|
106 |
msgid "Defaults"
|
107 |
msgstr ""
|
108 |
|
109 |
-
#: syntaxhighlighter.php:
|
110 |
msgid ""
|
111 |
-
"All of the settings below can
|
|
|
112 |
msgstr ""
|
113 |
|
114 |
-
#: syntaxhighlighter.php:
|
115 |
msgid "Miscellaneous"
|
116 |
msgstr ""
|
117 |
|
118 |
-
#: syntaxhighlighter.php:
|
119 |
msgid "Display line numbers"
|
120 |
msgstr ""
|
121 |
|
122 |
-
#: syntaxhighlighter.php:
|
123 |
msgid "Display the toolbar"
|
124 |
msgstr ""
|
125 |
|
126 |
-
#: syntaxhighlighter.php:
|
127 |
msgid "Automatically make URLs clickable"
|
128 |
msgstr ""
|
129 |
|
130 |
-
#: syntaxhighlighter.php:
|
131 |
msgid "Collapse code boxes"
|
132 |
msgstr ""
|
133 |
|
134 |
-
#: syntaxhighlighter.php:
|
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:
|
143 |
msgid "Use smart tabs allowing tabs being used for alignment"
|
144 |
msgstr ""
|
145 |
|
146 |
-
#: syntaxhighlighter.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
msgid "Additional CSS Class(es)"
|
148 |
msgstr ""
|
149 |
|
150 |
-
#: syntaxhighlighter.php:
|
151 |
msgid "Starting Line Number"
|
152 |
msgstr ""
|
153 |
|
154 |
-
#: syntaxhighlighter.php:
|
155 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
msgstr ""
|
157 |
|
158 |
-
#: syntaxhighlighter.php:
|
159 |
msgid "Tab Size"
|
160 |
msgstr ""
|
161 |
|
162 |
-
#: syntaxhighlighter.php:
|
163 |
msgid "Save Changes"
|
164 |
msgstr ""
|
165 |
|
166 |
-
#: syntaxhighlighter.php:
|
167 |
msgid "Reset to Defaults"
|
168 |
msgstr ""
|
169 |
|
170 |
-
#: syntaxhighlighter.php:
|
171 |
msgid "Preview"
|
172 |
msgstr ""
|
173 |
|
174 |
-
#: syntaxhighlighter.php:
|
175 |
msgid "Click "Save Changes" to update this preview."
|
176 |
msgstr ""
|
177 |
|
178 |
-
#: syntaxhighlighter.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
179 |
msgid "Shortcode Parameters"
|
180 |
msgstr ""
|
181 |
|
182 |
-
#: syntaxhighlighter.php:
|
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:
|
190 |
#, php-format
|
191 |
msgid ""
|
192 |
"%1$s or %2$s — The language syntax to highlight with. You can "
|
@@ -195,76 +236,85 @@ msgid ""
|
|
195 |
"aliases")."
|
196 |
msgstr ""
|
197 |
|
198 |
-
#: syntaxhighlighter.php:
|
199 |
#, php-format
|
200 |
msgid "%s — Toggle automatic URL linking."
|
201 |
msgstr ""
|
202 |
|
203 |
-
#: syntaxhighlighter.php:
|
204 |
#, php-format
|
205 |
msgid "%s — Add an additional CSS class to the code box."
|
206 |
msgstr ""
|
207 |
|
208 |
-
#: syntaxhighlighter.php:
|
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:
|
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:
|
223 |
#, php-format
|
224 |
msgid "%s — Toggle the left-side line numbering."
|
225 |
msgstr ""
|
226 |
|
227 |
-
#: syntaxhighlighter.php:
|
228 |
#, php-format
|
229 |
msgid "%s — A comma-sperated list of line numbers to highlight."
|
230 |
msgstr ""
|
231 |
|
232 |
-
#: syntaxhighlighter.php:
|
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:
|
241 |
#, php-format
|
242 |
msgid ""
|
243 |
-
"%s — Toggle light mode which disables the gutter
|
244 |
-
"
|
245 |
msgstr ""
|
246 |
|
247 |
-
#: syntaxhighlighter.php:
|
248 |
#, php-format
|
249 |
-
msgid "
|
|
|
|
|
|
|
250 |
msgstr ""
|
251 |
|
252 |
-
#: syntaxhighlighter.php:
|
253 |
#, php-format
|
254 |
msgid "%s — Toggle the toolbar containing the helpful buttons."
|
255 |
msgstr ""
|
256 |
|
257 |
-
#: syntaxhighlighter.php:
|
|
|
|
|
|
|
|
|
|
|
258 |
msgid "Some example shortcodes:"
|
259 |
msgstr ""
|
260 |
|
261 |
-
#: syntaxhighlighter.php:
|
262 |
-
#: syntaxhighlighter.php:
|
263 |
msgid "your code here"
|
264 |
msgstr ""
|
265 |
|
266 |
-
|
267 |
-
msgid "
|
268 |
msgstr ""
|
269 |
|
270 |
#. Plugin URI of an extension
|
@@ -273,10 +323,10 @@ msgstr ""
|
|
273 |
|
274 |
#. Description of an extension
|
275 |
msgid ""
|
276 |
-
"Easily post code to your
|
277 |
-
"
|
278 |
-
"
|
279 |
-
"
|
280 |
msgstr ""
|
281 |
|
282 |
#. Author of an extension
|
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-11-16 23:05+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"
|
16 |
"Content-Type: text/plain; charset=CHARSET\n"
|
17 |
"Content-Transfer-Encoding: 8bit\n"
|
18 |
|
19 |
+
#: syntaxhighlighter.php:209
|
20 |
msgid "Default"
|
21 |
msgstr ""
|
22 |
|
23 |
+
#: syntaxhighlighter.php:210
|
24 |
msgid "Django"
|
25 |
msgstr ""
|
26 |
|
27 |
+
#: syntaxhighlighter.php:211
|
28 |
+
msgid "Eclipse"
|
29 |
+
msgstr ""
|
30 |
+
|
31 |
+
#: syntaxhighlighter.php:212
|
32 |
msgid "Emacs"
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: syntaxhighlighter.php:213
|
36 |
msgid "Fade to Grey"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: syntaxhighlighter.php:214
|
40 |
msgid "Midnight"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: syntaxhighlighter.php:215
|
44 |
msgid "RDark"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: syntaxhighlighter.php:216
|
48 |
msgid "[None]"
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: syntaxhighlighter.php:223 syntaxhighlighter.php:845
|
52 |
msgid "SyntaxHighlighter Settings"
|
53 |
msgstr ""
|
54 |
|
55 |
+
#: syntaxhighlighter.php:223
|
|
|
|
|
56 |
msgid "SyntaxHighlighter"
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: syntaxhighlighter.php:254
|
60 |
+
msgid "Settings"
|
61 |
+
msgstr ""
|
62 |
+
|
63 |
+
#: syntaxhighlighter.php:542
|
64 |
+
msgid "show source"
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: syntaxhighlighter.php:543
|
68 |
msgid "view source"
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: syntaxhighlighter.php:544
|
72 |
msgid "copy to clipboard"
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: syntaxhighlighter.php:545
|
76 |
msgid "The code is in your clipboard now"
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: syntaxhighlighter.php:546
|
80 |
msgid "print"
|
81 |
msgstr ""
|
82 |
|
83 |
+
#: syntaxhighlighter.php:547
|
84 |
msgid "?"
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: syntaxhighlighter.php:548
|
88 |
msgid "SyntaxHighlighter\\n\\n"
|
89 |
msgstr ""
|
90 |
|
91 |
+
#: syntaxhighlighter.php:549
|
92 |
msgid "Can't find brush for: "
|
93 |
msgstr ""
|
94 |
|
95 |
+
#: syntaxhighlighter.php:550
|
96 |
msgid "Brush wasn't configured for html-script option: "
|
97 |
msgstr ""
|
98 |
|
99 |
+
#: syntaxhighlighter.php:833
|
100 |
+
msgid "Are you sure you want to reset your settings to the defaults?"
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: syntaxhighlighter.php:837
|
104 |
+
msgid "Settings reset to defaults."
|
105 |
msgstr ""
|
106 |
|
107 |
+
#: syntaxhighlighter.php:854
|
108 |
msgid "Color Theme"
|
109 |
msgstr ""
|
110 |
|
111 |
+
#: syntaxhighlighter.php:869
|
112 |
msgid "Defaults"
|
113 |
msgstr ""
|
114 |
|
115 |
+
#: syntaxhighlighter.php:871
|
116 |
msgid ""
|
117 |
+
"All of the settings below can be configured on a per-code box basis, but you "
|
118 |
+
"can control the defaults of all code boxes here."
|
119 |
msgstr ""
|
120 |
|
121 |
+
#: syntaxhighlighter.php:875 syntaxhighlighter.php:878
|
122 |
msgid "Miscellaneous"
|
123 |
msgstr ""
|
124 |
|
125 |
+
#: syntaxhighlighter.php:880
|
126 |
msgid "Display line numbers"
|
127 |
msgstr ""
|
128 |
|
129 |
+
#: syntaxhighlighter.php:881
|
130 |
msgid "Display the toolbar"
|
131 |
msgstr ""
|
132 |
|
133 |
+
#: syntaxhighlighter.php:882
|
134 |
msgid "Automatically make URLs clickable"
|
135 |
msgstr ""
|
136 |
|
137 |
+
#: syntaxhighlighter.php:883
|
138 |
msgid "Collapse code boxes"
|
139 |
msgstr ""
|
140 |
|
141 |
+
#: syntaxhighlighter.php:884
|
|
|
|
|
|
|
|
|
142 |
msgid "Use the light display mode, best for single lines of code"
|
143 |
msgstr ""
|
144 |
|
145 |
+
#: syntaxhighlighter.php:885
|
146 |
msgid "Use smart tabs allowing tabs being used for alignment"
|
147 |
msgstr ""
|
148 |
|
149 |
+
#: syntaxhighlighter.php:886
|
150 |
+
msgid "Wrap long lines (disabling this will make a scrollbar show instead)"
|
151 |
+
msgstr ""
|
152 |
+
|
153 |
+
#: syntaxhighlighter.php:887
|
154 |
+
msgid ""
|
155 |
+
"Enable "HTML script" mode by default (see the bottom of this page "
|
156 |
+
"for details). Checking this box is not recommended as this mode only works "
|
157 |
+
"with certain languages."
|
158 |
+
msgstr ""
|
159 |
+
|
160 |
+
#: syntaxhighlighter.php:892
|
161 |
msgid "Additional CSS Class(es)"
|
162 |
msgstr ""
|
163 |
|
164 |
+
#: syntaxhighlighter.php:896
|
165 |
msgid "Starting Line Number"
|
166 |
msgstr ""
|
167 |
|
168 |
+
#: syntaxhighlighter.php:900
|
169 |
+
msgid "Line Number Padding"
|
170 |
+
msgstr ""
|
171 |
+
|
172 |
+
#: syntaxhighlighter.php:905
|
173 |
+
msgid "Off"
|
174 |
+
msgstr ""
|
175 |
+
|
176 |
+
#: syntaxhighlighter.php:906
|
177 |
+
msgid "Automatic"
|
178 |
msgstr ""
|
179 |
|
180 |
+
#: syntaxhighlighter.php:924
|
181 |
msgid "Tab Size"
|
182 |
msgstr ""
|
183 |
|
184 |
+
#: syntaxhighlighter.php:930
|
185 |
msgid "Save Changes"
|
186 |
msgstr ""
|
187 |
|
188 |
+
#: syntaxhighlighter.php:931
|
189 |
msgid "Reset to Defaults"
|
190 |
msgstr ""
|
191 |
|
192 |
+
#: syntaxhighlighter.php:936
|
193 |
msgid "Preview"
|
194 |
msgstr ""
|
195 |
|
196 |
+
#: syntaxhighlighter.php:938
|
197 |
msgid "Click "Save Changes" to update this preview."
|
198 |
msgstr ""
|
199 |
|
200 |
+
#: syntaxhighlighter.php:950
|
201 |
+
msgid "PHP Code Example"
|
202 |
+
msgstr ""
|
203 |
+
|
204 |
+
#: syntaxhighlighter.php:952
|
205 |
+
msgid "Hello World!"
|
206 |
+
msgstr ""
|
207 |
+
|
208 |
+
#: syntaxhighlighter.php:954
|
209 |
+
msgid "This line is highlighted."
|
210 |
+
msgstr ""
|
211 |
+
|
212 |
+
#: syntaxhighlighter.php:957
|
213 |
+
msgid ""
|
214 |
+
"\t\tThis\tis\tan\r\n"
|
215 |
+
"\t\texample\tof\tsmart\r\n"
|
216 |
+
"\t\ttabs."
|
217 |
+
msgstr ""
|
218 |
+
|
219 |
+
#: syntaxhighlighter.php:972
|
220 |
msgid "Shortcode Parameters"
|
221 |
msgstr ""
|
222 |
|
223 |
+
#: syntaxhighlighter.php:974
|
224 |
#, php-format
|
225 |
msgid ""
|
226 |
"These are the parameters you can pass to the shortcode and what they do. For "
|
227 |
"the booleans (i.e. on/off), pass %1$s/%2$s or %3$s/%4$s."
|
228 |
msgstr ""
|
229 |
|
230 |
+
#: syntaxhighlighter.php:977
|
231 |
#, php-format
|
232 |
msgid ""
|
233 |
"%1$s or %2$s — The language syntax to highlight with. You can "
|
236 |
"aliases")."
|
237 |
msgstr ""
|
238 |
|
239 |
+
#: syntaxhighlighter.php:978
|
240 |
#, php-format
|
241 |
msgid "%s — Toggle automatic URL linking."
|
242 |
msgstr ""
|
243 |
|
244 |
+
#: syntaxhighlighter.php:979
|
245 |
#, php-format
|
246 |
msgid "%s — Add an additional CSS class to the code box."
|
247 |
msgstr ""
|
248 |
|
249 |
+
#: syntaxhighlighter.php:980
|
250 |
#, php-format
|
251 |
msgid ""
|
252 |
"%s — Toggle collapsing the code box by default, requiring a click to "
|
253 |
"expand it. Good for large code posts."
|
254 |
msgstr ""
|
255 |
|
256 |
+
#: syntaxhighlighter.php:981
|
257 |
#, php-format
|
258 |
msgid ""
|
259 |
"%s — An interger specifying what number the first line should be (for "
|
260 |
"the line numbering)."
|
261 |
msgstr ""
|
262 |
|
263 |
+
#: syntaxhighlighter.php:982
|
264 |
#, php-format
|
265 |
msgid "%s — Toggle the left-side line numbering."
|
266 |
msgstr ""
|
267 |
|
268 |
+
#: syntaxhighlighter.php:983
|
269 |
#, php-format
|
270 |
msgid "%s — A comma-sperated list of line numbers to highlight."
|
271 |
msgstr ""
|
272 |
|
273 |
+
#: syntaxhighlighter.php:984
|
274 |
#, php-format
|
275 |
msgid ""
|
276 |
"%s — Toggle highlighting any extra HTML/XML. Good for when you're "
|
277 |
"mixing HTML/XML with another language, such as having PHP inside an HTML web "
|
278 |
+
"page. The above preview has it enabled for example. This only works with "
|
279 |
+
"certain languages."
|
280 |
msgstr ""
|
281 |
|
282 |
+
#: syntaxhighlighter.php:985
|
283 |
#, php-format
|
284 |
msgid ""
|
285 |
+
"%s — Toggle light mode which disables the gutter and toolbar all at "
|
286 |
+
"once."
|
287 |
msgstr ""
|
288 |
|
289 |
+
#: syntaxhighlighter.php:986
|
290 |
#, php-format
|
291 |
+
msgid ""
|
292 |
+
"%s — Controls line number padding. Valid values are <code>false</code> "
|
293 |
+
"(no padding), <code>true</code> (automatic padding), or an integer (forced "
|
294 |
+
"padding)."
|
295 |
msgstr ""
|
296 |
|
297 |
+
#: syntaxhighlighter.php:987
|
298 |
#, php-format
|
299 |
msgid "%s — Toggle the toolbar containing the helpful buttons."
|
300 |
msgstr ""
|
301 |
|
302 |
+
#: syntaxhighlighter.php:988
|
303 |
+
#, php-format
|
304 |
+
msgid "%s — Toggle line wrapping."
|
305 |
+
msgstr ""
|
306 |
+
|
307 |
+
#: syntaxhighlighter.php:991
|
308 |
msgid "Some example shortcodes:"
|
309 |
msgstr ""
|
310 |
|
311 |
+
#: syntaxhighlighter.php:994 syntaxhighlighter.php:995
|
312 |
+
#: syntaxhighlighter.php:996 syntaxhighlighter.php:997
|
313 |
msgid "your code here"
|
314 |
msgstr ""
|
315 |
|
316 |
+
#. Plugin Name of an extension
|
317 |
+
msgid "SyntaxHighlighter Evolved"
|
318 |
msgstr ""
|
319 |
|
320 |
#. Plugin URI of an extension
|
323 |
|
324 |
#. Description of an extension
|
325 |
msgid ""
|
326 |
+
"Easily post syntax-highlighted code to your site without having to modify "
|
327 |
+
"the code at all. Uses Alex Gorbatchev's <a href=\"http://alexgorbatchev.com/"
|
328 |
+
"wiki/SyntaxHighlighter\">SyntaxHighlighter</a> v2.0.320 and some code by <a "
|
329 |
+
"href=\"http://wordpress.com/\">Andrew Ozz of Automattic</a>."
|
330 |
msgstr ""
|
331 |
|
332 |
#. Author of an extension
|
localization/syntaxhighlighter-da_DK.mo
CHANGED
Binary file
|
localization/syntaxhighlighter-da_DK.po
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
-
"Project-Id-Version: Syntax Highlighter 2.
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2009-
|
6 |
"PO-Revision-Date: \n"
|
7 |
-
"Last-Translator:
|
8 |
"Language-Team: Team Blogos <wordpress@blogos.dk>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
@@ -13,76 +13,80 @@ msgstr ""
|
|
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:
|
18 |
-
"X-Poedit-SearchPath-0:
|
19 |
|
20 |
-
#:
|
21 |
msgid "Default"
|
22 |
msgstr "Standard"
|
23 |
|
24 |
-
#:
|
25 |
msgid "Django"
|
26 |
msgstr "Django"
|
27 |
|
28 |
-
#:
|
|
|
|
|
|
|
|
|
29 |
msgid "Emacs"
|
30 |
msgstr "Emacs"
|
31 |
|
32 |
-
#:
|
33 |
msgid "Fade to Grey"
|
34 |
msgstr "Fade til gråt"
|
35 |
|
36 |
-
#:
|
37 |
msgid "Midnight"
|
38 |
msgstr "Midnight"
|
39 |
|
40 |
-
#:
|
41 |
msgid "RDark"
|
42 |
msgstr "RDark"
|
43 |
|
44 |
-
#:
|
45 |
msgid "[None]"
|
46 |
msgstr "[Ingen]"
|
47 |
|
48 |
-
#:
|
49 |
-
#:
|
50 |
msgid "SyntaxHighlighter Settings"
|
51 |
msgstr "SyntaxHighlighter-indstillinger"
|
52 |
|
53 |
-
#:
|
54 |
msgid "SyntaxHighlighter"
|
55 |
msgstr "SyntaxHighlighter"
|
56 |
|
57 |
-
#:
|
58 |
msgid "Settings"
|
59 |
msgstr "Indstillinger"
|
60 |
|
61 |
-
#:
|
62 |
-
msgid "
|
63 |
-
msgstr "
|
64 |
|
65 |
-
#:
|
66 |
msgid "view source"
|
67 |
msgstr "Vis kilde"
|
68 |
|
69 |
-
#:
|
70 |
msgid "copy to clipboard"
|
71 |
msgstr "Kopiér til clipboard"
|
72 |
|
73 |
-
#:
|
74 |
msgid "The code is in your clipboard now"
|
75 |
msgstr "Koden er i dit clipboard nu"
|
76 |
|
77 |
-
#:
|
78 |
msgid "print"
|
79 |
msgstr "udskriv"
|
80 |
|
81 |
-
#:
|
82 |
msgid "?"
|
83 |
msgstr "?"
|
84 |
|
85 |
-
#:
|
86 |
msgid ""
|
87 |
"SyntaxHighlighter\\n"
|
88 |
"\\n"
|
@@ -90,180 +94,219 @@ msgstr ""
|
|
90 |
"SyntaxHighlighter\\n"
|
91 |
"\\n"
|
92 |
|
93 |
-
#:
|
94 |
msgid "Can't find brush for: "
|
95 |
msgstr "Kan ikke finde penslen (syntaks-definitioner) til: "
|
96 |
|
97 |
-
#:
|
98 |
msgid "Brush wasn't configured for html-script option: "
|
99 |
msgstr "Pensel (syntaks-definitioner) er ikke konfigureret for html-script-indstillignen: "
|
100 |
|
101 |
-
#:
|
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 |
-
#:
|
|
|
|
|
|
|
|
|
110 |
msgid "Color Theme"
|
111 |
msgstr "Farvetema"
|
112 |
|
113 |
-
#:
|
114 |
msgid "Defaults"
|
115 |
msgstr "Standardværdier"
|
116 |
|
117 |
-
#:
|
118 |
-
msgid "All of the settings below can
|
119 |
-
msgstr "Alle indstillinger nedenfor kan
|
120 |
|
121 |
-
#:
|
122 |
-
#:
|
123 |
msgid "Miscellaneous"
|
124 |
msgstr "Forskelligt"
|
125 |
|
126 |
-
#:
|
127 |
msgid "Display line numbers"
|
128 |
msgstr "Vis linjenumre"
|
129 |
|
130 |
-
#:
|
131 |
msgid "Display the toolbar"
|
132 |
msgstr "Vis værktøjslinje"
|
133 |
|
134 |
-
#:
|
135 |
msgid "Automatically make URLs clickable"
|
136 |
msgstr "Lav automatisk URL'er klikbare"
|
137 |
|
138 |
-
#:
|
139 |
msgid "Collapse code boxes"
|
140 |
msgstr "Vis kodebokse med koden skjult"
|
141 |
|
142 |
-
#:
|
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 |
-
#:
|
151 |
msgid "Use smart tabs allowing tabs being used for alignment"
|
152 |
msgstr "Brug smarte tabs, så tabs kan bruges til opstilling"
|
153 |
|
154 |
-
#:
|
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 |
-
#:
|
|
|
|
|
|
|
|
|
159 |
msgid "Additional CSS Class(es)"
|
160 |
msgstr "Ekstra CSS-class(es)"
|
161 |
|
162 |
-
#:
|
163 |
msgid "Starting Line Number"
|
164 |
msgstr "Første linjenummer:"
|
165 |
|
166 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
167 |
msgid "Tab Size"
|
168 |
msgstr "Tabstørrelse:"
|
169 |
|
170 |
-
#:
|
171 |
msgid "Save Changes"
|
172 |
msgstr "Gem ændringer"
|
173 |
|
174 |
-
#:
|
175 |
msgid "Reset to Defaults"
|
176 |
msgstr "Gendan til standardværdier"
|
177 |
|
178 |
-
#:
|
179 |
msgid "Preview"
|
180 |
msgstr "Forhåndsvisning"
|
181 |
|
182 |
-
#:
|
183 |
msgid "Click "Save Changes" to update this preview."
|
184 |
msgstr "Klik "Gem ændringer" for at opdatere denne forhåndsvisning."
|
185 |
|
186 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
187 |
msgid "Shortcode Parameters"
|
188 |
msgstr "Kortkode-parametre."
|
189 |
|
190 |
-
#:
|
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 |
-
#:
|
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 |
-
#:
|
201 |
#, php-format
|
202 |
msgid "%s — Toggle automatic URL linking."
|
203 |
msgstr "%s — Slår automatisk URL-linkning til/fra."
|
204 |
|
205 |
-
#:
|
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 |
-
#:
|
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 |
-
#:
|
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 |
-
#:
|
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 |
-
#:
|
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 |
-
#:
|
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
|
234 |
|
235 |
-
#:
|
236 |
#, php-format
|
237 |
-
msgid "%s — Toggle light mode which disables the gutter
|
238 |
-
msgstr "%s — Slår \"bar fremvisning\" til/fra
|
239 |
|
240 |
-
#:
|
241 |
#, php-format
|
242 |
-
msgid "%s —
|
243 |
-
msgstr "%s —
|
244 |
|
245 |
-
#:
|
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 |
-
#:
|
251 |
#, php-format
|
252 |
msgid "%s — Toggle line wrapping."
|
253 |
msgstr "%s — Slår linjedeling til/fra."
|
254 |
|
255 |
-
#:
|
256 |
msgid "Some example shortcodes:"
|
257 |
msgstr "Nogle eksempler på kortkoder:"
|
258 |
|
259 |
-
#:
|
260 |
-
#:
|
261 |
-
#:
|
262 |
-
#:
|
263 |
msgid "your code here"
|
264 |
msgstr "din kode her"
|
265 |
|
266 |
-
|
267 |
-
|
268 |
-
|
|
|
|
|
|
|
|
|
|
|
269 |
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
+
"Project-Id-Version: Syntax Highlighter 2.3.0\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2009-11-09 08:02+0100\n"
|
6 |
"PO-Revision-Date: \n"
|
7 |
+
"Last-Translator: Team Blogos <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"
|
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:1,2;_nc:1,2;_n_noop:1,2\n"
|
17 |
+
"X-Poedit-Basepath: d:\\wordpress\\plugins\\syntaxhighlighter\n"
|
18 |
+
"X-Poedit-SearchPath-0: d:\\wordpress\\plugins\\syntaxhighlighter\n"
|
19 |
|
20 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:206
|
21 |
msgid "Default"
|
22 |
msgstr "Standard"
|
23 |
|
24 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:207
|
25 |
msgid "Django"
|
26 |
msgstr "Django"
|
27 |
|
28 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:208
|
29 |
+
msgid "Eclipse"
|
30 |
+
msgstr "Eclipse"
|
31 |
+
|
32 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:209
|
33 |
msgid "Emacs"
|
34 |
msgstr "Emacs"
|
35 |
|
36 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:210
|
37 |
msgid "Fade to Grey"
|
38 |
msgstr "Fade til gråt"
|
39 |
|
40 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:211
|
41 |
msgid "Midnight"
|
42 |
msgstr "Midnight"
|
43 |
|
44 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:212
|
45 |
msgid "RDark"
|
46 |
msgstr "RDark"
|
47 |
|
48 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:213
|
49 |
msgid "[None]"
|
50 |
msgstr "[Ingen]"
|
51 |
|
52 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:220
|
53 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:842
|
54 |
msgid "SyntaxHighlighter Settings"
|
55 |
msgstr "SyntaxHighlighter-indstillinger"
|
56 |
|
57 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:220
|
58 |
msgid "SyntaxHighlighter"
|
59 |
msgstr "SyntaxHighlighter"
|
60 |
|
61 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:251
|
62 |
msgid "Settings"
|
63 |
msgstr "Indstillinger"
|
64 |
|
65 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:539
|
66 |
+
msgid "show source"
|
67 |
+
msgstr "vis kilde"
|
68 |
|
69 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:540
|
70 |
msgid "view source"
|
71 |
msgstr "Vis kilde"
|
72 |
|
73 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:541
|
74 |
msgid "copy to clipboard"
|
75 |
msgstr "Kopiér til clipboard"
|
76 |
|
77 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:542
|
78 |
msgid "The code is in your clipboard now"
|
79 |
msgstr "Koden er i dit clipboard nu"
|
80 |
|
81 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:543
|
82 |
msgid "print"
|
83 |
msgstr "udskriv"
|
84 |
|
85 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:544
|
86 |
msgid "?"
|
87 |
msgstr "?"
|
88 |
|
89 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:545
|
90 |
msgid ""
|
91 |
"SyntaxHighlighter\\n"
|
92 |
"\\n"
|
94 |
"SyntaxHighlighter\\n"
|
95 |
"\\n"
|
96 |
|
97 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:546
|
98 |
msgid "Can't find brush for: "
|
99 |
msgstr "Kan ikke finde penslen (syntaks-definitioner) til: "
|
100 |
|
101 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:547
|
102 |
msgid "Brush wasn't configured for html-script option: "
|
103 |
msgstr "Pensel (syntaks-definitioner) er ikke konfigureret for html-script-indstillignen: "
|
104 |
|
105 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:830
|
|
|
|
|
|
|
|
|
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 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:834
|
110 |
+
msgid "Settings reset to defaults."
|
111 |
+
msgstr "Indstillinger nulstillet til standardværdierne."
|
112 |
+
|
113 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:851
|
114 |
msgid "Color Theme"
|
115 |
msgstr "Farvetema"
|
116 |
|
117 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:866
|
118 |
msgid "Defaults"
|
119 |
msgstr "Standardværdier"
|
120 |
|
121 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:868
|
122 |
+
msgid "All of the settings below can be configured on a per-code box basis, but you can control the defaults of all code boxes here."
|
123 |
+
msgstr "Alle indstillinger nedenfor kan konfigureres for hver kode-boks for sig, men du kan kontrollere standardværdierne for alle kode-bokse her."
|
124 |
|
125 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:872
|
126 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:875
|
127 |
msgid "Miscellaneous"
|
128 |
msgstr "Forskelligt"
|
129 |
|
130 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:877
|
131 |
msgid "Display line numbers"
|
132 |
msgstr "Vis linjenumre"
|
133 |
|
134 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:878
|
135 |
msgid "Display the toolbar"
|
136 |
msgstr "Vis værktøjslinje"
|
137 |
|
138 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:879
|
139 |
msgid "Automatically make URLs clickable"
|
140 |
msgstr "Lav automatisk URL'er klikbare"
|
141 |
|
142 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:880
|
143 |
msgid "Collapse code boxes"
|
144 |
msgstr "Vis kodebokse med koden skjult"
|
145 |
|
146 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:881
|
|
|
|
|
|
|
|
|
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 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:882
|
151 |
msgid "Use smart tabs allowing tabs being used for alignment"
|
152 |
msgstr "Brug smarte tabs, så tabs kan bruges til opstilling"
|
153 |
|
154 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:883
|
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 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:884
|
159 |
+
msgid "Enable "HTML script" mode by default (see the bottom of this page for details). Checking this box is not recommended as this mode only works with certain languages."
|
160 |
+
msgstr "Aktivér "HTML-script"-funktion som standard (se detaljerne nederst på denne side). Det anbefales ikke at krydse af her, da denne funktion kun fungerer med visse sprog."
|
161 |
+
|
162 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:889
|
163 |
msgid "Additional CSS Class(es)"
|
164 |
msgstr "Ekstra CSS-class(es)"
|
165 |
|
166 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:893
|
167 |
msgid "Starting Line Number"
|
168 |
msgstr "Første linjenummer:"
|
169 |
|
170 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:897
|
171 |
+
msgid "Line Number Padding"
|
172 |
+
msgstr "Padding omkring linjenumre"
|
173 |
+
|
174 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:902
|
175 |
+
msgid "Off"
|
176 |
+
msgstr "Fra"
|
177 |
+
|
178 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:903
|
179 |
+
msgid "Automatic"
|
180 |
+
msgstr "Automatisk"
|
181 |
+
|
182 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:921
|
183 |
msgid "Tab Size"
|
184 |
msgstr "Tabstørrelse:"
|
185 |
|
186 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:927
|
187 |
msgid "Save Changes"
|
188 |
msgstr "Gem ændringer"
|
189 |
|
190 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:928
|
191 |
msgid "Reset to Defaults"
|
192 |
msgstr "Gendan til standardværdier"
|
193 |
|
194 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:933
|
195 |
msgid "Preview"
|
196 |
msgstr "Forhåndsvisning"
|
197 |
|
198 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:935
|
199 |
msgid "Click "Save Changes" to update this preview."
|
200 |
msgstr "Klik "Gem ændringer" for at opdatere denne forhåndsvisning."
|
201 |
|
202 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:947
|
203 |
+
msgid "PHP Code Example"
|
204 |
+
msgstr "Eksempel på PHP-kode"
|
205 |
+
|
206 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:949
|
207 |
+
msgid "Hello World!"
|
208 |
+
msgstr "Hej verden!"
|
209 |
+
|
210 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:951
|
211 |
+
msgid "This line is highlighted."
|
212 |
+
msgstr "Denne linje er fremhævet."
|
213 |
+
|
214 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:954
|
215 |
+
msgid ""
|
216 |
+
"\t\tThis\tis\tan\n"
|
217 |
+
"\t\texample\tof\tsmart\n"
|
218 |
+
"\t\ttabs."
|
219 |
+
msgstr ""
|
220 |
+
"\t\tDette\ter\tet\n"
|
221 |
+
"\t\teksempel\tpå\tsmarte\n"
|
222 |
+
"\t\ttabs."
|
223 |
+
|
224 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:969
|
225 |
msgid "Shortcode Parameters"
|
226 |
msgstr "Kortkode-parametre."
|
227 |
|
228 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:971
|
229 |
#, php-format
|
230 |
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."
|
231 |
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"
|
232 |
|
233 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:974
|
234 |
#, php-format
|
235 |
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")."
|
236 |
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")."
|
237 |
|
238 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:975
|
239 |
#, php-format
|
240 |
msgid "%s — Toggle automatic URL linking."
|
241 |
msgstr "%s — Slår automatisk URL-linkning til/fra."
|
242 |
|
243 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:976
|
244 |
#, php-format
|
245 |
msgid "%s — Add an additional CSS class to the code box."
|
246 |
msgstr "%s — Tilføjer en ekstra CSS-class til kode-boksen."
|
247 |
|
248 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:977
|
249 |
#, php-format
|
250 |
msgid "%s — Toggle collapsing the code box by default, requiring a click to expand it. Good for large code posts."
|
251 |
msgstr "%s — Som standard skjules koden i kodeboksen, så der skal klikkes for at vise koden. Nyttigt til indlæg med megen kode."
|
252 |
|
253 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:978
|
254 |
#, php-format
|
255 |
msgid "%s — An interger specifying what number the first line should be (for the line numbering)."
|
256 |
msgstr "%s — Et heltal, som angiver, hvilken nummer den første linje skal have (til brug for linjenummerering)."
|
257 |
|
258 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:979
|
259 |
#, php-format
|
260 |
msgid "%s — Toggle the left-side line numbering."
|
261 |
msgstr "%s — Skifter mellem linjenummerering til venstre og til højre."
|
262 |
|
263 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:980
|
264 |
#, php-format
|
265 |
msgid "%s — A comma-sperated list of line numbers to highlight."
|
266 |
msgstr "%s — En kommasepareret liste med linjenumre, der skal fremhæves."
|
267 |
|
268 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:981
|
269 |
#, php-format
|
270 |
+
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. This only works with certain languages."
|
271 |
+
msgstr "%s — Slår fremhævelse af ekstra HTML/XML til/fra. Det er nyttigt, når du bruger HTML/XML sammen med et andet sprog, som f.eks. hvis du har PHP på en HTML-webside. Eksempelvis har ovenstående forhåndsvisning det aktiveret. Funktionen virker kun med visse sprog."
|
272 |
|
273 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:982
|
274 |
#, php-format
|
275 |
+
msgid "%s — Toggle light mode which disables the gutter and toolbar all at once."
|
276 |
+
msgstr "%s — Slår \"bar fremvisning\" til/fra, hvilket skjuler \"afløbsrenden\" og værktøjslinjen med det samme."
|
277 |
|
278 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:983
|
279 |
#, php-format
|
280 |
+
msgid "%s — Controls line number padding. Valid values are <code>false</code> (no padding), <code>true</code> (automatic padding), or an integer (forced padding)."
|
281 |
+
msgstr "%s — Kontrollerer padding omkring linjenumre. Gyldige værdier er <code>false</code> (inge padding), <code>true</code> (automatisk padding) eller en integer (tvungen padding)."
|
282 |
|
283 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:984
|
284 |
#, php-format
|
285 |
msgid "%s — Toggle the toolbar containing the helpful buttons."
|
286 |
msgstr "%s — Slår værktøjslinjen med nyttige knapper til/fra."
|
287 |
|
288 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:985
|
289 |
#, php-format
|
290 |
msgid "%s — Toggle line wrapping."
|
291 |
msgstr "%s — Slår linjedeling til/fra."
|
292 |
|
293 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:988
|
294 |
msgid "Some example shortcodes:"
|
295 |
msgstr "Nogle eksempler på kortkoder:"
|
296 |
|
297 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:991
|
298 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:992
|
299 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:993
|
300 |
+
#: d:\wordpress\plugins\syntaxhighlighter/syntaxhighlighter/syntaxhighlighter.php:994
|
301 |
msgid "your code here"
|
302 |
msgstr "din kode her"
|
303 |
|
304 |
+
#~ msgid "expand source"
|
305 |
+
#~ msgstr "udvid kode"
|
306 |
+
#~ msgid "Show a ruler column along the top of the code box"
|
307 |
+
#~ msgstr "Vis en lineal for oven på kodeboksen"
|
308 |
+
#~ msgid "%s — Toggle the column ruler at the top of the code box."
|
309 |
+
#~ msgstr "%s — Slår kolonnelinealen til/fra i toppen af kodeboksen."
|
310 |
+
#~ msgid "Cheatin’ uh?"
|
311 |
+
#~ msgstr "Snyder du, hva'?"
|
312 |
|
localization/syntaxhighlighter-it_IT.mo
CHANGED
Binary file
|
localization/syntaxhighlighter-it_IT.po
CHANGED
@@ -7,80 +7,86 @@ 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-
|
11 |
-
"PO-Revision-Date: 2009-
|
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=
|
16 |
"Content-Transfer-Encoding: 8bit\n"
|
17 |
"X-Poedit-Language: Italian\n"
|
18 |
"X-Poedit-Country: ITALY\n"
|
19 |
|
20 |
-
#: syntaxhighlighter.php:
|
21 |
msgid "Default"
|
22 |
msgstr "Predefinito"
|
23 |
|
24 |
-
#: syntaxhighlighter.php:
|
25 |
msgid "Django"
|
26 |
msgstr "Django"
|
27 |
|
28 |
-
#: syntaxhighlighter.php:
|
|
|
|
|
|
|
|
|
29 |
msgid "Emacs"
|
30 |
msgstr "Emacs"
|
31 |
|
32 |
-
#: syntaxhighlighter.php:
|
33 |
msgid "Fade to Grey"
|
34 |
msgstr "Fade to Grey"
|
35 |
|
36 |
-
#: syntaxhighlighter.php:
|
37 |
msgid "Midnight"
|
38 |
msgstr "Midnight"
|
39 |
|
40 |
-
#: syntaxhighlighter.php:
|
41 |
msgid "RDark"
|
42 |
msgstr "RDark"
|
43 |
|
44 |
-
#: syntaxhighlighter.php:
|
45 |
msgid "[None]"
|
46 |
msgstr "[nessuno]"
|
47 |
|
48 |
-
#: syntaxhighlighter.php:
|
49 |
-
#: syntaxhighlighter.php:
|
50 |
msgid "SyntaxHighlighter Settings"
|
51 |
msgstr "Impostazioni SyntaxHighlighter"
|
52 |
|
53 |
-
|
54 |
-
#. Plugin Name of an extension
|
55 |
-
#: syntaxhighlighter.php:181
|
56 |
msgid "SyntaxHighlighter"
|
57 |
msgstr "SyntaxHighlighter"
|
58 |
|
59 |
-
#: syntaxhighlighter.php:
|
60 |
-
msgid "
|
61 |
-
msgstr "
|
|
|
|
|
|
|
|
|
62 |
|
63 |
-
#: syntaxhighlighter.php:
|
64 |
msgid "view source"
|
65 |
msgstr "vedi sorgente"
|
66 |
|
67 |
-
#: syntaxhighlighter.php:
|
68 |
msgid "copy to clipboard"
|
69 |
msgstr "copia negli appunti"
|
70 |
|
71 |
-
#: syntaxhighlighter.php:
|
72 |
msgid "The code is in your clipboard now"
|
73 |
msgstr "Il codice é da ora nei tuoi appunti"
|
74 |
|
75 |
-
#: syntaxhighlighter.php:
|
76 |
msgid "print"
|
77 |
msgstr "stampa"
|
78 |
|
79 |
-
#: syntaxhighlighter.php:
|
80 |
msgid "?"
|
81 |
msgstr "info"
|
82 |
|
83 |
-
#: syntaxhighlighter.php:
|
84 |
msgid ""
|
85 |
"SyntaxHighlighter\\n"
|
86 |
"\\n"
|
@@ -88,185 +94,224 @@ msgstr ""
|
|
88 |
"SyntaxHighlighter\\n"
|
89 |
"\\n"
|
90 |
|
91 |
-
#: syntaxhighlighter.php:
|
92 |
msgid "Can't find brush for: "
|
93 |
msgstr "Non é stato possibile trovare il file di sintassi per: "
|
94 |
|
95 |
-
#: syntaxhighlighter.php:
|
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:
|
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:
|
|
|
|
|
|
|
|
|
108 |
msgid "Color Theme"
|
109 |
msgstr "Colore del tema"
|
110 |
|
111 |
-
#: syntaxhighlighter.php:
|
112 |
msgid "Defaults"
|
113 |
msgstr "Parametri predefiniti"
|
114 |
|
115 |
-
#: syntaxhighlighter.php:
|
116 |
-
msgid "All of the settings below can
|
117 |
-
msgstr "Tutte le impostazioni qui sotto potranno essere configurate
|
118 |
|
119 |
-
#: syntaxhighlighter.php:
|
120 |
-
#: syntaxhighlighter.php:
|
121 |
msgid "Miscellaneous"
|
122 |
msgstr "Varie"
|
123 |
|
124 |
-
#: syntaxhighlighter.php:
|
125 |
msgid "Display line numbers"
|
126 |
msgstr "mostra la numerazione delle linee"
|
127 |
|
128 |
-
#: syntaxhighlighter.php:
|
129 |
msgid "Display the toolbar"
|
130 |
msgstr "mostra la barra degli strumenti"
|
131 |
|
132 |
-
#: syntaxhighlighter.php:
|
133 |
msgid "Automatically make URLs clickable"
|
134 |
msgstr "rendi gli URL cliccabili (in automatico)"
|
135 |
|
136 |
-
#: syntaxhighlighter.php:
|
137 |
msgid "Collapse code boxes"
|
138 |
msgstr "comprimi le caselle del codice"
|
139 |
|
140 |
-
#: syntaxhighlighter.php:
|
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:
|
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:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
153 |
msgid "Additional CSS Class(es)"
|
154 |
msgstr "classe/i CSS addizionali"
|
155 |
|
156 |
-
#: syntaxhighlighter.php:
|
157 |
msgid "Starting Line Number"
|
158 |
msgstr "Numero di inizio linea"
|
159 |
|
160 |
-
#: syntaxhighlighter.php:
|
161 |
-
msgid "
|
162 |
-
msgstr "
|
163 |
|
164 |
-
#: syntaxhighlighter.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
msgid "Tab Size"
|
166 |
msgstr "Dimensione tab"
|
167 |
|
168 |
-
#: syntaxhighlighter.php:
|
169 |
msgid "Save Changes"
|
170 |
msgstr "Salva le modifiche"
|
171 |
|
172 |
-
#: syntaxhighlighter.php:
|
173 |
msgid "Reset to Defaults"
|
174 |
msgstr "Ripristina alle predefinite"
|
175 |
|
176 |
-
#: syntaxhighlighter.php:
|
177 |
msgid "Preview"
|
178 |
msgstr "Anteprima della casella"
|
179 |
|
180 |
-
#: syntaxhighlighter.php:
|
181 |
msgid "Click "Save Changes" to update this preview."
|
182 |
msgstr "Clicca "Salva le modifiche" per visualizzare l'anteprima aggiornata."
|
183 |
|
184 |
-
#: syntaxhighlighter.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
185 |
msgid "Shortcode Parameters"
|
186 |
msgstr "Parametri per lo shortcode"
|
187 |
|
188 |
-
#: syntaxhighlighter.php:
|
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:
|
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:
|
199 |
#, php-format
|
200 |
msgid "%s — Toggle automatic URL linking."
|
201 |
msgstr "%s — Commutazione automatica collegamento ad un URL."
|
202 |
|
203 |
-
#: syntaxhighlighter.php:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
234 |
#, php-format
|
235 |
-
msgid "%s — Toggle light mode which disables the gutter
|
236 |
-
msgstr "%s — Commuta alla modalità light del tema disattivando contemporaneamente il gutter
|
237 |
|
238 |
-
#: syntaxhighlighter.php:
|
239 |
#, php-format
|
240 |
-
msgid "%s —
|
241 |
-
msgstr "%s —
|
242 |
|
243 |
-
#: syntaxhighlighter.php:
|
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:
|
|
|
|
|
|
|
|
|
|
|
249 |
msgid "Some example shortcodes:"
|
250 |
msgstr "Alcuni esempi di shortcode:"
|
251 |
|
252 |
-
#: syntaxhighlighter.php:
|
253 |
-
#: syntaxhighlighter.php:
|
254 |
-
#: syntaxhighlighter.php:
|
255 |
-
#: syntaxhighlighter.php:
|
256 |
msgid "your code here"
|
257 |
msgstr "inserisci qui il tuo codice"
|
258 |
|
259 |
-
|
260 |
-
msgid "
|
261 |
-
msgstr "
|
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
|
269 |
-
msgstr "Inserisci con semplicità il codice nel tuo blog
|
270 |
|
271 |
#. Author of an extension
|
272 |
msgid "Viper007Bond"
|
@@ -276,3 +321,17 @@ msgstr "Viper007Bond"
|
|
276 |
msgid "http://www.viper007bond.com/"
|
277 |
msgstr "http://www.viper007bond.com/"
|
278 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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-11-16 23:05+0000\n"
|
11 |
+
"PO-Revision-Date: 2009-11-17 13:55+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:209
|
21 |
msgid "Default"
|
22 |
msgstr "Predefinito"
|
23 |
|
24 |
+
#: syntaxhighlighter.php:210
|
25 |
msgid "Django"
|
26 |
msgstr "Django"
|
27 |
|
28 |
+
#: syntaxhighlighter.php:211
|
29 |
+
msgid "Eclipse"
|
30 |
+
msgstr "Eclipse"
|
31 |
+
|
32 |
+
#: syntaxhighlighter.php:212
|
33 |
msgid "Emacs"
|
34 |
msgstr "Emacs"
|
35 |
|
36 |
+
#: syntaxhighlighter.php:213
|
37 |
msgid "Fade to Grey"
|
38 |
msgstr "Fade to Grey"
|
39 |
|
40 |
+
#: syntaxhighlighter.php:214
|
41 |
msgid "Midnight"
|
42 |
msgstr "Midnight"
|
43 |
|
44 |
+
#: syntaxhighlighter.php:215
|
45 |
msgid "RDark"
|
46 |
msgstr "RDark"
|
47 |
|
48 |
+
#: syntaxhighlighter.php:216
|
49 |
msgid "[None]"
|
50 |
msgstr "[nessuno]"
|
51 |
|
52 |
+
#: syntaxhighlighter.php:223
|
53 |
+
#: syntaxhighlighter.php:845
|
54 |
msgid "SyntaxHighlighter Settings"
|
55 |
msgstr "Impostazioni SyntaxHighlighter"
|
56 |
|
57 |
+
#: syntaxhighlighter.php:223
|
|
|
|
|
58 |
msgid "SyntaxHighlighter"
|
59 |
msgstr "SyntaxHighlighter"
|
60 |
|
61 |
+
#: syntaxhighlighter.php:254
|
62 |
+
msgid "Settings"
|
63 |
+
msgstr "Impostazioni"
|
64 |
+
|
65 |
+
#: syntaxhighlighter.php:542
|
66 |
+
msgid "show source"
|
67 |
+
msgstr "mostra sorgente"
|
68 |
|
69 |
+
#: syntaxhighlighter.php:543
|
70 |
msgid "view source"
|
71 |
msgstr "vedi sorgente"
|
72 |
|
73 |
+
#: syntaxhighlighter.php:544
|
74 |
msgid "copy to clipboard"
|
75 |
msgstr "copia negli appunti"
|
76 |
|
77 |
+
#: syntaxhighlighter.php:545
|
78 |
msgid "The code is in your clipboard now"
|
79 |
msgstr "Il codice é da ora nei tuoi appunti"
|
80 |
|
81 |
+
#: syntaxhighlighter.php:546
|
82 |
msgid "print"
|
83 |
msgstr "stampa"
|
84 |
|
85 |
+
#: syntaxhighlighter.php:547
|
86 |
msgid "?"
|
87 |
msgstr "info"
|
88 |
|
89 |
+
#: syntaxhighlighter.php:548
|
90 |
msgid ""
|
91 |
"SyntaxHighlighter\\n"
|
92 |
"\\n"
|
94 |
"SyntaxHighlighter\\n"
|
95 |
"\\n"
|
96 |
|
97 |
+
#: syntaxhighlighter.php:549
|
98 |
msgid "Can't find brush for: "
|
99 |
msgstr "Non é stato possibile trovare il file di sintassi per: "
|
100 |
|
101 |
+
#: syntaxhighlighter.php:550
|
102 |
msgid "Brush wasn't configured for html-script option: "
|
103 |
msgstr "Il file di sintassi non é stato configurato per l'opzione html-script"
|
104 |
|
105 |
+
#: syntaxhighlighter.php:833
|
|
|
|
|
|
|
|
|
106 |
msgid "Are you sure you want to reset your settings to the defaults?"
|
107 |
msgstr "Sei certo di volere ripristinare le impostazioni alle predefinite?"
|
108 |
|
109 |
+
#: syntaxhighlighter.php:837
|
110 |
+
msgid "Settings reset to defaults."
|
111 |
+
msgstr "Ripristina le impostazioni alle predefinite"
|
112 |
+
|
113 |
+
#: syntaxhighlighter.php:854
|
114 |
msgid "Color Theme"
|
115 |
msgstr "Colore del tema"
|
116 |
|
117 |
+
#: syntaxhighlighter.php:869
|
118 |
msgid "Defaults"
|
119 |
msgstr "Parametri predefiniti"
|
120 |
|
121 |
+
#: syntaxhighlighter.php:871
|
122 |
+
msgid "All of the settings below can be configured on a per-code box basis, but you can control the defaults of all code boxes here."
|
123 |
+
msgstr "Tutte le impostazioni qui sotto potranno essere configurate singolarmente comunque, sarà altresì possibile controllare qui tutte le caselle predefinite per i codici."
|
124 |
|
125 |
+
#: syntaxhighlighter.php:875
|
126 |
+
#: syntaxhighlighter.php:878
|
127 |
msgid "Miscellaneous"
|
128 |
msgstr "Varie"
|
129 |
|
130 |
+
#: syntaxhighlighter.php:880
|
131 |
msgid "Display line numbers"
|
132 |
msgstr "mostra la numerazione delle linee"
|
133 |
|
134 |
+
#: syntaxhighlighter.php:881
|
135 |
msgid "Display the toolbar"
|
136 |
msgstr "mostra la barra degli strumenti"
|
137 |
|
138 |
+
#: syntaxhighlighter.php:882
|
139 |
msgid "Automatically make URLs clickable"
|
140 |
msgstr "rendi gli URL cliccabili (in automatico)"
|
141 |
|
142 |
+
#: syntaxhighlighter.php:883
|
143 |
msgid "Collapse code boxes"
|
144 |
msgstr "comprimi le caselle del codice"
|
145 |
|
146 |
+
#: syntaxhighlighter.php:884
|
|
|
|
|
|
|
|
|
147 |
msgid "Use the light display mode, best for single lines of code"
|
148 |
msgstr "utilizza la modalità light del tema, ideale per le singole linee di codice"
|
149 |
|
150 |
+
#: syntaxhighlighter.php:885
|
151 |
msgid "Use smart tabs allowing tabs being used for alignment"
|
152 |
msgstr "utilizza le smart tabs in modo che le tag siano utilizzate per l'allineamento"
|
153 |
|
154 |
+
#: syntaxhighlighter.php:886
|
155 |
+
msgid "Wrap long lines (disabling this will make a scrollbar show instead)"
|
156 |
+
msgstr "Wrap per le righe di grandi dimensioni (disattivando l'opzione si otterrà una barra di scorrimento)"
|
157 |
+
|
158 |
+
#: syntaxhighlighter.php:887
|
159 |
+
msgid "Enable "HTML script" mode by default (see the bottom of this page for details). Checking this box is not recommended as this mode only works with certain languages."
|
160 |
+
msgstr "Abilita la modalità "HTML script" come predefinita (vedi i dettagli a fondo pagina). La selezione di questa casella non é raccomandabile poiché la funzione lavora solamente con alcuni linguaggi."
|
161 |
+
|
162 |
+
#: syntaxhighlighter.php:892
|
163 |
msgid "Additional CSS Class(es)"
|
164 |
msgstr "classe/i CSS addizionali"
|
165 |
|
166 |
+
#: syntaxhighlighter.php:896
|
167 |
msgid "Starting Line Number"
|
168 |
msgstr "Numero di inizio linea"
|
169 |
|
170 |
+
#: syntaxhighlighter.php:900
|
171 |
+
msgid "Line Number Padding"
|
172 |
+
msgstr "Padding numerazione linea"
|
173 |
|
174 |
+
#: syntaxhighlighter.php:905
|
175 |
+
msgid "Off"
|
176 |
+
msgstr "Spento"
|
177 |
+
|
178 |
+
#: syntaxhighlighter.php:906
|
179 |
+
msgid "Automatic"
|
180 |
+
msgstr "Automatico"
|
181 |
+
|
182 |
+
#: syntaxhighlighter.php:924
|
183 |
msgid "Tab Size"
|
184 |
msgstr "Dimensione tab"
|
185 |
|
186 |
+
#: syntaxhighlighter.php:930
|
187 |
msgid "Save Changes"
|
188 |
msgstr "Salva le modifiche"
|
189 |
|
190 |
+
#: syntaxhighlighter.php:931
|
191 |
msgid "Reset to Defaults"
|
192 |
msgstr "Ripristina alle predefinite"
|
193 |
|
194 |
+
#: syntaxhighlighter.php:936
|
195 |
msgid "Preview"
|
196 |
msgstr "Anteprima della casella"
|
197 |
|
198 |
+
#: syntaxhighlighter.php:938
|
199 |
msgid "Click "Save Changes" to update this preview."
|
200 |
msgstr "Clicca "Salva le modifiche" per visualizzare l'anteprima aggiornata."
|
201 |
|
202 |
+
#: syntaxhighlighter.php:950
|
203 |
+
msgid "PHP Code Example"
|
204 |
+
msgstr "Codice PHP di esempio"
|
205 |
+
|
206 |
+
#: syntaxhighlighter.php:952
|
207 |
+
msgid "Hello World!"
|
208 |
+
msgstr "Hello World!"
|
209 |
+
|
210 |
+
#: syntaxhighlighter.php:954
|
211 |
+
msgid "This line is highlighted."
|
212 |
+
msgstr "Questa linea é evidenziata."
|
213 |
+
|
214 |
+
#: syntaxhighlighter.php:957
|
215 |
+
msgid ""
|
216 |
+
"\t\tThis\tis\tan\r\n"
|
217 |
+
"\t\texample\tof\tsmart\r\n"
|
218 |
+
"\t\ttabs."
|
219 |
+
msgstr ""
|
220 |
+
"\t\tQuesto\té\tun\r\n"
|
221 |
+
"\t\tesempio\tdi\tsmart\r\n"
|
222 |
+
"\t\ttabs."
|
223 |
+
|
224 |
+
#: syntaxhighlighter.php:972
|
225 |
msgid "Shortcode Parameters"
|
226 |
msgstr "Parametri per lo shortcode"
|
227 |
|
228 |
+
#: syntaxhighlighter.php:974
|
229 |
#, php-format
|
230 |
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."
|
231 |
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."
|
232 |
|
233 |
+
#: syntaxhighlighter.php:977
|
234 |
#, php-format
|
235 |
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")."
|
236 |
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")."
|
237 |
|
238 |
+
#: syntaxhighlighter.php:978
|
239 |
#, php-format
|
240 |
msgid "%s — Toggle automatic URL linking."
|
241 |
msgstr "%s — Commutazione automatica collegamento ad un URL."
|
242 |
|
243 |
+
#: syntaxhighlighter.php:979
|
244 |
#, php-format
|
245 |
msgid "%s — Add an additional CSS class to the code box."
|
246 |
msgstr "%s — Aggiungi una classe CSS addizionale alla casella per il codice."
|
247 |
|
248 |
+
#: syntaxhighlighter.php:980
|
249 |
#, php-format
|
250 |
msgid "%s — Toggle collapsing the code box by default, requiring a click to expand it. Good for large code posts."
|
251 |
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."
|
252 |
|
253 |
+
#: syntaxhighlighter.php:981
|
254 |
#, php-format
|
255 |
msgid "%s — An interger specifying what number the first line should be (for the line numbering)."
|
256 |
msgstr "%s — Un numero intero per definire con quale numero abbia inizio la prima linea (per la numerazione)."
|
257 |
|
258 |
+
#: syntaxhighlighter.php:982
|
259 |
#, php-format
|
260 |
msgid "%s — Toggle the left-side line numbering."
|
261 |
msgstr "%s — Commutazione numerazione della linea nel lato sinistro."
|
262 |
|
263 |
+
#: syntaxhighlighter.php:983
|
264 |
#, php-format
|
265 |
msgid "%s — A comma-sperated list of line numbers to highlight."
|
266 |
msgstr "%s — Lista delle linee da evidenziare (numeri separati da una virgola)."
|
267 |
|
268 |
+
#: syntaxhighlighter.php:984
|
269 |
#, php-format
|
270 |
+
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. This only works with certain languages."
|
271 |
+
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. Questa funziona solamente per alcuni linguaggi."
|
272 |
|
273 |
+
#: syntaxhighlighter.php:985
|
274 |
#, php-format
|
275 |
+
msgid "%s — Toggle light mode which disables the gutter and toolbar all at once."
|
276 |
+
msgstr "%s — Commuta alla modalità light del tema disattivando contemporaneamente il gutter e la toolbar."
|
277 |
|
278 |
+
#: syntaxhighlighter.php:986
|
279 |
#, php-format
|
280 |
+
msgid "%s — Controls line number padding. Valid values are <code>false</code> (no padding), <code>true</code> (automatic padding), or an integer (forced padding)."
|
281 |
+
msgstr "%s — Controlla il padding per la linea di numerazione. I valori validi sono <code>false</code> (nessun padding), <code>true</code> (padding automatico) oppure un numero intero (padding forzato)."
|
282 |
|
283 |
+
#: syntaxhighlighter.php:987
|
284 |
#, php-format
|
285 |
msgid "%s — Toggle the toolbar containing the helpful buttons."
|
286 |
msgstr "%s — Commutazione toolbar contenente i pulsanti opzione."
|
287 |
|
288 |
+
#: syntaxhighlighter.php:988
|
289 |
+
#, php-format
|
290 |
+
msgid "%s — Toggle line wrapping."
|
291 |
+
msgstr "%s — Commuta il wrapping della riga."
|
292 |
+
|
293 |
+
#: syntaxhighlighter.php:991
|
294 |
msgid "Some example shortcodes:"
|
295 |
msgstr "Alcuni esempi di shortcode:"
|
296 |
|
297 |
+
#: syntaxhighlighter.php:994
|
298 |
+
#: syntaxhighlighter.php:995
|
299 |
+
#: syntaxhighlighter.php:996
|
300 |
+
#: syntaxhighlighter.php:997
|
301 |
msgid "your code here"
|
302 |
msgstr "inserisci qui il tuo codice"
|
303 |
|
304 |
+
#. Plugin Name of an extension
|
305 |
+
msgid "SyntaxHighlighter Evolved"
|
306 |
+
msgstr "SyntaxHighlighter Evolved"
|
307 |
|
308 |
#. Plugin URI of an extension
|
309 |
msgid "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/"
|
310 |
msgstr "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/"
|
311 |
|
312 |
#. Description of an extension
|
313 |
+
msgid "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 some code by <a href=\"http://wordpress.com/\">Andrew Ozz of Automattic</a>."
|
314 |
+
msgstr "Inserisci con semplicità il codice syntax-highlight nel tuo blog senza l'obbligo di doverlo modificare. Utilizza il <a href=\"http://alexgorbatchev.com/wiki/SyntaxHighlighter\">SyntaxHighlighter</a> v2.0.320 di Alex Gorbatchev ed un po' di codice da <a href=\"http://wordpress.com/\">Andrew Ozz di Automattic</a>."
|
315 |
|
316 |
#. Author of an extension
|
317 |
msgid "Viper007Bond"
|
321 |
msgid "http://www.viper007bond.com/"
|
322 |
msgstr "http://www.viper007bond.com/"
|
323 |
|
324 |
+
#~ msgid "expand source"
|
325 |
+
#~ msgstr "espandi sorgente"
|
326 |
+
#~ msgid "Show a ruler column along the top of the code box"
|
327 |
+
#~ msgstr ""
|
328 |
+
#~ "mostra in alto del box per il codice una riga graduata per le colonne"
|
329 |
+
#~ msgid "Font Size (Percentage)"
|
330 |
+
#~ msgstr "Dimensione font (percentuale)"
|
331 |
+
#~ msgid "%s — Toggle the column ruler at the top of the code box."
|
332 |
+
#~ msgstr ""
|
333 |
+
#~ "%s — Commuta la riga graduata posizionata nella parte superiore del "
|
334 |
+
#~ "box per il codice."
|
335 |
+
#~ msgid "Cheatin’ uh?"
|
336 |
+
#~ msgstr "Problemi! uh?"
|
337 |
+
|
readme.txt
CHANGED
@@ -1,26 +1,26 @@
|
|
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)
|
14 |
|
15 |
-
For a
|
16 |
|
17 |
-
|
18 |
|
19 |
-
|
20 |
|
21 |
== Installation ==
|
22 |
|
23 |
-
###
|
24 |
|
25 |
To upgrade from a previous version of this plugin, delete the entire folder and files from the previous version of the plugin and then follow the installation instructions below.
|
26 |
|
@@ -59,10 +59,44 @@ Make sure your theme's `footer.php` file has `<?php wp_footer(); ?>` somewhere i
|
|
59 |
|
60 |
== ChangeLog ==
|
61 |
|
62 |
-
**Version 2.
|
63 |
|
64 |
-
*
|
65 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
|
67 |
**Version 2.2.1**
|
68 |
|
1 |
=== SyntaxHighlighter Evolved ===
|
2 |
+
Contributors: Viper007Bond, Automattic
|
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. As seen on WordPress.com.
|
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).
|
14 |
|
15 |
+
For a live demo, see [this plugin's homepage](http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/).
|
16 |
|
17 |
+
For a list of supported languages (most widely used languages are supported), see the [WordPress.com support document](http://en.support.wordpress.com/code/posting-source-code/).
|
18 |
|
19 |
+
*As seen on WordPress.com.*
|
20 |
|
21 |
== Installation ==
|
22 |
|
23 |
+
###Upgrading From A Previous Version###
|
24 |
|
25 |
To upgrade from a previous version of this plugin, delete the entire folder and files from the previous version of the plugin and then follow the installation instructions below.
|
26 |
|
59 |
|
60 |
== ChangeLog ==
|
61 |
|
62 |
+
**Version 2.3.2**
|
63 |
|
64 |
+
* Allow `\0` inside of code posts for low-access users. Previously it was stripped by KSES. Also introduces new filter that can be used to escape other similar types of strings.
|
65 |
+
* Remove `min-height` CSS. I don't see the point of it and it's screwing it up in certain themes.
|
66 |
+
|
67 |
+
**Version 2.3.1**
|
68 |
+
|
69 |
+
* Additional CSS to help prevent themes from breaking SyntaxHighlighter (stopping `code { display: block; }`).
|
70 |
+
* Add a grey border to the default theme when line numbering is enabled.
|
71 |
+
* Italian transation update thanks to [gidibao](http://gidibao.net/).
|
72 |
+
* Minor code improvements.
|
73 |
+
|
74 |
+
**Version 2.3.0**
|
75 |
+
|
76 |
+
Major overhaul, mainly to extend flexibility so that this plugin could be used on WordPress.com without any more plugin code modification (only actions/filters are used instead to modify it).
|
77 |
+
|
78 |
+
* Updated SyntaxHighlighter package to v2.1.364. Highlights of the [changelog](http://alexgorbatchev.com/wiki/SyntaxHighlighter:Changes:2.1.364) include:
|
79 |
+
* ColdFusion brush (aliases: `coldfusion`, `cf`)
|
80 |
+
* Erlang brush (aliases: `erl`, `erlang`)
|
81 |
+
* Objective-C brush (aliases: `objc`, `obj-c`)
|
82 |
+
* Eclipse theme
|
83 |
+
* `padlinenumbers` parameter. Set it to `false` for no line number padding, `true` for automatic padding, or an integer (number) for forced padding.
|
84 |
+
* `rb` alias for Ruby
|
85 |
+
* Commenters can now use this plugin to post code.
|
86 |
+
* Plugin's shortcodes now work inside of the text widget again. Requires WordPress 2.9+ though.
|
87 |
+
* Overhaul of the TinyMCE plugin that assists in keeping your code sound when switching editor views. Thanks to Andrew Ozz!
|
88 |
+
* This plugin's stylesheets are now dynamically loaded. If they aren't needed, they aren't loaded.
|
89 |
+
* Lots of sanitization of shortcode attributes. Invalid keys/values are no longer used.
|
90 |
+
* New filter to control what shortcodes are registered. Used by WordPress.com to trim down the number of them.
|
91 |
+
* Saving of user's settings is now done using `register_setting()` instead of manually handing `$_POST`. Yay!
|
92 |
+
* By default, a post meta is used to mark posts as being encoded using the 2.x encoding format. This is bad for a site like WordPress.com. You can use the new `syntaxhighlighter_pre_getcodeformat` filter to return `1` or `2` (based on say `post_modified`). See `SyntaxHighlighter:get_code_format()` for more details. Don't forget to `remove_action( 'save_post', array(&$SyntaxHighlighter, 'mark_as_encoded'), 10, 2 );` to stop the post meta from being added.
|
93 |
+
* New `syntaxhighlighter_precode` filter to modify raw code before it's highlighted.
|
94 |
+
* New `syntaxhighlighter_democode` filter to modify example code on the settings page.
|
95 |
+
|
96 |
+
Localizations:
|
97 |
+
|
98 |
+
* Danish translation update thanks to [Georg S. Adamsen](http://wordpress.blogos.dk/).
|
99 |
+
* Chinese translation thanks to Hinker Liu. Will need updating for v2.3.0.
|
100 |
|
101 |
**Version 2.2.1**
|
102 |
|
syntaxhighlighter.php
CHANGED
@@ -4,8 +4,8 @@
|
|
4 |
|
5 |
Plugin Name: SyntaxHighlighter Evolved
|
6 |
Plugin URI: http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/
|
7 |
-
Version: 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 |
|
@@ -22,19 +22,21 @@ Thanks to:
|
|
22 |
|
23 |
class SyntaxHighlighter {
|
24 |
// All of these variables are private. Filters are provided for things that can be modified.
|
25 |
-
var $pluginver = '2.
|
26 |
-
var $agshver = '2.
|
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 |
-
|
37 |
-
|
38 |
|
39 |
// Load localization domain
|
40 |
load_plugin_textdomain( 'syntaxhighlighter', false, '/syntaxhighlighter/localization' );
|
@@ -43,15 +45,18 @@ class SyntaxHighlighter {
|
|
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-
|
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 );
|
@@ -67,51 +72,106 @@ class SyntaxHighlighter {
|
|
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 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
|
90 |
// Create list of brush aliases and map them to their real brushes
|
91 |
-
// The key is the
|
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 |
-
'
|
99 |
-
'
|
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',
|
@@ -122,6 +182,7 @@ class SyntaxHighlighter {
|
|
122 |
'py' => 'python',
|
123 |
'python' => 'python',
|
124 |
'rails' => 'ruby',
|
|
|
125 |
'ror' => 'ruby',
|
126 |
'ruby' => 'ruby',
|
127 |
'scala' => 'scala',
|
@@ -135,11 +196,19 @@ class SyntaxHighlighter {
|
|
135 |
'xhtml' => 'xml',
|
136 |
) );
|
137 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
// Create list of themes and their human readable names
|
139 |
-
// Plugins can add to this list
|
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' ),
|
@@ -147,45 +216,10 @@ class SyntaxHighlighter {
|
|
147 |
'none' => __( '[None]', 'syntaxhighlighter' ),
|
148 |
) );
|
149 |
|
150 |
-
//
|
151 |
-
$this->
|
152 |
-
'
|
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 |
|
@@ -195,6 +229,12 @@ class SyntaxHighlighter {
|
|
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');
|
@@ -209,7 +249,7 @@ class SyntaxHighlighter {
|
|
209 |
|
210 |
|
211 |
// Add a "Settings" link to the plugins page
|
212 |
-
function
|
213 |
static $this_plugin;
|
214 |
|
215 |
if( empty($this_plugin) )
|
@@ -222,25 +262,21 @@ class SyntaxHighlighter {
|
|
222 |
}
|
223 |
|
224 |
|
225 |
-
// Output list of shortcode tags for the TinyMCE plugin
|
226 |
-
function
|
227 |
-
$
|
228 |
-
$tags[] = 'sourcecode';
|
229 |
-
$tags[] = 'source';
|
230 |
-
$tags[] = 'code';
|
231 |
|
232 |
-
foreach ( $this->
|
233 |
-
$
|
234 |
|
235 |
echo "<script type='text/javascript'>\n";
|
236 |
-
echo " var syntaxHLcodes = '" . implode( '|', $
|
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 |
-
|
|
|
244 |
echo ' <style type="text/css">.syntaxhighlighter { font-size: 12px !important; }</style>' . "\n";
|
245 |
}
|
246 |
|
@@ -254,10 +290,7 @@ class SyntaxHighlighter {
|
|
254 |
remove_all_shortcodes();
|
255 |
|
256 |
// Register all of this plugin's shortcodes
|
257 |
-
|
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)
|
@@ -276,26 +309,39 @@ class SyntaxHighlighter {
|
|
276 |
}
|
277 |
|
278 |
|
279 |
-
// HTML entity encode the contents of shortcodes
|
280 |
function encode_shortcode_contents( $content ) {
|
281 |
-
$this->
|
282 |
-
return addslashes( $this->shortcode_hack( stripslashes( $content ), array(&$this, 'encode_shortcode_contents_callback') ) );
|
283 |
}
|
284 |
|
285 |
|
286 |
-
// HTML entity
|
287 |
-
function
|
288 |
-
|
289 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
-
|
|
|
|
|
299 |
}
|
300 |
|
301 |
|
@@ -303,7 +349,93 @@ class SyntaxHighlighter {
|
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
307 |
}
|
308 |
|
309 |
|
@@ -312,7 +444,8 @@ class SyntaxHighlighter {
|
|
312 |
if ( false == $this->encoded || 'revision' == $post->post_type )
|
313 |
return;
|
314 |
|
315 |
-
|
|
|
316 |
}
|
317 |
|
318 |
|
@@ -333,7 +466,7 @@ class SyntaxHighlighter {
|
|
333 |
|
334 |
$strings = array();
|
335 |
foreach ( $atts as $key => $value )
|
336 |
-
$strings[] = ( $quotes ) ? $key . '="' .
|
337 |
|
338 |
return ' ' . implode( ' ', $strings );
|
339 |
}
|
@@ -347,6 +480,8 @@ class SyntaxHighlighter {
|
|
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 |
|
@@ -356,9 +491,72 @@ class SyntaxHighlighter {
|
|
356 |
|
357 |
wp_print_scripts( $scripts );
|
358 |
|
|
|
359 |
echo "<script type='text/javascript'>\n";
|
360 |
-
echo "
|
361 |
-
echo "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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";
|
@@ -383,11 +581,20 @@ class SyntaxHighlighter {
|
|
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 (
|
390 |
-
echo " SyntaxHighlighter.defaults['
|
|
|
|
|
|
|
|
|
|
|
|
|
391 |
|
392 |
if ( 1 != $this->settings['smarttabs'] )
|
393 |
echo " SyntaxHighlighter.defaults['smart-tabs'] = false;\n";
|
@@ -401,8 +608,9 @@ class SyntaxHighlighter {
|
|
401 |
if ( 1 != $this->settings['wraplines'] )
|
402 |
echo " SyntaxHighlighter.defaults['wrap-lines'] = false;\n";
|
403 |
|
404 |
-
|
405 |
-
|
|
|
406 |
}
|
407 |
|
408 |
|
@@ -430,6 +638,12 @@ class SyntaxHighlighter {
|
|
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 );
|
@@ -439,22 +653,23 @@ class SyntaxHighlighter {
|
|
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'
|
444 |
-
'lang'
|
445 |
-
'autolinks'
|
446 |
-
'classname'
|
447 |
-
'collapse'
|
448 |
-
'firstline'
|
449 |
-
'
|
450 |
-
'
|
451 |
-
'
|
452 |
-
'
|
453 |
-
'
|
454 |
-
'
|
455 |
-
'
|
456 |
-
'
|
457 |
-
'
|
|
|
458 |
), $atts ) );
|
459 |
|
460 |
// Check for language shortcode tag such as [php]code[/php]
|
@@ -496,64 +711,146 @@ class SyntaxHighlighter {
|
|
496 |
$params[] = "brush: $lang;";
|
497 |
|
498 |
// Fix bug that prevents collapse from working if the toolbar is off
|
499 |
-
if (
|
500 |
$atts['toolbar'] = 'true';
|
501 |
$atts['light'] = 'false';
|
502 |
}
|
503 |
|
504 |
-
//
|
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 |
-
|
510 |
-
continue;
|
511 |
|
512 |
-
//
|
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 (
|
527 |
$this->usedbrushes['xml'] = true;
|
528 |
|
|
|
529 |
if ( 'highlight' == $key )
|
530 |
$params[] = "$key: [$value];";
|
531 |
else
|
532 |
$params[] = "$key: $value;";
|
533 |
}
|
534 |
|
535 |
-
$
|
536 |
-
$content .= ( get_post_meta( $post->ID, 'syntaxhighlighter_encoded', true ) ) ? $code : htmlspecialchars( $code );
|
537 |
-
$content .= '</pre>';
|
538 |
|
539 |
-
return $
|
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 |
-
|
554 |
-
var areyousure = confirm("<?php echo
|
555 |
if ( true != areyousure ) return false;
|
556 |
});
|
|
|
|
|
|
|
557 |
});
|
558 |
// ]]>
|
559 |
</script>
|
@@ -562,20 +859,19 @@ class SyntaxHighlighter {
|
|
562 |
<?php if ( function_exists('screen_icon') ) screen_icon(); ?>
|
563 |
<h2><?php _e( 'SyntaxHighlighter Settings', 'syntaxhighlighter' ); ?></h2>
|
564 |
|
565 |
-
<form method="post" action="
|
566 |
|
567 |
-
<?php
|
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="
|
576 |
<?php
|
577 |
foreach ( $this->themes as $theme => $name ) {
|
578 |
-
echo ' <option value="' .
|
579 |
selected( $this->settings['theme'], $theme );
|
580 |
echo '>' . htmlspecialchars($name) . "</option>\n";
|
581 |
}
|
@@ -587,7 +883,7 @@ class SyntaxHighlighter {
|
|
587 |
|
588 |
<h3><?php _e('Defaults', 'syntaxhighlighter'); ?></h3>
|
589 |
|
590 |
-
<p><?php _e('All of the settings below can
|
591 |
|
592 |
<table class="form-table">
|
593 |
<tr valign="top">
|
@@ -596,28 +892,52 @@ class SyntaxHighlighter {
|
|
596 |
<fieldset>
|
597 |
<legend class="hidden"><?php _e('Miscellaneous', 'syntaxhighlighter'); ?></legend>
|
598 |
|
599 |
-
<label for="syntaxhighlighter-gutter"><input name="
|
600 |
-
<label for="syntaxhighlighter-toolbar"><input name="
|
601 |
-
<label for="syntaxhighlighter-autolinks"><input name="
|
602 |
-
<label for="syntaxhighlighter-collapse"><input name="
|
603 |
-
<label for="syntaxhighlighter-
|
604 |
-
<label for="syntaxhighlighter-
|
605 |
-
<label for="syntaxhighlighter-
|
606 |
-
|
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="
|
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="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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="
|
621 |
</tr>
|
622 |
</table>
|
623 |
|
@@ -634,34 +954,33 @@ class SyntaxHighlighter {
|
|
634 |
|
635 |
<?php
|
636 |
|
637 |
-
|
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
|
651 |
|
652 |
-
<p>This line is highlighted
|
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 |
-
|
|
|
|
|
665 |
|
666 |
?>
|
667 |
|
@@ -669,7 +988,7 @@ class SyntaxHighlighter {
|
|
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="
|
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>
|
@@ -677,18 +996,18 @@ class SyntaxHighlighter {
|
|
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
|
682 |
-
<li><?php printf( __("%s —
|
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="
|
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"
|
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>
|
@@ -701,45 +1020,31 @@ class SyntaxHighlighter {
|
|
701 |
}
|
702 |
|
703 |
|
704 |
-
//
|
705 |
-
function
|
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 |
-
$
|
718 |
} else {
|
719 |
-
$settings
|
720 |
-
|
721 |
-
$settings['
|
722 |
-
|
723 |
-
$settings['
|
724 |
-
$settings['
|
725 |
-
$settings['
|
726 |
-
$settings['
|
727 |
-
$settings['
|
728 |
-
|
729 |
-
$settings['
|
730 |
-
|
731 |
-
|
732 |
-
$settings['classname'] = ( !empty($
|
733 |
-
$settings['firstline'] = (int) ( !empty($
|
734 |
-
$settings['tabsize'] = (int) ( !empty($
|
735 |
}
|
736 |
|
737 |
-
|
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 |
|
@@ -749,7 +1054,12 @@ class SyntaxHighlighter {
|
|
749 |
}
|
750 |
}
|
751 |
|
|
|
752 |
// Start this plugin once all other plugins are fully loaded
|
753 |
-
add_action( 'init', 'SyntaxHighlighter'
|
|
|
|
|
|
|
|
|
754 |
|
755 |
?>
|
4 |
|
5 |
Plugin Name: SyntaxHighlighter Evolved
|
6 |
Plugin URI: http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/
|
7 |
+
Version: 2.3.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 some code by <a href="http://wordpress.com/">Andrew Ozz of Automattic</a>.
|
9 |
Author: Viper007Bond
|
10 |
Author URI: http://www.viper007bond.com/
|
11 |
|
22 |
|
23 |
class SyntaxHighlighter {
|
24 |
// All of these variables are private. Filters are provided for things that can be modified.
|
25 |
+
var $pluginver = '2.3.2'; // Plugin version
|
26 |
+
var $agshver = '2.1.364'; // 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 $shortcodes = array(); // Array of shortcodes to use
|
31 |
var $themes = array(); // Array of themes
|
32 |
var $usedbrushes = array(); // Stores used brushes so we know what to output
|
33 |
var $encoded = false; // Used to mark that a character encode took place
|
34 |
+
var $codeformat = false; // If set, SyntaxHighlighter::get_code_format() will return this value
|
35 |
|
36 |
// Initalize the plugin by registering the hooks
|
37 |
function __construct() {
|
38 |
+
if ( !function_exists('esc_html') )
|
39 |
+
return;
|
40 |
|
41 |
// Load localization domain
|
42 |
load_plugin_textdomain( 'syntaxhighlighter', false, '/syntaxhighlighter/localization' );
|
45 |
wp_register_script( 'syntaxhighlighter-core', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shCore.js'), array(), $this->agshver );
|
46 |
wp_register_script( 'syntaxhighlighter-brush-as3', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushAS3.js'), array('syntaxhighlighter-core'), $this->agshver );
|
47 |
wp_register_script( 'syntaxhighlighter-brush-bash', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushBash.js'), array('syntaxhighlighter-core'), $this->agshver );
|
48 |
+
wp_register_script( 'syntaxhighlighter-brush-coldfusion', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushColdFusion.js'), array('syntaxhighlighter-core'), $this->agshver );
|
49 |
wp_register_script( 'syntaxhighlighter-brush-cpp', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushCpp.js'), array('syntaxhighlighter-core'), $this->agshver );
|
50 |
+
wp_register_script( 'syntaxhighlighter-brush-csharp', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushCSharp.js'), array('syntaxhighlighter-core'), $this->agshver );
|
51 |
wp_register_script( 'syntaxhighlighter-brush-css', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushCss.js'), array('syntaxhighlighter-core'), $this->agshver );
|
52 |
wp_register_script( 'syntaxhighlighter-brush-delphi', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushDelphi.js'), array('syntaxhighlighter-core'), $this->agshver );
|
53 |
wp_register_script( 'syntaxhighlighter-brush-diff', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushDiff.js'), array('syntaxhighlighter-core'), $this->agshver );
|
54 |
+
wp_register_script( 'syntaxhighlighter-brush-erlang', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushErlang.js'), array('syntaxhighlighter-core'), $this->agshver );
|
55 |
wp_register_script( 'syntaxhighlighter-brush-groovy', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushGroovy.js'), array('syntaxhighlighter-core'), $this->agshver );
|
|
|
56 |
wp_register_script( 'syntaxhighlighter-brush-java', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushJava.js'), array('syntaxhighlighter-core'), $this->agshver );
|
57 |
wp_register_script( 'syntaxhighlighter-brush-javafx', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushJavaFX.js'), array('syntaxhighlighter-core'), $this->agshver );
|
58 |
+
wp_register_script( 'syntaxhighlighter-brush-jscript', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushJScript.js'), array('syntaxhighlighter-core'), $this->agshver );
|
59 |
+
wp_register_script( 'syntaxhighlighter-brush-objc', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushObjC.js'), array('syntaxhighlighter-core'), $this->agshver );
|
60 |
wp_register_script( 'syntaxhighlighter-brush-perl', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushPerl.js'), array('syntaxhighlighter-core'), $this->agshver );
|
61 |
wp_register_script( 'syntaxhighlighter-brush-php', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushPhp.js'), array('syntaxhighlighter-core'), $this->agshver );
|
62 |
wp_register_script( 'syntaxhighlighter-brush-plain', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushPlain.js'), array('syntaxhighlighter-core'), $this->agshver );
|
72 |
wp_register_style( 'syntaxhighlighter-core', plugins_url('syntaxhighlighter/syntaxhighlighter/styles/shCore.css'), array(), $this->agshver );
|
73 |
wp_register_style( 'syntaxhighlighter-theme-default', plugins_url('syntaxhighlighter/syntaxhighlighter/styles/shThemeDefault.css'), array('syntaxhighlighter-core'), $this->agshver );
|
74 |
wp_register_style( 'syntaxhighlighter-theme-django', plugins_url('syntaxhighlighter/syntaxhighlighter/styles/shThemeDjango.css'), array('syntaxhighlighter-core'), $this->agshver );
|
75 |
+
wp_register_style( 'syntaxhighlighter-theme-eclipse', plugins_url('syntaxhighlighter/syntaxhighlighter/styles/shThemeEclipse.css'), array('syntaxhighlighter-core'), $this->agshver );
|
76 |
wp_register_style( 'syntaxhighlighter-theme-emacs', plugins_url('syntaxhighlighter/syntaxhighlighter/styles/shThemeEmacs.css'), array('syntaxhighlighter-core'), $this->agshver );
|
77 |
wp_register_style( 'syntaxhighlighter-theme-fadetogrey', plugins_url('syntaxhighlighter/syntaxhighlighter/styles/shThemeFadeToGrey.css'), array('syntaxhighlighter-core'), $this->agshver );
|
78 |
wp_register_style( 'syntaxhighlighter-theme-midnight', plugins_url('syntaxhighlighter/syntaxhighlighter/styles/shThemeMidnight.css'), array('syntaxhighlighter-core'), $this->agshver );
|
79 |
wp_register_style( 'syntaxhighlighter-theme-rdark', plugins_url('syntaxhighlighter/syntaxhighlighter/styles/shThemeRDark.css'), array('syntaxhighlighter-core'), $this->agshver );
|
80 |
|
81 |
+
|
82 |
+
// Create array of default settings (you can use the filter to modify these)
|
83 |
+
$this->defaultsettings = (array) apply_filters( 'syntaxhighlighter_defaultsettings', array(
|
84 |
+
'theme' => 'default',
|
85 |
+
'autolinks' => 1,
|
86 |
+
'classname' => '',
|
87 |
+
'collapse' => 0,
|
88 |
+
'firstline' => 1,
|
89 |
+
'gutter' => 1,
|
90 |
+
'htmlscript' => 0,
|
91 |
+
'light' => 0,
|
92 |
+
'padlinenumbers' => 'true',
|
93 |
+
'smarttabs' => 1,
|
94 |
+
'tabsize' => 4,
|
95 |
+
'toolbar' => 1,
|
96 |
+
'wraplines' => 1,
|
97 |
+
) );
|
98 |
+
|
99 |
+
// Create the settings array by merging the user's settings and the defaults
|
100 |
+
$usersettings = (array) get_option('syntaxhighlighter_settings');
|
101 |
+
$this->settings = wp_parse_args( $usersettings, $this->defaultsettings );
|
102 |
+
|
103 |
+
|
104 |
+
// Register generic hooks
|
105 |
+
add_filter( 'the_content', array(&$this, 'parse_shortcodes'), 7 );
|
106 |
+
add_action( 'admin_menu', array(&$this, 'register_settings_page') ); // Not is_admin() only for my admin bar plugin + others
|
107 |
+
|
108 |
+
// Register comment hooks
|
109 |
+
add_filter( 'comment_edit_pre', array(&$this, 'decode_shortcode_contents'), 1 );
|
110 |
+
add_filter( 'pre_comment_content', array(&$this, 'encode_shortcode_contents_slashed'), 1 );
|
111 |
+
add_filter( 'comment_text', array(&$this, 'parse_shortcodes_comment'), 7 );
|
112 |
+
|
113 |
+
// Register widget hooks
|
114 |
+
// Requires change added in WordPress 2.9
|
115 |
+
if ( class_exists('WP_Embed') ) {
|
116 |
+
add_filter( 'widget_text', array(&$this, 'widget_text_output'), 7, 2 );
|
117 |
+
add_filter( 'widget_update_callback', array(&$this, 'widget_text_save'), 1, 4 );
|
118 |
+
add_filter( 'widget_form_callback', array(&$this, 'widget_text_form'), 1, 2 );
|
119 |
+
}
|
120 |
+
|
121 |
+
// Frontend-only stuff
|
122 |
+
if ( !is_admin() ) {
|
123 |
+
add_action( 'wp_footer', array(&$this, 'maybe_output_scripts'), 15 );
|
124 |
+
|
125 |
+
// No longer works since JS adds CSS after this
|
126 |
+
// Perhaps it's better if the code fontsize matches the blog fontsize...
|
127 |
+
//add_action( 'wp_head', array(&$this, 'enforce_font_size') );
|
128 |
+
}
|
129 |
+
|
130 |
+
// Admin-only stuff
|
131 |
+
if ( is_admin() ) {
|
132 |
+
add_action( 'admin_init', array(&$this, 'register_setting') );
|
133 |
+
add_action( 'admin_head', array(&$this, 'output_shortcodes_for_tinymce') );
|
134 |
+
add_action( 'admin_footer', array(&$this, 'maybe_output_scripts'), 15 ); // For comments
|
135 |
+
add_filter( 'mce_external_plugins', array(&$this, 'add_tinymce_plugin') );
|
136 |
+
add_filter( 'tiny_mce_version', array(&$this, 'break_tinymce_cache') );
|
137 |
+
add_filter( 'the_editor_content', array(&$this, 'the_editor_content'), 1 );
|
138 |
+
add_filter( 'content_save_pre', array(&$this, 'encode_shortcode_contents_slashed_noajax'), 1 );
|
139 |
+
add_filter( 'save_post', array(&$this, 'mark_as_encoded'), 10, 2 );
|
140 |
+
add_filter( 'plugin_action_links', array(&$this, 'settings_link'), 10, 2 );
|
141 |
+
}
|
142 |
+
|
143 |
|
144 |
// Create list of brush aliases and map them to their real brushes
|
145 |
+
// The key is the language alias
|
146 |
// The value is the script handle suffix: syntaxhighlighter-brush-ThisBitHere (your plugin needs to register the script itself)
|
147 |
+
$this->brushes = (array) apply_filters( 'syntaxhighlighter_brushes', array(
|
148 |
'as3' => 'as3',
|
149 |
'actionscript3' => 'as3',
|
150 |
'bash' => 'bash',
|
151 |
'shell' => 'bash',
|
152 |
+
'coldfusion' => 'coldfusion',
|
153 |
+
'cf' => 'coldfusion',
|
154 |
'cpp' => 'cpp',
|
155 |
'c' => 'cpp',
|
156 |
+
'c-sharp' => 'csharp',
|
157 |
+
'csharp' => 'csharp',
|
158 |
'css' => 'css',
|
159 |
'delphi' => 'delphi',
|
160 |
'pas' => 'delphi',
|
161 |
'pascal' => 'delphi',
|
162 |
'diff' => 'diff',
|
163 |
'patch' => 'diff',
|
164 |
+
'erl' => 'erlang',
|
165 |
+
'erlang' => 'erlang',
|
166 |
'groovy' => 'groovy',
|
|
|
|
|
|
|
167 |
'java' => 'java',
|
168 |
'jfx' => 'javafx',
|
169 |
'javafx' => 'javafx',
|
170 |
+
'js' => 'jscript',
|
171 |
+
'jscript' => 'jscript',
|
172 |
+
'javascript' => 'jscript',
|
173 |
+
'objc' => 'objc',
|
174 |
+
'obj-c' => 'objc',
|
175 |
'perl' => 'perl',
|
176 |
'pl' => 'perl',
|
177 |
'php' => 'php',
|
182 |
'py' => 'python',
|
183 |
'python' => 'python',
|
184 |
'rails' => 'ruby',
|
185 |
+
'rb' => 'ruby',
|
186 |
'ror' => 'ruby',
|
187 |
'ruby' => 'ruby',
|
188 |
'scala' => 'scala',
|
196 |
'xhtml' => 'xml',
|
197 |
) );
|
198 |
|
199 |
+
// Create a list of shortcodes to use. You can use the filter to add/remove ones.
|
200 |
+
// If the language/lang parameter is left out, it's assumed the shortcode name is the language.
|
201 |
+
// If that's invalid, then "plain" is used.
|
202 |
+
$this->shortcodes = array( 'sourcecode', 'source', 'code' );
|
203 |
+
$this->shortcodes = array_merge( $this->shortcodes, array_keys( $this->brushes ) );
|
204 |
+
$this->shortcodes = (array) apply_filters( 'syntaxhighlighter_shortcodes', $this->shortcodes );
|
205 |
+
|
206 |
// Create list of themes and their human readable names
|
207 |
+
// Plugins can add to this list: http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/adding-a-new-theme/
|
208 |
+
$this->themes = (array) apply_filters( 'syntaxhighlighter_themes', array(
|
209 |
'default' => __( 'Default', 'syntaxhighlighter' ),
|
210 |
'django' => __( 'Django', 'syntaxhighlighter' ),
|
211 |
+
'eclipse' => __( 'Eclipse', 'syntaxhighlighter' ),
|
212 |
'emacs' => __( 'Emacs', 'syntaxhighlighter' ),
|
213 |
'fadetogrey' => __( 'Fade to Grey', 'syntaxhighlighter' ),
|
214 |
'midnight' => __( 'Midnight', 'syntaxhighlighter' ),
|
216 |
'none' => __( '[None]', 'syntaxhighlighter' ),
|
217 |
) );
|
218 |
|
219 |
+
// Other special characters that need to be encoded before going into the database (namely to work around kses)
|
220 |
+
$this->specialchars = (array) apply_filters( 'syntaxhighlighter_specialchars', array(
|
221 |
+
'\0' => '\0',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
222 |
) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
223 |
}
|
224 |
|
225 |
|
229 |
}
|
230 |
|
231 |
|
232 |
+
// Register the plugin's setting
|
233 |
+
function register_setting() {
|
234 |
+
register_setting( 'syntaxhighlighter_settings', 'syntaxhighlighter_settings', array(&$this, 'validate_settings') );
|
235 |
+
}
|
236 |
+
|
237 |
+
|
238 |
// Add the custom TinyMCE plugin which wraps plugin shortcodes in <pre> in TinyMCE
|
239 |
function add_tinymce_plugin( $plugins ) {
|
240 |
$plugins['syntaxhighlighter'] = plugins_url('syntaxhighlighter/syntaxhighlighter_mce.js');
|
249 |
|
250 |
|
251 |
// Add a "Settings" link to the plugins page
|
252 |
+
function settings_link( $links, $file ) {
|
253 |
static $this_plugin;
|
254 |
|
255 |
if( empty($this_plugin) )
|
262 |
}
|
263 |
|
264 |
|
265 |
+
// Output list of shortcode tags for the TinyMCE plugin
|
266 |
+
function output_shortcodes_for_tinymce() {
|
267 |
+
$shortcodes = array();
|
|
|
|
|
|
|
268 |
|
269 |
+
foreach ( $this->shortcodes as $shortcode )
|
270 |
+
$shortcodes[] = preg_quote( $shortcode );
|
271 |
|
272 |
echo "<script type='text/javascript'>\n";
|
273 |
+
echo " var syntaxHLcodes = '" . implode( '|', $shortcodes ) . "';\n";
|
274 |
echo "</script>\n";
|
|
|
|
|
275 |
}
|
276 |
|
277 |
|
278 |
+
// Additional CSS for the front end (to ensure themes don't screw too much with the code)
|
279 |
+
function enforce_font_size() {
|
280 |
echo ' <style type="text/css">.syntaxhighlighter { font-size: 12px !important; }</style>' . "\n";
|
281 |
}
|
282 |
|
290 |
remove_all_shortcodes();
|
291 |
|
292 |
// Register all of this plugin's shortcodes
|
293 |
+
foreach ( $this->shortcodes as $shortcode )
|
|
|
|
|
|
|
294 |
add_shortcode( $shortcode, $callback );
|
295 |
|
296 |
// Do the shortcodes (only this plugins's are registered)
|
309 |
}
|
310 |
|
311 |
|
312 |
+
// HTML entity encode the contents of shortcodes
|
313 |
function encode_shortcode_contents( $content ) {
|
314 |
+
return $this->shortcode_hack( $content, array(&$this, 'encode_shortcode_contents_callback') );
|
|
|
315 |
}
|
316 |
|
317 |
|
318 |
+
// HTML entity encode the contents of shortcodes. Expects slashed content.
|
319 |
+
function encode_shortcode_contents_slashed( $content ) {
|
320 |
+
return addslashes( $this->encode_shortcode_contents( stripslashes( $content ) ) );
|
321 |
+
}
|
322 |
+
|
323 |
+
|
324 |
+
// HTML entity encode the contents of shortcodes. Expects slashed content. Aborts if AJAX.
|
325 |
+
function encode_shortcode_contents_slashed_noajax( $content ) {
|
326 |
+
// Post quick edits aren't decoded for display, so we don't need to encode them (again)
|
327 |
+
if ( defined('DOING_AJAX') && DOING_AJAX )
|
328 |
return $content;
|
329 |
|
330 |
+
return $this->encode_shortcode_contents_slashed( $content );
|
331 |
+
}
|
332 |
+
|
333 |
+
|
334 |
+
// HTML entity decode the contents of shortcodes
|
335 |
+
function decode_shortcode_contents( $content ) {
|
336 |
return $this->shortcode_hack( $content, array(&$this, 'decode_shortcode_contents_callback') );
|
337 |
}
|
338 |
|
339 |
|
340 |
// The callback function for SyntaxHighlighter::encode_shortcode_contents()
|
341 |
function encode_shortcode_contents_callback( $atts, $code = '', $tag = false ) {
|
342 |
+
$this->encoded = true;
|
343 |
+
$code = str_replace( array_keys($this->specialchars), array_values($this->specialchars), htmlspecialchars( $code ) );
|
344 |
+
return '[' . $tag . $this->atts2string( $atts ) . "]{$code}[/$tag]";
|
345 |
}
|
346 |
|
347 |
|
349 |
// Shortcode attribute values need to not be quoted with TinyMCE disabled for some reason (weird bug)
|
350 |
function decode_shortcode_contents_callback( $atts, $code = '', $tag = false ) {
|
351 |
$quotes = ( user_can_richedit() ) ? true : false;
|
352 |
+
$code = str_replace( array_values($this->specialchars), array_keys($this->specialchars), htmlspecialchars_decode( $code ) );
|
353 |
+
return '[' . $tag . $this->atts2string( $atts, $quotes ) . "]{$code}[/$tag]";
|
354 |
+
}
|
355 |
+
|
356 |
+
|
357 |
+
// Dynamically format the post content for the edit form
|
358 |
+
function the_editor_content( $content ) {
|
359 |
+
global $post;
|
360 |
+
|
361 |
+
// New code format (stored encoded in database)
|
362 |
+
if ( 2 == $this->get_code_format( $post ) ) {
|
363 |
+
// If TinyMCE is disabled or the HTML tab is set to be displayed first, we need to decode the HTML
|
364 |
+
if ( !user_can_richedit() || 'html' == wp_default_editor() )
|
365 |
+
$content = $this->decode_shortcode_contents( $content );
|
366 |
+
}
|
367 |
+
|
368 |
+
// Old code format (stored raw in database)
|
369 |
+
else {
|
370 |
+
// If TinyMCE is enabled and is set to be displayed first, we need to encode the HTML
|
371 |
+
if ( user_can_richedit() && 'html' != wp_default_editor() )
|
372 |
+
$content = $this->encode_shortcode_contents( $content );
|
373 |
+
}
|
374 |
+
|
375 |
+
return $content;
|
376 |
+
}
|
377 |
+
|
378 |
+
|
379 |
+
// Run SyntaxHighlighter::encode_shortcode_contents() on the contents of the text widget
|
380 |
+
function widget_text_save( $instance, $new_instance, $old_instance, $widgetclass ) {
|
381 |
+
if ( 'text' == $widgetclass->id_base ) {
|
382 |
+
// Re-save the widget settings but this time with the shortcode contents encoded
|
383 |
+
$new_instance['text'] = $this->encode_shortcode_contents( $new_instance['text'] );
|
384 |
+
$instance = $widgetclass->update( $new_instance, $old_instance );
|
385 |
+
|
386 |
+
// And flag it as encoded
|
387 |
+
$instance['syntaxhighlighter_encoded'] = true;
|
388 |
+
}
|
389 |
+
|
390 |
+
return $instance;
|
391 |
+
}
|
392 |
+
|
393 |
+
|
394 |
+
// Run SyntaxHighlighter::decode_shortcode_contents_callback() on the contents of the text widget form
|
395 |
+
function widget_text_form( $instance, $widgetclass ) {
|
396 |
+
if ( 'text' == $widgetclass->id_base && !empty($instance['syntaxhighlighter_encoded']) ) {
|
397 |
+
$instance['text'] = $this->shortcode_hack( $instance['text'], array(&$this, 'decode_shortcode_contents_callback') );
|
398 |
+
}
|
399 |
+
|
400 |
+
return $instance;
|
401 |
+
}
|
402 |
+
|
403 |
+
|
404 |
+
// Run SyntaxHighlighter::parse_shortcodes() on the contents of a text widget
|
405 |
+
function widget_text_output( $content, $instance = false ) {
|
406 |
+
$this->codeformat = ( false === $instance || empty($instance['syntaxhighlighter_encoded']) ) ? 1 : 2;
|
407 |
+
$content = $this->parse_shortcodes( $content );
|
408 |
+
$this->codeformat = false;
|
409 |
+
|
410 |
+
return $content;
|
411 |
+
}
|
412 |
+
|
413 |
+
|
414 |
+
// Run SyntaxHighlighter::parse_shortcodes() on the contents of a comment
|
415 |
+
function parse_shortcodes_comment( $content ) {
|
416 |
+
$this->codeformat = 2;
|
417 |
+
$content = $this->parse_shortcodes( $content );
|
418 |
+
$this->codeformat = false;
|
419 |
+
|
420 |
+
return $content;
|
421 |
+
}
|
422 |
+
|
423 |
+
|
424 |
+
// This function determines what version of SyntaxHighlighter was used when the post was written
|
425 |
+
// This is because the code was stored differently for different versions of SyntaxHighlighter
|
426 |
+
function get_code_format( $post ) {
|
427 |
+
if ( false !== $this->codeformat )
|
428 |
+
return $this->codeformat;
|
429 |
+
|
430 |
+
if ( empty($post) )
|
431 |
+
$post = new stdClass();
|
432 |
+
|
433 |
+
if ( null !== $version = apply_filters( 'syntaxhighlighter_pre_getcodeformat', null, $post ) )
|
434 |
+
return $version;
|
435 |
+
|
436 |
+
$version = ( empty($post->ID) || get_post_meta( $post->ID, '_syntaxhighlighter_encoded', true ) || get_post_meta( $post->ID, 'syntaxhighlighter_encoded', true ) ) ? 2 : 1;
|
437 |
+
|
438 |
+
return apply_filters( 'syntaxhighlighter_getcodeformat', $version, $post );
|
439 |
}
|
440 |
|
441 |
|
444 |
if ( false == $this->encoded || 'revision' == $post->post_type )
|
445 |
return;
|
446 |
|
447 |
+
delete_post_meta( $post_ID, 'syntaxhighlighter_encoded' ); // Previously used
|
448 |
+
add_post_meta( $post_ID, '_syntaxhighlighter_encoded', true, true );
|
449 |
}
|
450 |
|
451 |
|
466 |
|
467 |
$strings = array();
|
468 |
foreach ( $atts as $key => $value )
|
469 |
+
$strings[] = ( $quotes ) ? $key . '="' . esc_attr( $value ) . '"' : $key . '=' . esc_attr( $value );
|
470 |
|
471 |
return ' ' . implode( ' ', $strings );
|
472 |
}
|
480 |
|
481 |
// Output any needed scripts. This is meant for the footer.
|
482 |
function maybe_output_scripts() {
|
483 |
+
global $wp_styles;
|
484 |
+
|
485 |
if ( empty($this->usedbrushes) )
|
486 |
return;
|
487 |
|
491 |
|
492 |
wp_print_scripts( $scripts );
|
493 |
|
494 |
+
// Stylesheets can't be in the footer, so inject them via Javascript
|
495 |
echo "<script type='text/javascript'>\n";
|
496 |
+
echo " (function(){\n";
|
497 |
+
echo " var corecss = document.createElement('link');\n";
|
498 |
+
echo " var themecss = document.createElement('link');\n";
|
499 |
+
|
500 |
+
if ( !is_a($wp_styles, 'WP_Styles') )
|
501 |
+
$wp_styles = new WP_Styles();
|
502 |
+
|
503 |
+
$needcore = false;
|
504 |
+
if ( 'none' == $this->settings['theme'] ) {
|
505 |
+
$needcore = true;
|
506 |
+
} else {
|
507 |
+
$theme = ( !empty($this->themes[$this->settings['theme']]) ) ? strtolower($this->settings['theme']) : $this->defaultsettings['theme'];
|
508 |
+
$theme = 'syntaxhighlighter-theme-' . $theme;
|
509 |
+
|
510 |
+
// See if the requested theme has been registered
|
511 |
+
if ( !empty($wp_styles) && !empty($wp_styles->registered) && !empty($wp_styles->registered[$theme]) && !empty($wp_styles->registered[$theme]->src) ) {
|
512 |
+
|
513 |
+
// Users can register their own stylesheet and may opt to not load the core stylesheet if they wish for some reason
|
514 |
+
if ( is_array($wp_styles->registered[$theme]->deps) && in_array( 'syntaxhighlighter-core', $wp_styles->registered[$theme]->deps ) )
|
515 |
+
$needcore = true;
|
516 |
+
}
|
517 |
+
|
518 |
+
// Otherwise use the default theme
|
519 |
+
else {
|
520 |
+
$theme = 'syntaxhighlighter-theme-' . $this->defaultsettings['theme'];
|
521 |
+
$needcore = true;
|
522 |
+
}
|
523 |
+
}
|
524 |
+
|
525 |
+
if ( $needcore && !empty($wp_styles) && !empty($wp_styles->registered) && !empty($wp_styles->registered['syntaxhighlighter-core']) && !empty($wp_styles->registered['syntaxhighlighter-core']->src) ) :
|
526 |
+
$corecssurl = add_query_arg( 'ver', $this->agshver, $wp_styles->registered['syntaxhighlighter-core']->src );
|
527 |
+
$corecssurl = apply_filters( 'syntaxhighlighter_csscoreurl', $corecssurl );
|
528 |
+
?>
|
529 |
+
var corecssurl = "<?php echo esc_js( $corecssurl ); ?>";
|
530 |
+
if ( corecss.setAttribute ) {
|
531 |
+
corecss.setAttribute( "rel", "stylesheet" );
|
532 |
+
corecss.setAttribute( "type", "text/css" );
|
533 |
+
corecss.setAttribute( "href", corecssurl );
|
534 |
+
} else {
|
535 |
+
corecss.rel = "stylesheet";
|
536 |
+
corecss.href = corecssurl;
|
537 |
+
}
|
538 |
+
document.getElementsByTagName("head")[0].appendChild(corecss);
|
539 |
+
<?php
|
540 |
+
endif; // Endif $needcore
|
541 |
+
|
542 |
+
if ( 'none' != $this->settings['theme'] ) : ?>
|
543 |
+
var themecssurl = "<?php echo esc_js( apply_filters( 'syntaxhighlighter_cssthemeurl', add_query_arg( 'ver', $this->agshver, $wp_styles->registered[$theme]->src ) ) ); ?>";
|
544 |
+
if ( themecss.setAttribute ) {
|
545 |
+
themecss.setAttribute( "rel", "stylesheet" );
|
546 |
+
themecss.setAttribute( "type", "text/css" );
|
547 |
+
themecss.setAttribute( "href", themecssurl );
|
548 |
+
} else {
|
549 |
+
themecss.rel = "stylesheet";
|
550 |
+
themecss.href = themecssurl;
|
551 |
+
}
|
552 |
+
document.getElementsByTagName("head")[0].appendChild(themecss);
|
553 |
+
<?php
|
554 |
+
endif; // Endif none != theme
|
555 |
+
|
556 |
+
echo " })();\n";
|
557 |
+
|
558 |
+
echo " SyntaxHighlighter.config.clipboardSwf = '" . esc_js( apply_filters( 'syntaxhighlighter_clipboardurl', plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/clipboard.swf') ) ) . "';\n";
|
559 |
+
echo " SyntaxHighlighter.config.strings.expandSource = '" . $this->js_escape_singlequotes( __( 'show source', 'syntaxhighlighter' ) ) . "';\n";
|
560 |
echo " SyntaxHighlighter.config.strings.viewSource = '" . $this->js_escape_singlequotes( __( 'view source', 'syntaxhighlighter' ) ) . "';\n";
|
561 |
echo " SyntaxHighlighter.config.strings.copyToClipboard = '" . $this->js_escape_singlequotes( __( 'copy to clipboard', 'syntaxhighlighter' ) ) . "';\n";
|
562 |
echo " SyntaxHighlighter.config.strings.copyToClipboardConfirmation = '" . $this->js_escape_singlequotes( __( 'The code is in your clipboard now', 'syntaxhighlighter' ) ) . "';\n";
|
581 |
if ( 1 != $this->settings['gutter'] )
|
582 |
echo " SyntaxHighlighter.defaults['gutter'] = false;\n";
|
583 |
|
584 |
+
//if ( 1 == $this->settings['htmlscript'] )
|
585 |
+
// echo " SyntaxHighlighter.defaults['html-script'] = true;\n";
|
586 |
+
|
587 |
if ( 1 == $this->settings['light'] )
|
588 |
echo " SyntaxHighlighter.defaults['light'] = true;\n";
|
589 |
|
590 |
+
if ( 'true' != $this->settings['padlinenumbers'] ) {
|
591 |
+
echo " SyntaxHighlighter.defaults['pad-line-numbers'] = ";
|
592 |
+
if ( 'false' == $this->settings['padlinenumbers'] )
|
593 |
+
echo 'false';
|
594 |
+
else
|
595 |
+
echo (int) $this->settings['padlinenumbers'];
|
596 |
+
echo ";\n";
|
597 |
+
}
|
598 |
|
599 |
if ( 1 != $this->settings['smarttabs'] )
|
600 |
echo " SyntaxHighlighter.defaults['smart-tabs'] = false;\n";
|
608 |
if ( 1 != $this->settings['wraplines'] )
|
609 |
echo " SyntaxHighlighter.defaults['wrap-lines'] = false;\n";
|
610 |
|
611 |
+
?> SyntaxHighlighter.all();
|
612 |
+
</script>
|
613 |
+
<?php
|
614 |
}
|
615 |
|
616 |
|
638 |
if ( false === $tag || empty($code) )
|
639 |
return $code;
|
640 |
|
641 |
+
// Avoid PHP notices
|
642 |
+
if ( !isset($post) )
|
643 |
+
$post = null;
|
644 |
+
|
645 |
+
$code = apply_filters( 'syntaxhighlighter_precode', $code, $atts, $tag );
|
646 |
+
|
647 |
// Error fixing for [tag="language"]
|
648 |
if ( isset($atts[0]) ) {
|
649 |
$atts = $this->attributefix( $atts );
|
653 |
|
654 |
// Default out all of the available parameters to "false" (easy way to check if they're set or not)
|
655 |
// Note this isn't the same as if the user passes the string "false" to the shortcode
|
656 |
+
$atts = (array) apply_filters( 'syntaxhighlighter_shortcodeatts', shortcode_atts( array(
|
657 |
+
'language' => false,
|
658 |
+
'lang' => false,
|
659 |
+
'autolinks' => false,
|
660 |
+
'classname' => false,
|
661 |
+
'collapse' => false,
|
662 |
+
'firstline' => false,
|
663 |
+
'fontsize' => false,
|
664 |
+
'gutter' => false,
|
665 |
+
'highlight' => false,
|
666 |
+
'htmlscript' => false,
|
667 |
+
'light' => false,
|
668 |
+
'padlinenumbers' => false,
|
669 |
+
'smarttabs' => false,
|
670 |
+
'tabsize' => false,
|
671 |
+
'toolbar' => false,
|
672 |
+
'wraplines' => false,
|
673 |
), $atts ) );
|
674 |
|
675 |
// Check for language shortcode tag such as [php]code[/php]
|
711 |
$params[] = "brush: $lang;";
|
712 |
|
713 |
// Fix bug that prevents collapse from working if the toolbar is off
|
714 |
+
if ( 'true' == $atts['collapse'] || '1' === $atts['collapse'] ) {
|
715 |
$atts['toolbar'] = 'true';
|
716 |
$atts['light'] = 'false';
|
717 |
}
|
718 |
|
719 |
+
// Automatically enable "htmlscript" for certain brushes
|
720 |
//if ( false === $atts['html-script'] && in_array( $lang, apply_filters( 'syntaxhighlighter_htmlscriptbrushes', array( 'php' ) ) ) )
|
721 |
// $atts['html-script'] = 'true';
|
722 |
|
723 |
+
// Sanitize row highlights
|
724 |
+
if ( false != $atts['highlight'] ) {
|
725 |
+
if ( false === strpos( $atts['highlight'], ',' ) ) {
|
726 |
+
$atts['highlight'] = (int) $atts['highlight'];
|
727 |
+
} else {
|
728 |
+
$highlights = explode( ',', $atts['highlight'] );
|
729 |
+
|
730 |
+
foreach ( $highlights as $key => $highlight ) {
|
731 |
+
$highlights[$key] = (int) $highlight;
|
732 |
+
if ( empty($highlights[$key]) )
|
733 |
+
unset($highlights[$key]);
|
734 |
+
}
|
735 |
+
|
736 |
+
$atts['highlight'] = implode( ',', $highlights );
|
737 |
+
}
|
738 |
+
}
|
739 |
+
if ( empty($atts['highlight']) )
|
740 |
+
$atts['highlight'] = false;
|
741 |
+
|
742 |
+
// Sanitize the "classname" parameter
|
743 |
+
if ( false != $atts['classname'] )
|
744 |
+
$atts['classname'] = trim( preg_replace( '/[^a-zA-Z0-9 _-]/i', '', $atts['classname'] ) );
|
745 |
+
|
746 |
+
// Parameter renaming (the shortcode API doesn't like parameter names with dashes)
|
747 |
+
$rename_map = array(
|
748 |
+
'autolinks' => 'auto-links',
|
749 |
+
'classname' => 'class-name',
|
750 |
+
'firstline' => 'first-line',
|
751 |
+
'fontsize' => 'font-size',
|
752 |
+
'htmlscript' => 'html-script',
|
753 |
+
'padlinenumbers' => 'pad-line-numbers',
|
754 |
+
'smarttabs' => 'smart-tabs',
|
755 |
+
'tabsize' => 'tab-size',
|
756 |
+
'wraplines' => 'wrap-lines',
|
757 |
+
);
|
758 |
+
|
759 |
+
// Allowed configuration parameters and their type
|
760 |
+
// Use the proper names (see above)
|
761 |
+
$allowed_atts = (array) apply_filters( 'syntaxhighlighter_allowedatts', array(
|
762 |
+
'auto-links' => 'boolean',
|
763 |
+
'class-name' => 'other',
|
764 |
+
'collapse' => 'boolean',
|
765 |
+
'first-line' => 'integer',
|
766 |
+
'font-size' => 'integer',
|
767 |
+
'gutter' => 'boolean',
|
768 |
+
'highlight' => 'other',
|
769 |
+
'html-script' => 'boolean',
|
770 |
+
'light' => 'boolean',
|
771 |
+
'pad-line-numbers' => 'other',
|
772 |
+
'smart-tabs' => 'boolean',
|
773 |
+
'tab-size' => 'integer',
|
774 |
+
'toolbar' => 'boolean',
|
775 |
+
'wrap-lines' => 'boolean',
|
776 |
+
) );
|
777 |
+
|
778 |
+
// Sanitize configuration parameters and suchs
|
779 |
foreach ( $atts as $key => $value ) {
|
780 |
+
$key = strtolower( $key );
|
|
|
781 |
|
782 |
+
// Put back parameter names that have been renamed for shortcode use
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
783 |
if ( !empty($rename_map[$key]) )
|
784 |
$key = $rename_map[$key];
|
785 |
|
786 |
+
// This this parameter if it's unknown, not set, or the language which was already handled
|
787 |
+
if ( empty($allowed_atts[$key]) || false === $value || in_array( $key, array( 'language', 'lang' ) ) )
|
788 |
+
continue;
|
789 |
+
|
790 |
+
// Sanitize values
|
791 |
+
switch ( $allowed_atts[$key] ) {
|
792 |
+
case 'boolean':
|
793 |
+
$value = strtolower( $value );
|
794 |
+
if ( 'true' === $value || '1' === $value )
|
795 |
+
$value = 'true';
|
796 |
+
elseif ( 'false' === $value || '0' === $value )
|
797 |
+
$value = 'false';
|
798 |
+
else
|
799 |
+
continue 2; // Invalid value, ditch parameter
|
800 |
+
break;
|
801 |
+
|
802 |
+
// integer
|
803 |
+
case 'integer':
|
804 |
+
$value = (int) $value;
|
805 |
+
break;
|
806 |
+
}
|
807 |
+
|
808 |
+
// Special sanitization for "pad-line-numbers"
|
809 |
+
if ( 'pad-line-numbers' == $key ) {
|
810 |
+
$value = strtolower( $value );
|
811 |
+
if ( 'true' === $value || '1' === $value )
|
812 |
+
$value = 'true';
|
813 |
+
elseif ( 'false' === $value || '0' === $value )
|
814 |
+
$value = 'false';
|
815 |
+
else
|
816 |
+
$value = (int) $value;
|
817 |
+
}
|
818 |
+
|
819 |
+
// Add % sign to "font-size"
|
820 |
+
if ( 'font-size' == $key )
|
821 |
+
$value = $value . '%';
|
822 |
+
|
823 |
// If "html-script", then include the XML brush as it's needed
|
824 |
+
if ( 'html-script' == $key && 'true' == $value )
|
825 |
$this->usedbrushes['xml'] = true;
|
826 |
|
827 |
+
// Wrap highlight in [ ]
|
828 |
if ( 'highlight' == $key )
|
829 |
$params[] = "$key: [$value];";
|
830 |
else
|
831 |
$params[] = "$key: $value;";
|
832 |
}
|
833 |
|
834 |
+
$code = ( false === strpos( $code, '<' ) && false === strpos( $code, '>' ) && 2 == $this->get_code_format($post) ) ? strip_tags( $code ) : htmlspecialchars( $code );
|
|
|
|
|
835 |
|
836 |
+
return '<pre class="' . esc_attr( implode( ' ', $params ) ) . '">' . $code . '</pre>';
|
837 |
}
|
838 |
|
839 |
|
840 |
// Settings page
|
841 |
+
function settings_page() { ?>
|
|
|
|
|
|
|
842 |
|
843 |
<script type="text/javascript">
|
844 |
// <![CDATA[
|
845 |
+
jQuery(document).ready(function($) {
|
846 |
// Confirm pressing of the "Reset to Defaults" button
|
847 |
+
$("#syntaxhighlighter-defaults").click(function(){
|
848 |
+
var areyousure = confirm("<?php echo esc_js( __('Are you sure you want to reset your settings to the defaults?', 'syntaxhighlighter') ); ?>");
|
849 |
if ( true != areyousure ) return false;
|
850 |
});
|
851 |
+
<?php if ( !empty( $_GET['defaults'] ) ) : ?>
|
852 |
+
$("#message p strong").text("<?php echo esc_js( __('Settings reset to defaults.', 'syntaxhighlighter') ); ?>");
|
853 |
+
<?php endif; ?>
|
854 |
});
|
855 |
// ]]>
|
856 |
</script>
|
859 |
<?php if ( function_exists('screen_icon') ) screen_icon(); ?>
|
860 |
<h2><?php _e( 'SyntaxHighlighter Settings', 'syntaxhighlighter' ); ?></h2>
|
861 |
|
862 |
+
<form method="post" action="options.php">
|
863 |
|
864 |
+
<?php settings_fields('syntaxhighlighter_settings'); ?>
|
865 |
|
|
|
866 |
|
867 |
<table class="form-table">
|
868 |
<tr valign="top">
|
869 |
<th scope="row"><label for="syntaxhighlighter-theme"><?php _e('Color Theme', 'syntaxhighlighter'); ?></label></th>
|
870 |
<td>
|
871 |
+
<select name="syntaxhighlighter_settings[theme]" id="syntaxhighlighter-theme" class="postform">
|
872 |
<?php
|
873 |
foreach ( $this->themes as $theme => $name ) {
|
874 |
+
echo ' <option value="' . esc_attr($theme) . '"';
|
875 |
selected( $this->settings['theme'], $theme );
|
876 |
echo '>' . htmlspecialchars($name) . "</option>\n";
|
877 |
}
|
883 |
|
884 |
<h3><?php _e('Defaults', 'syntaxhighlighter'); ?></h3>
|
885 |
|
886 |
+
<p><?php _e('All of the settings below can be configured on a per-code box basis, but you can control the defaults of all code boxes here.', 'syntaxhighlighter'); ?></p>
|
887 |
|
888 |
<table class="form-table">
|
889 |
<tr valign="top">
|
892 |
<fieldset>
|
893 |
<legend class="hidden"><?php _e('Miscellaneous', 'syntaxhighlighter'); ?></legend>
|
894 |
|
895 |
+
<label for="syntaxhighlighter-gutter"><input name="syntaxhighlighter_settings[gutter]" type="checkbox" id="syntaxhighlighter-gutter" value="1" <?php checked( $this->settings['gutter'], 1 ); ?> /> <?php _e('Display line numbers', 'syntaxhighlighter'); ?></label><br />
|
896 |
+
<label for="syntaxhighlighter-toolbar"><input name="syntaxhighlighter_settings[toolbar]" type="checkbox" id="syntaxhighlighter-toolbar" value="1" <?php checked( $this->settings['toolbar'], 1 ); ?> /> <?php _e('Display the toolbar', 'syntaxhighlighter'); ?></label><br />
|
897 |
+
<label for="syntaxhighlighter-autolinks"><input name="syntaxhighlighter_settings[autolinks]" type="checkbox" id="syntaxhighlighter-autolinks" value="1" <?php checked( $this->settings['autolinks'], 1 ); ?> /> <?php _e('Automatically make URLs clickable', 'syntaxhighlighter'); ?></label><br />
|
898 |
+
<label for="syntaxhighlighter-collapse"><input name="syntaxhighlighter_settings[collapse]" type="checkbox" id="syntaxhighlighter-collapse" value="1" <?php checked( $this->settings['collapse'], 1 ); ?> /> <?php _e('Collapse code boxes', 'syntaxhighlighter'); ?></label><br />
|
899 |
+
<label for="syntaxhighlighter-light"><input name="syntaxhighlighter_settings[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 />
|
900 |
+
<label for="syntaxhighlighter-smarttabs"><input name="syntaxhighlighter_settings[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><br />
|
901 |
+
<label for="syntaxhighlighter-wraplines"><input name="syntaxhighlighter_settings[wraplines]" type="checkbox" id="syntaxhighlighter-wraplines" value="1" <?php checked( $this->settings['wraplines'], 1 ); ?> /> <?php _e('Wrap long lines (disabling this will make a scrollbar show instead)', 'syntaxhighlighter'); ?></label><br />
|
902 |
+
<!--<label for="syntaxhighlighter-htmlscript"><input name="syntaxhighlighter_settings[htmlscript]" type="checkbox" id="syntaxhighlighter-htmlscript" value="1" <?php checked( $this->settings['htmlscript'], 1 ); ?> /> <?php _e('Enable "HTML script" mode by default (see the bottom of this page for details). Checking this box is not recommended as this mode only works with certain languages.', 'syntaxhighlighter'); ?></label>-->
|
903 |
</fieldset>
|
904 |
</td>
|
905 |
</tr>
|
906 |
<tr valign="top">
|
907 |
<th scope="row"><label for="syntaxhighlighter-classname"><?php _e('Additional CSS Class(es)', 'syntaxhighlighter'); ?></label></th>
|
908 |
+
<td><input name="syntaxhighlighter_settings[classname]" type="text" id="syntaxhighlighter-classname" value="<?php echo esc_attr( $this->settings['classname'] ); ?>" class="regular-text" /></td>
|
909 |
</tr>
|
910 |
<tr valign="top">
|
911 |
<th scope="row"><label for="syntaxhighlighter-firstline"><?php _e('Starting Line Number', 'syntaxhighlighter'); ?></label></th>
|
912 |
+
<td><input name="syntaxhighlighter_settings[firstline]" type="text" id="syntaxhighlighter-firstline" value="<?php echo esc_attr( $this->settings['firstline'] ); ?>" class="small-text" /></td>
|
913 |
+
</tr>
|
914 |
+
<tr valign="top">
|
915 |
+
<th scope="row"><label for="syntaxhighlighter-padlinenumbers"><?php _e('Line Number Padding', 'syntaxhighlighter'); ?></label></th>
|
916 |
+
<td>
|
917 |
+
<select name="syntaxhighlighter_settings[padlinenumbers]" id="syntaxhighlighter-padlinenumbers" class="postform">
|
918 |
+
<?php
|
919 |
+
$linepaddings = array(
|
920 |
+
'false' => __( 'Off', 'syntaxhighlighter' ),
|
921 |
+
'true' => __( 'Automatic', 'syntaxhighlighter' ),
|
922 |
+
1 => 1,
|
923 |
+
2 => 2,
|
924 |
+
3 => 3,
|
925 |
+
4 => 4,
|
926 |
+
5 => 5,
|
927 |
+
);
|
928 |
+
|
929 |
+
foreach ( $linepaddings as $value => $name ) {
|
930 |
+
echo ' <option value="' . esc_attr( $value ) . '"';
|
931 |
+
selected( $this->settings['padlinenumbers'], $value );
|
932 |
+
echo '>' . esc_html( $name ) . "</option>\n";
|
933 |
+
}
|
934 |
+
?>
|
935 |
+
</select>
|
936 |
+
</td>
|
937 |
</tr>
|
938 |
<tr valign="top">
|
939 |
<th scope="row"><label for="syntaxhighlighter-tabsize"><?php _e('Tab Size', 'syntaxhighlighter'); ?></label></th>
|
940 |
+
<td><input name="syntaxhighlighter_settings[tabsize]" type="text" id="syntaxhighlighter-tabsize" value="<?php echo esc_attr( $this->settings['tabsize'] ); ?>" class="small-text" /></td>
|
941 |
</tr>
|
942 |
</table>
|
943 |
|
954 |
|
955 |
<?php
|
956 |
|
957 |
+
// Site owners may opt to disable the short tags, i.e. [php]
|
958 |
+
$democode = apply_filters( 'syntaxhighlighter_democode', '[sourcecode language="php" htmlscript="true" highlight="12"]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
|
|
|
|
|
959 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
960 |
<head>
|
961 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
962 |
<title>PHP Code Example</title>
|
963 |
</head>
|
964 |
<body>
|
965 |
+
<h1>' . __( 'PHP Code Example', 'syntaxhighlighter' ) . '</h1>
|
966 |
|
967 |
+
<p><?php echo \'' . __( 'Hello World!', 'syntaxhighlighter' ) . '\'; ?></p>
|
968 |
|
969 |
+
<p>' . __( 'This line is highlighted.', 'syntaxhighlighter' ) . '</p>
|
970 |
|
971 |
<div class="foobar">
|
972 |
+
' . __( ' This is an
|
973 |
example of smart
|
974 |
+
tabs.', 'syntaxhighlighter' ) . '
|
975 |
</div>
|
976 |
|
977 |
<p><a href="http://wordpress.org/">WordPress</a></p>
|
978 |
</body>
|
979 |
+
</html>[/sourcecode]' );
|
980 |
|
981 |
+
$this->codeformat = 1;
|
982 |
+
echo $this->parse_shortcodes( $democode );
|
983 |
+
$this->codeformat = false;
|
984 |
|
985 |
?>
|
986 |
|
988 |
|
989 |
<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>
|
990 |
|
991 |
+
<ul class="ul-disc">
|
992 |
<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>
|
993 |
<li><?php printf( __('%s — Toggle automatic URL linking.', 'syntaxhighlighter'), '<code>autolinks</code>' ); ?></li>
|
994 |
<li><?php printf( __('%s — Add an additional CSS class to the code box.', 'syntaxhighlighter'), '<code>classname</code>' ); ?></li>
|
996 |
<li><?php printf( __('%s — An interger specifying what number the first line should be (for the line numbering).', 'syntaxhighlighter'), '<code>firstline</code>' ); ?></li>
|
997 |
<li><?php printf( __('%s — Toggle the left-side line numbering.', 'syntaxhighlighter'), '<code>gutter</code>' ); ?></li>
|
998 |
<li><?php printf( __('%s — A comma-sperated list of line numbers to highlight.', 'syntaxhighlighter'), '<code>highlight</code>' ); ?></li>
|
999 |
+
<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. This only works with certain languages.", 'syntaxhighlighter'), '<code>htmlscript</code>' ); ?></li>
|
1000 |
+
<li><?php printf( __("%s — Toggle light mode which disables the gutter and toolbar all at once.", 'syntaxhighlighter'), '<code>light</code>' ); ?></li>
|
1001 |
+
<li><?php printf( __("%s — Controls line number padding. Valid values are <code>false</code> (no padding), <code>true</code> (automatic padding), or an integer (forced padding).", 'syntaxhighlighter'), '<code>padlinenumbers</code>' ); ?></li>
|
1002 |
<li><?php printf( __("%s — Toggle the toolbar containing the helpful buttons.", 'syntaxhighlighter'), '<code>toolbar</code>' ); ?></li>
|
1003 |
<li><?php printf( __("%s — Toggle line wrapping.", 'syntaxhighlighter'), '<code>wraplines</code>' ); ?></li>
|
1004 |
</ul>
|
1005 |
|
1006 |
<p><?php _e('Some example shortcodes:', 'syntaxhighlighter'); ?></p>
|
1007 |
|
1008 |
+
<ul class="ul-disc">
|
1009 |
<li><code>[php]<?php _e('your code here', 'syntaxhighlighter'); ?>[/php]</code></li>
|
1010 |
+
<li><code>[css autolinks="false" classname="myclass" collapse="false" firstline="1" gutter="true" highlight="1,2,3" htmlscript="false" light="false" padlinenumbers="false" smarttabs="true" tabsize="4" toolbar="true"]<?php _e('your code here', 'syntaxhighlighter'); ?>[/css]</code></li>
|
1011 |
<li><code>[code lang="js"]<?php _e('your code here', 'syntaxhighlighter'); ?>[/code]</code></li>
|
1012 |
<li><code>[sourcecode language="plain"]<?php _e('your code here', 'syntaxhighlighter'); ?>[/sourcecode]</code></li>
|
1013 |
</ul>
|
1020 |
}
|
1021 |
|
1022 |
|
1023 |
+
// Validate the settings sent from the settings page
|
1024 |
+
function validate_settings( $settings ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1025 |
if ( !empty($_POST['syntaxhighlighter-defaults']) ) {
|
1026 |
$settings = $this->defaultsettings;
|
1027 |
+
$_REQUEST['_wp_http_referer'] = add_query_arg( 'defaults', 'true', $_REQUEST['_wp_http_referer'] );
|
1028 |
} else {
|
1029 |
+
$settings['theme'] = ( !empty($settings['theme']) && isset($this->themes[$settings['theme']]) ) ? strtolower($settings['theme']) : $this->defaultsettings['theme'];
|
1030 |
+
|
1031 |
+
$settings['autolinks'] = ( !empty($settings['autolinks']) ) ? 1 : 0;
|
1032 |
+
$settings['collapse'] = ( !empty($settings['collapse']) ) ? 1 : 0;
|
1033 |
+
$settings['gutter'] = ( !empty($settings['gutter']) ) ? 1 : 0;
|
1034 |
+
$settings['light'] = ( !empty($settings['light']) ) ? 1 : 0;
|
1035 |
+
$settings['smarttabs'] = ( !empty($settings['smarttabs']) ) ? 1 : 0;
|
1036 |
+
$settings['toolbar'] = ( !empty($settings['toolbar']) ) ? 1 : 0;
|
1037 |
+
$settings['wraplines'] = ( !empty($settings['wraplines']) ) ? 1 : 0;
|
1038 |
+
|
1039 |
+
if ( 'true' != $settings['padlinenumbers'] && 'false' != $settings['padlinenumbers'] )
|
1040 |
+
$settings['padlinenumbers'] = (int) $settings['padlinenumbers'];
|
1041 |
+
|
1042 |
+
$settings['classname'] = ( !empty($settings['classname']) ) ? preg_replace( '/[^ A-Za-z0-9_-]*/', '', $settings['classname'] ) : '';
|
1043 |
+
$settings['firstline'] = (int) ( !empty($settings['firstline']) ) ? $settings['firstline'] : $this->defaultsettings['firstline'];
|
1044 |
+
$settings['tabsize'] = (int) ( !empty($settings['tabsize']) ) ? $settings['tabsize'] : $this->defaultsettings['tabsize'];
|
1045 |
}
|
1046 |
|
1047 |
+
return $settings;
|
|
|
|
|
|
|
|
|
|
|
1048 |
}
|
1049 |
|
1050 |
|
1054 |
}
|
1055 |
}
|
1056 |
|
1057 |
+
|
1058 |
// Start this plugin once all other plugins are fully loaded
|
1059 |
+
add_action( 'init', 'SyntaxHighlighter', 5 );
|
1060 |
+
function SyntaxHighlighter() {
|
1061 |
+
global $SyntaxHighlighter;
|
1062 |
+
$SyntaxHighlighter = new SyntaxHighlighter();
|
1063 |
+
}
|
1064 |
|
1065 |
?>
|
syntaxhighlighter/scripts/shBrushAS3.js
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
-
* 2.
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
syntaxhighlighter/scripts/shBrushBash.js
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
-
* 2.
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
@@ -29,8 +29,8 @@
|
|
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';
|
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 ' +
|
@@ -45,10 +45,18 @@ SyntaxHighlighter.brushes.Bash = function()
|
|
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 |
];
|
@@ -56,4 +64,3 @@ SyntaxHighlighter.brushes.Bash = function()
|
|
56 |
|
57 |
SyntaxHighlighter.brushes.Bash.prototype = new SyntaxHighlighter.Highlighter();
|
58 |
SyntaxHighlighter.brushes.Bash.aliases = ['bash', 'shell'];
|
59 |
-
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
29 |
*/
|
30 |
SyntaxHighlighter.brushes.Bash = function()
|
31 |
{
|
32 |
+
var keywords = 'if fi then elif else for do done until while break continue case function return in eq ne gt lt ge le';
|
33 |
+
var commands = 'alias apropos awk basename bash bc bg builtin bzip2 cal cat cd cfdisk chgrp chmod chown chroot' +
|
34 |
'cksum clear cmp comm command cp cron crontab csplit cut date dc dd ddrescue declare df ' +
|
35 |
'diff diff3 dig dir dircolors dirname dirs du echo egrep eject enable env ethtool eval ' +
|
36 |
'exec exit expand export expr false fdformat fdisk fg fgrep file find fmt fold format ' +
|
45 |
'uname unexpand uniq units unset unshar useradd usermod users uuencode uudecode v vdir ' +
|
46 |
'vi watch wc whereis which who whoami Wget xargs yes'
|
47 |
;
|
48 |
+
|
49 |
+
this.findMatches = function(regexList, code)
|
50 |
+
{
|
51 |
+
code = code.replace(/>/g, '>').replace(/</g, '<');
|
52 |
+
this.code = code;
|
53 |
+
return SyntaxHighlighter.Highlighter.prototype.findMatches.apply(this, [regexList, code]);
|
54 |
+
};
|
55 |
+
|
56 |
this.regexList = [
|
57 |
{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments
|
58 |
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
59 |
+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
60 |
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
|
61 |
{ regex: new RegExp(this.getKeywords(commands), 'gm'), css: 'functions' } // commands
|
62 |
];
|
64 |
|
65 |
SyntaxHighlighter.brushes.Bash.prototype = new SyntaxHighlighter.Highlighter();
|
66 |
SyntaxHighlighter.brushes.Bash.aliases = ['bash', 'shell'];
|
|
syntaxhighlighter/scripts/shBrushCSharp.js
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
-
* 2.
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
@@ -50,10 +50,13 @@ SyntaxHighlighter.brushes.CSharp = function()
|
|
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);
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
50 |
this.regexList = [
|
51 |
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, func : fixComments }, // one line comments
|
52 |
{ regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
|
53 |
+
{ regex: /@"(?:[^"]|"")*"/g, css: 'string' }, // @-quoted strings
|
54 |
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
55 |
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
56 |
{ regex: /^\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
|
57 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // c# keyword
|
58 |
+
{ regex: /\bpartial(?=\s+(?:class|interface|struct)\b)/g, css: 'keyword' }, // contextual keyword: 'partial'
|
59 |
+
{ regex: /\byield(?=\s+(?:return|break)\b)/g, css: 'keyword' } // contextual keyword: 'yield'
|
60 |
];
|
61 |
|
62 |
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
syntaxhighlighter/scripts/shBrushColdFusion.js
ADDED
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.ColdFusion = function()
|
31 |
+
{
|
32 |
+
// Contributed by Jen
|
33 |
+
// http://www.jensbits.com/2009/05/14/coldfusion-brush-for-syntaxhighlighter-plus
|
34 |
+
|
35 |
+
var funcs = 'Abs ACos AddSOAPRequestHeader AddSOAPResponseHeader AjaxLink AjaxOnLoad ArrayAppend ArrayAvg ArrayClear ArrayDeleteAt ' +
|
36 |
+
'ArrayInsertAt ArrayIsDefined ArrayIsEmpty ArrayLen ArrayMax ArrayMin ArraySet ArraySort ArraySum ArraySwap ArrayToList ' +
|
37 |
+
'Asc ASin Atn BinaryDecode BinaryEncode BitAnd BitMaskClear BitMaskRead BitMaskSet BitNot BitOr BitSHLN BitSHRN BitXor ' +
|
38 |
+
'Ceiling CharsetDecode CharsetEncode Chr CJustify Compare CompareNoCase Cos CreateDate CreateDateTime CreateObject ' +
|
39 |
+
'CreateODBCDate CreateODBCDateTime CreateODBCTime CreateTime CreateTimeSpan CreateUUID DateAdd DateCompare DateConvert ' +
|
40 |
+
'DateDiff DateFormat DatePart Day DayOfWeek DayOfWeekAsString DayOfYear DaysInMonth DaysInYear DE DecimalFormat DecrementValue ' +
|
41 |
+
'Decrypt DecryptBinary DeleteClientVariable DeserializeJSON DirectoryExists DollarFormat DotNetToCFType Duplicate Encrypt ' +
|
42 |
+
'EncryptBinary Evaluate Exp ExpandPath FileClose FileCopy FileDelete FileExists FileIsEOF FileMove FileOpen FileRead ' +
|
43 |
+
'FileReadBinary FileReadLine FileSetAccessMode FileSetAttribute FileSetLastModified FileWrite Find FindNoCase FindOneOf ' +
|
44 |
+
'FirstDayOfMonth Fix FormatBaseN GenerateSecretKey GetAuthUser GetBaseTagData GetBaseTagList GetBaseTemplatePath ' +
|
45 |
+
'GetClientVariablesList GetComponentMetaData GetContextRoot GetCurrentTemplatePath GetDirectoryFromPath GetEncoding ' +
|
46 |
+
'GetException GetFileFromPath GetFileInfo GetFunctionList GetGatewayHelper GetHttpRequestData GetHttpTimeString ' +
|
47 |
+
'GetK2ServerDocCount GetK2ServerDocCountLimit GetLocale GetLocaleDisplayName GetLocalHostIP GetMetaData GetMetricData ' +
|
48 |
+
'GetPageContext GetPrinterInfo GetProfileSections GetProfileString GetReadableImageFormats GetSOAPRequest GetSOAPRequestHeader ' +
|
49 |
+
'GetSOAPResponse GetSOAPResponseHeader GetTempDirectory GetTempFile GetTemplatePath GetTickCount GetTimeZoneInfo GetToken ' +
|
50 |
+
'GetUserRoles GetWriteableImageFormats Hash Hour HTMLCodeFormat HTMLEditFormat IIf ImageAddBorder ImageBlur ImageClearRect ' +
|
51 |
+
'ImageCopy ImageCrop ImageDrawArc ImageDrawBeveledRect ImageDrawCubicCurve ImageDrawLine ImageDrawLines ImageDrawOval ' +
|
52 |
+
'ImageDrawPoint ImageDrawQuadraticCurve ImageDrawRect ImageDrawRoundRect ImageDrawText ImageFlip ImageGetBlob ImageGetBufferedImage ' +
|
53 |
+
'ImageGetEXIFTag ImageGetHeight ImageGetIPTCTag ImageGetWidth ImageGrayscale ImageInfo ImageNegative ImageNew ImageOverlay ImagePaste ' +
|
54 |
+
'ImageRead ImageReadBase64 ImageResize ImageRotate ImageRotateDrawingAxis ImageScaleToFit ImageSetAntialiasing ImageSetBackgroundColor ' +
|
55 |
+
'ImageSetDrawingColor ImageSetDrawingStroke ImageSetDrawingTransparency ImageSharpen ImageShear ImageShearDrawingAxis ImageTranslate ' +
|
56 |
+
'ImageTranslateDrawingAxis ImageWrite ImageWriteBase64 ImageXORDrawingMode IncrementValue InputBaseN Insert Int IsArray IsBinary ' +
|
57 |
+
'IsBoolean IsCustomFunction IsDate IsDDX IsDebugMode IsDefined IsImage IsImageFile IsInstanceOf IsJSON IsLeapYear IsLocalHost ' +
|
58 |
+
'IsNumeric IsNumericDate IsObject IsPDFFile IsPDFObject IsQuery IsSimpleValue IsSOAPRequest IsStruct IsUserInAnyRole IsUserInRole ' +
|
59 |
+
'IsUserLoggedIn IsValid IsWDDX IsXML IsXmlAttribute IsXmlDoc IsXmlElem IsXmlNode IsXmlRoot JavaCast JSStringFormat LCase Left Len ' +
|
60 |
+
'ListAppend ListChangeDelims ListContains ListContainsNoCase ListDeleteAt ListFind ListFindNoCase ListFirst ListGetAt ListInsertAt ' +
|
61 |
+
'ListLast ListLen ListPrepend ListQualify ListRest ListSetAt ListSort ListToArray ListValueCount ListValueCountNoCase LJustify Log ' +
|
62 |
+
'Log10 LSCurrencyFormat LSDateFormat LSEuroCurrencyFormat LSIsCurrency LSIsDate LSIsNumeric LSNumberFormat LSParseCurrency LSParseDateTime ' +
|
63 |
+
'LSParseEuroCurrency LSParseNumber LSTimeFormat LTrim Max Mid Min Minute Month MonthAsString Now NumberFormat ParagraphFormat ParseDateTime ' +
|
64 |
+
'Pi PrecisionEvaluate PreserveSingleQuotes Quarter QueryAddColumn QueryAddRow QueryConvertForGrid QueryNew QuerySetCell QuotedValueList Rand ' +
|
65 |
+
'Randomize RandRange REFind REFindNoCase ReleaseComObject REMatch REMatchNoCase RemoveChars RepeatString Replace ReplaceList ReplaceNoCase ' +
|
66 |
+
'REReplace REReplaceNoCase Reverse Right RJustify Round RTrim Second SendGatewayMessage SerializeJSON SetEncoding SetLocale SetProfileString ' +
|
67 |
+
'SetVariable Sgn Sin Sleep SpanExcluding SpanIncluding Sqr StripCR StructAppend StructClear StructCopy StructCount StructDelete StructFind ' +
|
68 |
+
'StructFindKey StructFindValue StructGet StructInsert StructIsEmpty StructKeyArray StructKeyExists StructKeyList StructKeyList StructNew ' +
|
69 |
+
'StructSort StructUpdate Tan TimeFormat ToBase64 ToBinary ToScript ToString Trim UCase URLDecode URLEncodedFormat URLSessionFormat Val ' +
|
70 |
+
'ValueList VerifyClient Week Wrap Wrap WriteOutput XmlChildPos XmlElemNew XmlFormat XmlGetNodeType XmlNew XmlParse XmlSearch XmlTransform ' +
|
71 |
+
'XmlValidate Year YesNoFormat';
|
72 |
+
|
73 |
+
var keywords = 'cfabort cfajaximport cfajaxproxy cfapplet cfapplication cfargument cfassociate cfbreak cfcache cfcalendar ' +
|
74 |
+
'cfcase cfcatch cfchart cfchartdata cfchartseries cfcol cfcollection cfcomponent cfcontent cfcookie cfdbinfo ' +
|
75 |
+
'cfdefaultcase cfdirectory cfdiv cfdocument cfdocumentitem cfdocumentsection cfdump cfelse cfelseif cferror ' +
|
76 |
+
'cfexchangecalendar cfexchangeconnection cfexchangecontact cfexchangefilter cfexchangemail cfexchangetask ' +
|
77 |
+
'cfexecute cfexit cffeed cffile cfflush cfform cfformgroup cfformitem cfftp cffunction cfgrid cfgridcolumn ' +
|
78 |
+
'cfgridrow cfgridupdate cfheader cfhtmlhead cfhttp cfhttpparam cfif cfimage cfimport cfinclude cfindex ' +
|
79 |
+
'cfinput cfinsert cfinterface cfinvoke cfinvokeargument cflayout cflayoutarea cfldap cflocation cflock cflog ' +
|
80 |
+
'cflogin cfloginuser cflogout cfloop cfmail cfmailparam cfmailpart cfmenu cfmenuitem cfmodule cfNTauthenticate ' +
|
81 |
+
'cfobject cfobjectcache cfoutput cfparam cfpdf cfpdfform cfpdfformparam cfpdfparam cfpdfsubform cfpod cfpop ' +
|
82 |
+
'cfpresentation cfpresentationslide cfpresenter cfprint cfprocessingdirective cfprocparam cfprocresult ' +
|
83 |
+
'cfproperty cfquery cfqueryparam cfregistry cfreport cfreportparam cfrethrow cfreturn cfsavecontent cfschedule ' +
|
84 |
+
'cfscript cfsearch cfselect cfset cfsetting cfsilent cfslider cfsprydataset cfstoredproc cfswitch cftable ' +
|
85 |
+
'cftextarea cfthread cfthrow cftimer cftooltip cftrace cftransaction cftree cftreeitem cftry cfupdate cfwddx ' +
|
86 |
+
'cfwindow cfxml cfzip cfzipparam';
|
87 |
+
|
88 |
+
var operators = 'all and any between cross in join like not null or outer some';
|
89 |
+
|
90 |
+
this.regexList = [
|
91 |
+
{ regex: new RegExp('--(.*)$', 'gm'), css: 'comments' }, // one line and multiline comments
|
92 |
+
{ regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, // single quoted strings
|
93 |
+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
|
94 |
+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
|
95 |
+
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // functions
|
96 |
+
{ regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // operators and such
|
97 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
|
98 |
+
];
|
99 |
+
}
|
100 |
+
|
101 |
+
SyntaxHighlighter.brushes.ColdFusion.prototype = new SyntaxHighlighter.Highlighter();
|
102 |
+
SyntaxHighlighter.brushes.ColdFusion.aliases = ['coldfusion','cf'];
|
syntaxhighlighter/scripts/shBrushCpp.js
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
-
* 2.
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
syntaxhighlighter/scripts/shBrushCss.js
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
-
* 2.
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
syntaxhighlighter/scripts/shBrushDelphi.js
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
-
* 2.
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
@@ -49,9 +49,9 @@ SyntaxHighlighter.brushes.Delphi = function()
|
|
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), '
|
53 |
];
|
54 |
};
|
55 |
|
56 |
SyntaxHighlighter.brushes.Delphi.prototype = new SyntaxHighlighter.Highlighter();
|
57 |
-
SyntaxHighlighter.brushes.Delphi.aliases = ['delphi', 'pascal'];
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
49 |
{ regex: /\{\$[a-zA-Z]+ .+\}/g, css: 'color1' }, // compiler Directives and Region tags
|
50 |
{ regex: /\b[\d\.]+\b/g, css: 'value' }, // numbers 12345
|
51 |
{ regex: /\$[a-zA-Z0-9]+\b/g, css: 'value' }, // numbers $F5D3
|
52 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
|
53 |
];
|
54 |
};
|
55 |
|
56 |
SyntaxHighlighter.brushes.Delphi.prototype = new SyntaxHighlighter.Highlighter();
|
57 |
+
SyntaxHighlighter.brushes.Delphi.aliases = ['delphi', 'pascal', 'pas'];
|
syntaxhighlighter/scripts/shBrushDiff.js
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
-
* 2.
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
syntaxhighlighter/scripts/shBrushErlang.js
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
SyntaxHighlighter.brushes.Erlang = function()
|
31 |
+
{
|
32 |
+
// Contributed by Jean-Lou Dupont
|
33 |
+
// http://jldupont.blogspot.com/2009/06/erlang-syntax-highlighter.html
|
34 |
+
|
35 |
+
// According to: http://erlang.org/doc/reference_manual/introduction.html#1.5
|
36 |
+
var keywords = 'after and andalso band begin bnot bor bsl bsr bxor '+
|
37 |
+
'case catch cond div end fun if let not of or orelse '+
|
38 |
+
'query receive rem try when xor'+
|
39 |
+
// additional
|
40 |
+
' module export import define';
|
41 |
+
|
42 |
+
this.regexList = [
|
43 |
+
{ regex: new RegExp("[A-Z][A-Za-z0-9_]+", 'g'), css: 'constants' },
|
44 |
+
{ regex: new RegExp("\\%.+", 'gm'), css: 'comments' },
|
45 |
+
{ regex: new RegExp("\\?[A-Za-z0-9_]+", 'g'), css: 'preprocessor' },
|
46 |
+
{ regex: new RegExp("[a-z0-9_]+:[a-z0-9_]+", 'g'), css: 'functions' },
|
47 |
+
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
|
48 |
+
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
|
49 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
|
50 |
+
];
|
51 |
+
};
|
52 |
+
|
53 |
+
SyntaxHighlighter.brushes.Erlang.prototype = new SyntaxHighlighter.Highlighter();
|
54 |
+
SyntaxHighlighter.brushes.Erlang.aliases = ['erl', 'erlang'];
|
syntaxhighlighter/scripts/shBrushGroovy.js
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
-
* 2.
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
syntaxhighlighter/scripts/shBrushJScript.js
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
-
* 2.
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
syntaxhighlighter/scripts/shBrushJava.js
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
-
* 2.
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
@@ -39,7 +39,8 @@ SyntaxHighlighter.brushes.Java = function()
|
|
39 |
|
40 |
this.regexList = [
|
41 |
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
42 |
-
{ regex:
|
|
|
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
|
@@ -48,7 +49,10 @@ SyntaxHighlighter.brushes.Java = function()
|
|
48 |
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // java keyword
|
49 |
];
|
50 |
|
51 |
-
this.forHtmlScript(
|
|
|
|
|
|
|
52 |
};
|
53 |
|
54 |
SyntaxHighlighter.brushes.Java.prototype = new SyntaxHighlighter.Highlighter();
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
39 |
|
40 |
this.regexList = [
|
41 |
{ regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
|
42 |
+
{ regex: /\/\*([^\*][\s\S]*)?\*\//gm, css: 'comments' }, // multiline comments
|
43 |
+
{ regex: /\/\*(?!\*\/)\*[\s\S]*?\*\//gm, css: 'preprocessor' }, // documentation comments
|
44 |
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
|
45 |
{ regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
|
46 |
{ regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers
|
49 |
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // java keyword
|
50 |
];
|
51 |
|
52 |
+
this.forHtmlScript({
|
53 |
+
left : /(<|<)%[@!=]?/g,
|
54 |
+
right : /%(>|>)/g
|
55 |
+
});
|
56 |
};
|
57 |
|
58 |
SyntaxHighlighter.brushes.Java.prototype = new SyntaxHighlighter.Highlighter();
|
syntaxhighlighter/scripts/shBrushJavaFX.js
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
-
* 2.
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
syntaxhighlighter/scripts/shBrushPerl.js
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
-
* 2.
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
syntaxhighlighter/scripts/shBrushPhp.js
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
-
* 2.
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
syntaxhighlighter/scripts/shBrushPlain.js
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
-
* 2.
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
syntaxhighlighter/scripts/shBrushPowerShell.js
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
-
* 2.
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
syntaxhighlighter/scripts/shBrushPython.js
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
-
* 2.
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
@@ -29,26 +29,36 @@
|
|
29 |
*/
|
30 |
SyntaxHighlighter.brushes.Python = function()
|
31 |
{
|
32 |
-
// Contributed by Gheorghe Milas
|
33 |
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
|
40 |
-
|
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 |
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
29 |
*/
|
30 |
SyntaxHighlighter.brushes.Python = function()
|
31 |
{
|
32 |
+
// Contributed by Gheorghe Milas and Ahmad Sherif
|
33 |
|
34 |
+
var keywords = 'and assert break class continue def del elif else ' +
|
35 |
+
'except exec finally for from global if import in is ' +
|
36 |
+
'lambda not or pass print raise return try yield while';
|
37 |
|
38 |
+
var funcs = '__import__ abs all any apply basestring bin bool buffer callable ' +
|
39 |
+
'chr classmethod cmp coerce compile complex delattr dict dir ' +
|
40 |
+
'divmod enumerate eval execfile file filter float format frozenset ' +
|
41 |
+
'getattr globals hasattr hash help hex id input int intern ' +
|
42 |
+
'isinstance issubclass iter len list locals long map max min next ' +
|
43 |
+
'object oct open ord pow print property range raw_input reduce ' +
|
44 |
+
'reload repr reversed round set setattr slice sorted staticmethod ' +
|
45 |
+
'str sum super tuple type type unichr unicode vars xrange zip';
|
46 |
|
47 |
+
var special = 'None True False self cls class_';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
|
49 |
+
this.regexList = [
|
50 |
+
{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' },
|
51 |
+
{ regex: /^\s*@\w+/gm, css: 'decorator' },
|
52 |
+
{ regex: /(['\"]{3})([^\1])*?\1/gm, css: 'comments' },
|
53 |
+
{ regex: /"(?!")(?:\.|\\\"|[^\""\n])*"/gm, css: 'string' },
|
54 |
+
{ regex: /'(?!')(?:\.|(\\\')|[^\''\n])*'/gm, css: 'string' },
|
55 |
+
{ regex: /\+|\-|\*|\/|\%|=|==/gm, css: 'keyword' },
|
56 |
+
{ regex: /\b\d+\.?\w*/g, css: 'value' },
|
57 |
+
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' },
|
58 |
+
{ regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' },
|
59 |
+
{ regex: new RegExp(this.getKeywords(special), 'gm'), css: 'color1' }
|
60 |
+
];
|
61 |
+
|
62 |
this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
|
63 |
};
|
64 |
|
syntaxhighlighter/scripts/shBrushRuby.js
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
-
* 2.
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
@@ -54,4 +54,4 @@ SyntaxHighlighter.brushes.Ruby = function()
|
|
54 |
};
|
55 |
|
56 |
SyntaxHighlighter.brushes.Ruby.prototype = new SyntaxHighlighter.Highlighter();
|
57 |
-
SyntaxHighlighter.brushes.Ruby.aliases = ['ruby', 'rails', 'ror'];
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
54 |
};
|
55 |
|
56 |
SyntaxHighlighter.brushes.Ruby.prototype = new SyntaxHighlighter.Highlighter();
|
57 |
+
SyntaxHighlighter.brushes.Ruby.aliases = ['ruby', 'rails', 'ror', 'rb'];
|
syntaxhighlighter/scripts/shBrushScala.js
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
-
* 2.
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
syntaxhighlighter/scripts/shBrushSql.js
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
-
* 2.
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
syntaxhighlighter/scripts/shBrushVb.js
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
-
* 2.
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
syntaxhighlighter/scripts/shBrushXml.js
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
-
* 2.
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
@@ -62,10 +62,10 @@ SyntaxHighlighter.brushes.Xml = function()
|
|
62 |
|
63 |
this.regexList = [
|
64 |
{ regex: new XRegExp('(\\<|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\\>|>)', 'gm'), css: 'color2' }, // <![ ... [ ... ]]>
|
65 |
-
{ regex:
|
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'
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
62 |
|
63 |
this.regexList = [
|
64 |
{ regex: new XRegExp('(\\<|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\\>|>)', 'gm'), css: 'color2' }, // <![ ... [ ... ]]>
|
65 |
+
{ regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, // <!-- ... -->
|
66 |
{ regex: new XRegExp('(<|<)[\\s\\/\\?]*(\\w+)(?<attributes>.*?)[\\s\\/\\?]*(>|>)', 'sg'), func: process }
|
67 |
];
|
68 |
};
|
69 |
|
70 |
SyntaxHighlighter.brushes.Xml.prototype = new SyntaxHighlighter.Highlighter();
|
71 |
+
SyntaxHighlighter.brushes.Xml.aliases = ['xml', 'xhtml', 'xslt', 'html'];
|
syntaxhighlighter/scripts/shCore.js
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
-
* 2.
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
@@ -27,4 +27,4 @@
|
|
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,{}))
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
27 |
* You should have received a copy of the GNU General Public License
|
28 |
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
*/
|
30 |
+
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('c(!1q.2X){h 2X=l(){h p={6b:{"1s-R":"","84-2y":1,"83-2y-7W":I,"1I":v,"8d-89":I,"1H-2Q":4,"3g":I,"1w":I,"66":N,"8k-8l":I,"88":N,"5h-1p":I,"1L-1l":N},M:{4T:I,69:v,5l:16,5k:16,8B:N,8f:N,8s:"54",1f:{5q:"53 1g",5d:"9N 1g",5i:"9O 6q 6p",78:"9M C 9L 1V 9I 6p 9J",3t:"3t",6C:"?",1A:"2X\\n\\n",6T:"9K\'t 9P 2O D: ",7x:"9Q 9W\'t 9X D 1L-1l 9V: ",77:"<!9U 1L 9R \\"-//9S//6H 9T 1.0 9H//9G\\" \\"2s://5x.6x.6B/9v/6D/6H/6D-9w.9u\\"><1L 9t=\\"2s://5x.6x.6B/9s/9x\\"><6z><9y 2s-9E=\\"9F-9D\\" 63=\\"1X/1L; 9C=9z-8\\" /><3i>9A 2X</3i></6z><33 1m=\\"39-9Y:9Z,an,ao,am-al;ai-3f:#aj;3f:#ak;39-2Q:ap;1X-6G:6u;\\"><A 1m=\\"1X-6G:6u;6w-4w:aw;\\"><A 1m=\\"39-2Q:au-at;\\">2X</A><A 1m=\\"39-2Q:.as;6w-9p:ah;\\"><A>6O 2.1.ag (a5 15 6h)</A><A><a 27=\\"2s://6I.3k\\" a6=\\"4k\\" 1m=\\"3f:#6F;1X-6t:6L;\\">2s://6I.3k</a></A><A>a3 a0 a1 f 1l, a2 <a 27=\\"a7://5x.a8.3k/ae-af/ad?ac=a9-aa&ab=ax\\" 1m=\\"3f:#6F;1X-6t:6L;\\">8R</a> 6q 8Q 8O 8W!</A></A><A>8V C 8U 8X.</A><A>8K 8N-6h 8M 8S.</A></A></33></1L>"},8u:N},1r:{4Z:v,9o:v,3m:v,6f:{}},2d:{},8h:{9g:/\\/\\*[\\s\\S]*?\\*\\//3b,9d:/\\/\\/.*$/3b,9e:/#.*$/3b,9j:/"([^\\\\"\\n]|\\\\.)*"/g,9n:/\'([^\\\\\'\\n]|\\\\.)*\'/g,9m:/"([^\\\\"]|\\\\.)*"/g,8Y:/\'([^\\\\\']|\\\\.)*\'/g,9k:/(&X;|<)!--[\\s\\S]*?--(&Z;|>)/3b,43:/&X;\\w+:\\/\\/[\\w-.\\/?%&=@:;]*&Z;|\\w+:\\/\\/[\\w-.\\/?%&=@:;]*/g,9c:{G:/(&X;|<)\\?=?/g,1d:/\\?(&Z;|>)/g},93:{G:/(&X;|<)%=?/g,1d:/%(&Z;|>)/g},92:{G:/(&X;|<)\\s*1l.*?(&Z;|>)/4e,1d:/(&X;|<)\\/\\s*1l\\s*(&Z;|>)/4e}},1w:{1c:l(3O){h 3T=Q.22("3Y"),5s=p.1w.7d;3T.L="1w";D(h 30 1V 5s){h 6i=5s[30],5t=W 6i(3O),1Y=5t.1c();3O.6g[30]=5t;c(1Y==v){1J}c(7X(1Y)=="91"){1Y=p.1w.6m(1Y,3O.1k,30)}1Y.L+="5v "+30;3T.2p(1Y)}q 3T},6m:l(5L,7j,5K){h a=Q.22("a"),5N=a.1m,5D=p.M,5M=5D.5l,5J=5D.5k;a.27="#"+5K;a.3i=5L;a.5j=7j;a.76=5K;a.1Q=5L;c(40(5M)==N){5N.26=5M+"75"}c(40(5J)==N){5N.2e=5J+"75"}a.9l=l(e){97{p.1w.6M(f,e||1q.6Y,f.5j,f.76)}98(e){p.B.1A(e.6n)}q N};q a},6M:l(7i,7g,7b,7h,7f){h 5G=p.1r.6f[7b],5H;c(5G==v||(5H=5G.6g[7h])==v){q v}q 5H.2z(7i,7g,7f)},7d:{5q:l(5b){f.1c=l(){c(5b.V("66")!=I){q}q p.M.1f.5q};f.2z=l(5c,8T,8P){h A=5b.A;5c.7y.4p(5c);A.L=A.L.E("5O","")}},5d:l(6R){f.1c=l(){q p.M.1f.5d};f.2z=l(b1,bU,bV){h 3J=p.B.3d(6R.5g).E(/</g,"&X;"),2A=p.B.4z("","4k",bT,bS,"bQ=0, bR=1, bW=0, 7a=1");3J=p.B.2T(3J);2A.Q.3D("<54>"+3J+"</54>");2A.Q.4o()}},5i:l(64){h 3C,c2,6a=64.1k;f.1c=l(){h 2V=p.M;c(2V.69==v){q v}l 1E(56){h 5m="";D(h 5f 1V 56){5m+="<c1 R=\'"+5f+"\' 24=\'"+56[5f]+"\'/>"}q 5m};l 2i(5n){h 5p="";D(h 5o 1V 5n){5p+=" "+5o+"=\'"+5n[5o]+"\'"}q 5p};h 67={26:2V.5l,2e:2V.5k,1k:6a+"bY",4r:"bZ/x-71-6V",3i:p.M.1f.5i},5V={bE:"ay",bD:"bC",bA:"5j="+6a,c4:"N"},5U=2V.69,3x;c(/bG/i.1R(6K.7k)){3x="<4h"+2i({bH:"bM:bN-bL-bK-bI-bJ",c3:"2s://ck.cj.3k/cm/71/c9/6V/c8.c7#6O=9,0,0,0"})+2i(67)+">"+1E(5V)+1E({c6:5U})+"</4h>"}F{3x="<ca"+2i(67)+2i(5V)+2i({cg:5U})+"/>"}3C=Q.22("A");3C.1Q=3x;q 3C};f.2z=l(cf,ce,62){h 7c=62.cd;6U(7c){2K"7q":h 61=p.B.2T(p.B.3d(64.5g).E(/&X;/g,"<").E(/&Z;/g,">").E(/&aT;/g,"&"));c(1q.74){1q.74.aU("1X",61)}F{q p.B.2T(61)}2K"aR":p.B.1A(p.M.1f.78);2h;2K"aP":p.B.1A(62.6n);2h}}},aV:l(65){f.1c=l(){q p.M.1f.3t};f.2z=l(aW,bz,b0){h 1Z=Q.22("aZ"),1N=v;c(p.1r.3m!=v){Q.33.4p(p.1r.3m)}p.1r.3m=1Z;1Z.1m.aX="aY:aO;26:6r;2e:6r;G:-6j;4w:-6j;";Q.33.2p(1Z);1N=1Z.5Q.Q;6J(1N,1q.Q);1N.3D("<A 1s=\\""+65.A.L.E("5O","")+" aD\\">"+65.A.1Q+"</A>");1N.4o();1Z.5Q.4F();1Z.5Q.3t();l 6J(6N,6E){h 2I=6E.4O("4n");D(h i=0;i<2I.u;i++){c(2I[i].6y.6P()=="6A"&&/aE\\.1a$/.1R(2I[i].27)){6N.3D("<4n 4r=\\"1X/1a\\" 6y=\\"6A\\" 27=\\""+2I[i].27+"\\"></4n>")}}}}},az:l(aA){f.1c=l(){q p.M.1f.6C};f.2z=l(aF,aG){h 2A=p.B.4z("","4k",aM,aK,"7a=0"),1N=2A.Q;1N.3D(p.M.1f.77);1N.4o();2A.4F()}}}},B:{Y:l(49,73,3y){3y=3e.aH(3y||0,0);D(h i=3y;i<49.u;i++){c(49[i]==73){q i}}q-1},6d:l(72){q 72+3e.aI(3e.b2()*b3).2u()},6c:l(51,4L){h 3h={},1W;D(1W 1V 51){3h[1W]=51[1W]}D(1W 1V 4L){3h[1W]=4L[1W]}q 3h},80:l(4J){6U(4J){2K"I":q I;2K"N":q N}q 4J},4z:l(43,6W,4B,4H,2N){h x=(6X.26-4B)/2,y=(6X.2e-4H)/2;2N+=", G="+x+", 4w="+y+", 26="+4B+", 2e="+4H;2N=2N.E(/^,/,"");h 4E=1q.bk(43,6W,2N);4E.4F();q 4E},7C:l(1G,1T,1U){c(1G.6Z){1G["e"+1T+1U]=1U;1G[1T+1U]=l(){1G["e"+1T+1U](1q.6Y)};1G.6Z("bw"+1T,1G[1T+1U])}F{1G.bv(1T,1U,N)}},1A:l(z){1A(p.M.1f.1A+z)},4u:l(4N,6Q){h 2r=p.1r.4Z,3V=v;c(2r==v){2r={};D(h 2L 1V p.2d){h 42=p.2d[2L].bu;c(42==v){1J}p.2d[2L].R=2L.6P();D(h i=0;i<42.u;i++){2r[42[i]]=2L}}p.1r.4Z=2r}3V=p.2d[2r[4N]];c(3V==v&&6Q!=N){p.B.1A(p.M.1f.6T+4N)}q 3V},46:l(z,6S){h 2E=z.1P("\\n");D(h i=0;i<2E.u;i++){2E[i]=6S(2E[i])}q 2E.5A("\\n")},8C:l(z){q z.E(/^[ ]*[\\n]+|[\\n]*[ ]*$/g,"")},8H:l(z){h 3X,45={},4P=W U("^\\\\[(?<4c>(.*?))\\\\]$"),7e=W U("(?<R>[\\\\w-]+)"+"\\\\s*:\\\\s*"+"(?<24>"+"[\\\\w-%#]+|"+"\\\\[.*?\\\\]|"+"\\".*?\\"|"+"\'.*?\'"+")\\\\s*;?","g");2j((3X=7e.T(z))!=v){h 2f=3X.24.E(/^[\'"]|[\'"]$/g,"");c(2f!=v&&4P.1R(2f)){h m=4P.T(2f);2f=m.4c.u>0?m.4c.1P(/\\s*,\\s*/):[]}45[3X.R]=2f}q 45},7K:l(z,1a){c(z==v||z.u==0||z=="\\n"){q z}z=z.E(/</g,"&X;");z=z.E(/ {2,}/g,l(m){h 4t="";D(h i=0;i<m.u-1;i++){4t+="&2B;"}q 4t+" "});c(1a!=v){z=p.B.46(z,l(2l){c(2l.u==0){q""}h 3W="";2l=2l.E(/^(&2B;| )+/,l(s){3W=s;q""});c(2l.u==0){q 3W}q 3W+"<C 1s=\\""+1a+"\\">"+2l+"</C>"})}q z},7V:l(6l,6o){h 32=6l.2u();2j(32.u<6o){32="0"+32}q 32},6k:l(){h 3w=Q.22("A"),3B,3o=0,44=Q.33,1k=p.B.6d("6k"),36="<A 1s=\\"",2Y="</A>",4U="</4G>";3w.1Q=36+"6e\\">"+36+"1p\\">"+36+"2y\\">"+36+"63"+"\\"><4G 1s=\\"b5\\"><4G 1k=\\""+1k+"\\">&2B;"+4U+4U+2Y+2Y+2Y+2Y;44.2p(3w);3B=Q.bb(1k);c(/bg/i.1R(6K.7k)){h 6v=1q.be(3B,v);3o=85(6v.bc("26"))}F{3o=3B.bd}44.4p(3w);q 3o},8b:l(79,6s){h 1H="";D(h i=0;i<6s;i++){1H+=" "}q 79.E(/\\t/g,1H)},8a:l(2Z,4f){h bF=2Z.1P("\\n"),1H="\\t",4d="";D(h i=0;i<50;i++){4d+=" "}l 8x(3s,18,8A){q 3s.29(0,18)+4d.29(0,8A)+3s.29(18+1,3s.u)};2Z=p.B.46(2Z,l(20){c(20.Y(1H)==-1){q 20}h 18=0;2j((18=20.Y(1H))!=-1){h 8w=4f-18%4f;20=8x(20,18,8w)}q 20});q 2Z},3d:l(z){h br=/<br\\s*\\/?>|&X;br\\s*\\/?&Z;/4e;c(p.M.8B==I){z=z.E(br,"\\n")}c(p.M.8f==I){z=z.E(br,"")}q z},2G:l(z){q z.E(/^\\s+|\\s+$/g,"")},2T:l(z){h 21=p.B.3d(z).1P("\\n"),bf=W bh(),8D=/^\\s*/,2a=ba;D(h i=0;i<21.u&&2a>0;i++){h 4x=21[i];c(p.B.2G(4x).u==0){1J}h 4I=8D.T(4x);c(4I==v){q z}2a=3e.2a(4I[0].u,2a)}c(2a>0){D(h i=0;i<21.u;i++){21[i]=21[i].29(2a)}}q 21.5A("\\n")},82:l(35,31){c(35.H<31.H){q-1}F{c(35.H>31.H){q 1}F{c(35.u<31.u){q-1}F{c(35.u>31.u){q 1}}}}q 0},2D:l(8q,34){l 8n(4D,8r){q[W p.4v(4D[0],4D.H,8r.1a)]};h b4=0,4s=v,3L=[],8p=34.4X?34.4X:8n;2j((4s=34.3K.T(8q))!=v){3L=3L.2t(8p(4s,34))}q 3L},8m:l(8o){h X="&X;",Z="&Z;";q 8o.E(p.8h.43,l(m){h 4j="",47="";c(m.Y(X)==0){47=X;m=m.3U(X.u)}c(m.Y(Z)==m.u-Z.u){m=m.3U(0,m.u-Z.u);4j=Z}q 47+"<a 27=\\""+m+"\\">"+m+"</a>"+4j})},8v:l(){h 3N=Q.4O("1l"),4i=[];D(h i=0;i<3N.u;i++){c(3N[i].4r=="6e"){4i.K(3N[i])}}q 4i},8I:l(4b){h 4q="<![b6[",3S="]]>",1v=p.B.2G(4b),3R=N;c(1v.Y(4q)==0){1v=1v.3U(4q.u);3R=I}c(1v.Y(3S)==1v.u-3S.u){1v=1v.3U(0,1v.u-3S.u);3R=I}q 3R?1v:4b}},1I:l(8E,4R){l 8e(4g){h 4Q=[];D(h i=0;i<4g.u;i++){4Q.K(4g[i])}q 4Q};h 2q=4R?[4R]:8e(Q.4O(p.M.8s)),8J="1Q",2k=v,4S=p.M;c(4S.4T){2q=2q.2t(p.B.8v())}c(2q.u===0){q}D(h i=0;i<2q.u;i++){h 2M=2q[i],28=p.B.8H(2M.L),1D,2W,25;28=p.B.6c(8E,28);1D=28["2O"];c(1D==v){1J}c(28["1L-1l"]=="I"||p.6b["1L-1l"]==I){2k=W p.4a(1D);1D="b9"}F{h 3P=p.B.4u(1D);c(3P){1D=3P.R;2k=W 3P()}F{1J}}2W=2M[8J];c(4S.4T){2W=p.B.8I(2W)}28["2O-R"]=1D;2k.1I(2W,28);25=2k.A;c(p.M.8u){25=Q.22("bj");25.24=2k.A.1Q;25.1m.26="bt";25.1m.2e="bx"}2M.7y.bs(25,2M)}},bq:l(7H){p.B.7C(1q,"bl",l(){p.1I(7H)})}};p.4v=l(4A,7G,1a){f.24=4A;f.H=7G;f.u=4A.u;f.1a=1a;f.5Y=v};p.4v.14.2u=l(){q f.24};p.4a=l(4K){h 3z=p.B.4u(4K),2g,4W=W p.2d.bm(),bn=v;c(3z==v){q}2g=W 3z();f.4m=4W;c(2g.3I==v){p.B.1A(p.M.1f.7x+4K);q}4W.59.K({3K:2g.3I.C,4X:7p});l 3A(4Y,7w){D(h j=0;j<4Y.u;j++){4Y[j].H+=7w}};l 7p(19,bp){h 7n=19.C,1o=[],4M=2g.59,7l=19.H+19.G.u,2U=2g.3I,1n;D(h i=0;i<4M.u;i++){1n=p.B.2D(7n,4M[i]);3A(1n,7l);1o=1o.2t(1n)}c(2U.G!=v&&19.G!=v){1n=p.B.2D(19.G,2U.G);3A(1n,19.H);1o=1o.2t(1n)}c(2U.1d!=v&&19.1d!=v){1n=p.B.2D(19.1d,2U.1d);3A(1n,19.H+19[0].bo(19.1d));1o=1o.2t(1n)}D(h j=0;j<1o.u;j++){1o[j].5Y=3z.R}q 1o}};p.4a.14.1I=l(7t,7s){f.4m.1I(7t,7s);f.A=f.4m.A};p.7I=l(){};p.7I.14={V:l(7J,7Z){h 4l=f.1E[7J];q p.B.80(4l==v?7Z:4l)},1c:l(7Y){q Q.22(7Y)},8i:l(2F,81){h 3u=[];c(2F!=v){D(h i=0;i<2F.u;i++){c(7X(2F[i])=="4h"){3u=3u.2t(p.B.2D(81,2F[i]))}}}q 3u.aB(p.B.82)},86:l(){h 23=f.2C;D(h i=0;i<23.u;i++){c(23[i]===v){1J}h 2x=23[i],4V=2x.H+2x.u;D(h j=i+1;j<23.u&&23[i]!==v;j++){h 1S=23[j];c(1S===v){1J}F{c(1S.H>4V){2h}F{c(1S.H==2x.H&&1S.u>2x.u){f.2C[i]=v}F{c(1S.H>=2x.H&&1S.H<4V){f.2C[j]=v}}}}}}},8t:l(2H){h 3r=2H.1P(/\\n/g),3n=85(f.V("84-2y")),2v=f.V("83-2y-7W"),7N=f.V("1I",[]),7U=f.V("3g");2H="";c(2v==I){2v=(3n+3r.u-1).2u().u}F{c(40(2v)==I){2v=0}}D(h i=0;i<3r.u;i++){h 1x=3r[i],60=/^(&2B;|\\s)+/.T(1x),52="aN"+(i%2==0?1:2),7F=p.B.7V(3n+i,2v),7P=p.B.Y(7N,(3n+i).2u())!=-1,2S=v;c(60!=v){2S=60[0].2u();1x=1x.29(2S.u)}1x=p.B.2G(1x);c(1x.u==0){1x="&2B;"}c(7P){52+=" aQ"}2H+="<A 1s=\\"2y "+52+"\\">"+"<7L>"+"<7T>"+(7U?"<3F 1s=\\"aS\\"><C>"+7F+"</C></3F>":"")+"<3F 1s=\\"63\\">"+(2S!=v?"<C 1s=\\"by\\">"+2S.E(" ","&2B;")+"</C>":"")+1x+"</3F>"+"</7T>"+"</7L>"+"</A>"}q 2H},8y:l(5X,5T){h 18=0,3c="",3a=p.B.7K,5S=f.V("2O-R","");l 5W(5Z){h 5R=5Z?(5Z.5Y||5S):5S;q 5R?5R+" ":""};D(h i=0;i<5T.u;i++){h 1y=5T[i],3G;c(1y===v||1y.u===0){1J}3G=5W(1y);3c+=3a(5X.29(18,1y.H-18),3G+"7O")+3a(1y.24,3G+1y.1a);18=1y.H+1y.u}3c+=3a(5X.29(18),5W()+"7O");q 3c},1I:l(C,7E){h cb=p.M,1r=p.1r,A,ci,3Z,ch="cn";f.1E={};f.A=v;f.1p=v;f.C=v;f.1i=v;f.6g={};f.1k=p.B.6d("cl");1r.6f[f.1k]=f;c(C===v){C=""}f.1E=p.B.6c(p.6b,7E||{});c(f.V("88")==I){f.1E.1w=f.1E.3g=N}f.A=A=f.1c("3Y");f.1p=f.1c("3Y");f.1p.L="1p";L="6e";A.1k=f.1k;c(f.V("66")){L+=" 5O"}c(f.V("3g")==N){L+=" bB"}c(f.V("5h-1p")==N){f.1p.L+=" bO-5h"}L+=" "+f.V("1s-R");L+=" "+f.V("2O-R");A.L=L;f.5g=C;f.C=p.B.8C(C).E(/\\r/g," ");3Z=f.V("1H-2Q");f.C=f.V("8d-89")==I?p.B.8a(f.C,3Z):p.B.8b(f.C,3Z);f.C=p.B.2T(f.C);c(f.V("1w")){f.1i=f.1c("3Y");f.1i.L="1i";f.1i.2p(p.1w.1c(f));A.2p(f.1i);h 1i=f.1i;l 58(){1i.L=1i.L.E("53","")};A.c0=l(){58();1i.L+=" 53"};A.bX=l(){58()}}A.2p(f.1p);f.2C=f.8i(f.59,f.C);f.86();C=f.8y(f.C,f.2C);C=f.8t(p.B.2G(C));c(f.V("8k-8l")){C=p.B.8m(C)}f.1p.1Q=C},9f:l(z){z=z.E(/^\\s+|\\s+$/g,"").E(/\\s+/g,"|");q"\\\\b(?:"+z+")\\\\b"},9i:l(2J){f.3I={G:{3K:2J.G,1a:"1l"},1d:{3K:2J.1d,1a:"1l"},C:W U("(?<G>"+2J.G.1g+")"+"(?<C>.*?)"+"(?<1d>"+2J.1d.1g+")","96")}}};q p}()}c(!1q.U){(l(){h 2w={T:10.14.T,87:5I.14.87,E:5I.14.E,1P:5I.14.1P},1F={13:/(?:[^\\\\([#\\s.]+|\\\\(?!k<[\\w$]+>|[7z]{[^}]+})[\\S\\s]?|\\((?=\\?(?!#|<[\\w$]+>)))+|(\\()(?:\\?(?:(#)[^)]*\\)|<([$\\w]+)>))?|\\\\(?:k<([\\w$]+)>|[7z]{([^}]+)})|(\\[\\^?)|([\\S\\s])/g,99:/(?:[^$]+|\\$(?![1-9$&`\']|{[$\\w]+}))+|\\$(?:([1-9]\\d*|[$&`\'])|{([$\\w]+)})/g,37:/^(?:\\s+|#.*)+/,5B:/^(?:[?*+]|{\\d+(?:,\\d*)?})/,7Q:/&&\\[\\^?/g,7S:/]/g},7o=l(5C,5v,5u){D(h i=5u||0;i<5C.u;i++){c(5C[i]===5v){q i}}q-1},8G=/()??/.T("")[1]!==3j,3q={};U=l(1e,1O){c(1e 68 10){c(1O!==3j){3H 7r("4y\'t 4C 9a 8z 95 7u 10 5u 94")}q 1e.3E()}h 1O=1O||"",7R=1O.Y("s")>-1,7M=1O.Y("x")>-1,5z=N,3v=[],1b=[],13=1F.13,J,cc,38,3M,3p;13.O=0;2j(J=2w.T.2n(13,1e)){c(J[2]){c(!1F.5B.1R(1e.17(13.O))){1b.K("(?:)")}}F{c(J[1]){3v.K(J[3]||v);c(J[3]){5z=I}1b.K("(")}F{c(J[4]){3M=7o(3v,J[4]);1b.K(3M>-1?"\\\\"+(3M+1)+(40(1e.5w(13.O))?"":"(?:)"):J[0])}F{c(J[5]){1b.K(3q.7m?3q.7m.7q(J[5],J[0].5w(1)==="P"):J[0])}F{c(J[6]){c(1e.5w(13.O)==="]"){1b.K(J[6]==="["?"(?!)":"[\\\\S\\\\s]");13.O++}F{cc=U.8g("&&"+1e.17(J.H),1F.7Q,1F.7S,"",{7D:"\\\\"})[0];1b.K(J[6]+cc+"]");13.O+=cc.u+1}}F{c(J[7]){c(7R&&J[7]==="."){1b.K("[\\\\S\\\\s]")}F{c(7M&&1F.37.1R(J[7])){38=2w.T.2n(1F.37,1e.17(13.O-1))[0].u;c(!1F.5B.1R(1e.17(13.O-1+38))){1b.K("(?:)")}13.O+=38-1}F{1b.K(J[7])}}}F{1b.K(J[0])}}}}}}}3p=10(1b.5A(""),2w.E.2n(1O,/[9B]+/g,""));3p.1C={1g:1e,2m:5z?3v:v};q 3p};U.9q=l(R,o){3q[R]=o};10.14.T=l(z){h 1h=2w.T.2n(f,z),R,i,5y;c(1h){c(8G&&1h.u>1){5y=W 10("^"+f.1g+"$(?!\\\\s)",f.5E());2w.E.2n(1h[0],5y,l(){D(i=1;i<8j.u-2;i++){c(8j[i]===3j){1h[i]=3j}}})}c(f.1C&&f.1C.2m){D(i=1;i<1h.u;i++){R=f.1C.2m[i-1];c(R){1h[R]=1h[i]}}}c(f.3l&&f.O>(1h.H+1h[0].u)){f.O--}}q 1h}})()}10.14.5E=l(){q(f.3l?"g":"")+(f.av?"i":"")+(f.8F?"m":"")+(f.37?"x":"")+(f.a4?"y":"")};10.14.3E=l(7A){h 5F=W U(f.1g,(7A||"")+f.5E());c(f.1C){5F.1C={1g:f.1C.1g,2m:f.1C.2m?f.1C.2m.17(0):v}}q 5F};10.14.2n=l(90,z){q f.T(z)};10.14.9b=l(9h,8c){q f.T(8c[0])};U.5P=l(57,5e){h 55="/"+57+"/"+(5e||"");q U.5P[55]||(U.5P[55]=W U(57,5e))};U.41=l(z){q z.E(/[-[\\]{}()*+?.\\\\^$|,#\\s]/g,"\\\\$&")};U.8g=l(z,G,11,1j,2R){h 2R=2R||{},2P=2R.7D,12=2R.c5,1j=1j||"",5r=1j.Y("g")>-1,70=1j.Y("i")>-1,7v=1j.Y("m")>-1,5a=1j.Y("y")>-1,1j=1j.E(/y/g,""),G=G 68 10?(G.3l?G:G.3E("g")):W U(G,"g"+1j),11=11 68 10?(11.3l?11:11.3E("g")):W U(11,"g"+1j),1M=[],2o=0,1u=0,1t=0,1z=0,2b,2c,1B,1K,3Q,48;c(2P){c(2P.u>1){3H aC("4y\'t 4C aL aJ 7u 41 7B")}c(7v){3H 7r("4y\'t 4C 41 7B 8z bi b8 8F b7")}3Q=U.41(2P);48=W 10("^(?:"+3Q+"[\\\\S\\\\s]|(?:(?!"+G.1g+"|"+11.1g+")[^"+3Q+"])+)+",70?"i":"")}2j(I){G.O=11.O=1t+(2P?(48.T(z.17(1t))||[""])[0].u:0);1B=G.T(z);1K=11.T(z);c(1B&&1K){c(1B.H<=1K.H){1K=v}F{1B=v}}c(1B||1K){1u=(1B||1K).H;1t=(1B?G:11).O}F{c(!2o){2h}}c(5a&&!2o&&1u>1z){2h}c(1B){c(!2o++){2b=1u;2c=1t}}F{c(1K&&2o){c(!--2o){c(12){c(12[0]&&2b>1z){1M.K([12[0],z.17(1z,2b),1z,2b])}c(12[1]){1M.K([12[1],z.17(2b,2c),2b,2c])}c(12[2]){1M.K([12[2],z.17(2c,1u),2c,1u])}c(12[3]){1M.K([12[3],z.17(1u,1t),1u,1t])}}F{1M.K(z.17(2c,1u))}1z=1t;c(!5r){2h}}}F{G.O=11.O=0;3H bP("8L aq 9r ar 8Z")}}c(1u===1t){1t++}}c(5r&&!5a&&12&&12[0]&&z.u>1z){1M.K([12[0],z.17(1z),1z,z.u])}G.O=11.O=0;q 1M};',62,768,'||||||||||||if|||this||var||||function||||sh|return||||length|null||||str|div|utils|code|for|replace|else|left|index|true|_121|push|className|config|false|lastIndex||document|name||exec|XRegExp|getParam|new|lt|indexOf|gt|RegExp|_139|vN|part|prototype|||slice|pos|_d3|css|_11f|create|right|_119|strings|source|_129|bar|_13a|id|script|style|_da|_d6|lines|window|vars|class|_145|_144|_b5|toolbar|_f4|_103|_146|alert|_149|_x|_c3|params|lib|obj|tab|highlight|continue|_14a|html|_142|doc|_11a|split|innerHTML|test|_ec|_5a|_5b|in|_4f|text|_8|_3c|_91|_98|createElement|_e7|value|_c5|width|href|_c2|substr|min|_147|_148|brushes|height|_6e|_cd|break|attributes|while|_be|_75|captureNames|call|_143|appendChild|_bc|_5f|http|concat|toString|_f0|real|_e9|line|execute|wnd|nbsp|matches|getMatches|_66|_e3|trim|_ed|_40|_10f|case|_61|_c1|_55|brush|_13c|size|_13b|_f9|unindent|_d9|_28|_c4|SyntaxHighlighter|_81|_88|_5|m2|_7a|body|_a2|m1|_80|extended|len|font|_fe|gm|_fd|fixInputString|Math|color|gutter|_4e|title|undefined|com|global|printFrame|_ef|_7d|_125|_118|_ee|_8e|print|_e5|_11e|_7b|_32|_49|_cc|offsetMatches|_7c|_25|write|addFlags|td|_104|throw|htmlScript|_22|regex|_a7|_124|_af|_2|_c6|_14b|_b6|_b4|_3|substring|_60|_76|_6a|DIV|_10b|isNaN|escape|_62|url|_7e|_6b|eachLine|_ae|esc|_47|HtmlScript|_b2|values|_8c|gi|_89|_b9|object|_b0|_ad|_blank|_e1|xmlBrush|link|close|removeChild|_b3|type|_a6|_73|findBrush|Match|top|_9d|can|popup|_c8|_53|supply|_a3|win|focus|span|_54|_9e|_50|_cb|_4d|_d7|_5d|getElementsByTagName|_6c|_ba|_b8|_bf|useScriptTags|_82|_ea|_ce|func|_d0|discoveredBrushes||_4c|_f6|show|pre|key|_29|_133|hide|regexList|_141|_19|_1a|viewSource|_134|_2b|originalCode|wrap|copyToClipboard|highlighterId|toolbarItemHeight|toolbarItemWidth|_2a|_2c|_2e|_2d|expandSource|_13e|_4|_7|from|item|charAt|www|r2|_11d|join|quantifier|_113|_e|getNativeFlags|_12e|_17|_18|String|_10|_b|_9|_f|_d|collapsed|cache|contentWindow|_101|_ff|_fb|swf|_30|getBrushNameCss|_fa|brushName|_100|_f5|_37|_35|content|_24|_38|collapse|_2f|instanceof|clipboardSwf|_27|defaults|merge|guid|syntaxhighlighter|highlighters|toolbarCommands|2009|_6|500px|measureSpace|_78|createButton|message|_79|clipboard|to|0px|_85|decoration|center|_83|margin|w3|rel|head|stylesheet|org|help|xhtml1|_3f|0099FF|align|DTD|alexgorbatchev|copyStyles|navigator|none|executeCommand|_3e|version|toLowerCase|_5e|_1e|_65|noBrush|switch|flash|_52|screen|event|attachEvent|_13f|shockwave|_4b|_48|clipboardData|px|commandName|aboutDialog|copyToClipboardConfirmation|_84|scrollbars|_14|_36|items|_6d|_16|_13|_15|_12|_a|userAgent|_d8|unicode|_d5|_112|process|get|TypeError|_de|_dd|one|_140|_d1|brushNotHtmlScript|parentNode|pP|_12d|character|addEvent|escapeChar|_106|_f7|_c9|_c7|Highlighter|_df|decorate|table|_11c|_f1|plain|_f8|classLeft|_11b|classRight|tr|_f2|padNumber|numbers|typeof|_e2|_e0|toBoolean|_e4|matchesSortCallback|pad|first|parseInt|removeNestedMatches|match|light|tabs|processSmartTabs|processTabs|args|smart|toArray|stripBrs|matchRecursive|regexLib|findMatches|arguments|auto|links|processUrls|defaultAdd|_a9|_a8|_a1|_a4|tagName|createDisplayLines|debug|getSyntaxHighlighterScriptTags|_93|insertSpaces|processMatches|when|_90|bloggerMode|trimFirstAndLastLines|_9a|_b7|multiline|_117|parseParams|stripCData|_bd|Copyright|subject|Alex|2004|development|_1c|keep|donate|Gorbatchev|_1b|syntax|JavaScript|active|highlighter|multiLineSingleQuotedString|delimiters|_12f|string|scriptScriptTags|aspScriptTags|another|constructing|sgi|try|catch|replaceVar|flags|apply|phpScriptTags|singleLineCComments|singleLinePerlComments|getKeywords|multiLineCComments|_131|forHtmlScript|doubleQuotedString|xmlComments|onclick|multiLineDoubleQuotedString|singleQuotedString|spaceWidth|bottom|addPlugin|contains|1999|xmlns|dtd|TR|transitional|xhtml|meta|utf|About|sx|charset|Type|equiv|Content|EN|Transitional|your|now|Can|is|The|view|copy|find|Brush|PUBLIC|W3C|XHTML|DOCTYPE|option|wasn|configured|family|Geneva|you|like|please|If|sticky|October|target|https|paypal|_s|xclick|hosted_button_id|cmd|webscr|cgi|bin|364|4em|background|fff|000|serif|sans|Arial|Helvetica|1em|data|unbalanced|75em|large|xx|ignoreCase|3em|2930402|always|about|_42|sort|SyntaxError|printing|shCore|_43|_44|max|round|than|250|more|500|alt|absolute|error|highlighted|ok|number|amp|setData|printSource|_39|cssText|position|IFRAME|_3b|_1f|random|1000000|_a5|block|CDATA|flag|the|htmlscript|1000|getElementById|getPropertyValue|offsetWidth|getComputedStyle|_99|opera|Array|using|textarea|open|load|Xml|_cf|lastIndexOf|_d4|all||replaceChild|70em|aliases|addEventListener|on|30em|spaces|_3a|flashVars|nogutter|transparent|wmode|allowScriptAccess|_8a|msie|classid|96b8|444553540000|11cf|ae6d|clsid|d27cdb6e|no|Error|location|resizable|400|750|_20|_21|menubar|onmouseout|_clipboard|application|onmouseover|param|_26|codebase|menu|valueNames|movie|cab|swflash|cabs|embed|conf||command|_34|_33|src|_10c|_10a|macromedia|download|highlighter_|pub|important'.split('|'),0,{}))
|
syntaxhighlighter/scripts/shLegacy.js
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
-
* 2.
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
syntaxhighlighter/styles/shCore.css
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
-
* 2.
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
@@ -30,7 +30,10 @@
|
|
30 |
.syntaxhighlighter,
|
31 |
.syntaxhighlighter div,
|
32 |
.syntaxhighlighter code,
|
33 |
-
.syntaxhighlighter
|
|
|
|
|
|
|
34 |
{
|
35 |
margin: 0 !important;
|
36 |
padding: 0 !important;
|
@@ -48,70 +51,82 @@
|
|
48 |
height: auto !important;
|
49 |
width: auto !important;
|
50 |
line-height: 1.1em !important;
|
51 |
-
font-family: "Consolas", "
|
52 |
font-weight: normal !important;
|
53 |
font-style: normal !important;
|
54 |
font-size: 1em !important;
|
|
|
|
|
|
|
55 |
}
|
56 |
|
57 |
.syntaxhighlighter
|
58 |
{
|
59 |
-
width:
|
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
|
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 |
-
|
87 |
-
.syntaxhighlighter.nogutter .line .number
|
88 |
{
|
89 |
-
|
90 |
}
|
91 |
|
92 |
-
.syntaxhighlighter .line
|
93 |
{
|
94 |
-
|
95 |
-
|
96 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
}
|
98 |
|
99 |
-
.syntaxhighlighter .line .
|
100 |
{
|
|
|
|
|
|
|
101 |
display: block !important;
|
102 |
-
padding-left: 1.5em !important;
|
103 |
-
text-indent: -1.5em !important;
|
104 |
}
|
105 |
|
106 |
-
.syntaxhighlighter .line .content
|
|
|
|
|
|
|
|
|
|
|
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 |
|
@@ -130,31 +145,17 @@
|
|
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 */
|
@@ -235,16 +236,10 @@
|
|
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 |
{
|
@@ -258,8 +253,7 @@
|
|
258 |
}
|
259 |
|
260 |
/* Toolbar when visible */
|
261 |
-
.syntaxhighlighter.printing .toolbar
|
262 |
-
.syntaxhighlighter.printing .ruler
|
263 |
{
|
264 |
display: none !important;
|
265 |
}
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
30 |
.syntaxhighlighter,
|
31 |
.syntaxhighlighter div,
|
32 |
.syntaxhighlighter code,
|
33 |
+
.syntaxhighlighter table,
|
34 |
+
.syntaxhighlighter table td,
|
35 |
+
.syntaxhighlighter table tr,
|
36 |
+
.syntaxhighlighter table tbody
|
37 |
{
|
38 |
margin: 0 !important;
|
39 |
padding: 0 !important;
|
51 |
height: auto !important;
|
52 |
width: auto !important;
|
53 |
line-height: 1.1em !important;
|
54 |
+
font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
|
55 |
font-weight: normal !important;
|
56 |
font-style: normal !important;
|
57 |
font-size: 1em !important;
|
58 |
+
/*min-height: inherit !important; *//* For IE8, FF & WebKit */
|
59 |
+
/*min-height: auto !important;*/ /* For IE7 */
|
60 |
+
direction: ltr !important;
|
61 |
}
|
62 |
|
63 |
.syntaxhighlighter
|
64 |
{
|
65 |
+
width: 99% !important; /* 99% fixes IE8 horizontal scrollbar */
|
66 |
margin: 1em 0 1em 0 !important;
|
67 |
padding: 1px !important; /* adds a little border on top and bottom */
|
68 |
position: relative !important;
|
69 |
}
|
70 |
|
71 |
+
.syntaxhighlighter code
|
72 |
+
{
|
73 |
display: inline !important;
|
74 |
}
|
75 |
|
76 |
+
.syntaxhighlighter .bold
|
77 |
+
{
|
78 |
font-weight: bold !important;
|
79 |
}
|
80 |
|
81 |
+
.syntaxhighlighter .italic
|
82 |
+
{
|
83 |
font-style: italic !important;
|
84 |
}
|
85 |
|
86 |
+
.syntaxhighlighter .line
|
87 |
{
|
|
|
|
|
|
|
|
|
|
|
88 |
}
|
89 |
|
90 |
+
.syntaxhighlighter .no-wrap .line .content
|
|
|
91 |
{
|
92 |
+
white-space: pre !important;
|
93 |
}
|
94 |
|
95 |
+
.syntaxhighlighter .line table
|
96 |
{
|
97 |
+
border-collapse: collapse !important;
|
98 |
+
}
|
99 |
+
|
100 |
+
.syntaxhighlighter .line td
|
101 |
+
{
|
102 |
+
vertical-align: top !important;
|
103 |
+
}
|
104 |
+
|
105 |
+
.syntaxhighlighter .line .number
|
106 |
+
{
|
107 |
+
width: 3em !important;
|
108 |
}
|
109 |
|
110 |
+
.syntaxhighlighter .line .number code
|
111 |
{
|
112 |
+
width: 2.7em !important;
|
113 |
+
padding-right: .3em !important;
|
114 |
+
text-align: right !important;
|
115 |
display: block !important;
|
|
|
|
|
116 |
}
|
117 |
|
118 |
+
.syntaxhighlighter .line .content
|
119 |
+
{
|
120 |
+
padding-left: .5em !important;
|
121 |
+
}
|
122 |
+
|
123 |
+
.syntaxhighlighter .line .spaces
|
124 |
{
|
|
|
125 |
}
|
126 |
|
127 |
/* Disable border and margin on the lines when no gutter option is set */
|
128 |
.syntaxhighlighter.nogutter .line .content
|
129 |
{
|
|
|
130 |
border-left: none !important;
|
131 |
}
|
132 |
|
145 |
display: block !important;
|
146 |
}
|
147 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
/* Adjust some properties when collapsed */
|
149 |
|
150 |
+
.syntaxhighlighter.collapsed .lines
|
|
|
151 |
{
|
152 |
display: none !important;
|
153 |
}
|
154 |
|
155 |
.syntaxhighlighter .lines.no-wrap
|
156 |
{
|
157 |
+
overflow: auto !important;
|
158 |
+
overflow-y: hidden !important;
|
159 |
}
|
160 |
|
161 |
/* Styles for the toolbar */
|
236 |
.syntaxhighlighter.printing .line.highlighted .number,
|
237 |
.syntaxhighlighter.printing .line.highlighted.alt1 .content,
|
238 |
.syntaxhighlighter.printing .line.highlighted.alt2 .content,
|
|
|
239 |
{
|
240 |
background: none !important;
|
241 |
}
|
242 |
|
|
|
|
|
|
|
|
|
|
|
243 |
/* Gutter line numbers */
|
244 |
.syntaxhighlighter.printing .line .number
|
245 |
{
|
253 |
}
|
254 |
|
255 |
/* Toolbar when visible */
|
256 |
+
.syntaxhighlighter.printing .toolbar
|
|
|
257 |
{
|
258 |
display: none !important;
|
259 |
}
|
syntaxhighlighter/styles/shThemeDefault.css
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
-
* 2.
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
@@ -35,27 +35,28 @@
|
|
35 |
|
36 |
.syntaxhighlighter
|
37 |
{
|
38 |
-
background-color: #
|
|
|
|
|
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
|
50 |
-
.syntaxhighlighter .line.highlighted.alt2
|
51 |
{
|
52 |
-
background-color: #
|
53 |
}
|
54 |
|
55 |
/* Gutter line numbers */
|
56 |
.syntaxhighlighter .line .number
|
57 |
{
|
58 |
-
color: #
|
59 |
}
|
60 |
|
61 |
/* Add border to the lines */
|
@@ -71,32 +72,15 @@
|
|
71 |
}
|
72 |
|
73 |
/* First line */
|
74 |
-
.syntaxhighlighter .line.alt1
|
75 |
{
|
76 |
background-color: #fff !important;
|
77 |
}
|
78 |
|
79 |
/* Second line */
|
80 |
-
.syntaxhighlighter .line.alt2
|
81 |
-
{
|
82 |
-
background-color: #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
|
@@ -115,6 +99,8 @@
|
|
115 |
color: red !important;
|
116 |
}
|
117 |
|
|
|
|
|
118 |
/************************************
|
119 |
* Actual syntax highlighter colors.
|
120 |
************************************/
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
35 |
|
36 |
.syntaxhighlighter
|
37 |
{
|
38 |
+
background-color: #fff !important;
|
39 |
+
border: 1px solid #E0E0E0 !important;
|
40 |
+
padding: 0 !important;
|
41 |
}
|
42 |
|
43 |
/* Highlighed line number */
|
44 |
.syntaxhighlighter .line.highlighted .number
|
45 |
{
|
|
|
46 |
color: black !important;
|
47 |
}
|
48 |
|
49 |
/* Highlighed line */
|
50 |
+
.syntaxhighlighter .line.highlighted.alt1,
|
51 |
+
.syntaxhighlighter .line.highlighted.alt2
|
52 |
{
|
53 |
+
background-color: #e0e0e0 !important;
|
54 |
}
|
55 |
|
56 |
/* Gutter line numbers */
|
57 |
.syntaxhighlighter .line .number
|
58 |
{
|
59 |
+
color: #afafaf !important;
|
60 |
}
|
61 |
|
62 |
/* Add border to the lines */
|
72 |
}
|
73 |
|
74 |
/* First line */
|
75 |
+
.syntaxhighlighter .line.alt1
|
76 |
{
|
77 |
background-color: #fff !important;
|
78 |
}
|
79 |
|
80 |
/* Second line */
|
81 |
+
.syntaxhighlighter .line.alt2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
{
|
|
|
83 |
background-color: #F8F8F8 !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
}
|
85 |
|
86 |
.syntaxhighlighter .toolbar
|
99 |
color: red !important;
|
100 |
}
|
101 |
|
102 |
+
.nogutter { border: none !important; }
|
103 |
+
|
104 |
/************************************
|
105 |
* Actual syntax highlighter colors.
|
106 |
************************************/
|
syntaxhighlighter/styles/shThemeDjango.css
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
-
* 2.
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
@@ -59,21 +59,16 @@
|
|
59 |
}
|
60 |
|
61 |
/* First line */
|
62 |
-
.syntaxhighlighter .line.alt1
|
63 |
{
|
64 |
}
|
65 |
|
66 |
/* Second line */
|
67 |
-
.syntaxhighlighter .line.alt2
|
68 |
{
|
69 |
background-color: #0a2b1d !important;
|
70 |
}
|
71 |
|
72 |
-
.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 |
{
|
@@ -82,24 +77,12 @@
|
|
82 |
}
|
83 |
|
84 |
/* Highlighed line */
|
85 |
-
.syntaxhighlighter .line.highlighted.alt1
|
86 |
-
.syntaxhighlighter .line.highlighted.alt2
|
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;
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
59 |
}
|
60 |
|
61 |
/* First line */
|
62 |
+
.syntaxhighlighter .line.alt1
|
63 |
{
|
64 |
}
|
65 |
|
66 |
/* Second line */
|
67 |
+
.syntaxhighlighter .line.alt2
|
68 |
{
|
69 |
background-color: #0a2b1d !important;
|
70 |
}
|
71 |
|
|
|
|
|
|
|
|
|
|
|
72 |
/* Highlighed line number */
|
73 |
.syntaxhighlighter .line.highlighted .number
|
74 |
{
|
77 |
}
|
78 |
|
79 |
/* Highlighed line */
|
80 |
+
.syntaxhighlighter .line.highlighted.alt1,
|
81 |
+
.syntaxhighlighter .line.highlighted.alt2
|
82 |
{
|
83 |
background-color: #336442 !important;
|
84 |
}
|
85 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
.syntaxhighlighter .toolbar
|
87 |
{
|
88 |
background-color: #245032 !important;
|
syntaxhighlighter/styles/shThemeEclipse.css
ADDED
@@ -0,0 +1,190 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* SyntaxHighlighter
|
3 |
+
* http://alexgorbatchev.com/
|
4 |
+
*
|
5 |
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6 |
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
+
*
|
8 |
+
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
+
*
|
11 |
+
* @copyright
|
12 |
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
13 |
+
*
|
14 |
+
* @license
|
15 |
+
* This file is part of SyntaxHighlighter.
|
16 |
+
*
|
17 |
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
18 |
+
* it under the terms of the GNU Lesser General Public License as published by
|
19 |
+
* the Free Software Foundation, either version 3 of the License, or
|
20 |
+
* (at your option) any later version.
|
21 |
+
*
|
22 |
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
23 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
+
* GNU General Public License for more details.
|
26 |
+
*
|
27 |
+
* You should have received a copy of the GNU General Public License
|
28 |
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
29 |
+
*/
|
30 |
+
/**
|
31 |
+
* Eclipse IDE SyntaxHighlighter color theme
|
32 |
+
* (C) Code-House
|
33 |
+
* http://blog.code-house.org/2009/10/xml-i-adnotacje-kod-ogolnego-przeznaczenia-i-jpa/
|
34 |
+
*/
|
35 |
+
|
36 |
+
.syntaxhighlighter
|
37 |
+
{
|
38 |
+
background-color: #fff !important;
|
39 |
+
}
|
40 |
+
|
41 |
+
/* Highlighed line number */
|
42 |
+
.syntaxhighlighter .line.highlighted .number
|
43 |
+
{
|
44 |
+
background-color: #c3defe !important;
|
45 |
+
}
|
46 |
+
|
47 |
+
/* Highlighed line */
|
48 |
+
.syntaxhighlighter .line.highlighted.alt1,
|
49 |
+
.syntaxhighlighter .line.highlighted.alt2
|
50 |
+
{
|
51 |
+
background-color: #c3defe !important;
|
52 |
+
}
|
53 |
+
|
54 |
+
/* Gutter line numbers */
|
55 |
+
.syntaxhighlighter .line .number
|
56 |
+
{
|
57 |
+
color: #787878 !important;
|
58 |
+
background-color: #fff !important;
|
59 |
+
}
|
60 |
+
|
61 |
+
/* Add border to the lines */
|
62 |
+
.syntaxhighlighter .line .content
|
63 |
+
{
|
64 |
+
border-left: 1px solid #d4d0c8 !important;
|
65 |
+
color: #000 !important;
|
66 |
+
}
|
67 |
+
|
68 |
+
.syntaxhighlighter.printing .line .content
|
69 |
+
{
|
70 |
+
border: 0 !important;
|
71 |
+
}
|
72 |
+
|
73 |
+
/* First line */
|
74 |
+
.syntaxhighlighter .line.alt1
|
75 |
+
{
|
76 |
+
background-color: #fff !important;
|
77 |
+
}
|
78 |
+
|
79 |
+
/* Second line */
|
80 |
+
.syntaxhighlighter .line.alt2
|
81 |
+
{
|
82 |
+
background-color: #fff !important;
|
83 |
+
}
|
84 |
+
|
85 |
+
.syntaxhighlighter .toolbar
|
86 |
+
{
|
87 |
+
background-color: #F8F8F8 !important;
|
88 |
+
border: #E7E5DC solid 1px !important;
|
89 |
+
}
|
90 |
+
|
91 |
+
.syntaxhighlighter .toolbar a
|
92 |
+
{
|
93 |
+
color: #a0a0a0 !important;
|
94 |
+
}
|
95 |
+
|
96 |
+
.syntaxhighlighter .toolbar a:hover
|
97 |
+
{
|
98 |
+
color: red !important;
|
99 |
+
}
|
100 |
+
|
101 |
+
/************************************
|
102 |
+
* Actual syntax highlighter colors.
|
103 |
+
************************************/
|
104 |
+
.syntaxhighlighter .plain,
|
105 |
+
.syntaxhighlighter .plain a
|
106 |
+
{
|
107 |
+
color: #000 !important;
|
108 |
+
}
|
109 |
+
|
110 |
+
.syntaxhighlighter .comments,
|
111 |
+
.syntaxhighlighter .comments a
|
112 |
+
{
|
113 |
+
color: #3f5fbf !important;
|
114 |
+
}
|
115 |
+
|
116 |
+
.syntaxhighlighter .string,
|
117 |
+
.syntaxhighlighter .string a
|
118 |
+
{
|
119 |
+
color: #2a00ff !important;
|
120 |
+
}
|
121 |
+
|
122 |
+
.syntaxhighlighter .keyword
|
123 |
+
{
|
124 |
+
color: #7f0055 !important;
|
125 |
+
font-weight: bold !important;
|
126 |
+
}
|
127 |
+
|
128 |
+
.syntaxhighlighter .preprocessor
|
129 |
+
{
|
130 |
+
color: #646464 !important;
|
131 |
+
}
|
132 |
+
|
133 |
+
.syntaxhighlighter .variable
|
134 |
+
{
|
135 |
+
color: #a70 !important;
|
136 |
+
}
|
137 |
+
|
138 |
+
.syntaxhighlighter .value
|
139 |
+
{
|
140 |
+
color: #090 !important;
|
141 |
+
}
|
142 |
+
|
143 |
+
.syntaxhighlighter .functions
|
144 |
+
{
|
145 |
+
color: #ff1493 !important;
|
146 |
+
}
|
147 |
+
|
148 |
+
.syntaxhighlighter .constants
|
149 |
+
{
|
150 |
+
color: #0066CC !important;
|
151 |
+
}
|
152 |
+
|
153 |
+
.syntaxhighlighter .script
|
154 |
+
{
|
155 |
+
background-color: yellow !important;
|
156 |
+
}
|
157 |
+
|
158 |
+
.syntaxhighlighter .color1,
|
159 |
+
.syntaxhighlighter .color1 a
|
160 |
+
{
|
161 |
+
color: #808080 !important;
|
162 |
+
}
|
163 |
+
|
164 |
+
.syntaxhighlighter .color2,
|
165 |
+
.syntaxhighlighter .color2 a
|
166 |
+
{
|
167 |
+
color: #ff1493 !important;
|
168 |
+
}
|
169 |
+
|
170 |
+
.syntaxhighlighter .color3,
|
171 |
+
.syntaxhighlighter .color3 a
|
172 |
+
{
|
173 |
+
color: red !important;
|
174 |
+
}
|
175 |
+
|
176 |
+
|
177 |
+
.xml .keyword {
|
178 |
+
color: #3f7f7f !important;
|
179 |
+
font-weight: normal !important;
|
180 |
+
}
|
181 |
+
|
182 |
+
.xml .color1,
|
183 |
+
.xml .color1 a{
|
184 |
+
color: #7f007f !important;
|
185 |
+
}
|
186 |
+
|
187 |
+
.xml .string {
|
188 |
+
font-style: italic !important;
|
189 |
+
color: #2a00ff !important;
|
190 |
+
}
|
syntaxhighlighter/styles/shThemeEmacs.css
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
-
* 2.
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
@@ -60,21 +60,16 @@
|
|
60 |
}
|
61 |
|
62 |
/* First line */
|
63 |
-
.syntaxhighlighter .line.alt1
|
64 |
{
|
65 |
}
|
66 |
|
67 |
/* Second line */
|
68 |
-
.syntaxhighlighter .line.alt2
|
69 |
{
|
70 |
background-color: #0f0f0f !important;
|
71 |
}
|
72 |
|
73 |
-
.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 |
{
|
@@ -83,24 +78,12 @@
|
|
83 |
}
|
84 |
|
85 |
/* Highlighed line */
|
86 |
-
.syntaxhighlighter .line.highlighted.alt1
|
87 |
-
.syntaxhighlighter .line.highlighted.alt2
|
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;
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
60 |
}
|
61 |
|
62 |
/* First line */
|
63 |
+
.syntaxhighlighter .line.alt1
|
64 |
{
|
65 |
}
|
66 |
|
67 |
/* Second line */
|
68 |
+
.syntaxhighlighter .line.alt2
|
69 |
{
|
70 |
background-color: #0f0f0f !important;
|
71 |
}
|
72 |
|
|
|
|
|
|
|
|
|
|
|
73 |
/* Highlighed line number */
|
74 |
.syntaxhighlighter .line.highlighted .number
|
75 |
{
|
78 |
}
|
79 |
|
80 |
/* Highlighed line */
|
81 |
+
.syntaxhighlighter .line.highlighted.alt1,
|
82 |
+
.syntaxhighlighter .line.highlighted.alt2
|
83 |
{
|
84 |
background-color: #435A5F !important;
|
85 |
}
|
86 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
.syntaxhighlighter .toolbar
|
88 |
{
|
89 |
background-color: #000000 !important;
|
syntaxhighlighter/styles/shThemeFadeToGrey.css
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
-
* 2.
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
@@ -60,21 +60,16 @@
|
|
60 |
}
|
61 |
|
62 |
/* First line */
|
63 |
-
.syntaxhighlighter .line.alt1
|
64 |
{
|
65 |
}
|
66 |
|
67 |
/* Second line */
|
68 |
-
.syntaxhighlighter .line.alt2
|
69 |
{
|
70 |
background-color: #000000 !important;
|
71 |
}
|
72 |
|
73 |
-
.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 |
{
|
@@ -83,23 +78,12 @@
|
|
83 |
}
|
84 |
|
85 |
/* Highlighed line */
|
86 |
-
.syntaxhighlighter .line.highlighted.alt1
|
87 |
-
.syntaxhighlighter .line.highlighted.alt2
|
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;
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
60 |
}
|
61 |
|
62 |
/* First line */
|
63 |
+
.syntaxhighlighter .line.alt1
|
64 |
{
|
65 |
}
|
66 |
|
67 |
/* Second line */
|
68 |
+
.syntaxhighlighter .line.alt2
|
69 |
{
|
70 |
background-color: #000000 !important;
|
71 |
}
|
72 |
|
|
|
|
|
|
|
|
|
|
|
73 |
/* Highlighed line number */
|
74 |
.syntaxhighlighter .line.highlighted .number
|
75 |
{
|
78 |
}
|
79 |
|
80 |
/* Highlighed line */
|
81 |
+
.syntaxhighlighter .line.highlighted.alt1,
|
82 |
+
.syntaxhighlighter .line.highlighted.alt2
|
83 |
{
|
84 |
background-color: #3A3A00 !important;
|
85 |
}
|
86 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
.syntaxhighlighter .toolbar
|
88 |
{
|
89 |
background-color: #000000 !important;
|
syntaxhighlighter/styles/shThemeMidnight.css
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
-
* 2.
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
@@ -60,22 +60,17 @@
|
|
60 |
}
|
61 |
|
62 |
/* First line */
|
63 |
-
.syntaxhighlighter .line.alt1
|
64 |
{
|
65 |
background-color: #0F192A !important;
|
66 |
}
|
67 |
|
68 |
/* Second line */
|
69 |
-
.syntaxhighlighter .line.alt2
|
70 |
{
|
71 |
background-color: #0F192A !important;
|
72 |
}
|
73 |
|
74 |
-
.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 |
{
|
@@ -84,24 +79,12 @@
|
|
84 |
}
|
85 |
|
86 |
/* Highlighed line */
|
87 |
-
.syntaxhighlighter .line.highlighted.alt1
|
88 |
-
.syntaxhighlighter .line.highlighted.alt2
|
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;
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
60 |
}
|
61 |
|
62 |
/* First line */
|
63 |
+
.syntaxhighlighter .line.alt1
|
64 |
{
|
65 |
background-color: #0F192A !important;
|
66 |
}
|
67 |
|
68 |
/* Second line */
|
69 |
+
.syntaxhighlighter .line.alt2
|
70 |
{
|
71 |
background-color: #0F192A !important;
|
72 |
}
|
73 |
|
|
|
|
|
|
|
|
|
|
|
74 |
/* Highlighed line number */
|
75 |
.syntaxhighlighter .line.highlighted .number
|
76 |
{
|
79 |
}
|
80 |
|
81 |
/* Highlighed line */
|
82 |
+
.syntaxhighlighter .line.highlighted.alt1,
|
83 |
+
.syntaxhighlighter .line.highlighted.alt2
|
84 |
{
|
85 |
background-color: #253E5A !important;
|
86 |
}
|
87 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
.syntaxhighlighter .toolbar
|
89 |
{
|
90 |
background-color: #0F192A !important;
|
syntaxhighlighter/styles/shThemeRDark.css
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
-
* 2.
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
@@ -60,22 +60,17 @@
|
|
60 |
}
|
61 |
|
62 |
/* First line */
|
63 |
-
.syntaxhighlighter .line.alt1
|
64 |
{
|
65 |
background-color: #1B2426 !important;
|
66 |
}
|
67 |
|
68 |
/* Second line */
|
69 |
-
.syntaxhighlighter .line.alt2
|
70 |
{
|
71 |
background-color: #1B2426 !important;
|
72 |
}
|
73 |
|
74 |
-
.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 |
{
|
@@ -84,24 +79,12 @@
|
|
84 |
}
|
85 |
|
86 |
/* Highlighed line */
|
87 |
-
.syntaxhighlighter .line.highlighted.alt1
|
88 |
-
.syntaxhighlighter .line.highlighted.alt2
|
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;
|
6 |
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
7 |
*
|
8 |
* @version
|
9 |
+
* 2.1.364 (October 15 2009)
|
10 |
*
|
11 |
* @copyright
|
12 |
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
60 |
}
|
61 |
|
62 |
/* First line */
|
63 |
+
.syntaxhighlighter .line.alt1
|
64 |
{
|
65 |
background-color: #1B2426 !important;
|
66 |
}
|
67 |
|
68 |
/* Second line */
|
69 |
+
.syntaxhighlighter .line.alt2
|
70 |
{
|
71 |
background-color: #1B2426 !important;
|
72 |
}
|
73 |
|
|
|
|
|
|
|
|
|
|
|
74 |
/* Highlighed line number */
|
75 |
.syntaxhighlighter .line.highlighted .number
|
76 |
{
|
79 |
}
|
80 |
|
81 |
/* Highlighed line */
|
82 |
+
.syntaxhighlighter .line.highlighted.alt1,
|
83 |
+
.syntaxhighlighter .line.highlighted.alt2
|
84 |
{
|
85 |
background-color: #435A5F !important;
|
86 |
}
|
87 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
.syntaxhighlighter .toolbar
|
89 |
{
|
90 |
background-color: #1B2426 !important;
|
syntaxhighlighter/styles/wrapping.png
DELETED
Binary file
|