SyntaxHighlighter Evolved - Version 3.1.11

Version Description

Download this release

Release Info

Developer Viper007Bond
Plugin Icon wp plugin SyntaxHighlighter Evolved
Version 3.1.11
Comparing to
See all releases

Code changes from version 3.1.9 to 3.1.11

Files changed (35) hide show
  1. localization/_syntaxhighlighter-template.po +405 -405
  2. localization/syntaxhighlighter-ja.mo +0 -0
  3. localization/syntaxhighlighter-ja.po +157 -261
  4. readme.md +1 -1
  5. readme.txt +14 -2
  6. syntaxhighlighter.php +52 -48
  7. syntaxhighlighter3/scripts/shAutoloader.js +138 -17
  8. syntaxhighlighter3/scripts/shBrushAS3.js +59 -59
  9. syntaxhighlighter3/scripts/shBrushAppleScript.js +100 -75
  10. syntaxhighlighter3/scripts/shBrushBash.js +75 -59
  11. syntaxhighlighter3/scripts/shBrushCSharp.js +65 -65
  12. syntaxhighlighter3/scripts/shBrushColdFusion.js +100 -100
  13. syntaxhighlighter3/scripts/shBrushCpp.js +97 -97
  14. syntaxhighlighter3/scripts/shBrushCss.js +91 -91
  15. syntaxhighlighter3/scripts/shBrushDelphi.js +55 -55
  16. syntaxhighlighter3/scripts/shBrushDiff.js +41 -41
  17. syntaxhighlighter3/scripts/shBrushErlang.js +52 -52
  18. syntaxhighlighter3/scripts/shBrushGroovy.js +67 -67
  19. syntaxhighlighter3/scripts/shBrushJScript.js +52 -52
  20. syntaxhighlighter3/scripts/shBrushJava.js +57 -57
  21. syntaxhighlighter3/scripts/shBrushJavaFX.js +58 -58
  22. syntaxhighlighter3/scripts/shBrushPerl.js +96 -72
  23. syntaxhighlighter3/scripts/shBrushPhp.js +88 -88
  24. syntaxhighlighter3/scripts/shBrushPlain.js +33 -33
  25. syntaxhighlighter3/scripts/shBrushPowerShell.js +75 -74
  26. syntaxhighlighter3/scripts/shBrushPython.js +64 -64
  27. syntaxhighlighter3/scripts/shBrushRuby.js +55 -55
  28. syntaxhighlighter3/scripts/shBrushSass.js +99 -94
  29. syntaxhighlighter3/scripts/shBrushScala.js +51 -51
  30. syntaxhighlighter3/scripts/shBrushSql.js +67 -66
  31. syntaxhighlighter3/scripts/shBrushVb.js +56 -56
  32. syntaxhighlighter3/scripts/shBrushXml.js +71 -69
  33. syntaxhighlighter3/scripts/shCore.js +17 -17
  34. syntaxhighlighter3/scripts/shLegacy.js +157 -17
  35. syntaxhighlighter3/styles/shCore.css +1 -0
localization/_syntaxhighlighter-template.po CHANGED
@@ -1,405 +1,405 @@
1
- # Copyright (C) 2014 SyntaxHighlighter Evolved
2
- # This file is distributed under the same license as the SyntaxHighlighter Evolved package.
3
- msgid ""
4
- msgstr ""
5
- "Project-Id-Version: SyntaxHighlighter Evolved 3.1.9\n"
6
- "Report-Msgid-Bugs-To: http://wordpress.org/tag/syntaxhighlighter\n"
7
- "POT-Creation-Date: 2014-03-20 19:20:58+00:00\n"
8
- "MIME-Version: 1.0\n"
9
- "Content-Type: text/plain; charset=UTF-8\n"
10
- "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
12
- "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
- "Language-Team: LANGUAGE <LL@li.org>\n"
14
-
15
- #: syntaxhighlighter.php:248
16
- msgid "Default"
17
- msgstr ""
18
-
19
- #: syntaxhighlighter.php:249
20
- msgid "Django"
21
- msgstr ""
22
-
23
- #: syntaxhighlighter.php:250
24
- msgid "Eclipse"
25
- msgstr ""
26
-
27
- #: syntaxhighlighter.php:251
28
- msgid "Emacs"
29
- msgstr ""
30
-
31
- #: syntaxhighlighter.php:252
32
- msgid "Fade to Grey"
33
- msgstr ""
34
-
35
- #: syntaxhighlighter.php:253
36
- msgid "Midnight"
37
- msgstr ""
38
-
39
- #: syntaxhighlighter.php:254
40
- msgid "RDark"
41
- msgstr ""
42
-
43
- #: syntaxhighlighter.php:255
44
- msgid "[None]"
45
- msgstr ""
46
-
47
- #: syntaxhighlighter.php:267 syntaxhighlighter.php:998
48
- msgid "SyntaxHighlighter Settings"
49
- msgstr ""
50
-
51
- #: syntaxhighlighter.php:267
52
- msgid "SyntaxHighlighter"
53
- msgstr ""
54
-
55
- #: syntaxhighlighter.php:308
56
- msgid "Settings"
57
- msgstr ""
58
-
59
- #: syntaxhighlighter.php:660
60
- msgid "show source"
61
- msgstr ""
62
-
63
- #: syntaxhighlighter.php:661
64
- msgid "view source"
65
- msgstr ""
66
-
67
- #: syntaxhighlighter.php:662
68
- msgid "copy to clipboard"
69
- msgstr ""
70
-
71
- #: syntaxhighlighter.php:663
72
- msgid "The code is in your clipboard now"
73
- msgstr ""
74
-
75
- #: syntaxhighlighter.php:664
76
- msgid "print"
77
- msgstr ""
78
-
79
- #: syntaxhighlighter.php:665 syntaxhighlighter.php:672
80
- msgid "?"
81
- msgstr ""
82
-
83
- #: syntaxhighlighter.php:666 syntaxhighlighter.php:673
84
- msgid "SyntaxHighlighter\\n\\n"
85
- msgstr ""
86
-
87
- #: syntaxhighlighter.php:667 syntaxhighlighter.php:674
88
- msgid "Can't find brush for: "
89
- msgstr ""
90
-
91
- #: syntaxhighlighter.php:668 syntaxhighlighter.php:675
92
- msgid "Brush wasn't configured for html-script option: "
93
- msgstr ""
94
-
95
- #: syntaxhighlighter.php:671
96
- msgid "+ expand source"
97
- msgstr ""
98
-
99
- #: syntaxhighlighter.php:986
100
- msgid "Are you sure you want to reset your settings to the defaults?"
101
- msgstr ""
102
-
103
- #: syntaxhighlighter.php:990
104
- msgid "Settings reset to defaults."
105
- msgstr ""
106
-
107
- #: syntaxhighlighter.php:1007
108
- msgid "Highlighter Version"
109
- msgstr ""
110
-
111
- #: syntaxhighlighter.php:1012
112
- msgid "Version 3.x"
113
- msgstr ""
114
-
115
- #: syntaxhighlighter.php:1013
116
- msgid "Version 2.x"
117
- msgstr ""
118
-
119
- #: syntaxhighlighter.php:1021
120
- msgid ""
121
- "Version 3 allows visitors to easily highlight portions of your code with "
122
- "their mouse (either by dragging or double-clicking) and copy it to their "
123
- "clipboard. No toolbar containing a Flash-based button is required."
124
- msgstr ""
125
-
126
- #: syntaxhighlighter.php:1022
127
- msgid ""
128
- "Version 2 allows for line wrapping, something that version 3 does not do at "
129
- "this time."
130
- msgstr ""
131
-
132
- #: syntaxhighlighter.php:1026
133
- msgid "Color Theme"
134
- msgstr ""
135
-
136
- #: syntaxhighlighter.php:1038 syntaxhighlighter.php:1041
137
- msgid "Load All Brushes"
138
- msgstr ""
139
-
140
- #: syntaxhighlighter.php:1042
141
- msgid ""
142
- "Always load all language files (for directly using <code>&lt;pre&gt;</code> "
143
- "tags rather than shortcodes)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If left "
144
- "unchecked (default), then language files will only be loaded when needed<br /"
145
- ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If unsure, leave this box unchecked"
146
- msgstr ""
147
-
148
- #: syntaxhighlighter.php:1048
149
- msgid "Defaults"
150
- msgstr ""
151
-
152
- #: syntaxhighlighter.php:1050
153
- msgid ""
154
- "All of the settings below can be configured on a per-code block basis, but "
155
- "you can control the defaults of all code blocks here."
156
- msgstr ""
157
-
158
- #: syntaxhighlighter.php:1054 syntaxhighlighter.php:1057
159
- msgid "Miscellaneous"
160
- msgstr ""
161
-
162
- #: syntaxhighlighter.php:1059
163
- msgid "Display line numbers"
164
- msgstr ""
165
-
166
- #: syntaxhighlighter.php:1060
167
- msgid "Display the toolbar"
168
- msgstr ""
169
-
170
- #: syntaxhighlighter.php:1061
171
- msgid "Automatically make URLs clickable"
172
- msgstr ""
173
-
174
- #: syntaxhighlighter.php:1062
175
- msgid "Collapse code boxes"
176
- msgstr ""
177
-
178
- #: syntaxhighlighter.php:1063
179
- msgid "Use the light display mode, best for single lines of code"
180
- msgstr ""
181
-
182
- #: syntaxhighlighter.php:1064
183
- msgid "Use smart tabs allowing tabs being used for alignment"
184
- msgstr ""
185
-
186
- #: syntaxhighlighter.php:1065
187
- msgid ""
188
- "Wrap long lines (v2.x only, disabling this will make a scrollbar show "
189
- "instead)"
190
- msgstr ""
191
-
192
- #: syntaxhighlighter.php:1066
193
- msgid ""
194
- "Enable &quot;HTML script&quot; mode by default (see the bottom of this page "
195
- "for details). Checking this box is not recommended as this mode only works "
196
- "with certain languages."
197
- msgstr ""
198
-
199
- #: syntaxhighlighter.php:1071
200
- msgid "Additional CSS Class(es)"
201
- msgstr ""
202
-
203
- #: syntaxhighlighter.php:1075
204
- msgid "Starting Line Number"
205
- msgstr ""
206
-
207
- #: syntaxhighlighter.php:1079
208
- msgid "Line Number Padding"
209
- msgstr ""
210
-
211
- #: syntaxhighlighter.php:1084
212
- msgid "Off"
213
- msgstr ""
214
-
215
- #: syntaxhighlighter.php:1085
216
- msgid "Automatic"
217
- msgstr ""
218
-
219
- #: syntaxhighlighter.php:1101
220
- msgid "Tab Size"
221
- msgstr ""
222
-
223
- #: syntaxhighlighter.php:1105
224
- msgid "Title"
225
- msgstr ""
226
-
227
- #: syntaxhighlighter.php:1108
228
- msgid ""
229
- "Some optional default text to display above each code block or as the "
230
- "clickable text for collapsed code blocks."
231
- msgstr ""
232
-
233
- #: syntaxhighlighter.php:1118 syntaxhighlighter.php:1121
234
- msgid "Reset to Defaults"
235
- msgstr ""
236
-
237
- #: syntaxhighlighter.php:1120
238
- msgid "Save Changes"
239
- msgstr ""
240
-
241
- #: syntaxhighlighter.php:1128
242
- msgid "Preview"
243
- msgstr ""
244
-
245
- #: syntaxhighlighter.php:1130
246
- msgid "Click &quot;Save Changes&quot; to update this preview."
247
- msgstr ""
248
-
249
- #: syntaxhighlighter.php:1149
250
- msgid "PHP Code Example"
251
- msgstr ""
252
-
253
- #: syntaxhighlighter.php:1151
254
- msgid "Hello World!"
255
- msgstr ""
256
-
257
- #: syntaxhighlighter.php:1153
258
- msgid "This line is highlighted."
259
- msgstr ""
260
-
261
- #: syntaxhighlighter.php:1156
262
- msgid ""
263
- "\t\tThis\tis\tan\r\n"
264
- "\t\texample\tof\tsmart\r\n"
265
- "\t\ttabs."
266
- msgstr ""
267
-
268
- #: syntaxhighlighter.php:1161
269
- msgid "WordPress"
270
- msgstr ""
271
-
272
- #: syntaxhighlighter.php:1172
273
- msgid "Shortcode Parameters"
274
- msgstr ""
275
-
276
- #: syntaxhighlighter.php:1174
277
- msgid ""
278
- "These are the parameters you can pass to the shortcode and what they do. For "
279
- "the booleans (i.e. on/off), pass %1$s/%2$s or %3$s/%4$s."
280
- msgstr ""
281
-
282
- #: syntaxhighlighter.php:1177
283
- msgctxt "language parameter"
284
- msgid ""
285
- "%1$s or %2$s &#8212; The language syntax to highlight with. You can "
286
- "alternately just use that as the tag, such as <code>[php]code[/php]</code>. "
287
- "<a href=\"%3$s\">Click here</a> for a list of valid tags (under &quot;"
288
- "aliases&quot;)."
289
- msgstr ""
290
-
291
- #: syntaxhighlighter.php:1178
292
- msgctxt "autolinks parameter"
293
- msgid "%s &#8212; Toggle automatic URL linking."
294
- msgstr ""
295
-
296
- #: syntaxhighlighter.php:1179
297
- msgctxt "classname parameter"
298
- msgid "%s &#8212; Add an additional CSS class to the code box."
299
- msgstr ""
300
-
301
- #: syntaxhighlighter.php:1180
302
- msgctxt "collapse parameter"
303
- msgid ""
304
- "%s &#8212; Toggle collapsing the code box by default, requiring a click to "
305
- "expand it. Good for large code posts."
306
- msgstr ""
307
-
308
- #: syntaxhighlighter.php:1181
309
- msgctxt "firstline parameter"
310
- msgid ""
311
- "%s &#8212; An interger specifying what number the first line should be (for "
312
- "the line numbering)."
313
- msgstr ""
314
-
315
- #: syntaxhighlighter.php:1182
316
- msgctxt "gutter parameter"
317
- msgid "%s &#8212; Toggle the left-side line numbering."
318
- msgstr ""
319
-
320
- #: syntaxhighlighter.php:1183
321
- msgctxt "highlight parameter"
322
- msgid ""
323
- "%1$s &#8212; A comma-separated list of line numbers to highlight. You can "
324
- "also specify a range. Example: %2$s"
325
- msgstr ""
326
-
327
- #: syntaxhighlighter.php:1184
328
- msgctxt "htmlscript parameter"
329
- msgid ""
330
- "%s &#8212; Toggle highlighting any extra HTML/XML. Good for when you're "
331
- "mixing HTML/XML with another language, such as having PHP inside an HTML web "
332
- "page. The above preview has it enabled for example. This only works with "
333
- "certain languages."
334
- msgstr ""
335
-
336
- #: syntaxhighlighter.php:1185
337
- msgctxt "light parameter"
338
- msgid ""
339
- "%s &#8212; Toggle light mode which disables the gutter and toolbar all at "
340
- "once."
341
- msgstr ""
342
-
343
- #: syntaxhighlighter.php:1186
344
- msgctxt "padlinenumbers parameter"
345
- msgid ""
346
- "%s &#8212; Controls line number padding. Valid values are <code>false</code> "
347
- "(no padding), <code>true</code> (automatic padding), or an integer (forced "
348
- "padding)."
349
- msgstr ""
350
-
351
- #: syntaxhighlighter.php:1187
352
- msgctxt "title parameter"
353
- msgid ""
354
- "%1$s (v3 only) &#8212; Sets some text to show up before the code. Very "
355
- "useful when combined with the %2$s parameter."
356
- msgstr ""
357
-
358
- #: syntaxhighlighter.php:1188
359
- msgctxt "toolbar parameter"
360
- msgid ""
361
- "%s &#8212; Toggle the toolbar (buttons in v2, the about question mark in v3)"
362
- msgstr ""
363
-
364
- #: syntaxhighlighter.php:1189
365
- msgctxt "wraplines parameter"
366
- msgid "%s (v2 only) &#8212; Toggle line wrapping."
367
- msgstr ""
368
-
369
- #: syntaxhighlighter.php:1192
370
- msgid "Some example shortcodes:"
371
- msgstr ""
372
-
373
- #: syntaxhighlighter.php:1195 syntaxhighlighter.php:1196
374
- #: syntaxhighlighter.php:1197 syntaxhighlighter.php:1198
375
- msgid "your code here"
376
- msgstr ""
377
-
378
- #: syntaxhighlighter.php:1196
379
- msgid "example-filename.php"
380
- msgstr ""
381
-
382
- #. Plugin Name of the plugin/theme
383
- msgid "SyntaxHighlighter Evolved"
384
- msgstr ""
385
-
386
- #. Plugin URI of the plugin/theme
387
- msgid "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/"
388
- msgstr ""
389
-
390
- #. Description of the plugin/theme
391
- msgid ""
392
- "Easily post syntax-highlighted code to your site without having to modify "
393
- "the code at all. Uses Alex Gorbatchev's <a href=\"http://alexgorbatchev.com/"
394
- "wiki/SyntaxHighlighter\">SyntaxHighlighter</a>. <strong>TIP:</strong> Don't "
395
- "use the Visual editor if you don't want your code mangled. TinyMCE will "
396
- "\"clean up\" your HTML."
397
- msgstr ""
398
-
399
- #. Author of the plugin/theme
400
- msgid "Alex Mills (Viper007Bond)"
401
- msgstr ""
402
-
403
- #. Author URI of the plugin/theme
404
- msgid "http://www.viper007bond.com/"
405
- msgstr ""
1
+ # Copyright (C) 2014 SyntaxHighlighter Evolved
2
+ # This file is distributed under the same license as the SyntaxHighlighter Evolved package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: SyntaxHighlighter Evolved 3.1.9\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/syntaxhighlighter\n"
7
+ "POT-Creation-Date: 2014-03-20 19:20:58+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: syntaxhighlighter.php:248
16
+ msgid "Default"
17
+ msgstr ""
18
+
19
+ #: syntaxhighlighter.php:249
20
+ msgid "Django"
21
+ msgstr ""
22
+
23
+ #: syntaxhighlighter.php:250
24
+ msgid "Eclipse"
25
+ msgstr ""
26
+
27
+ #: syntaxhighlighter.php:251
28
+ msgid "Emacs"
29
+ msgstr ""
30
+
31
+ #: syntaxhighlighter.php:252
32
+ msgid "Fade to Grey"
33
+ msgstr ""
34
+
35
+ #: syntaxhighlighter.php:253
36
+ msgid "Midnight"
37
+ msgstr ""
38
+
39
+ #: syntaxhighlighter.php:254
40
+ msgid "RDark"
41
+ msgstr ""
42
+
43
+ #: syntaxhighlighter.php:255
44
+ msgid "[None]"
45
+ msgstr ""
46
+
47
+ #: syntaxhighlighter.php:267 syntaxhighlighter.php:998
48
+ msgid "SyntaxHighlighter Settings"
49
+ msgstr ""
50
+
51
+ #: syntaxhighlighter.php:267
52
+ msgid "SyntaxHighlighter"
53
+ msgstr ""
54
+
55
+ #: syntaxhighlighter.php:308
56
+ msgid "Settings"
57
+ msgstr ""
58
+
59
+ #: syntaxhighlighter.php:660
60
+ msgid "show source"
61
+ msgstr ""
62
+
63
+ #: syntaxhighlighter.php:661
64
+ msgid "view source"
65
+ msgstr ""
66
+
67
+ #: syntaxhighlighter.php:662
68
+ msgid "copy to clipboard"
69
+ msgstr ""
70
+
71
+ #: syntaxhighlighter.php:663
72
+ msgid "The code is in your clipboard now"
73
+ msgstr ""
74
+
75
+ #: syntaxhighlighter.php:664
76
+ msgid "print"
77
+ msgstr ""
78
+
79
+ #: syntaxhighlighter.php:665 syntaxhighlighter.php:672
80
+ msgid "?"
81
+ msgstr ""
82
+
83
+ #: syntaxhighlighter.php:666 syntaxhighlighter.php:673
84
+ msgid "SyntaxHighlighter\\n\\n"
85
+ msgstr ""
86
+
87
+ #: syntaxhighlighter.php:667 syntaxhighlighter.php:674
88
+ msgid "Can't find brush for: "
89
+ msgstr ""
90
+
91
+ #: syntaxhighlighter.php:668 syntaxhighlighter.php:675
92
+ msgid "Brush wasn't configured for html-script option: "
93
+ msgstr ""
94
+
95
+ #: syntaxhighlighter.php:671
96
+ msgid "+ expand source"
97
+ msgstr ""
98
+
99
+ #: syntaxhighlighter.php:986
100
+ msgid "Are you sure you want to reset your settings to the defaults?"
101
+ msgstr ""
102
+
103
+ #: syntaxhighlighter.php:990
104
+ msgid "Settings reset to defaults."
105
+ msgstr ""
106
+
107
+ #: syntaxhighlighter.php:1007
108
+ msgid "Highlighter Version"
109
+ msgstr ""
110
+
111
+ #: syntaxhighlighter.php:1012
112
+ msgid "Version 3.x"
113
+ msgstr ""
114
+
115
+ #: syntaxhighlighter.php:1013
116
+ msgid "Version 2.x"
117
+ msgstr ""
118
+
119
+ #: syntaxhighlighter.php:1021
120
+ msgid ""
121
+ "Version 3 allows visitors to easily highlight portions of your code with "
122
+ "their mouse (either by dragging or double-clicking) and copy it to their "
123
+ "clipboard. No toolbar containing a Flash-based button is required."
124
+ msgstr ""
125
+
126
+ #: syntaxhighlighter.php:1022
127
+ msgid ""
128
+ "Version 2 allows for line wrapping, something that version 3 does not do at "
129
+ "this time."
130
+ msgstr ""
131
+
132
+ #: syntaxhighlighter.php:1026
133
+ msgid "Color Theme"
134
+ msgstr ""
135
+
136
+ #: syntaxhighlighter.php:1038 syntaxhighlighter.php:1041
137
+ msgid "Load All Brushes"
138
+ msgstr ""
139
+
140
+ #: syntaxhighlighter.php:1042
141
+ msgid ""
142
+ "Always load all language files (for directly using <code>&lt;pre&gt;</code> "
143
+ "tags rather than shortcodes)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If left "
144
+ "unchecked (default), then language files will only be loaded when needed<br /"
145
+ ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If unsure, leave this box unchecked"
146
+ msgstr ""
147
+
148
+ #: syntaxhighlighter.php:1048
149
+ msgid "Defaults"
150
+ msgstr ""
151
+
152
+ #: syntaxhighlighter.php:1050
153
+ msgid ""
154
+ "All of the settings below can be configured on a per-code block basis, but "
155
+ "you can control the defaults of all code blocks here."
156
+ msgstr ""
157
+
158
+ #: syntaxhighlighter.php:1054 syntaxhighlighter.php:1057
159
+ msgid "Miscellaneous"
160
+ msgstr ""
161
+
162
+ #: syntaxhighlighter.php:1059
163
+ msgid "Display line numbers"
164
+ msgstr ""
165
+
166
+ #: syntaxhighlighter.php:1060
167
+ msgid "Display the toolbar"
168
+ msgstr ""
169
+
170
+ #: syntaxhighlighter.php:1061
171
+ msgid "Automatically make URLs clickable"
172
+ msgstr ""
173
+
174
+ #: syntaxhighlighter.php:1062
175
+ msgid "Collapse code boxes"
176
+ msgstr ""
177
+
178
+ #: syntaxhighlighter.php:1063
179
+ msgid "Use the light display mode, best for single lines of code"
180
+ msgstr ""
181
+
182
+ #: syntaxhighlighter.php:1064
183
+ msgid "Use smart tabs allowing tabs being used for alignment"
184
+ msgstr ""
185
+
186
+ #: syntaxhighlighter.php:1065
187
+ msgid ""
188
+ "Wrap long lines (v2.x only, disabling this will make a scrollbar show "
189
+ "instead)"
190
+ msgstr ""
191
+
192
+ #: syntaxhighlighter.php:1066
193
+ msgid ""
194
+ "Enable &quot;HTML script&quot; mode by default (see the bottom of this page "
195
+ "for details). Checking this box is not recommended as this mode only works "
196
+ "with certain languages."
197
+ msgstr ""
198
+
199
+ #: syntaxhighlighter.php:1071
200
+ msgid "Additional CSS Class(es)"
201
+ msgstr ""
202
+
203
+ #: syntaxhighlighter.php:1075
204
+ msgid "Starting Line Number"
205
+ msgstr ""
206
+
207
+ #: syntaxhighlighter.php:1079
208
+ msgid "Line Number Padding"
209
+ msgstr ""
210
+
211
+ #: syntaxhighlighter.php:1084
212
+ msgid "Off"
213
+ msgstr ""
214
+
215
+ #: syntaxhighlighter.php:1085
216
+ msgid "Automatic"
217
+ msgstr ""
218
+
219
+ #: syntaxhighlighter.php:1101
220
+ msgid "Tab Size"
221
+ msgstr ""
222
+
223
+ #: syntaxhighlighter.php:1105
224
+ msgid "Title"
225
+ msgstr ""
226
+
227
+ #: syntaxhighlighter.php:1108
228
+ msgid ""
229
+ "Some optional default text to display above each code block or as the "
230
+ "clickable text for collapsed code blocks."
231
+ msgstr ""
232
+
233
+ #: syntaxhighlighter.php:1118 syntaxhighlighter.php:1121
234
+ msgid "Reset to Defaults"
235
+ msgstr ""
236
+
237
+ #: syntaxhighlighter.php:1120
238
+ msgid "Save Changes"
239
+ msgstr ""
240
+
241
+ #: syntaxhighlighter.php:1128
242
+ msgid "Preview"
243
+ msgstr ""
244
+
245
+ #: syntaxhighlighter.php:1130
246
+ msgid "Click &quot;Save Changes&quot; to update this preview."
247
+ msgstr ""
248
+
249
+ #: syntaxhighlighter.php:1149
250
+ msgid "PHP Code Example"
251
+ msgstr ""
252
+
253
+ #: syntaxhighlighter.php:1151
254
+ msgid "Hello World!"
255
+ msgstr ""
256
+
257
+ #: syntaxhighlighter.php:1153
258
+ msgid "This line is highlighted."
259
+ msgstr ""
260
+
261
+ #: syntaxhighlighter.php:1156
262
+ msgid ""
263
+ "\t\tThis\tis\tan\r\n"
264
+ "\t\texample\tof\tsmart\r\n"
265
+ "\t\ttabs."
266
+ msgstr ""
267
+
268
+ #: syntaxhighlighter.php:1161
269
+ msgid "WordPress"
270
+ msgstr ""
271
+
272
+ #: syntaxhighlighter.php:1172
273
+ msgid "Shortcode Parameters"
274
+ msgstr ""
275
+
276
+ #: syntaxhighlighter.php:1174
277
+ msgid ""
278
+ "These are the parameters you can pass to the shortcode and what they do. For "
279
+ "the booleans (i.e. on/off), pass %1$s/%2$s or %3$s/%4$s."
280
+ msgstr ""
281
+
282
+ #: syntaxhighlighter.php:1177
283
+ msgctxt "language parameter"
284
+ msgid ""
285
+ "%1$s or %2$s &#8212; The language syntax to highlight with. You can "
286
+ "alternately just use that as the tag, such as <code>[php]code[/php]</code>. "
287
+ "<a href=\"%3$s\">Click here</a> for a list of valid tags (under &quot;"
288
+ "aliases&quot;)."
289
+ msgstr ""
290
+
291
+ #: syntaxhighlighter.php:1178
292
+ msgctxt "autolinks parameter"
293
+ msgid "%s &#8212; Toggle automatic URL linking."
294
+ msgstr ""
295
+
296
+ #: syntaxhighlighter.php:1179
297
+ msgctxt "classname parameter"
298
+ msgid "%s &#8212; Add an additional CSS class to the code box."
299
+ msgstr ""
300
+
301
+ #: syntaxhighlighter.php:1180
302
+ msgctxt "collapse parameter"
303
+ msgid ""
304
+ "%s &#8212; Toggle collapsing the code box by default, requiring a click to "
305
+ "expand it. Good for large code posts."
306
+ msgstr ""
307
+
308
+ #: syntaxhighlighter.php:1181
309
+ msgctxt "firstline parameter"
310
+ msgid ""
311
+ "%s &#8212; An interger specifying what number the first line should be (for "
312
+ "the line numbering)."
313
+ msgstr ""
314
+
315
+ #: syntaxhighlighter.php:1182
316
+ msgctxt "gutter parameter"
317
+ msgid "%s &#8212; Toggle the left-side line numbering."
318
+ msgstr ""
319
+
320
+ #: syntaxhighlighter.php:1183
321
+ msgctxt "highlight parameter"
322
+ msgid ""
323
+ "%1$s &#8212; A comma-separated list of line numbers to highlight. You can "
324
+ "also specify a range. Example: %2$s"
325
+ msgstr ""
326
+
327
+ #: syntaxhighlighter.php:1184
328
+ msgctxt "htmlscript parameter"
329
+ msgid ""
330
+ "%s &#8212; Toggle highlighting any extra HTML/XML. Good for when you're "
331
+ "mixing HTML/XML with another language, such as having PHP inside an HTML web "
332
+ "page. The above preview has it enabled for example. This only works with "
333
+ "certain languages."
334
+ msgstr ""
335
+
336
+ #: syntaxhighlighter.php:1185
337
+ msgctxt "light parameter"
338
+ msgid ""
339
+ "%s &#8212; Toggle light mode which disables the gutter and toolbar all at "
340
+ "once."
341
+ msgstr ""
342
+
343
+ #: syntaxhighlighter.php:1186
344
+ msgctxt "padlinenumbers parameter"
345
+ msgid ""
346
+ "%s &#8212; Controls line number padding. Valid values are <code>false</code> "
347
+ "(no padding), <code>true</code> (automatic padding), or an integer (forced "
348
+ "padding)."
349
+ msgstr ""
350
+
351
+ #: syntaxhighlighter.php:1187
352
+ msgctxt "title parameter"
353
+ msgid ""
354
+ "%1$s (v3 only) &#8212; Sets some text to show up before the code. Very "
355
+ "useful when combined with the %2$s parameter."
356
+ msgstr ""
357
+
358
+ #: syntaxhighlighter.php:1188
359
+ msgctxt "toolbar parameter"
360
+ msgid ""
361
+ "%s &#8212; Toggle the toolbar (buttons in v2, the about question mark in v3)"
362
+ msgstr ""
363
+
364
+ #: syntaxhighlighter.php:1189
365
+ msgctxt "wraplines parameter"
366
+ msgid "%s (v2 only) &#8212; Toggle line wrapping."
367
+ msgstr ""
368
+
369
+ #: syntaxhighlighter.php:1192
370
+ msgid "Some example shortcodes:"
371
+ msgstr ""
372
+
373
+ #: syntaxhighlighter.php:1195 syntaxhighlighter.php:1196
374
+ #: syntaxhighlighter.php:1197 syntaxhighlighter.php:1198
375
+ msgid "your code here"
376
+ msgstr ""
377
+
378
+ #: syntaxhighlighter.php:1196
379
+ msgid "example-filename.php"
380
+ msgstr ""
381
+
382
+ #. Plugin Name of the plugin/theme
383
+ msgid "SyntaxHighlighter Evolved"
384
+ msgstr ""
385
+
386
+ #. Plugin URI of the plugin/theme
387
+ msgid "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/"
388
+ msgstr ""
389
+
390
+ #. Description of the plugin/theme
391
+ msgid ""
392
+ "Easily post syntax-highlighted code to your site without having to modify "
393
+ "the code at all. Uses Alex Gorbatchev's <a href=\"http://alexgorbatchev.com/"
394
+ "wiki/SyntaxHighlighter\">SyntaxHighlighter</a>. <strong>TIP:</strong> Don't "
395
+ "use the Visual editor if you don't want your code mangled. TinyMCE will "
396
+ "\"clean up\" your HTML."
397
+ msgstr ""
398
+
399
+ #. Author of the plugin/theme
400
+ msgid "Alex Mills (Viper007Bond)"
401
+ msgstr ""
402
+
403
+ #. Author URI of the plugin/theme
404
+ msgid "http://www.viper007bond.com/"
405
+ msgstr ""
localization/syntaxhighlighter-ja.mo CHANGED
Binary file
localization/syntaxhighlighter-ja.po CHANGED
@@ -1,458 +1,354 @@
1
- # Japanese translations for PACKAGE package
2
- # Copyright (C) 2009 Viper007Bond
3
- # This file is distributed under the same license as the PACKAGE package.
4
- # makoto_kw <makoto_kw+wordpress@gmail.com>, 2009.
5
- #
6
  msgid ""
7
  msgstr ""
8
- "Project-Id-Version: PACKAGE VERSION\n"
9
- "Report-Msgid-Bugs-To: http://wordpress.org/tag/syntaxhighlighter\n"
10
- "POT-Creation-Date: 2010-11-15 23:07+0000\n"
11
- "PO-Revision-Date: 2009-12-09 18:13+0900\n"
12
- "Last-Translator: makoto_kw <makoto_kw+wordpress@gmail.com>\n"
13
- "Language-Team: Japanese <translation-team-ja@lists.sourceforge.net>\n"
14
  "MIME-Version: 1.0\n"
15
  "Content-Type: text/plain; charset=UTF-8\n"
16
  "Content-Transfer-Encoding: 8bit\n"
17
  "Plural-Forms: nplurals=1; plural=0;\n"
 
 
18
 
19
- #: syntaxhighlighter.php:239
20
- msgid "Default"
21
- msgstr "Default"
22
 
23
- #: syntaxhighlighter.php:240
24
- msgid "Django"
25
- msgstr "Django"
26
 
27
- #: syntaxhighlighter.php:241
28
- msgid "Eclipse"
29
- msgstr "Eclipse"
30
 
31
- #: syntaxhighlighter.php:242
32
- msgid "Emacs"
33
- msgstr "Emacs"
34
 
35
- #: syntaxhighlighter.php:243
36
- msgid "Fade to Grey"
37
- msgstr "Fade to Grey"
38
 
39
- #: syntaxhighlighter.php:244
40
- msgid "Midnight"
41
- msgstr "Midnight"
42
 
43
- #: syntaxhighlighter.php:245
44
- msgid "RDark"
45
- msgstr "RDark"
46
 
47
- #: syntaxhighlighter.php:246
48
- msgid "[None]"
49
- msgstr "[なし]"
50
 
51
- #: syntaxhighlighter.php:258 syntaxhighlighter.php:944
52
  msgid "SyntaxHighlighter Settings"
53
  msgstr "SyntaxHighlighterの設定"
54
 
55
- #: syntaxhighlighter.php:258
56
- msgid "SyntaxHighlighter"
57
- msgstr "SyntaxHighlighter"
58
 
59
- #: syntaxhighlighter.php:289
60
- msgid "Settings"
61
- msgstr "設定"
62
 
63
- #: syntaxhighlighter.php:610
64
- msgid "show source"
65
- msgstr "ソースを見る"
66
 
67
- #: syntaxhighlighter.php:611
68
- msgid "view source"
69
- msgstr "ソースを表示"
70
 
71
- #: syntaxhighlighter.php:612
72
- msgid "copy to clipboard"
73
- msgstr "クリップボードへコピー"
74
 
75
- #: syntaxhighlighter.php:613
76
- msgid "The code is in your clipboard now"
77
- msgstr "コードをクリップボードへコピーしました"
78
 
79
- #: syntaxhighlighter.php:614
80
- msgid "print"
81
- msgstr "印刷"
82
 
83
- #: syntaxhighlighter.php:615 syntaxhighlighter.php:622
84
- msgid "?"
85
- msgstr "SyntaxHighlighterについて"
86
 
87
- #: syntaxhighlighter.php:616 syntaxhighlighter.php:623
88
  msgid "SyntaxHighlighter\\n\\n"
89
  msgstr "SyntaxHighlighter\\n\\n"
90
 
91
- #: syntaxhighlighter.php:617 syntaxhighlighter.php:624
92
  msgid "Can't find brush for: "
93
  msgstr "指定のブラシが見つかりませんでした: "
94
 
95
- #: syntaxhighlighter.php:618 syntaxhighlighter.php:625
96
  msgid "Brush wasn't configured for html-script option: "
97
  msgstr "HTMLスクリプトのオプションのためにブラシが構成されませんでした: "
98
 
99
- #: syntaxhighlighter.php:621
100
  msgid "+ expand source"
101
  msgstr "ソースを表示"
102
 
103
- #: syntaxhighlighter.php:932
104
  msgid "Are you sure you want to reset your settings to the defaults?"
105
  msgstr "設定を初期化してもよいですか?"
106
 
107
- #: syntaxhighlighter.php:936
108
  msgid "Settings reset to defaults."
109
  msgstr "設定を初期化する"
110
 
111
- #: syntaxhighlighter.php:953
112
  msgid "Highlighter Version"
113
  msgstr "SyntaxHighlighterのバージョン"
114
 
115
- #: syntaxhighlighter.php:958
116
  msgid "Version 3.x"
117
- msgstr ""
118
 
119
- #: syntaxhighlighter.php:959
120
  msgid "Version 2.x"
121
- msgstr ""
122
 
123
- #: syntaxhighlighter.php:967
124
- msgid ""
125
- "Version 3 allows visitors to easily highlight portions of your code with "
126
- "their mouse (either by dragging or double-clicking) and copy it to their "
127
- "clipboard. No toolbar containing a Flash-based button is required."
128
- msgstr ""
129
- "バージョン3は、訪問者が簡単にマウスを使用して(ドラッグかダブルクリック)、コードの部分を強調表示し、クリップボードにへコピーできます。"
130
- "Flashベースボタンを含むツールバーが不要です。"
131
 
132
- #: syntaxhighlighter.php:968
133
- msgid ""
134
- "Version 2 allows for line wrapping, something that version 3 does not do at "
135
- "this time."
136
- msgstr ""
137
- "バージョン2は行 の折り返しが許可されています、この機能は現時点でバージョン3はサポートされません"
138
 
139
- #: syntaxhighlighter.php:972
140
  msgid "Color Theme"
141
  msgstr "テーマ"
142
 
143
- #: syntaxhighlighter.php:984 syntaxhighlighter.php:987
144
  msgid "Load All Brushes"
145
  msgstr "すべてのブラシを読み込む"
146
 
147
- #: syntaxhighlighter.php:988
148
- msgid ""
149
- "Always load all language files (for directly using <code>&lt;pre&gt;</code> "
150
- "tags rather than shortcodes)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If left "
151
- "unchecked (default), then language files will only be loaded when needed<br /"
152
- ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If unsure, leave this box unchecked"
153
- msgstr ""
154
- "常にすべての言語ファイルを読込みます"
155
- "(ショートコードではなく、<code>&lt;pre&gt;</code>タグを直接使用する場合)<br />"
156
- "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;オフ(デフォルト)の場合、言語ファイルは必要に応じてロードされます。<br />"
157
- "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;よくわからない場合は、このチェックボックスをオフのままにしてください。"
158
 
159
- #: syntaxhighlighter.php:994
160
  msgid "Defaults"
161
  msgstr "規定の設定"
162
 
163
- #: syntaxhighlighter.php:996
164
- msgid ""
165
- "All of the settings below can be configured on a per-code block basis, but "
166
- "you can control the defaults of all code blocks here."
167
  msgstr "設定はコードの出力ごとに構成できますが、規定の設定をここで指定できます"
168
 
169
- #: syntaxhighlighter.php:1000 syntaxhighlighter.php:1003
170
  msgid "Miscellaneous"
171
  msgstr "一般"
172
 
173
- #: syntaxhighlighter.php:1005
174
  msgid "Display line numbers"
175
  msgstr "行番号を表示する"
176
 
177
- #: syntaxhighlighter.php:1006
178
  msgid "Display the toolbar"
179
  msgstr "ツールバーを表示する"
180
 
181
- #: syntaxhighlighter.php:1007
182
  msgid "Automatically make URLs clickable"
183
  msgstr "自動リンクを有効にする"
184
 
185
- #: syntaxhighlighter.php:1008
186
  msgid "Collapse code boxes"
187
  msgstr "コードボックスの表示を閉じておく"
188
 
189
- #: syntaxhighlighter.php:1009
190
  msgid "Use the light display mode, best for single lines of code"
191
  msgstr "軽い表示モードを使う"
192
 
193
- #: syntaxhighlighter.php:1010
194
  msgid "Use smart tabs allowing tabs being used for alignment"
195
  msgstr "インデントタブを許容するスマートタブを使う"
196
 
197
- #: syntaxhighlighter.php:1011
198
- msgid ""
199
- "Wrap long lines (v2.x only, disabling this will make a scrollbar show "
200
- "instead)"
201
  msgstr "長い行を折り返す(v2.xのみ、横スクロールバーを無効にする)"
202
 
203
- #: syntaxhighlighter.php:1012
204
- msgid ""
205
- "Enable &quot;HTML script&quot; mode by default (see the bottom of this page "
206
- "for details). Checking this box is not recommended as this mode only works "
207
- "with certain languages."
208
- msgstr ""
209
- "&quot;HTMLスクリプト&quot; モードを有効にする。 (詳細はこのページの下を参"
210
- "照)。Checking this box is not recommended as this mode only works with "
211
- "certain languages."
212
 
213
- #: syntaxhighlighter.php:1017
214
  msgid "Additional CSS Class(es)"
215
  msgstr "追加のCSSのclass名(複数可能)"
216
 
217
- #: syntaxhighlighter.php:1021
218
  msgid "Starting Line Number"
219
  msgstr "行番号の開始"
220
 
221
- #: syntaxhighlighter.php:1025
222
  msgid "Line Number Padding"
223
  msgstr "行番号の余白"
224
 
225
- #: syntaxhighlighter.php:1030
226
  msgid "Off"
227
  msgstr "なし"
228
 
229
- #: syntaxhighlighter.php:1031
230
  msgid "Automatic"
231
  msgstr "自動"
232
 
233
- #: syntaxhighlighter.php:1047
234
  msgid "Tab Size"
235
  msgstr "タブのサイズ"
236
 
237
- #: syntaxhighlighter.php:1051
238
  msgid "Title"
239
  msgstr "タイトル"
240
 
241
- #: syntaxhighlighter.php:1054
242
- msgid ""
243
- "Some optional default text to display above each code block or as the "
244
- "clickable text for collapsed code blocks."
245
- msgstr ""
246
- "いくつかのオプションの既定のテキストは、各コードブロックの上または折りたたまれたコードブロックのクリック可能なテキストとして表示する"
247
-
248
 
249
- #: syntaxhighlighter.php:1064 syntaxhighlighter.php:1067
250
  msgid "Reset to Defaults"
251
  msgstr "設定を初期化"
252
 
253
- #: syntaxhighlighter.php:1066
254
  msgid "Save Changes"
255
  msgstr "変更を保存"
256
 
257
- #: syntaxhighlighter.php:1074
258
  msgid "Preview"
259
  msgstr "プレビュー"
260
 
261
- #: syntaxhighlighter.php:1076
262
  msgid "Click &quot;Save Changes&quot; to update this preview."
263
  msgstr "プレビューを更新するには &quot;変更を保存&quot; をクリックしてください"
264
 
265
- #: syntaxhighlighter.php:1095
266
  msgid "PHP Code Example"
267
  msgstr "PHP コードサンプル"
268
 
269
- #: syntaxhighlighter.php:1097
270
  msgid "Hello World!"
271
  msgstr "Hello World!"
272
 
273
- #: syntaxhighlighter.php:1099
274
  msgid "This line is highlighted."
275
  msgstr "この行はハイライトされました"
276
 
277
- #: syntaxhighlighter.php:1102
278
  msgid ""
279
- "\t\tThis\tis\tan\r\n"
280
- "\t\texample\tof\tsmart\r\n"
281
  "\t\ttabs."
282
  msgstr ""
283
- "\t\tこの\t行は\tスマート\r\n"
284
- "\t\tタブ\tの\t例\r\n"
285
  "\t\tです。"
286
 
287
- #: syntaxhighlighter.php:1107
288
  msgid "WordPress"
289
- msgstr ""
290
 
291
- #: syntaxhighlighter.php:1118
292
  msgid "Shortcode Parameters"
293
  msgstr "ショートコードパラメータ"
294
 
295
- #: syntaxhighlighter.php:1120
296
- #, php-format
297
- msgid ""
298
- "These are the parameters you can pass to the shortcode and what they do. For "
299
- "the booleans (i.e. on/off), pass %1$s/%2$s or %3$s/%4$s."
300
- msgstr ""
301
- "これらはショートコードで渡すことができるパラメータと説明です。 bool値(有効・"
302
- "無効など)の指定には %1$s/%2$s または %3$s/%4$s を渡してください。"
303
 
304
- #: syntaxhighlighter.php:1123
305
- #, php-format
306
  msgctxt "language parameter"
307
- msgid ""
308
- "%1$s or %2$s &#8212; The language syntax to highlight with. You can "
309
- "alternately just use that as the tag, such as <code>[php]code[/php]</code>. "
310
- "<a href=\"%3$s\">Click here</a> for a list of valid tags (under &quot;"
311
- "aliases&quot;)."
312
- msgstr ""
313
- "%1$s または %2$s &#8212; ハイライトするコードの言語。パラメータ指定だけでなく"
314
- "<code>[php]code[/php]</code>のように言語をタグとして記述できます。有効なタグ"
315
- "のリストは <a href=\"%3$s\">こちらをクリック</a> (&quot;aliases&quot;の下を参"
316
- "照)"
317
 
318
- #: syntaxhighlighter.php:1124
319
- #, php-format
320
  msgctxt "autolinks parameter"
321
  msgid "%s &#8212; Toggle automatic URL linking."
322
  msgstr "%s &#8212; 自動リンクの有効・無効"
323
 
324
- #: syntaxhighlighter.php:1125
325
- #, php-format
326
  msgctxt "classname parameter"
327
  msgid "%s &#8212; Add an additional CSS class to the code box."
328
  msgstr "%s &#8212; コードボックスに追加するCSSのclass"
329
 
330
- #: syntaxhighlighter.php:1126
331
- #, php-format
332
  msgctxt "collapse parameter"
333
- msgid ""
334
- "%s &#8212; Toggle collapsing the code box by default, requiring a click to "
335
- "expand it. Good for large code posts."
336
- msgstr ""
337
- "%s &#8212; コードボックスをデフォルトの状態で閉じるかどうか。コードボックスを"
338
- "開くにはクリックが要求されます。長いコードの出力の際に有効です。"
339
 
340
- #: syntaxhighlighter.php:1127
341
- #, php-format
342
  msgctxt "firstline parameter"
343
- msgid ""
344
- "%s &#8212; An interger specifying what number the first line should be (for "
345
- "the line numbering)."
346
  msgstr "%s &#8212; 行番号の出力の際に、最初の行の番号を表す数値"
347
 
348
- #: syntaxhighlighter.php:1128
349
- #, php-format
350
  msgctxt "gutter parameter"
351
  msgid "%s &#8212; Toggle the left-side line numbering."
352
  msgstr "%s &#8212; 左側に行番号を配置するかどうか"
353
 
354
- #: syntaxhighlighter.php:1129
355
- #, php-format
356
  msgctxt "highlight parameter"
357
- msgid ""
358
- "%1$s &#8212; A comma-sperated list of line numbers to highlight. You can "
359
- "also specify a range. Example: %2$s"
360
- msgstr "%1$s &#8212; ハイライトさせる行番号のリスト(カンマ区切り)、範囲でも指定可能。例: %2$s"
361
 
362
- #: syntaxhighlighter.php:1130
363
- #, php-format
364
  msgctxt "htmlscript parameter"
365
- msgid ""
366
- "%s &#8212; Toggle highlighting any extra HTML/XML. Good for when you're "
367
- "mixing HTML/XML with another language, such as having PHP inside an HTML web "
368
- "page. The above preview has it enabled for example. This only works with "
369
- "certain languages."
370
- msgstr ""
371
- "%s &#8212; HTML/XML をハイライトするかどうか。HTMLウェブページで PHP を使うよ"
372
- "うにHTML/XMLとプログラムが混在するような時に有効です。上のプレビューではこの"
373
- "設定が有効になっています。これは特定の言語でしか動作しません。"
374
 
375
- #: syntaxhighlighter.php:1131
376
- #, php-format
377
  msgctxt "light parameter"
378
- msgid ""
379
- "%s &#8212; Toggle light mode which disables the gutter and toolbar all at "
380
- "once."
381
  msgstr "%s &#8212; 行番号やツールバーを無効にする軽い表示モードのオン・オフ"
382
 
383
- #: syntaxhighlighter.php:1132
384
- #, php-format
385
  msgctxt "padlinenumbers parameter"
386
- msgid ""
387
- "%s &#8212; Controls line number padding. Valid values are <code>false</code> "
388
- "(no padding), <code>true</code> (automatic padding), or an integer (forced "
389
- "padding)."
390
- msgstr ""
391
- "%s &#8212; 行番号の余白。有効な値は、 <code>false</code>(余白なし), "
392
- "<code>true</code> (自動)、数値(余白)"
393
 
394
- #: syntaxhighlighter.php:1133
395
- #, php-format
396
  msgctxt "title parameter"
397
- msgid ""
398
- "%1$s (v3 only) &#8212; Sets some text to show up before the code. Very "
399
- "useful when combined with the %2$s parameter."
400
- msgstr ""
401
- "%1$s (v3のみ) &#8212; コードの前に表示される表題テキスト。%2$sのパラメータと合わせて使うと有効です。"
402
 
403
- #: syntaxhighlighter.php:1134
404
- #, php-format
405
  msgctxt "toolbar parameter"
406
- msgid ""
407
- "%s &#8212; Toggle the toolbar (buttons in v2, the about question mark in v3)"
408
  msgstr "%s &#8212; ツールバーのオン・オフ(v2のボタン、v3のクエッションマーク)"
409
 
410
- #: syntaxhighlighter.php:1135
411
- #, php-format
412
  msgctxt "wraplines parameter"
413
  msgid "%s (v2 only) &#8212; Toggle line wrapping."
414
  msgstr "%s (v2のみ) &#8212; 折り返しの有効・無効"
415
 
416
- #: syntaxhighlighter.php:1138
417
  msgid "Some example shortcodes:"
418
  msgstr "引数指定の例:"
419
 
420
- #: syntaxhighlighter.php:1141 syntaxhighlighter.php:1142
421
- #: syntaxhighlighter.php:1143 syntaxhighlighter.php:1144
422
  msgid "your code here"
423
  msgstr "ここにコードを入れます"
424
 
425
- #: syntaxhighlighter.php:1142
426
  msgid "example-filename.php"
427
- msgstr ""
428
 
429
- #. Plugin Name of the plugin/theme
430
  msgid "SyntaxHighlighter Evolved"
431
  msgstr "SyntaxHighlighter Evolved"
432
 
433
- #. Plugin URI of the plugin/theme
434
  msgid "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/"
435
  msgstr "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/"
436
 
437
- #. Description of the plugin/theme
438
- #, fuzzy
439
- msgid ""
440
- "Easily post syntax-highlighted code to your site without having to modify "
441
- "the code at all. Uses Alex Gorbatchev's <a href=\"http://alexgorbatchev.com/"
442
- "wiki/SyntaxHighlighter\">SyntaxHighlighter</a>. <strong>TIP:</strong> Don't "
443
- "use the Visual editor if you don't want your code mangled. TinyMCE will "
444
- "\"clean up\" your HTML."
445
- msgstr ""
446
- "コードに手を加えることなくハイライトしたソースコードを簡単に投稿できます。このプラグ"
447
- "インはAlex Gorbatchev さんの <a href=\"http://alexgorbatchev.com/wiki/"
448
- "SyntaxHighlighter\">SyntaxHighlighter</a>を使っています。"
449
- "<strong>TIP:</strong> コードがおかしくなる場合はビジュアルエディターは使わないでください。 "
450
- "TinyMCEは記事内のHTMLをクリーンアップする恐れがあります。"
451
 
452
- #. Author of the plugin/theme
453
- msgid "Viper007Bond"
454
- msgstr "Viper007Bond氏"
455
 
456
- #. Author URI of the plugin/theme
457
  msgid "http://www.viper007bond.com/"
458
- msgstr "http://www.viper007bond.com/"
1
+ # Translation of SyntaxHighlighter Evolved in Japanese
2
+ # This file is distributed under the same license as the SyntaxHighlighter Evolved package.
 
 
 
3
  msgid ""
4
  msgstr ""
5
+ "PO-Revision-Date: 2014-04-06 21:14:45+0000\n"
 
 
 
 
 
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
9
  "Plural-Forms: nplurals=1; plural=0;\n"
10
+ "X-Generator: GlotPress/0.1\n"
11
+ "Project-Id-Version: SyntaxHighlighter Evolved\n"
12
 
13
+ #: syntaxhighlighter.php:665 syntaxhighlighter.php:672
14
+ msgid "?"
15
+ msgstr "SyntaxHighlighterについて"
16
 
17
+ #: syntaxhighlighter.php:662
18
+ msgid "copy to clipboard"
19
+ msgstr "クリップボードへコピー"
20
 
21
+ #: syntaxhighlighter.php:308
22
+ msgid "Settings"
23
+ msgstr "設定"
24
 
25
+ #: syntaxhighlighter.php:664
26
+ msgid "print"
27
+ msgstr "印刷"
28
 
29
+ #: syntaxhighlighter.php:663
30
+ msgid "The code is in your clipboard now"
31
+ msgstr "コードをクリップボードへコピーしました"
32
 
33
+ #: syntaxhighlighter.php:661
34
+ msgid "view source"
35
+ msgstr "ソースを表示"
36
 
37
+ #: syntaxhighlighter.php:660
38
+ msgid "show source"
39
+ msgstr "ソースを見る"
40
 
41
+ #: syntaxhighlighter.php:267
42
+ msgid "SyntaxHighlighter"
43
+ msgstr "SyntaxHighlighter"
44
 
45
+ #: syntaxhighlighter.php:267 syntaxhighlighter.php:998
46
  msgid "SyntaxHighlighter Settings"
47
  msgstr "SyntaxHighlighterの設定"
48
 
49
+ #: syntaxhighlighter.php:255
50
+ msgid "[None]"
51
+ msgstr "[なし]"
52
 
53
+ #: syntaxhighlighter.php:254
54
+ msgid "RDark"
55
+ msgstr "RDark"
56
 
57
+ #: syntaxhighlighter.php:253
58
+ msgid "Midnight"
59
+ msgstr "Midnight"
60
 
61
+ #: syntaxhighlighter.php:252
62
+ msgid "Fade to Grey"
63
+ msgstr "Fade to Grey"
64
 
65
+ #: syntaxhighlighter.php:251
66
+ msgid "Emacs"
67
+ msgstr "Emacs"
68
 
69
+ #: syntaxhighlighter.php:250
70
+ msgid "Eclipse"
71
+ msgstr "Eclipse"
72
 
73
+ #: syntaxhighlighter.php:249
74
+ msgid "Django"
75
+ msgstr "Django"
76
 
77
+ #: syntaxhighlighter.php:248
78
+ msgid "Default"
79
+ msgstr "Default"
80
 
81
+ #: syntaxhighlighter.php:666 syntaxhighlighter.php:673
82
  msgid "SyntaxHighlighter\\n\\n"
83
  msgstr "SyntaxHighlighter\\n\\n"
84
 
85
+ #: syntaxhighlighter.php:667 syntaxhighlighter.php:674
86
  msgid "Can't find brush for: "
87
  msgstr "指定のブラシが見つかりませんでした: "
88
 
89
+ #: syntaxhighlighter.php:668 syntaxhighlighter.php:675
90
  msgid "Brush wasn't configured for html-script option: "
91
  msgstr "HTMLスクリプトのオプションのためにブラシが構成されませんでした: "
92
 
93
+ #: syntaxhighlighter.php:671
94
  msgid "+ expand source"
95
  msgstr "ソースを表示"
96
 
97
+ #: syntaxhighlighter.php:986
98
  msgid "Are you sure you want to reset your settings to the defaults?"
99
  msgstr "設定を初期化してもよいですか?"
100
 
101
+ #: syntaxhighlighter.php:990
102
  msgid "Settings reset to defaults."
103
  msgstr "設定を初期化する"
104
 
105
+ #: syntaxhighlighter.php:1007
106
  msgid "Highlighter Version"
107
  msgstr "SyntaxHighlighterのバージョン"
108
 
109
+ #: syntaxhighlighter.php:1012
110
  msgid "Version 3.x"
111
+ msgstr "バージョン 3.x"
112
 
113
+ #: syntaxhighlighter.php:1013
114
  msgid "Version 2.x"
115
+ msgstr "バージョン 2.x"
116
 
117
+ #: syntaxhighlighter.php:1021
118
+ msgid "Version 3 allows visitors to easily highlight portions of your code with their mouse (either by dragging or double-clicking) and copy it to their clipboard. No toolbar containing a Flash-based button is required."
119
+ msgstr "バージョン3は、訪問者が簡単にマウスを使用して(ドラッグかダブルクリック)、コードの部分を強調表示し、クリップボードにへコピーできます。Flashベースボタンを含むツールバーが不要です。"
 
 
 
 
 
120
 
121
+ #: syntaxhighlighter.php:1022
122
+ msgid "Version 2 allows for line wrapping, something that version 3 does not do at this time."
123
+ msgstr "バージョン2は行 の折り返しが許可されています、この機能は現時点でバージョン3はサポートされません"
 
 
 
124
 
125
+ #: syntaxhighlighter.php:1026
126
  msgid "Color Theme"
127
  msgstr "テーマ"
128
 
129
+ #: syntaxhighlighter.php:1038 syntaxhighlighter.php:1041
130
  msgid "Load All Brushes"
131
  msgstr "すべてのブラシを読み込む"
132
 
133
+ #: syntaxhighlighter.php:1042
134
+ msgid "Always load all language files (for directly using <code>&lt;pre&gt;</code> tags rather than shortcodes)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If left unchecked (default), then language files will only be loaded when needed<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If unsure, leave this box unchecked"
135
+ msgstr "常にすべての言語ファイルを読込みます(ショートコードではなく、<code>&lt;pre&gt;</code>タグを直接使用する場合)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;オフ(デフォルト)の場合、言語ファイルは必要に応じてロードされます。<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;よくわからない場合は、このチェックボックスをオフのままにしてください。"
 
 
 
 
 
 
 
 
136
 
137
+ #: syntaxhighlighter.php:1048
138
  msgid "Defaults"
139
  msgstr "規定の設定"
140
 
141
+ #: syntaxhighlighter.php:1050
142
+ msgid "All of the settings below can be configured on a per-code block basis, but you can control the defaults of all code blocks here."
 
 
143
  msgstr "設定はコードの出力ごとに構成できますが、規定の設定をここで指定できます"
144
 
145
+ #: syntaxhighlighter.php:1054 syntaxhighlighter.php:1057
146
  msgid "Miscellaneous"
147
  msgstr "一般"
148
 
149
+ #: syntaxhighlighter.php:1059
150
  msgid "Display line numbers"
151
  msgstr "行番号を表示する"
152
 
153
+ #: syntaxhighlighter.php:1060
154
  msgid "Display the toolbar"
155
  msgstr "ツールバーを表示する"
156
 
157
+ #: syntaxhighlighter.php:1061
158
  msgid "Automatically make URLs clickable"
159
  msgstr "自動リンクを有効にする"
160
 
161
+ #: syntaxhighlighter.php:1062
162
  msgid "Collapse code boxes"
163
  msgstr "コードボックスの表示を閉じておく"
164
 
165
+ #: syntaxhighlighter.php:1063
166
  msgid "Use the light display mode, best for single lines of code"
167
  msgstr "軽い表示モードを使う"
168
 
169
+ #: syntaxhighlighter.php:1064
170
  msgid "Use smart tabs allowing tabs being used for alignment"
171
  msgstr "インデントタブを許容するスマートタブを使う"
172
 
173
+ #: syntaxhighlighter.php:1065
174
+ msgid "Wrap long lines (v2.x only, disabling this will make a scrollbar show instead)"
 
 
175
  msgstr "長い行を折り返す(v2.xのみ、横スクロールバーを無効にする)"
176
 
177
+ #: syntaxhighlighter.php:1066
178
+ msgid "Enable &quot;HTML script&quot; 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."
179
+ msgstr "&quot;HTMLスクリプト&quot; モードを有効にする。 (詳細はこのページの下を参照)。Checking this box is not recommended as this mode only works with certain languages."
 
 
 
 
 
 
180
 
181
+ #: syntaxhighlighter.php:1071
182
  msgid "Additional CSS Class(es)"
183
  msgstr "追加のCSSのclass名(複数可能)"
184
 
185
+ #: syntaxhighlighter.php:1075
186
  msgid "Starting Line Number"
187
  msgstr "行番号の開始"
188
 
189
+ #: syntaxhighlighter.php:1079
190
  msgid "Line Number Padding"
191
  msgstr "行番号の余白"
192
 
193
+ #: syntaxhighlighter.php:1084
194
  msgid "Off"
195
  msgstr "なし"
196
 
197
+ #: syntaxhighlighter.php:1085
198
  msgid "Automatic"
199
  msgstr "自動"
200
 
201
+ #: syntaxhighlighter.php:1101
202
  msgid "Tab Size"
203
  msgstr "タブのサイズ"
204
 
205
+ #: syntaxhighlighter.php:1105
206
  msgid "Title"
207
  msgstr "タイトル"
208
 
209
+ #: syntaxhighlighter.php:1108
210
+ msgid "Some optional default text to display above each code block or as the clickable text for collapsed code blocks."
211
+ msgstr "いくつかのオプションの既定のテキストは、各コードブロックの上または折りたたまれたコードブロックのクリック可能なテキストとして表示する"
 
 
 
 
212
 
213
+ #: syntaxhighlighter.php:1118 syntaxhighlighter.php:1121
214
  msgid "Reset to Defaults"
215
  msgstr "設定を初期化"
216
 
217
+ #: syntaxhighlighter.php:1120
218
  msgid "Save Changes"
219
  msgstr "変更を保存"
220
 
221
+ #: syntaxhighlighter.php:1128
222
  msgid "Preview"
223
  msgstr "プレビュー"
224
 
225
+ #: syntaxhighlighter.php:1130
226
  msgid "Click &quot;Save Changes&quot; to update this preview."
227
  msgstr "プレビューを更新するには &quot;変更を保存&quot; をクリックしてください"
228
 
229
+ #: syntaxhighlighter.php:1149
230
  msgid "PHP Code Example"
231
  msgstr "PHP コードサンプル"
232
 
233
+ #: syntaxhighlighter.php:1151
234
  msgid "Hello World!"
235
  msgstr "Hello World!"
236
 
237
+ #: syntaxhighlighter.php:1153
238
  msgid "This line is highlighted."
239
  msgstr "この行はハイライトされました"
240
 
241
+ #: syntaxhighlighter.php:1156
242
  msgid ""
243
+ "\t\tThis\tis\tanr\n"
244
+ "\t\texample\tof\tsmartr\n"
245
  "\t\ttabs."
246
  msgstr ""
247
+ "\t\tこの\t行は\tスマートr\n"
248
+ "\t\tタブ\tの\tr\n"
249
  "\t\tです。"
250
 
251
+ #: syntaxhighlighter.php:1161
252
  msgid "WordPress"
253
+ msgstr "WordPress"
254
 
255
+ #: syntaxhighlighter.php:1172
256
  msgid "Shortcode Parameters"
257
  msgstr "ショートコードパラメータ"
258
 
259
+ #: syntaxhighlighter.php:1174
260
+ 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."
261
+ msgstr "これらはショートコードで渡すことができるパラメータと説明です。 bool値(有効・無効など)の指定には %1$s/%2$s または %3$s/%4$s を渡してください。"
 
 
 
 
 
262
 
263
+ #: syntaxhighlighter.php:1177
 
264
  msgctxt "language parameter"
265
+ msgid "%1$s or %2$s &#8212; 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 &quot;aliases&quot;)."
266
+ msgstr "%1$s または %2$s &#8212; ハイライトするコードの言語。パラメータ指定だけでなく<code>[php]code[/php]</code>のように言語をタグとして記述できます。有効なタグのリストは <a href=\"%3$s\">こちらをクリック</a> (&quot;aliases&quot;の下を参照)"
 
 
 
 
 
 
 
 
267
 
268
+ #: syntaxhighlighter.php:1178
 
269
  msgctxt "autolinks parameter"
270
  msgid "%s &#8212; Toggle automatic URL linking."
271
  msgstr "%s &#8212; 自動リンクの有効・無効"
272
 
273
+ #: syntaxhighlighter.php:1179
 
274
  msgctxt "classname parameter"
275
  msgid "%s &#8212; Add an additional CSS class to the code box."
276
  msgstr "%s &#8212; コードボックスに追加するCSSのclass"
277
 
278
+ #: syntaxhighlighter.php:1180
 
279
  msgctxt "collapse parameter"
280
+ msgid "%s &#8212; Toggle collapsing the code box by default, requiring a click to expand it. Good for large code posts."
281
+ msgstr "%s &#8212; コードボックスをデフォルトの状態で閉じるかどうか。コードボックスを開くにはクリックが要求されます。長いコードの出力の際に有効です。"
 
 
 
 
282
 
283
+ #: syntaxhighlighter.php:1181
 
284
  msgctxt "firstline parameter"
285
+ msgid "%s &#8212; An interger specifying what number the first line should be (for the line numbering)."
 
 
286
  msgstr "%s &#8212; 行番号の出力の際に、最初の行の番号を表す数値"
287
 
288
+ #: syntaxhighlighter.php:1182
 
289
  msgctxt "gutter parameter"
290
  msgid "%s &#8212; Toggle the left-side line numbering."
291
  msgstr "%s &#8212; 左側に行番号を配置するかどうか"
292
 
293
+ #: syntaxhighlighter.php:1183
 
294
  msgctxt "highlight parameter"
295
+ msgid "%1$s &#8212; A comma-separated list of line numbers to highlight. You can also specify a range. Example: %2$s"
296
+ msgstr "%1$s &#8212; ハイライトする行番号のカンマ区切りのリスト。範囲を指定することもできます。 例: %2$s"
 
 
297
 
298
+ #: syntaxhighlighter.php:1184
 
299
  msgctxt "htmlscript parameter"
300
+ msgid "%s &#8212; 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."
301
+ msgstr "%s &#8212; HTML/XML をハイライトするかどうか。HTMLウェブページで PHP を使うようにHTML/XMLとプログラムが混在するような時に有効です。上のプレビューではこの設定が有効になっています。これは特定の言語でしか動作しません。"
 
 
 
 
 
 
 
302
 
303
+ #: syntaxhighlighter.php:1185
 
304
  msgctxt "light parameter"
305
+ msgid "%s &#8212; Toggle light mode which disables the gutter and toolbar all at once."
 
 
306
  msgstr "%s &#8212; 行番号やツールバーを無効にする軽い表示モードのオン・オフ"
307
 
308
+ #: syntaxhighlighter.php:1186
 
309
  msgctxt "padlinenumbers parameter"
310
+ msgid "%s &#8212; Controls line number padding. Valid values are <code>false</code> (no padding), <code>true</code> (automatic padding), or an integer (forced padding)."
311
+ msgstr "%s &#8212; 行番号の余白。有効な値は、 <code>false</code>(余白なし), <code>true</code> (自動)、数値(余白)"
 
 
 
 
 
312
 
313
+ #: syntaxhighlighter.php:1187
 
314
  msgctxt "title parameter"
315
+ msgid "%1$s (v3 only) &#8212; Sets some text to show up before the code. Very useful when combined with the %2$s parameter."
316
+ msgstr "%1$s v3のみ) &#8212; コードの前に表示される表題テキスト。%2$sのパラメータと合わせて使うと有効です。"
 
 
 
317
 
318
+ #: syntaxhighlighter.php:1188
 
319
  msgctxt "toolbar parameter"
320
+ msgid "%s &#8212; Toggle the toolbar (buttons in v2, the about question mark in v3)"
 
321
  msgstr "%s &#8212; ツールバーのオン・オフ(v2のボタン、v3のクエッションマーク)"
322
 
323
+ #: syntaxhighlighter.php:1189
 
324
  msgctxt "wraplines parameter"
325
  msgid "%s (v2 only) &#8212; Toggle line wrapping."
326
  msgstr "%s (v2のみ) &#8212; 折り返しの有効・無効"
327
 
328
+ #: syntaxhighlighter.php:1192
329
  msgid "Some example shortcodes:"
330
  msgstr "引数指定の例:"
331
 
332
+ #: syntaxhighlighter.php:1195 syntaxhighlighter.php:1196
333
+ #: syntaxhighlighter.php:1197 syntaxhighlighter.php:1198
334
  msgid "your code here"
335
  msgstr "ここにコードを入れます"
336
 
337
+ #: syntaxhighlighter.php:1196
338
  msgid "example-filename.php"
339
+ msgstr "example-filename.php"
340
 
 
341
  msgid "SyntaxHighlighter Evolved"
342
  msgstr "SyntaxHighlighter Evolved"
343
 
 
344
  msgid "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/"
345
  msgstr "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/"
346
 
347
+ 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>. <strong>TIP:</strong> Don't use the Visual editor if you don't want your code mangled. TinyMCE will \"clean up\" your HTML."
348
+ msgstr "コードを全く変更することなく、簡単にシンタックス・ハイライトされたコードをサイトに投稿できます。Alex Gorbatchevの<a href=\"http://alexgorbatchev.com/wiki/SyntaxHighlighter\">SyntaxHighlighter</a>を使用しています。<strong>ヒント:</strong>コードを台無しにされたくないのであれば、ビジュアルエディターを使わないでください。TinyMCEはHTMLを\"クリーンアップ\"してしまいます。"
 
 
 
 
 
 
 
 
 
 
 
 
349
 
350
+ msgid "Alex Mills (Viper007Bond)"
351
+ msgstr "Alex Mills (Viper007Bond)"
 
352
 
 
353
  msgid "http://www.viper007bond.com/"
354
+ msgstr "http://www.viper007bond.com/"
readme.md CHANGED
@@ -4,4 +4,4 @@ Easily post syntax-highlighted code to your WordPress site without having to mod
4
 
5
  ## Development On The Next Version
6
 
7
- A major rewrite is currently occurring in the [4.0 branch](https://github.com/Viper007Bond/syntaxhighlighter/commits/4.0). Go there if you want to see the current work in progress code.
4
 
5
  ## Development On The Next Version
6
 
7
+ A major rewrite is currently occurring in the [4.0 branch](https://github.com/Viper007Bond/syntaxhighlighter/tree/4.0). Go there if you want to see the current work in progress code.
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Viper007Bond, automattic
3
  Donate link: http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/donate/
4
  Tags: code, sourcecode, php, xhtml, html, css, WordPress.com
5
  Requires at least: 2.7
6
- Tested up to: 3.9
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.
@@ -55,6 +55,18 @@ Make sure your theme's `footer.php` file has `<?php wp_footer(); ?>` somewhere i
55
 
56
  == ChangeLog ==
57
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  = Version 3.1.9 =
59
 
60
  * Reset box-shadow property for better theme support. Props Michael Fields.
@@ -234,5 +246,5 @@ Localizations:
234
 
235
  == Upgrade Notice ==
236
 
237
- = 3.1.6 =
238
  Important security update.
3
  Donate link: http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/donate/
4
  Tags: code, sourcecode, php, xhtml, html, css, WordPress.com
5
  Requires at least: 2.7
6
+ Tested up to: 4.1
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.
55
 
56
  == ChangeLog ==
57
 
58
+ = Version 3.1.11 =
59
+
60
+ * SyntaxHighlighter 3.x: Fix table layout issue. Props jeherve.
61
+ * Fix sanitization bug for "classname" parameter.
62
+ * Fix a bug that prevented highlighting a range of lines, such as "5-10".
63
+
64
+ = Version 3.1.10 =
65
+
66
+ * New version of SyntaxHighlighter 3.x library to address XSS security issue. Props Ben Bidner for finding the bug and Alex Gorbatchev working with us (Automattic) to patch the issue.
67
+ * Compatibility with moving the plugins folder to a location other than the default one.
68
+ * Updated Japanese translation file thanks to Daisuke Takahashi.
69
+
70
  = Version 3.1.9 =
71
 
72
  * Reset box-shadow property for better theme support. Props Michael Fields.
246
 
247
  == Upgrade Notice ==
248
 
249
+ = 3.1.10 =
250
  Important security update.
syntaxhighlighter.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  Plugin Name: SyntaxHighlighter Evolved
6
  Plugin URI: http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/
7
- Version: 3.1.9
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>. <strong>TIP:</strong> Don't use the Visual editor if you don't want your code mangled. TinyMCE will "clean up" your HTML.
9
  Author: Alex Mills (Viper007Bond)
10
  Author URI: http://www.viper007bond.com/
@@ -21,7 +21,7 @@ Thanks to:
21
 
22
  class SyntaxHighlighter {
23
  // All of these variables are private. Filters are provided for things that can be modified.
24
- var $pluginver = '3.1.9'; // Plugin version
25
  var $agshver = false; // Alex Gorbatchev's SyntaxHighlighter version (dynamically set below due to v2 vs v3)
26
  var $shfolder = false; // Controls what subfolder to load SyntaxHighlighter from (v2 or v3)
27
  var $settings = array(); // Contains the user's settings
@@ -111,52 +111,52 @@ class SyntaxHighlighter {
111
  $this->agshver = '2.1.364';
112
  } else {
113
  $this->shfolder = 'syntaxhighlighter3';
114
- $this->agshver = '3.0.83c';
115
  }
116
 
117
  // Register brush scripts
118
- wp_register_script( 'syntaxhighlighter-core', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shCore.js'), array(), $this->agshver );
119
- wp_register_script( 'syntaxhighlighter-brush-as3', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushAS3.js'), array('syntaxhighlighter-core'), $this->agshver );
120
- wp_register_script( 'syntaxhighlighter-brush-bash', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushBash.js'), array('syntaxhighlighter-core'), $this->agshver );
121
- wp_register_script( 'syntaxhighlighter-brush-coldfusion', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushColdFusion.js'), array('syntaxhighlighter-core'), $this->agshver );
122
- wp_register_script( 'syntaxhighlighter-brush-cpp', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushCpp.js'), array('syntaxhighlighter-core'), $this->agshver );
123
- wp_register_script( 'syntaxhighlighter-brush-csharp', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushCSharp.js'), array('syntaxhighlighter-core'), $this->agshver );
124
- wp_register_script( 'syntaxhighlighter-brush-css', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushCss.js'), array('syntaxhighlighter-core'), $this->agshver );
125
- wp_register_script( 'syntaxhighlighter-brush-delphi', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushDelphi.js'), array('syntaxhighlighter-core'), $this->agshver );
126
- wp_register_script( 'syntaxhighlighter-brush-diff', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushDiff.js'), array('syntaxhighlighter-core'), $this->agshver );
127
- wp_register_script( 'syntaxhighlighter-brush-erlang', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushErlang.js'), array('syntaxhighlighter-core'), $this->agshver );
128
- wp_register_script( 'syntaxhighlighter-brush-groovy', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushGroovy.js'), array('syntaxhighlighter-core'), $this->agshver );
129
- wp_register_script( 'syntaxhighlighter-brush-java', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushJava.js'), array('syntaxhighlighter-core'), $this->agshver );
130
- wp_register_script( 'syntaxhighlighter-brush-javafx', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushJavaFX.js'), array('syntaxhighlighter-core'), $this->agshver );
131
- wp_register_script( 'syntaxhighlighter-brush-jscript', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushJScript.js'), array('syntaxhighlighter-core'), $this->agshver );
132
- wp_register_script( 'syntaxhighlighter-brush-perl', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushPerl.js'), array('syntaxhighlighter-core'), $this->agshver );
133
- wp_register_script( 'syntaxhighlighter-brush-php', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushPhp.js'), array('syntaxhighlighter-core'), $this->agshver );
134
- wp_register_script( 'syntaxhighlighter-brush-plain', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushPlain.js'), array('syntaxhighlighter-core'), $this->agshver );
135
- wp_register_script( 'syntaxhighlighter-brush-powershell', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushPowerShell.js'), array('syntaxhighlighter-core'), $this->agshver );
136
- wp_register_script( 'syntaxhighlighter-brush-python', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushPython.js'), array('syntaxhighlighter-core'), $this->agshver );
137
- wp_register_script( 'syntaxhighlighter-brush-ruby', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushRuby.js'), array('syntaxhighlighter-core'), $this->agshver );
138
- wp_register_script( 'syntaxhighlighter-brush-scala', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushScala.js'), array('syntaxhighlighter-core'), $this->agshver );
139
- wp_register_script( 'syntaxhighlighter-brush-sql', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushSql.js'), array('syntaxhighlighter-core'), $this->agshver );
140
- wp_register_script( 'syntaxhighlighter-brush-vb', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushVb.js'), array('syntaxhighlighter-core'), $this->agshver );
141
- wp_register_script( 'syntaxhighlighter-brush-xml', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushXml.js'), array('syntaxhighlighter-core'), $this->agshver );
142
 
143
  // Register some popular third-party brushes
144
- wp_register_script( 'syntaxhighlighter-brush-clojure', plugins_url('syntaxhighlighter/third-party-brushes/shBrushClojure.js'), array('syntaxhighlighter-core'), '20090602' );
145
- wp_register_script( 'syntaxhighlighter-brush-fsharp', plugins_url('syntaxhighlighter/third-party-brushes/shBrushFSharp.js'), array('syntaxhighlighter-core'), '20091003' );
146
- wp_register_script( 'syntaxhighlighter-brush-latex', plugins_url('syntaxhighlighter/third-party-brushes/shBrushLatex.js'), array('syntaxhighlighter-core'), '20090613' );
147
- wp_register_script( 'syntaxhighlighter-brush-matlabkey', plugins_url('syntaxhighlighter/third-party-brushes/shBrushMatlabKey.js'), array('syntaxhighlighter-core'), '20091209' );
148
- wp_register_script( 'syntaxhighlighter-brush-objc', plugins_url('syntaxhighlighter/third-party-brushes/shBrushObjC.js'), array('syntaxhighlighter-core'), '20091207' );
149
- wp_register_script( 'syntaxhighlighter-brush-r', plugins_url('syntaxhighlighter/third-party-brushes/shBrushR.js'), array('syntaxhighlighter-core'), '20100919' );
150
 
151
  // Register theme stylesheets
152
- wp_register_style( 'syntaxhighlighter-core', plugins_url('syntaxhighlighter/' . $this->shfolder . '/styles/shCore.css'), array(), $this->agshver );
153
- wp_register_style( 'syntaxhighlighter-theme-default', plugins_url('syntaxhighlighter/' . $this->shfolder . '/styles/shThemeDefault.css'), array('syntaxhighlighter-core'), $this->agshver );
154
- wp_register_style( 'syntaxhighlighter-theme-django', plugins_url('syntaxhighlighter/' . $this->shfolder . '/styles/shThemeDjango.css'), array('syntaxhighlighter-core'), $this->agshver );
155
- wp_register_style( 'syntaxhighlighter-theme-eclipse', plugins_url('syntaxhighlighter/' . $this->shfolder . '/styles/shThemeEclipse.css'), array('syntaxhighlighter-core'), $this->agshver );
156
- wp_register_style( 'syntaxhighlighter-theme-emacs', plugins_url('syntaxhighlighter/' . $this->shfolder . '/styles/shThemeEmacs.css'), array('syntaxhighlighter-core'), $this->agshver );
157
- wp_register_style( 'syntaxhighlighter-theme-fadetogrey', plugins_url('syntaxhighlighter/' . $this->shfolder . '/styles/shThemeFadeToGrey.css'), array('syntaxhighlighter-core'), $this->agshver );
158
- wp_register_style( 'syntaxhighlighter-theme-midnight', plugins_url('syntaxhighlighter/' . $this->shfolder . '/styles/shThemeMidnight.css'), array('syntaxhighlighter-core'), $this->agshver );
159
- wp_register_style( 'syntaxhighlighter-theme-rdark', plugins_url('syntaxhighlighter/' . $this->shfolder . '/styles/shThemeRDark.css'), array('syntaxhighlighter-core'), $this->agshver );
160
 
161
 
162
  // Create list of brush aliases and map them to their real brushes
@@ -219,7 +219,6 @@ class SyntaxHighlighter {
219
  'xhtml' => 'xml',
220
  'xslt' => 'xml',
221
  'html' => 'xml',
222
- 'xhtml' => 'xml',
223
  ) );
224
 
225
 
@@ -281,10 +280,10 @@ class SyntaxHighlighter {
281
  add_action( 'admin_print_footer_scripts', array( $this, 'output_shortcodes_for_tinymce' ), 9 );
282
 
283
  if ( substr( $tinymce_version, 0, 1 ) < 4 ) {
284
- $plugins['syntaxhighlighter'] = plugins_url('syntaxhighlighter/syntaxhighlighter_mce.js');
285
  } else {
286
- $plugins['syntaxhighlighter'] = plugins_url('syntaxhighlighter/syntaxhighlighter_mce-4.js?ver=' . $this->pluginver );
287
- wp_enqueue_script( 'syntaxhighlighter', plugins_url( '/syntaxhighlighter.js', __FILE__ ), array(), false, true );
288
  }
289
 
290
  return $plugins;
@@ -656,7 +655,7 @@ class SyntaxHighlighter {
656
 
657
  switch ( $this->settings['shversion'] ) {
658
  case 2:
659
- echo " SyntaxHighlighter.config.clipboardSwf = '" . esc_js( apply_filters( 'syntaxhighlighter_clipboardurl', plugins_url('syntaxhighlighter/syntaxhighlighter2/scripts/clipboard.swf') ) ) . "';\n";
660
  echo " SyntaxHighlighter.config.strings.expandSource = '" . $this->js_escape_singlequotes( __( 'show source', 'syntaxhighlighter' ) ) . "';\n";
661
  echo " SyntaxHighlighter.config.strings.viewSource = '" . $this->js_escape_singlequotes( __( 'view source', 'syntaxhighlighter' ) ) . "';\n";
662
  echo " SyntaxHighlighter.config.strings.copyToClipboard = '" . $this->js_escape_singlequotes( __( 'copy to clipboard', 'syntaxhighlighter' ) ) . "';\n";
@@ -901,7 +900,7 @@ class SyntaxHighlighter {
901
  }
902
 
903
  // Sanitize the "classname" parameter
904
- if ( 'classname' == $key )
905
  $value = trim( preg_replace( '/[^a-zA-Z0-9 _-]/i', '', $value ) );
906
 
907
  // Special sanitization for "pad-line-numbers"
@@ -925,7 +924,7 @@ class SyntaxHighlighter {
925
 
926
  // Sanitize row highlights
927
  if ( 'highlight' == $key ) {
928
- if ( false === strpos( $value, ',' ) ) {
929
  $value = (int) $value;
930
  } else {
931
  $lines = explode( ',', $value );
@@ -958,6 +957,11 @@ class SyntaxHighlighter {
958
  continue;
959
  }
960
 
 
 
 
 
 
961
  $params[] = "$key: $value;";
962
 
963
  // Set the title variable if the title parameter is set (but not for feeds)
4
 
5
  Plugin Name: SyntaxHighlighter Evolved
6
  Plugin URI: http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/
7
+ Version: 3.1.11
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>. <strong>TIP:</strong> Don't use the Visual editor if you don't want your code mangled. TinyMCE will "clean up" your HTML.
9
  Author: Alex Mills (Viper007Bond)
10
  Author URI: http://www.viper007bond.com/
21
 
22
  class SyntaxHighlighter {
23
  // All of these variables are private. Filters are provided for things that can be modified.
24
+ var $pluginver = '3.1.11'; // Plugin version
25
  var $agshver = false; // Alex Gorbatchev's SyntaxHighlighter version (dynamically set below due to v2 vs v3)
26
  var $shfolder = false; // Controls what subfolder to load SyntaxHighlighter from (v2 or v3)
27
  var $settings = array(); // Contains the user's settings
111
  $this->agshver = '2.1.364';
112
  } else {
113
  $this->shfolder = 'syntaxhighlighter3';
114
+ $this->agshver = '3.0.9b';
115
  }
116
 
117
  // Register brush scripts
118
+ wp_register_script( 'syntaxhighlighter-core', plugins_url( $this->shfolder . '/scripts/shCore.js', __FILE__ ), array(), $this->agshver );
119
+ wp_register_script( 'syntaxhighlighter-brush-as3', plugins_url( $this->shfolder . '/scripts/shBrushAS3.js', __FILE__ ), array('syntaxhighlighter-core'), $this->agshver );
120
+ wp_register_script( 'syntaxhighlighter-brush-bash', plugins_url( $this->shfolder . '/scripts/shBrushBash.js', __FILE__ ), array('syntaxhighlighter-core'), $this->agshver );
121
+ wp_register_script( 'syntaxhighlighter-brush-coldfusion', plugins_url( $this->shfolder . '/scripts/shBrushColdFusion.js', __FILE__ ), array('syntaxhighlighter-core'), $this->agshver );
122
+ wp_register_script( 'syntaxhighlighter-brush-cpp', plugins_url( $this->shfolder . '/scripts/shBrushCpp.js', __FILE__ ), array('syntaxhighlighter-core'), $this->agshver );
123
+ wp_register_script( 'syntaxhighlighter-brush-csharp', plugins_url( $this->shfolder . '/scripts/shBrushCSharp.js', __FILE__ ), array('syntaxhighlighter-core'), $this->agshver );
124
+ wp_register_script( 'syntaxhighlighter-brush-css', plugins_url( $this->shfolder . '/scripts/shBrushCss.js', __FILE__ ), array('syntaxhighlighter-core'), $this->agshver );
125
+ wp_register_script( 'syntaxhighlighter-brush-delphi', plugins_url( $this->shfolder . '/scripts/shBrushDelphi.js', __FILE__ ), array('syntaxhighlighter-core'), $this->agshver );
126
+ wp_register_script( 'syntaxhighlighter-brush-diff', plugins_url( $this->shfolder . '/scripts/shBrushDiff.js', __FILE__ ), array('syntaxhighlighter-core'), $this->agshver );
127
+ wp_register_script( 'syntaxhighlighter-brush-erlang', plugins_url( $this->shfolder . '/scripts/shBrushErlang.js', __FILE__ ), array('syntaxhighlighter-core'), $this->agshver );
128
+ wp_register_script( 'syntaxhighlighter-brush-groovy', plugins_url( $this->shfolder . '/scripts/shBrushGroovy.js', __FILE__ ), array('syntaxhighlighter-core'), $this->agshver );
129
+ wp_register_script( 'syntaxhighlighter-brush-java', plugins_url( $this->shfolder . '/scripts/shBrushJava.js', __FILE__ ), array('syntaxhighlighter-core'), $this->agshver );
130
+ wp_register_script( 'syntaxhighlighter-brush-javafx', plugins_url( $this->shfolder . '/scripts/shBrushJavaFX.js', __FILE__ ), array('syntaxhighlighter-core'), $this->agshver );
131
+ wp_register_script( 'syntaxhighlighter-brush-jscript', plugins_url( $this->shfolder . '/scripts/shBrushJScript.js', __FILE__ ), array('syntaxhighlighter-core'), $this->agshver );
132
+ wp_register_script( 'syntaxhighlighter-brush-perl', plugins_url( $this->shfolder . '/scripts/shBrushPerl.js', __FILE__ ), array('syntaxhighlighter-core'), $this->agshver );
133
+ wp_register_script( 'syntaxhighlighter-brush-php', plugins_url( $this->shfolder . '/scripts/shBrushPhp.js', __FILE__ ), array('syntaxhighlighter-core'), $this->agshver );
134
+ wp_register_script( 'syntaxhighlighter-brush-plain', plugins_url( $this->shfolder . '/scripts/shBrushPlain.js', __FILE__ ), array('syntaxhighlighter-core'), $this->agshver );
135
+ wp_register_script( 'syntaxhighlighter-brush-powershell', plugins_url( $this->shfolder . '/scripts/shBrushPowerShell.js', __FILE__ ), array('syntaxhighlighter-core'), $this->agshver );
136
+ wp_register_script( 'syntaxhighlighter-brush-python', plugins_url( $this->shfolder . '/scripts/shBrushPython.js', __FILE__ ), array('syntaxhighlighter-core'), $this->agshver );
137
+ wp_register_script( 'syntaxhighlighter-brush-ruby', plugins_url( $this->shfolder . '/scripts/shBrushRuby.js', __FILE__ ), array('syntaxhighlighter-core'), $this->agshver );
138
+ wp_register_script( 'syntaxhighlighter-brush-scala', plugins_url( $this->shfolder . '/scripts/shBrushScala.js', __FILE__ ), array('syntaxhighlighter-core'), $this->agshver );
139
+ wp_register_script( 'syntaxhighlighter-brush-sql', plugins_url( $this->shfolder . '/scripts/shBrushSql.js', __FILE__ ), array('syntaxhighlighter-core'), $this->agshver );
140
+ wp_register_script( 'syntaxhighlighter-brush-vb', plugins_url( $this->shfolder . '/scripts/shBrushVb.js', __FILE__ ), array('syntaxhighlighter-core'), $this->agshver );
141
+ wp_register_script( 'syntaxhighlighter-brush-xml', plugins_url( $this->shfolder . '/scripts/shBrushXml.js', __FILE__ ), array('syntaxhighlighter-core'), $this->agshver );
142
 
143
  // Register some popular third-party brushes
144
+ wp_register_script( 'syntaxhighlighter-brush-clojure', plugins_url( 'third-party-brushes/shBrushClojure.js', __FILE__ ), array('syntaxhighlighter-core'), '20090602' );
145
+ wp_register_script( 'syntaxhighlighter-brush-fsharp', plugins_url( 'third-party-brushes/shBrushFSharp.js', __FILE__ ), array('syntaxhighlighter-core'), '20091003' );
146
+ wp_register_script( 'syntaxhighlighter-brush-latex', plugins_url( 'third-party-brushes/shBrushLatex.js', __FILE__ ), array('syntaxhighlighter-core'), '20090613' );
147
+ wp_register_script( 'syntaxhighlighter-brush-matlabkey', plugins_url( 'third-party-brushes/shBrushMatlabKey.js', __FILE__ ), array('syntaxhighlighter-core'), '20091209' );
148
+ wp_register_script( 'syntaxhighlighter-brush-objc', plugins_url( 'third-party-brushes/shBrushObjC.js', __FILE__ ), array('syntaxhighlighter-core'), '20091207' );
149
+ wp_register_script( 'syntaxhighlighter-brush-r', plugins_url( 'third-party-brushes/shBrushR.js', __FILE__ ), array('syntaxhighlighter-core'), '20100919' );
150
 
151
  // Register theme stylesheets
152
+ wp_register_style( 'syntaxhighlighter-core', plugins_url( $this->shfolder . '/styles/shCore.css', __FILE__ ), array(), $this->agshver );
153
+ wp_register_style( 'syntaxhighlighter-theme-default', plugins_url( $this->shfolder . '/styles/shThemeDefault.css', __FILE__ ), array('syntaxhighlighter-core'), $this->agshver );
154
+ wp_register_style( 'syntaxhighlighter-theme-django', plugins_url( $this->shfolder . '/styles/shThemeDjango.css', __FILE__ ), array('syntaxhighlighter-core'), $this->agshver );
155
+ wp_register_style( 'syntaxhighlighter-theme-eclipse', plugins_url( $this->shfolder . '/styles/shThemeEclipse.css', __FILE__ ), array('syntaxhighlighter-core'), $this->agshver );
156
+ wp_register_style( 'syntaxhighlighter-theme-emacs', plugins_url( $this->shfolder . '/styles/shThemeEmacs.css', __FILE__ ), array('syntaxhighlighter-core'), $this->agshver );
157
+ wp_register_style( 'syntaxhighlighter-theme-fadetogrey', plugins_url( $this->shfolder . '/styles/shThemeFadeToGrey.css', __FILE__ ), array('syntaxhighlighter-core'), $this->agshver );
158
+ wp_register_style( 'syntaxhighlighter-theme-midnight', plugins_url( $this->shfolder . '/styles/shThemeMidnight.css', __FILE__ ), array('syntaxhighlighter-core'), $this->agshver );
159
+ wp_register_style( 'syntaxhighlighter-theme-rdark', plugins_url( $this->shfolder . '/styles/shThemeRDark.css', __FILE__ ), array('syntaxhighlighter-core'), $this->agshver );
160
 
161
 
162
  // Create list of brush aliases and map them to their real brushes
219
  'xhtml' => 'xml',
220
  'xslt' => 'xml',
221
  'html' => 'xml',
 
222
  ) );
223
 
224
 
280
  add_action( 'admin_print_footer_scripts', array( $this, 'output_shortcodes_for_tinymce' ), 9 );
281
 
282
  if ( substr( $tinymce_version, 0, 1 ) < 4 ) {
283
+ $plugins['syntaxhighlighter'] = plugins_url( 'syntaxhighlighter_mce.js', __FILE__ );
284
  } else {
285
+ $plugins['syntaxhighlighter'] = add_query_arg( 'ver', $this->pluginver, plugins_url( 'syntaxhighlighter_mce-4.js', __FILE__ ) );
286
+ wp_enqueue_script( 'syntaxhighlighter', plugins_url( 'syntaxhighlighter.js', __FILE__ ), array(), false, true );
287
  }
288
 
289
  return $plugins;
655
 
656
  switch ( $this->settings['shversion'] ) {
657
  case 2:
658
+ echo " SyntaxHighlighter.config.clipboardSwf = '" . esc_js( apply_filters( 'syntaxhighlighter_clipboardurl', plugins_url( 'syntaxhighlighter2/scripts/clipboard.swf', __FILE__ ) ) ) . "';\n";
659
  echo " SyntaxHighlighter.config.strings.expandSource = '" . $this->js_escape_singlequotes( __( 'show source', 'syntaxhighlighter' ) ) . "';\n";
660
  echo " SyntaxHighlighter.config.strings.viewSource = '" . $this->js_escape_singlequotes( __( 'view source', 'syntaxhighlighter' ) ) . "';\n";
661
  echo " SyntaxHighlighter.config.strings.copyToClipboard = '" . $this->js_escape_singlequotes( __( 'copy to clipboard', 'syntaxhighlighter' ) ) . "';\n";
900
  }
901
 
902
  // Sanitize the "classname" parameter
903
+ if ( 'class-name' == $key )
904
  $value = trim( preg_replace( '/[^a-zA-Z0-9 _-]/i', '', $value ) );
905
 
906
  // Special sanitization for "pad-line-numbers"
924
 
925
  // Sanitize row highlights
926
  if ( 'highlight' == $key ) {
927
+ if ( false === strpos( $value, ',' ) && false === strpos( $value, '-' ) ) {
928
  $value = (int) $value;
929
  } else {
930
  $lines = explode( ',', $value );
957
  continue;
958
  }
959
 
960
+ // Don't allow HTML in the title parameter
961
+ if ( 'title' == $key ) {
962
+ $value = strip_tags( html_entity_decode( strip_tags( $value ) ) );
963
+ }
964
+
965
  $params[] = "$key: $value;";
966
 
967
  // Set the title variable if the title parameter is set (but not for feeds)
syntaxhighlighter3/scripts/shAutoloader.js CHANGED
@@ -1,17 +1,138 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/SyntaxHighlighter
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
- *
8
- * @version
9
- * 3.0.83 (July 02 2010)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2010 Alex Gorbatchev.
13
- *
14
- * @license
15
- * Dual licensed under the MIT and GPL licenses.
16
- */
17
- 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}('(2(){1 h=5;h.I=2(){2 n(c,a){4(1 d=0;d<c.9;d++)i[c[d]]=a}2 o(c){1 a=r.H("J"),d=3;a.K=c;a.M="L/t";a.G="t";a.u=a.v=2(){6(!d&&(!8.7||8.7=="F"||8.7=="z")){d=q;e[c]=q;a:{4(1 p y e)6(e[p]==3)B a;j&&5.C(k)}a.u=a.v=x;a.D.O(a)}};r.N.R(a)}1 f=Q,l=h.P(),i={},e={},j=3,k=x,b;5.T=2(c){k=c;j=q};4(b=0;b<f.9;b++){1 m=f[b].w?f[b]:f[b].S(/\\s+/),g=m.w();n(m,g)}4(b=0;b<l.9;b++)6(g=i[l[b].E.A]){e[g]=3;o(g)}}})();',56,56,'|var|function|false|for|SyntaxHighlighter|if|readyState|this|length|||||||||||||||||true|document||javascript|onload|onreadystatechange|pop|null|in|complete|brush|break|highlight|parentNode|params|loaded|language|createElement|autoloader|script|src|text|type|body|removeChild|findElements|arguments|appendChild|split|all'.split('|'),0,{}))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (Wed, 16 Apr 2014 03:56:09 GMT)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2013 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ (function() {
18
+
19
+ var sh = SyntaxHighlighter;
20
+
21
+ /**
22
+ * Provides functionality to dynamically load only the brushes that a needed to render the current page.
23
+ *
24
+ * There are two syntaxes that autoload understands. For example:
25
+ *
26
+ * SyntaxHighlighter.autoloader(
27
+ * [ 'applescript', 'Scripts/shBrushAppleScript.js' ],
28
+ * [ 'actionscript3', 'as3', 'Scripts/shBrushAS3.js' ]
29
+ * );
30
+ *
31
+ * or a more easily comprehendable one:
32
+ *
33
+ * SyntaxHighlighter.autoloader(
34
+ * 'applescript Scripts/shBrushAppleScript.js',
35
+ * 'actionscript3 as3 Scripts/shBrushAS3.js'
36
+ * );
37
+ */
38
+ sh.autoloader = function()
39
+ {
40
+ var list = arguments,
41
+ elements = sh.findElements(),
42
+ brushes = {},
43
+ scripts = {},
44
+ all = SyntaxHighlighter.all,
45
+ allCalled = false,
46
+ allParams = null,
47
+ i
48
+ ;
49
+
50
+ SyntaxHighlighter.all = function(params)
51
+ {
52
+ allParams = params;
53
+ allCalled = true;
54
+ };
55
+
56
+ function addBrush(aliases, url)
57
+ {
58
+ for (var i = 0; i < aliases.length; i++)
59
+ brushes[aliases[i]] = url;
60
+ };
61
+
62
+ function getAliases(item)
63
+ {
64
+ return item.pop
65
+ ? item
66
+ : item.split(/\s+/)
67
+ ;
68
+ }
69
+
70
+ // create table of aliases and script urls
71
+ for (i = 0; i < list.length; i++)
72
+ {
73
+ var aliases = getAliases(list[i]),
74
+ url = aliases.pop()
75
+ ;
76
+
77
+ addBrush(aliases, url);
78
+ }
79
+
80
+ // dynamically add <script /> tags to the document body
81
+ for (i = 0; i < elements.length; i++)
82
+ {
83
+ var url = brushes[elements[i].params.brush];
84
+
85
+ if(url && scripts[url] === undefined)
86
+ {
87
+ if(elements[i].params['html-script'] === 'true')
88
+ {
89
+ if(scripts[brushes['xml']] === undefined) {
90
+ loadScript(brushes['xml']);
91
+ scripts[url] = false;
92
+ }
93
+ }
94
+
95
+ scripts[url] = false;
96
+ loadScript(url);
97
+ }
98
+ }
99
+
100
+ function loadScript(url)
101
+ {
102
+ var script = document.createElement('script'),
103
+ done = false
104
+ ;
105
+
106
+ script.src = url;
107
+ script.type = 'text/javascript';
108
+ script.language = 'javascript';
109
+ script.onload = script.onreadystatechange = function()
110
+ {
111
+ if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete'))
112
+ {
113
+ done = true;
114
+ scripts[url] = true;
115
+ checkAll();
116
+
117
+ // Handle memory leak in IE
118
+ script.onload = script.onreadystatechange = null;
119
+ script.parentNode.removeChild(script);
120
+ }
121
+ };
122
+
123
+ // sync way of adding script tags to the page
124
+ document.body.appendChild(script);
125
+ };
126
+
127
+ function checkAll()
128
+ {
129
+ for(var url in scripts)
130
+ if (scripts[url] == false)
131
+ return;
132
+
133
+ if (allCalled)
134
+ SyntaxHighlighter.highlight(allParams);
135
+ };
136
+ };
137
+
138
+ })();
syntaxhighlighter3/scripts/shBrushAS3.js CHANGED
@@ -1,59 +1,59 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/SyntaxHighlighter
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
- *
8
- * @version
9
- * 3.0.83 (July 02 2010)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2010 Alex Gorbatchev.
13
- *
14
- * @license
15
- * Dual licensed under the MIT and GPL licenses.
16
- */
17
- ;(function()
18
- {
19
- // CommonJS
20
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
-
22
- function Brush()
23
- {
24
- // Created by Peter Atoria @ http://iAtoria.com
25
-
26
- var inits = 'class interface function package';
27
-
28
- var keywords = '-Infinity ...rest Array as AS3 Boolean break case catch const continue Date decodeURI ' +
29
- 'decodeURIComponent default delete do dynamic each else encodeURI encodeURIComponent escape ' +
30
- 'extends false final finally flash_proxy for get if implements import in include Infinity ' +
31
- 'instanceof int internal is isFinite isNaN isXMLName label namespace NaN native new null ' +
32
- 'Null Number Object object_proxy override parseFloat parseInt private protected public ' +
33
- 'return set static String super switch this throw true try typeof uint undefined unescape ' +
34
- 'use void while with'
35
- ;
36
-
37
- this.regexList = [
38
- { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
39
- { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
40
- { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
41
- { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
42
- { regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers
43
- { regex: new RegExp(this.getKeywords(inits), 'gm'), css: 'color3' }, // initializations
44
- { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
45
- { regex: new RegExp('var', 'gm'), css: 'variable' }, // variable
46
- { regex: new RegExp('trace', 'gm'), css: 'color1' } // trace
47
- ];
48
-
49
- this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags);
50
- };
51
-
52
- Brush.prototype = new SyntaxHighlighter.Highlighter();
53
- Brush.aliases = ['actionscript3', 'as3'];
54
-
55
- SyntaxHighlighter.brushes.AS3 = Brush;
56
-
57
- // CommonJS
58
- typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
59
- })();
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (Wed, 16 Apr 2014 03:56:09 GMT)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2013 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21
+
22
+ function Brush()
23
+ {
24
+ // Created by Peter Atoria @ http://iAtoria.com
25
+
26
+ var inits = 'class interface function package';
27
+
28
+ var keywords = '-Infinity ...rest Array as AS3 Boolean break case catch const continue Date decodeURI ' +
29
+ 'decodeURIComponent default delete do dynamic each else encodeURI encodeURIComponent escape ' +
30
+ 'extends false final finally flash_proxy for get if implements import in include Infinity ' +
31
+ 'instanceof int internal is isFinite isNaN isXMLName label namespace NaN native new null ' +
32
+ 'Null Number Object object_proxy override parseFloat parseInt private protected public ' +
33
+ 'return set static String super switch this throw true try typeof uint undefined unescape ' +
34
+ 'use void while with'
35
+ ;
36
+
37
+ this.regexList = [
38
+ { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
39
+ { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
40
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
41
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
42
+ { regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers
43
+ { regex: new RegExp(this.getKeywords(inits), 'gm'), css: 'color3' }, // initializations
44
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
45
+ { regex: new RegExp('var', 'gm'), css: 'variable' }, // variable
46
+ { regex: new RegExp('trace', 'gm'), css: 'color1' } // trace
47
+ ];
48
+
49
+ this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags);
50
+ };
51
+
52
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
53
+ Brush.aliases = ['actionscript3', 'as3'];
54
+
55
+ SyntaxHighlighter.brushes.AS3 = Brush;
56
+
57
+ // CommonJS
58
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
59
+ })();
syntaxhighlighter3/scripts/shBrushAppleScript.js CHANGED
@@ -1,75 +1,100 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/SyntaxHighlighter
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
- *
8
- * @version
9
- * 3.0.83 (July 02 2010)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2010 Alex Gorbatchev.
13
- *
14
- * @license
15
- * Dual licensed under the MIT and GPL licenses.
16
- */
17
- ;(function()
18
- {
19
- // CommonJS
20
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
-
22
- function Brush()
23
- {
24
- // AppleScript brush by David Chambers
25
- // http://davidchambersdesign.com/
26
- var keywords = 'after before beginning continue copy each end every from return get global in local named of set some that the then times to where whose with without';
27
- var ordinals = 'first second third fourth fifth sixth seventh eighth ninth tenth last front back middle';
28
- var specials = 'activate add alias AppleScript ask attachment boolean class constant delete duplicate empty exists false id integer list make message modal modified new no paragraph pi properties quit real record remove rest result reveal reverse run running save string true word yes';
29
-
30
- this.regexList = [
31
-
32
- { regex: /(--|#).*$/gm,
33
- css: 'comments' },
34
-
35
- { regex: /\(\*(?:[\s\S]*?\(\*[\s\S]*?\*\))*[\s\S]*?\*\)/gm, // support nested comments
36
- css: 'comments' },
37
-
38
- { regex: /"[\s\S]*?"/gm,
39
- css: 'string' },
40
-
41
- { regex: /(?:,|:|¬|'s\b|\(|\)|\{|\}|«|\b\w*»)/g,
42
- css: 'color1' },
43
-
44
- { regex: /(-)?(\d)+(\.(\d)?)?(E\+(\d)+)?/g, // numbers
45
- css: 'color1' },
46
-
47
- { regex: /(?:&(amp;|gt;|lt;)?|=|� |>|<|≥|>=|≤|<=|\*|\+|-|\/|÷|\^)/g,
48
- css: 'color2' },
49
-
50
- { regex: /\b(?:and|as|div|mod|not|or|return(?!\s&)(ing)?|equals|(is(n't| not)? )?equal( to)?|does(n't| not) equal|(is(n't| not)? )?(greater|less) than( or equal( to)?)?|(comes|does(n't| not) come) (after|before)|is(n't| not)?( in)? (back|front) of|is(n't| not)? behind|is(n't| not)?( (in|contained by))?|does(n't| not) contain|contain(s)?|(start|begin|end)(s)? with|((but|end) )?(consider|ignor)ing|prop(erty)?|(a )?ref(erence)?( to)?|repeat (until|while|with)|((end|exit) )?repeat|((else|end) )?if|else|(end )?(script|tell|try)|(on )?error|(put )?into|(of )?(it|me)|its|my|with (timeout( of)?|transaction)|end (timeout|transaction))\b/g,
51
- css: 'keyword' },
52
-
53
- { regex: /\b\d+(st|nd|rd|th)\b/g, // ordinals
54
- css: 'keyword' },
55
-
56
- { regex: /\b(?:about|above|against|around|at|below|beneath|beside|between|by|(apart|aside) from|(instead|out) of|into|on(to)?|over|since|thr(ough|u)|under)\b/g,
57
- css: 'color3' },
58
-
59
- { regex: /\b(?:adding folder items to|after receiving|choose( ((remote )?application|color|folder|from list|URL))?|clipboard info|set the clipboard to|(the )?clipboard|entire contents|display(ing| (alert|dialog|mode))?|document( (edited|file|nib name))?|file( (name|type))?|(info )?for|giving up after|(name )?extension|quoted form|return(ed)?|second(?! item)(s)?|list (disks|folder)|text item(s| delimiters)?|(Unicode )?text|(disk )?item(s)?|((current|list) )?view|((container|key) )?window|with (data|icon( (caution|note|stop))?|parameter(s)?|prompt|properties|seed|title)|case|diacriticals|hyphens|numeric strings|punctuation|white space|folder creation|application(s( folder)?| (processes|scripts position|support))?|((desktop )?(pictures )?|(documents|downloads|favorites|home|keychain|library|movies|music|public|scripts|sites|system|users|utilities|workflows) )folder|desktop|Folder Action scripts|font(s| panel)?|help|internet plugins|modem scripts|(system )?preferences|printer descriptions|scripting (additions|components)|shared (documents|libraries)|startup (disk|items)|temporary items|trash|on server|in AppleTalk zone|((as|long|short) )?user name|user (ID|locale)|(with )?password|in (bundle( with identifier)?|directory)|(close|open for) access|read|write( permission)?|(g|s)et eof|using( delimiters)?|starting at|default (answer|button|color|country code|entr(y|ies)|identifiers|items|name|location|script editor)|hidden( answer)?|open(ed| (location|untitled))?|error (handling|reporting)|(do( shell)?|load|run|store) script|administrator privileges|altering line endings|get volume settings|(alert|boot|input|mount|output|set) volume|output muted|(fax|random )?number|round(ing)?|up|down|toward zero|to nearest|as taught in school|system (attribute|info)|((AppleScript( Studio)?|system) )?version|(home )?directory|(IPv4|primary Ethernet) address|CPU (type|speed)|physical memory|time (stamp|to GMT)|replacing|ASCII (character|number)|localized string|from table|offset|summarize|beep|delay|say|(empty|multiple) selections allowed|(of|preferred) type|invisibles|showing( package contents)?|editable URL|(File|FTP|News|Media|Web) [Ss]ervers|Telnet hosts|Directory services|Remote applications|waiting until completion|saving( (in|to))?|path (for|to( (((current|frontmost) )?application|resource))?)|POSIX (file|path)|(background|RGB) color|(OK|cancel) button name|cancel button|button(s)?|cubic ((centi)?met(re|er)s|yards|feet|inches)|square ((kilo)?met(re|er)s|miles|yards|feet)|(centi|kilo)?met(re|er)s|miles|yards|feet|inches|lit(re|er)s|gallons|quarts|(kilo)?grams|ounces|pounds|degrees (Celsius|Fahrenheit|Kelvin)|print( (dialog|settings))?|clos(e(able)?|ing)|(de)?miniaturized|miniaturizable|zoom(ed|able)|attribute run|action (method|property|title)|phone|email|((start|end)ing|home) page|((birth|creation|current|custom|modification) )?date|((((phonetic )?(first|last|middle))|computer|host|maiden|related) |nick)?name|aim|icq|jabber|msn|yahoo|address(es)?|save addressbook|should enable action|city|country( code)?|formatte(r|d address)|(palette )?label|state|street|zip|AIM [Hh]andle(s)?|my card|select(ion| all)?|unsaved|(alpha )?value|entr(y|ies)|group|(ICQ|Jabber|MSN) handle|person|people|company|department|icon image|job title|note|organization|suffix|vcard|url|copies|collating|pages (across|down)|request print time|target( printer)?|((GUI Scripting|Script menu) )?enabled|show Computer scripts|(de)?activated|awake from nib|became (key|main)|call method|of (class|object)|center|clicked toolbar item|closed|for document|exposed|(can )?hide|idle|keyboard (down|up)|event( (number|type))?|launch(ed)?|load (image|movie|nib|sound)|owner|log|mouse (down|dragged|entered|exited|moved|up)|move|column|localization|resource|script|register|drag (info|types)|resigned (active|key|main)|resiz(e(d)?|able)|right mouse (down|dragged|up)|scroll wheel|(at )?index|should (close|open( untitled)?|quit( after last window closed)?|zoom)|((proposed|screen) )?bounds|show(n)?|behind|in front of|size (mode|to fit)|update(d| toolbar item)?|was (hidden|miniaturized)|will (become active|close|finish launching|hide|miniaturize|move|open|quit|(resign )?active|((maximum|minimum|proposed) )?size|show|zoom)|bundle|data source|movie|pasteboard|sound|tool(bar| tip)|(color|open|save) panel|coordinate system|frontmost|main( (bundle|menu|window))?|((services|(excluded from )?windows) )?menu|((executable|frameworks|resource|scripts|shared (frameworks|support)) )?path|(selected item )?identifier|data|content(s| view)?|character(s)?|click count|(command|control|option|shift) key down|context|delta (x|y|z)|key( code)?|location|pressure|unmodified characters|types|(first )?responder|playing|(allowed|selectable) identifiers|allows customization|(auto saves )?configuration|visible|image( name)?|menu form representation|tag|user(-| )defaults|associated file name|(auto|needs) display|current field editor|floating|has (resize indicator|shadow)|hides when deactivated|level|minimized (image|title)|opaque|position|release when closed|sheet|title(d)?)\b/g,
60
- css: 'color3' },
61
-
62
- { regex: new RegExp(this.getKeywords(specials), 'gm'), css: 'color3' },
63
- { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' },
64
- { regex: new RegExp(this.getKeywords(ordinals), 'gm'), css: 'keyword' }
65
- ];
66
- };
67
-
68
- Brush.prototype = new SyntaxHighlighter.Highlighter();
69
- Brush.aliases = ['applescript'];
70
-
71
- SyntaxHighlighter.brushes.AppleScript = Brush;
72
-
73
- // CommonJS
74
- typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
75
- })();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (Wed, 16 Apr 2014 03:56:09 GMT)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2013 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21
+
22
+ function Brush()
23
+ {
24
+ // AppleScript brush by David Chambers
25
+ // http://davidchambersdesign.com/
26
+ var keywords = 'after before beginning continue copy each end every from return get global in local named of set some that the then times to where whose with without';
27
+ var ordinals = 'first second third fourth fifth sixth seventh eighth ninth tenth last front back middle';
28
+ var specials = 'activate add alias ask attachment boolean class constant delete duplicate empty exists id integer list make message modal modified new no pi properties quit real record remove rest result reveal reverse run running save string word yes';
29
+
30
+ this.regexList = [
31
+
32
+ { regex: /(--|#).*$/gm,
33
+ css: 'comments' },
34
+
35
+ { regex: /\(\*(?:[\s\S]*?\(\*[\s\S]*?\*\))*[\s\S]*?\*\)/gm, // support nested comments
36
+ css: 'comments' },
37
+
38
+ { regex: /"[\s\S]*?"/gm,
39
+ css: 'string' },
40
+
41
+ { regex: /(?:,|:|¬|'s\b|\(|\)|\{|\}|«|\b\w*»)/g, // operators
42
+ css: 'color1' },
43
+
44
+ { regex: /(-)?(\d)+(\.(\d)?)?(E\+(\d)+)?/g, // numbers
45
+ css: 'color1' },
46
+
47
+ { regex: /(?:&(amp;|gt;|lt;)?|=|� |>|<|≥|>=|≤|<=|\*|\+|-|\/|÷|\^)/g,
48
+ css: 'color2' },
49
+
50
+ { regex: /\b(?:and|as|div|mod|not|or|return(?!\s&)(ing)?|equals|(is(n't| not)? )?equal( to)?|does(n't| not) equal|(is(n't| not)? )?(greater|less) than( or equal( to)?)?|(comes|does(n't| not) come) (after|before)|is(n't| not)?( in)? (back|front) of|is(n't| not)? behind|is(n't| not)?( (in|contained by))?|does(n't| not) contain|contain(s)?|(start|begin|end)(s)? with|((but|end) )?(consider|ignor)ing|prop(erty)?|(a )?ref(erence)?( to)?|repeat (until|while|with)|((end|exit) )?repeat|((else|end) )?if|else|(end )?(script|tell|try)|(on )?error|(put )?into|(of )?(it|me)|its|my|with (timeout( of)?|transaction)|end (timeout|transaction))\b/g,
51
+ css: 'keyword' },
52
+
53
+ { regex: /\b\d+(st|nd|rd|th)\b/g, // ordinals
54
+ css: 'keyword' },
55
+
56
+ { regex: /\b(?:about|above|against|around|at|below|beneath|beside|between|by|(apart|aside) from|(instead|out) of|into|on(to)?|over|since|thr(ough|u)|under)\b/g,
57
+ css: 'color3' },
58
+
59
+ { regex: /\b(?:adding folder items to|after receiving|clipboard info|set the clipboard to|(the )?clipboard|entire contents|document( (edited|file|nib name))?|file( (name|type))?|(info )?for|giving up after|(name )?extension|return(ed)?|second(?! item)(s)?|list (disks|folder)|(Unicode )?text|(disk )?item(s)?|((current|list) )?view|((container|key) )?window|case|diacriticals|hyphens|numeric strings|punctuation|white space|folder creation|application(s( folder)?| (processes|scripts position|support))?|((desktop )?(pictures )?|(documents|downloads|favorites|home|keychain|library|movies|music|public|scripts|sites|system|users|utilities|workflows) )folder|desktop|Folder Action scripts|font(s| panel)?|help|internet plugins|modem scripts|(system )?preferences|printer descriptions|scripting (additions|components)|shared (documents|libraries)|startup (disk|items)|temporary items|trash|on server|in AppleTalk zone|((as|long|short) )?user name|user (ID|locale)|(with )?password|in (bundle( with identifier)?|directory)|(close|open for) access|read|write( permission)?|(g|s)et eof|starting at|hidden( answer)?|open(ed| (location|untitled))?|error (handling|reporting)|administrator privileges|altering line endings|get volume settings|(alert|boot|input|mount|output|set) volume|output muted|(fax|random )?number|round(ing)?|up|down|toward zero|to nearest|as taught in school|system (attribute|info)|((AppleScript( Studio)?|system) )?version|(home )?directory|(IPv4|primary Ethernet) address|CPU (type|speed)|physical memory|time (stamp|to GMT)|replacing|ASCII (character|number)|localized string|from table|offset|summarize|beep|delay|say|(empty|multiple) selections allowed|(of|preferred) type|invisibles|showing( package contents)?|editable URL|(File|FTP|News|Media|Web) [Ss]ervers|Telnet hosts|Directory services|Remote applications|waiting until completion|saving( (in|to))?|path (for|to( (((current|frontmost) )?application|resource))?)|(background|RGB) color|(OK|cancel) button name|cancel button|button(s)?|cubic ((centi)?met(re|er)s|yards|feet|inches)|square ((kilo)?met(re|er)s|miles|yards|feet)|(centi|kilo)?met(re|er)s|miles|yards|feet|inches|lit(re|er)s|gallons|quarts|(kilo)?grams|ounces|pounds|degrees (Celsius|Fahrenheit|Kelvin)|print( (dialog|settings))?|clos(e(able)?|ing)|(de)?miniaturized|miniaturizable|zoom(ed|able)|attribute run|action (method|property|title)|phone|email|((start|end)ing|home) page|((birth|creation|current|custom|modification) )?date|((((phonetic )?(first|last|middle))|computer|host|maiden|related) |nick)?name|aim|icq|jabber|msn|yahoo|address(es)?|save addressbook|should enable action|city|country( code)?|formatte(r|d address)|(palette )?label|state|street|zip|AIM [Hh]andle(s)?|my card|select(ion| all)?|unsaved|(alpha )?value|entr(y|ies)|(ICQ|Jabber|MSN) handle|person|people|company|department|icon image|job title|note|organization|suffix|vcard|url|copies|collating|pages (across|down)|request print time|target( printer)?|((GUI Scripting|Script menu) )?enabled|show Computer scripts|(de)?activated|awake from nib|became (key|main)|call method|of (class|object)|center|clicked toolbar item|closed|for document|exposed|(can )?hide|idle|keyboard (down|up)|event( (number|type))?|launch(ed)?|load (image|movie|nib|sound)|owner|log|mouse (down|dragged|entered|exited|moved|up)|move|column|localization|resource|script|register|drag (info|types)|resigned (active|key|main)|resiz(e(d)?|able)|right mouse (down|dragged|up)|scroll wheel|(at )?index|should (close|open( untitled)?|quit( after last window closed)?|zoom)|((proposed|screen) )?bounds|show(n)?|behind|in front of|size (mode|to fit)|update(d| toolbar item)?|was (hidden|miniaturized)|will (become active|close|finish launching|hide|miniaturize|move|open|quit|(resign )?active|((maximum|minimum|proposed) )?size|show|zoom)|bundle|data source|movie|pasteboard|sound|tool(bar| tip)|(color|open|save) panel|coordinate system|frontmost|main( (bundle|menu|window))?|((services|(excluded from )?windows) )?menu|((executable|frameworks|resource|scripts|shared (frameworks|support)) )?path|(selected item )?identifier|data|content(s| view)?|character(s)?|click count|(command|control|option|shift) key down|context|delta (x|y|z)|key( code)?|location|pressure|unmodified characters|types|(first )?responder|playing|(allowed|selectable) identifiers|allows customization|(auto saves )?configuration|visible|image( name)?|menu form representation|tag|user(-| )defaults|associated file name|(auto|needs) display|current field editor|floating|has (resize indicator|shadow)|hides when deactivated|level|minimized (image|title)|opaque|position|release when closed|sheet|title(d)?)\b/g,
60
+ css: 'color4' },
61
+
62
+ { regex: /\b(?:tracks|paragraph|text item(s)?)\b/g,
63
+ css: 'classes' },
64
+
65
+ { regex: /\b(?:AppleScript|album|video kind|grouping|length|text item delimiters|quoted form|POSIX path(?= of))\b/g,
66
+ css: 'properties' },
67
+
68
+ { regex: /\b(?:run|exists|count)\b/g,
69
+ css: 'commandNames' },
70
+
71
+ { regex: /\b(?:POSIX (file|path))\b/g,
72
+ css: 'additionClasses' },
73
+
74
+ { regex: /\b(?:message|with (data|icon( (caution|note|stop))?|parameter(s)?|prompt|properties|seed|title)|regexp|string result|using( delimiters)?|default (answer|button|color|country code|entr(y|ies)|identifiers|items|name|location|script editor))\b/g,
75
+ css: 'additionParameterNames' },
76
+
77
+ { regex: /\b(?:display(ing| (alert|dialog|mode))?|choose( ((remote )?application|color|folder|from list|URL))?|(do( shell)?|load|run|store) script|re_compile|find text)\b/g,
78
+ css: 'additionCommandNames' },
79
+
80
+ { regex: /\b(?:xxx)\b/g,
81
+ css: 'parameterNames' },
82
+
83
+ { regex: /\b(?:true|false|none)\b/g,
84
+ css: 'enumeratedValues' },
85
+
86
+
87
+ { regex: new RegExp(this.getKeywords(specials), 'gm'), css: 'color3' },
88
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' },
89
+ { regex: new RegExp(this.getKeywords(ordinals), 'gm'), css: 'keyword' }
90
+ ];
91
+ };
92
+
93
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
94
+ Brush.aliases = ['applescript'];
95
+
96
+ SyntaxHighlighter.brushes.AppleScript = Brush;
97
+
98
+ // CommonJS
99
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
100
+ })();
syntaxhighlighter3/scripts/shBrushBash.js CHANGED
@@ -1,59 +1,75 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/SyntaxHighlighter
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
- *
8
- * @version
9
- * 3.0.83 (July 02 2010)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2010 Alex Gorbatchev.
13
- *
14
- * @license
15
- * Dual licensed under the MIT and GPL licenses.
16
- */
17
- ;(function()
18
- {
19
- // CommonJS
20
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
-
22
- function Brush()
23
- {
24
- var keywords = 'if fi then elif else for do done until while break continue case function return in eq ne ge le';
25
- var commands = 'alias apropos awk basename bash bc bg builtin bzip2 cal cat cd cfdisk chgrp chmod chown chroot' +
26
- 'cksum clear cmp comm command cp cron crontab csplit cut date dc dd ddrescue declare df ' +
27
- 'diff diff3 dig dir dircolors dirname dirs du echo egrep eject enable env ethtool eval ' +
28
- 'exec exit expand export expr false fdformat fdisk fg fgrep file find fmt fold format ' +
29
- 'free fsck ftp gawk getopts grep groups gzip hash head history hostname id ifconfig ' +
30
- 'import install join kill less let ln local locate logname logout look lpc lpr lprint ' +
31
- 'lprintd lprintq lprm ls lsof make man mkdir mkfifo mkisofs mknod more mount mtools ' +
32
- 'mv netstat nice nl nohup nslookup open op passwd paste pathchk ping popd pr printcap ' +
33
- 'printenv printf ps pushd pwd quota quotacheck quotactl ram rcp read readonly renice ' +
34
- 'remsync rm rmdir rsync screen scp sdiff sed select seq set sftp shift shopt shutdown ' +
35
- 'sleep sort source split ssh strace su sudo sum symlink sync tail tar tee test time ' +
36
- 'times touch top traceroute trap tr true tsort tty type ulimit umask umount unalias ' +
37
- 'uname unexpand uniq units unset unshar useradd usermod users uuencode uudecode v vdir ' +
38
- 'vi watch wc whereis which who whoami Wget xargs yes'
39
- ;
40
-
41
- this.regexList = [
42
- { regex: /^#!.*$/gm, css: 'preprocessor bold' },
43
- { regex: /\/[\w-\/]+/gm, css: 'plain' },
44
- { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments
45
- { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
46
- { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
47
- { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
48
- { regex: new RegExp(this.getKeywords(commands), 'gm'), css: 'functions' } // commands
49
- ];
50
- }
51
-
52
- Brush.prototype = new SyntaxHighlighter.Highlighter();
53
- Brush.aliases = ['bash', 'shell'];
54
-
55
- SyntaxHighlighter.brushes.Bash = Brush;
56
-
57
- // CommonJS
58
- typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
59
- })();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (Wed, 16 Apr 2014 03:56:09 GMT)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2013 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21
+
22
+ function Brush()
23
+ {
24
+ function hereDocProcess(match, regexInfo)
25
+ {
26
+ var constructor = SyntaxHighlighter.Match,
27
+ result = []
28
+ ;
29
+ if (match.here_doc != null)
30
+ result.push(new constructor(match.here_doc, match.index + match[0].indexOf(match.here_doc), 'string'));
31
+
32
+ if (match.full_tag != null)
33
+ result.push(new constructor(match.full_tag, match.index, 'preprocessor'));
34
+
35
+ if (match.end_tag != null)
36
+ result.push(new constructor(match.end_tag, match.index + match[0].lastIndexOf(match.end_tag), 'preprocessor'));
37
+ return result;
38
+ }
39
+ var keywords = 'if fi then elif else for do done until while break continue case esac function return in eq ne ge le';
40
+ var commands = 'alias apropos awk basename base64 bash bc bg builtin bzip2 cal cat cd cfdisk chgrp chmod chown chroot' +
41
+ 'cksum clear cmp comm command cp cron crontab crypt csplit cut date dc dd ddrescue declare df ' +
42
+ 'diff diff3 dig dir dircolors dirname dirs du echo egrep eject enable env ethtool eval ' +
43
+ 'exec exit expand export expr false fdformat fdisk fg fgrep file find fmt fold format ' +
44
+ 'free fsck ftp gawk gcc gdb getconf getopts grep groups gzip hash head history hostname id ifconfig ' +
45
+ 'import install join kill less let ln local locate logname logout look lpc lpr lprint ' +
46
+ 'lprintd lprintq lprm ls lsof make man mkdir mkfifo mkisofs mknod more mount mtools ' +
47
+ 'mv nasm nc ndisasm netstat nice nl nohup nslookup objdump od open op passwd paste pathchk ping popd pr printcap ' +
48
+ 'printenv printf ps pushd pwd quota quotacheck quotactl ram rcp read readonly renice ' +
49
+ 'remsync rm rmdir rsync screen scp sdiff sed select seq set sftp shift shopt shutdown ' +
50
+ 'sleep sort source split ssh strace strings su sudo sum symlink sync tail tar tee test time ' +
51
+ 'times touch top traceroute trap tr true tsort tty type ulimit umask umount unalias ' +
52
+ 'uname unexpand uniq units unset unshar useradd usermod users uuencode uudecode v vdir ' +
53
+ 'vi watch wc whereis which who whoami Wget xargs xxd yes chsh'
54
+ ;
55
+
56
+ this.regexList = [
57
+ { regex: /^#!.*$/gm, css: 'preprocessor bold' },
58
+ { regex: /\/[\w-\/]+/gm, css: 'plain' },
59
+ { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments
60
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
61
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
62
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
63
+ { regex: new RegExp(this.getKeywords(commands), 'gm'), css: 'functions' }, // commands
64
+ { regex: new XRegExp("(?<full_tag>(&lt;|<){2}(?<tag>\\w+)) .*$(?<here_doc>[\\s\\S]*)(?<end_tag>^\\k<tag>$)",'gm'), func: hereDocProcess }
65
+ ];
66
+ }
67
+
68
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
69
+ Brush.aliases = ['bash', 'shell', 'sh'];
70
+
71
+ SyntaxHighlighter.brushes.Bash = Brush;
72
+
73
+ // CommonJS
74
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
75
+ })();
syntaxhighlighter3/scripts/shBrushCSharp.js CHANGED
@@ -1,65 +1,65 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/SyntaxHighlighter
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
- *
8
- * @version
9
- * 3.0.83 (July 02 2010)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2010 Alex Gorbatchev.
13
- *
14
- * @license
15
- * Dual licensed under the MIT and GPL licenses.
16
- */
17
- ;(function()
18
- {
19
- // CommonJS
20
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
-
22
- function Brush()
23
- {
24
- var keywords = 'abstract as base bool break byte case catch char checked class const ' +
25
- 'continue decimal default delegate do double else enum event explicit ' +
26
- 'extern false finally fixed float for foreach get goto if implicit in int ' +
27
- 'interface internal is lock long namespace new null object operator out ' +
28
- 'override params private protected public readonly ref return sbyte sealed set ' +
29
- 'short sizeof stackalloc static string struct switch this throw true try ' +
30
- 'typeof uint ulong unchecked unsafe ushort using virtual void while';
31
-
32
- function fixComments(match, regexInfo)
33
- {
34
- var css = (match[0].indexOf("///") == 0)
35
- ? 'color1'
36
- : 'comments'
37
- ;
38
-
39
- return [new SyntaxHighlighter.Match(match[0], match.index, css)];
40
- }
41
-
42
- this.regexList = [
43
- { regex: SyntaxHighlighter.regexLib.singleLineCComments, func : fixComments }, // one line comments
44
- { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
45
- { regex: /@"(?:[^"]|"")*"/g, css: 'string' }, // @-quoted strings
46
- { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
47
- { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
48
- { regex: /^\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
49
- { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // c# keyword
50
- { regex: /\bpartial(?=\s+(?:class|interface|struct)\b)/g, css: 'keyword' }, // contextual keyword: 'partial'
51
- { regex: /\byield(?=\s+(?:return|break)\b)/g, css: 'keyword' } // contextual keyword: 'yield'
52
- ];
53
-
54
- this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
55
- };
56
-
57
- Brush.prototype = new SyntaxHighlighter.Highlighter();
58
- Brush.aliases = ['c#', 'c-sharp', 'csharp'];
59
-
60
- SyntaxHighlighter.brushes.CSharp = Brush;
61
-
62
- // CommonJS
63
- typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
64
- })();
65
-
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (Wed, 16 Apr 2014 03:56:09 GMT)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2013 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21
+
22
+ function Brush()
23
+ {
24
+ var keywords = 'abstract as async await base bool break byte case catch char checked class const ' +
25
+ 'continue decimal default delegate do double else enum event explicit volatile ' +
26
+ 'extern false finally fixed float for foreach get goto if implicit in int ' +
27
+ 'interface internal is lock long namespace new null object operator out ' +
28
+ 'override params private protected public readonly ref return sbyte sealed set ' +
29
+ 'short sizeof stackalloc static string struct switch this throw true try ' +
30
+ 'typeof uint ulong unchecked unsafe ushort using virtual void while var ' +
31
+ 'from group by into select let where orderby join on equals ascending descending';
32
+
33
+ function fixComments(match, regexInfo)
34
+ {
35
+ var css = (match[0].indexOf("///") == 0)
36
+ ? 'color1'
37
+ : 'comments'
38
+ ;
39
+
40
+ return [new SyntaxHighlighter.Match(match[0], match.index, css)];
41
+ }
42
+
43
+ this.regexList = [
44
+ { regex: SyntaxHighlighter.regexLib.singleLineCComments, func : fixComments }, // one line comments
45
+ { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
46
+ { regex: /@"(?:[^"]|"")*"/g, css: 'string' }, // @-quoted strings
47
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
48
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
49
+ { regex: /^\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
50
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // c# keyword
51
+ { regex: /\bpartial(?=\s+(?:class|interface|struct)\b)/g, css: 'keyword' }, // contextual keyword: 'partial'
52
+ { regex: /\byield(?=\s+(?:return|break)\b)/g, css: 'keyword' } // contextual keyword: 'yield'
53
+ ];
54
+
55
+ this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
56
+ };
57
+
58
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
59
+ Brush.aliases = ['c#', 'c-sharp', 'csharp'];
60
+
61
+ SyntaxHighlighter.brushes.CSharp = Brush;
62
+
63
+ // CommonJS
64
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
65
+ })();
syntaxhighlighter3/scripts/shBrushColdFusion.js CHANGED
@@ -1,100 +1,100 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/SyntaxHighlighter
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
- *
8
- * @version
9
- * 3.0.83 (July 02 2010)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2010 Alex Gorbatchev.
13
- *
14
- * @license
15
- * Dual licensed under the MIT and GPL licenses.
16
- */
17
- ;(function()
18
- {
19
- // CommonJS
20
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
-
22
- function Brush()
23
- {
24
- // Contributed by Jen
25
- // http://www.jensbits.com/2009/05/14/coldfusion-brush-for-syntaxhighlighter-plus
26
-
27
- var funcs = 'Abs ACos AddSOAPRequestHeader AddSOAPResponseHeader AjaxLink AjaxOnLoad ArrayAppend ArrayAvg ArrayClear ArrayDeleteAt ' +
28
- 'ArrayInsertAt ArrayIsDefined ArrayIsEmpty ArrayLen ArrayMax ArrayMin ArraySet ArraySort ArraySum ArraySwap ArrayToList ' +
29
- 'Asc ASin Atn BinaryDecode BinaryEncode BitAnd BitMaskClear BitMaskRead BitMaskSet BitNot BitOr BitSHLN BitSHRN BitXor ' +
30
- 'Ceiling CharsetDecode CharsetEncode Chr CJustify Compare CompareNoCase Cos CreateDate CreateDateTime CreateObject ' +
31
- 'CreateODBCDate CreateODBCDateTime CreateODBCTime CreateTime CreateTimeSpan CreateUUID DateAdd DateCompare DateConvert ' +
32
- 'DateDiff DateFormat DatePart Day DayOfWeek DayOfWeekAsString DayOfYear DaysInMonth DaysInYear DE DecimalFormat DecrementValue ' +
33
- 'Decrypt DecryptBinary DeleteClientVariable DeserializeJSON DirectoryExists DollarFormat DotNetToCFType Duplicate Encrypt ' +
34
- 'EncryptBinary Evaluate Exp ExpandPath FileClose FileCopy FileDelete FileExists FileIsEOF FileMove FileOpen FileRead ' +
35
- 'FileReadBinary FileReadLine FileSetAccessMode FileSetAttribute FileSetLastModified FileWrite Find FindNoCase FindOneOf ' +
36
- 'FirstDayOfMonth Fix FormatBaseN GenerateSecretKey GetAuthUser GetBaseTagData GetBaseTagList GetBaseTemplatePath ' +
37
- 'GetClientVariablesList GetComponentMetaData GetContextRoot GetCurrentTemplatePath GetDirectoryFromPath GetEncoding ' +
38
- 'GetException GetFileFromPath GetFileInfo GetFunctionList GetGatewayHelper GetHttpRequestData GetHttpTimeString ' +
39
- 'GetK2ServerDocCount GetK2ServerDocCountLimit GetLocale GetLocaleDisplayName GetLocalHostIP GetMetaData GetMetricData ' +
40
- 'GetPageContext GetPrinterInfo GetProfileSections GetProfileString GetReadableImageFormats GetSOAPRequest GetSOAPRequestHeader ' +
41
- 'GetSOAPResponse GetSOAPResponseHeader GetTempDirectory GetTempFile GetTemplatePath GetTickCount GetTimeZoneInfo GetToken ' +
42
- 'GetUserRoles GetWriteableImageFormats Hash Hour HTMLCodeFormat HTMLEditFormat IIf ImageAddBorder ImageBlur ImageClearRect ' +
43
- 'ImageCopy ImageCrop ImageDrawArc ImageDrawBeveledRect ImageDrawCubicCurve ImageDrawLine ImageDrawLines ImageDrawOval ' +
44
- 'ImageDrawPoint ImageDrawQuadraticCurve ImageDrawRect ImageDrawRoundRect ImageDrawText ImageFlip ImageGetBlob ImageGetBufferedImage ' +
45
- 'ImageGetEXIFTag ImageGetHeight ImageGetIPTCTag ImageGetWidth ImageGrayscale ImageInfo ImageNegative ImageNew ImageOverlay ImagePaste ' +
46
- 'ImageRead ImageReadBase64 ImageResize ImageRotate ImageRotateDrawingAxis ImageScaleToFit ImageSetAntialiasing ImageSetBackgroundColor ' +
47
- 'ImageSetDrawingColor ImageSetDrawingStroke ImageSetDrawingTransparency ImageSharpen ImageShear ImageShearDrawingAxis ImageTranslate ' +
48
- 'ImageTranslateDrawingAxis ImageWrite ImageWriteBase64 ImageXORDrawingMode IncrementValue InputBaseN Insert Int IsArray IsBinary ' +
49
- 'IsBoolean IsCustomFunction IsDate IsDDX IsDebugMode IsDefined IsImage IsImageFile IsInstanceOf IsJSON IsLeapYear IsLocalHost ' +
50
- 'IsNumeric IsNumericDate IsObject IsPDFFile IsPDFObject IsQuery IsSimpleValue IsSOAPRequest IsStruct IsUserInAnyRole IsUserInRole ' +
51
- 'IsUserLoggedIn IsValid IsWDDX IsXML IsXmlAttribute IsXmlDoc IsXmlElem IsXmlNode IsXmlRoot JavaCast JSStringFormat LCase Left Len ' +
52
- 'ListAppend ListChangeDelims ListContains ListContainsNoCase ListDeleteAt ListFind ListFindNoCase ListFirst ListGetAt ListInsertAt ' +
53
- 'ListLast ListLen ListPrepend ListQualify ListRest ListSetAt ListSort ListToArray ListValueCount ListValueCountNoCase LJustify Log ' +
54
- 'Log10 LSCurrencyFormat LSDateFormat LSEuroCurrencyFormat LSIsCurrency LSIsDate LSIsNumeric LSNumberFormat LSParseCurrency LSParseDateTime ' +
55
- 'LSParseEuroCurrency LSParseNumber LSTimeFormat LTrim Max Mid Min Minute Month MonthAsString Now NumberFormat ParagraphFormat ParseDateTime ' +
56
- 'Pi PrecisionEvaluate PreserveSingleQuotes Quarter QueryAddColumn QueryAddRow QueryConvertForGrid QueryNew QuerySetCell QuotedValueList Rand ' +
57
- 'Randomize RandRange REFind REFindNoCase ReleaseComObject REMatch REMatchNoCase RemoveChars RepeatString Replace ReplaceList ReplaceNoCase ' +
58
- 'REReplace REReplaceNoCase Reverse Right RJustify Round RTrim Second SendGatewayMessage SerializeJSON SetEncoding SetLocale SetProfileString ' +
59
- 'SetVariable Sgn Sin Sleep SpanExcluding SpanIncluding Sqr StripCR StructAppend StructClear StructCopy StructCount StructDelete StructFind ' +
60
- 'StructFindKey StructFindValue StructGet StructInsert StructIsEmpty StructKeyArray StructKeyExists StructKeyList StructKeyList StructNew ' +
61
- 'StructSort StructUpdate Tan TimeFormat ToBase64 ToBinary ToScript ToString Trim UCase URLDecode URLEncodedFormat URLSessionFormat Val ' +
62
- 'ValueList VerifyClient Week Wrap Wrap WriteOutput XmlChildPos XmlElemNew XmlFormat XmlGetNodeType XmlNew XmlParse XmlSearch XmlTransform ' +
63
- 'XmlValidate Year YesNoFormat';
64
-
65
- var keywords = 'cfabort cfajaximport cfajaxproxy cfapplet cfapplication cfargument cfassociate cfbreak cfcache cfcalendar ' +
66
- 'cfcase cfcatch cfchart cfchartdata cfchartseries cfcol cfcollection cfcomponent cfcontent cfcookie cfdbinfo ' +
67
- 'cfdefaultcase cfdirectory cfdiv cfdocument cfdocumentitem cfdocumentsection cfdump cfelse cfelseif cferror ' +
68
- 'cfexchangecalendar cfexchangeconnection cfexchangecontact cfexchangefilter cfexchangemail cfexchangetask ' +
69
- 'cfexecute cfexit cffeed cffile cfflush cfform cfformgroup cfformitem cfftp cffunction cfgrid cfgridcolumn ' +
70
- 'cfgridrow cfgridupdate cfheader cfhtmlhead cfhttp cfhttpparam cfif cfimage cfimport cfinclude cfindex ' +
71
- 'cfinput cfinsert cfinterface cfinvoke cfinvokeargument cflayout cflayoutarea cfldap cflocation cflock cflog ' +
72
- 'cflogin cfloginuser cflogout cfloop cfmail cfmailparam cfmailpart cfmenu cfmenuitem cfmodule cfNTauthenticate ' +
73
- 'cfobject cfobjectcache cfoutput cfparam cfpdf cfpdfform cfpdfformparam cfpdfparam cfpdfsubform cfpod cfpop ' +
74
- 'cfpresentation cfpresentationslide cfpresenter cfprint cfprocessingdirective cfprocparam cfprocresult ' +
75
- 'cfproperty cfquery cfqueryparam cfregistry cfreport cfreportparam cfrethrow cfreturn cfsavecontent cfschedule ' +
76
- 'cfscript cfsearch cfselect cfset cfsetting cfsilent cfslider cfsprydataset cfstoredproc cfswitch cftable ' +
77
- 'cftextarea cfthread cfthrow cftimer cftooltip cftrace cftransaction cftree cftreeitem cftry cfupdate cfwddx ' +
78
- 'cfwindow cfxml cfzip cfzipparam';
79
-
80
- var operators = 'all and any between cross in join like not null or outer some';
81
-
82
- this.regexList = [
83
- { regex: new RegExp('--(.*)$', 'gm'), css: 'comments' }, // one line and multiline comments
84
- { regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, // single quoted strings
85
- { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
86
- { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
87
- { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // functions
88
- { regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // operators and such
89
- { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
90
- ];
91
- }
92
-
93
- Brush.prototype = new SyntaxHighlighter.Highlighter();
94
- Brush.aliases = ['coldfusion','cf'];
95
-
96
- SyntaxHighlighter.brushes.ColdFusion = Brush;
97
-
98
- // CommonJS
99
- typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
100
- })();
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (Wed, 16 Apr 2014 03:56:09 GMT)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2013 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21
+
22
+ function Brush()
23
+ {
24
+ // Contributed by Jen
25
+ // http://www.jensbits.com/2009/05/14/coldfusion-brush-for-syntaxhighlighter-plus
26
+
27
+ var funcs = 'Abs ACos AddSOAPRequestHeader AddSOAPResponseHeader AjaxLink AjaxOnLoad ArrayAppend ArrayAvg ArrayClear ArrayDeleteAt ' +
28
+ 'ArrayInsertAt ArrayIsDefined ArrayIsEmpty ArrayLen ArrayMax ArrayMin ArraySet ArraySort ArraySum ArraySwap ArrayToList ' +
29
+ 'Asc ASin Atn BinaryDecode BinaryEncode BitAnd BitMaskClear BitMaskRead BitMaskSet BitNot BitOr BitSHLN BitSHRN BitXor ' +
30
+ 'Ceiling CharsetDecode CharsetEncode Chr CJustify Compare CompareNoCase Cos CreateDate CreateDateTime CreateObject ' +
31
+ 'CreateODBCDate CreateODBCDateTime CreateODBCTime CreateTime CreateTimeSpan CreateUUID DateAdd DateCompare DateConvert ' +
32
+ 'DateDiff DateFormat DatePart Day DayOfWeek DayOfWeekAsString DayOfYear DaysInMonth DaysInYear DE DecimalFormat DecrementValue ' +
33
+ 'Decrypt DecryptBinary DeleteClientVariable DeserializeJSON DirectoryExists DollarFormat DotNetToCFType Duplicate Encrypt ' +
34
+ 'EncryptBinary Evaluate Exp ExpandPath FileClose FileCopy FileDelete FileExists FileIsEOF FileMove FileOpen FileRead ' +
35
+ 'FileReadBinary FileReadLine FileSetAccessMode FileSetAttribute FileSetLastModified FileWrite Find FindNoCase FindOneOf ' +
36
+ 'FirstDayOfMonth Fix FormatBaseN GenerateSecretKey GetAuthUser GetBaseTagData GetBaseTagList GetBaseTemplatePath ' +
37
+ 'GetClientVariablesList GetComponentMetaData GetContextRoot GetCurrentTemplatePath GetDirectoryFromPath GetEncoding ' +
38
+ 'GetException GetFileFromPath GetFileInfo GetFunctionList GetGatewayHelper GetHttpRequestData GetHttpTimeString ' +
39
+ 'GetK2ServerDocCount GetK2ServerDocCountLimit GetLocale GetLocaleDisplayName GetLocalHostIP GetMetaData GetMetricData ' +
40
+ 'GetPageContext GetPrinterInfo GetProfileSections GetProfileString GetReadableImageFormats GetSOAPRequest GetSOAPRequestHeader ' +
41
+ 'GetSOAPResponse GetSOAPResponseHeader GetTempDirectory GetTempFile GetTemplatePath GetTickCount GetTimeZoneInfo GetToken ' +
42
+ 'GetUserRoles GetWriteableImageFormats Hash Hour HTMLCodeFormat HTMLEditFormat IIf ImageAddBorder ImageBlur ImageClearRect ' +
43
+ 'ImageCopy ImageCrop ImageDrawArc ImageDrawBeveledRect ImageDrawCubicCurve ImageDrawLine ImageDrawLines ImageDrawOval ' +
44
+ 'ImageDrawPoint ImageDrawQuadraticCurve ImageDrawRect ImageDrawRoundRect ImageDrawText ImageFlip ImageGetBlob ImageGetBufferedImage ' +
45
+ 'ImageGetEXIFTag ImageGetHeight ImageGetIPTCTag ImageGetWidth ImageGrayscale ImageInfo ImageNegative ImageNew ImageOverlay ImagePaste ' +
46
+ 'ImageRead ImageReadBase64 ImageResize ImageRotate ImageRotateDrawingAxis ImageScaleToFit ImageSetAntialiasing ImageSetBackgroundColor ' +
47
+ 'ImageSetDrawingColor ImageSetDrawingStroke ImageSetDrawingTransparency ImageSharpen ImageShear ImageShearDrawingAxis ImageTranslate ' +
48
+ 'ImageTranslateDrawingAxis ImageWrite ImageWriteBase64 ImageXORDrawingMode IncrementValue InputBaseN Insert Int IsArray IsBinary ' +
49
+ 'IsBoolean IsCustomFunction IsDate IsDDX IsDebugMode IsDefined IsImage IsImageFile IsInstanceOf IsJSON IsLeapYear IsLocalHost ' +
50
+ 'IsNumeric IsNumericDate IsObject IsPDFFile IsPDFObject IsQuery IsSimpleValue IsSOAPRequest IsStruct IsUserInAnyRole IsUserInRole ' +
51
+ 'IsUserLoggedIn IsValid IsWDDX IsXML IsXmlAttribute IsXmlDoc IsXmlElem IsXmlNode IsXmlRoot JavaCast JSStringFormat LCase Left Len ' +
52
+ 'ListAppend ListChangeDelims ListContains ListContainsNoCase ListDeleteAt ListFind ListFindNoCase ListFirst ListGetAt ListInsertAt ' +
53
+ 'ListLast ListLen ListPrepend ListQualify ListRest ListSetAt ListSort ListToArray ListValueCount ListValueCountNoCase LJustify Log ' +
54
+ 'Log10 LSCurrencyFormat LSDateFormat LSEuroCurrencyFormat LSIsCurrency LSIsDate LSIsNumeric LSNumberFormat LSParseCurrency LSParseDateTime ' +
55
+ 'LSParseEuroCurrency LSParseNumber LSTimeFormat LTrim Max Mid Min Minute Month MonthAsString Now NumberFormat ParagraphFormat ParseDateTime ' +
56
+ 'Pi PrecisionEvaluate PreserveSingleQuotes Quarter QueryAddColumn QueryAddRow QueryConvertForGrid QueryNew QuerySetCell QuotedValueList Rand ' +
57
+ 'Randomize RandRange REFind REFindNoCase ReleaseComObject REMatch REMatchNoCase RemoveChars RepeatString Replace ReplaceList ReplaceNoCase ' +
58
+ 'REReplace REReplaceNoCase Reverse Right RJustify Round RTrim Second SendGatewayMessage SerializeJSON SetEncoding SetLocale SetProfileString ' +
59
+ 'SetVariable Sgn Sin Sleep SpanExcluding SpanIncluding Sqr StripCR StructAppend StructClear StructCopy StructCount StructDelete StructFind ' +
60
+ 'StructFindKey StructFindValue StructGet StructInsert StructIsEmpty StructKeyArray StructKeyExists StructKeyList StructKeyList StructNew ' +
61
+ 'StructSort StructUpdate Tan TimeFormat ToBase64 ToBinary ToScript ToString Trim UCase URLDecode URLEncodedFormat URLSessionFormat Val ' +
62
+ 'ValueList VerifyClient Week Wrap Wrap WriteOutput XmlChildPos XmlElemNew XmlFormat XmlGetNodeType XmlNew XmlParse XmlSearch XmlTransform ' +
63
+ 'XmlValidate Year YesNoFormat';
64
+
65
+ var keywords = 'cfabort cfajaximport cfajaxproxy cfapplet cfapplication cfargument cfassociate cfbreak cfcache cfcalendar ' +
66
+ 'cfcase cfcatch cfchart cfchartdata cfchartseries cfcol cfcollection cfcomponent cfcontent cfcookie cfdbinfo ' +
67
+ 'cfdefaultcase cfdirectory cfdiv cfdocument cfdocumentitem cfdocumentsection cfdump cfelse cfelseif cferror ' +
68
+ 'cfexchangecalendar cfexchangeconnection cfexchangecontact cfexchangefilter cfexchangemail cfexchangetask ' +
69
+ 'cfexecute cfexit cffeed cffile cfflush cfform cfformgroup cfformitem cfftp cffunction cfgrid cfgridcolumn ' +
70
+ 'cfgridrow cfgridupdate cfheader cfhtmlhead cfhttp cfhttpparam cfif cfimage cfimport cfinclude cfindex ' +
71
+ 'cfinput cfinsert cfinterface cfinvoke cfinvokeargument cflayout cflayoutarea cfldap cflocation cflock cflog ' +
72
+ 'cflogin cfloginuser cflogout cfloop cfmail cfmailparam cfmailpart cfmenu cfmenuitem cfmodule cfNTauthenticate ' +
73
+ 'cfobject cfobjectcache cfoutput cfparam cfpdf cfpdfform cfpdfformparam cfpdfparam cfpdfsubform cfpod cfpop ' +
74
+ 'cfpresentation cfpresentationslide cfpresenter cfprint cfprocessingdirective cfprocparam cfprocresult ' +
75
+ 'cfproperty cfquery cfqueryparam cfregistry cfreport cfreportparam cfrethrow cfreturn cfsavecontent cfschedule ' +
76
+ 'cfscript cfsearch cfselect cfset cfsetting cfsilent cfslider cfsprydataset cfstoredproc cfswitch cftable ' +
77
+ 'cftextarea cfthread cfthrow cftimer cftooltip cftrace cftransaction cftree cftreeitem cftry cfupdate cfwddx ' +
78
+ 'cfwindow cfxml cfzip cfzipparam';
79
+
80
+ var operators = 'all and any between cross in join like not null or outer some';
81
+
82
+ this.regexList = [
83
+ { regex: new RegExp('--(.*)$', 'gm'), css: 'comments' }, // one line and multiline comments
84
+ { regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, // single quoted strings
85
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
86
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
87
+ { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // functions
88
+ { regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // operators and such
89
+ { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
90
+ ];
91
+ }
92
+
93
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
94
+ Brush.aliases = ['coldfusion','cf'];
95
+
96
+ SyntaxHighlighter.brushes.ColdFusion = Brush;
97
+
98
+ // CommonJS
99
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
100
+ })();
syntaxhighlighter3/scripts/shBrushCpp.js CHANGED
@@ -1,97 +1,97 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/SyntaxHighlighter
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
- *
8
- * @version
9
- * 3.0.83 (July 02 2010)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2010 Alex Gorbatchev.
13
- *
14
- * @license
15
- * Dual licensed under the MIT and GPL licenses.
16
- */
17
- ;(function()
18
- {
19
- // CommonJS
20
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
-
22
- function Brush()
23
- {
24
- // Copyright 2006 Shin, YoungJin
25
-
26
- var datatypes = 'ATOM BOOL BOOLEAN BYTE CHAR COLORREF DWORD DWORDLONG DWORD_PTR ' +
27
- 'DWORD32 DWORD64 FLOAT HACCEL HALF_PTR HANDLE HBITMAP HBRUSH ' +
28
- 'HCOLORSPACE HCONV HCONVLIST HCURSOR HDC HDDEDATA HDESK HDROP HDWP ' +
29
- 'HENHMETAFILE HFILE HFONT HGDIOBJ HGLOBAL HHOOK HICON HINSTANCE HKEY ' +
30
- 'HKL HLOCAL HMENU HMETAFILE HMODULE HMONITOR HPALETTE HPEN HRESULT ' +
31
- 'HRGN HRSRC HSZ HWINSTA HWND INT INT_PTR INT32 INT64 LANGID LCID LCTYPE ' +
32
- 'LGRPID LONG LONGLONG LONG_PTR LONG32 LONG64 LPARAM LPBOOL LPBYTE LPCOLORREF ' +
33
- 'LPCSTR LPCTSTR LPCVOID LPCWSTR LPDWORD LPHANDLE LPINT LPLONG LPSTR LPTSTR ' +
34
- 'LPVOID LPWORD LPWSTR LRESULT PBOOL PBOOLEAN PBYTE PCHAR PCSTR PCTSTR PCWSTR ' +
35
- 'PDWORDLONG PDWORD_PTR PDWORD32 PDWORD64 PFLOAT PHALF_PTR PHANDLE PHKEY PINT ' +
36
- 'PINT_PTR PINT32 PINT64 PLCID PLONG PLONGLONG PLONG_PTR PLONG32 PLONG64 POINTER_32 ' +
37
- 'POINTER_64 PSHORT PSIZE_T PSSIZE_T PSTR PTBYTE PTCHAR PTSTR PUCHAR PUHALF_PTR ' +
38
- 'PUINT PUINT_PTR PUINT32 PUINT64 PULONG PULONGLONG PULONG_PTR PULONG32 PULONG64 ' +
39
- 'PUSHORT PVOID PWCHAR PWORD PWSTR SC_HANDLE SC_LOCK SERVICE_STATUS_HANDLE SHORT ' +
40
- 'SIZE_T SSIZE_T TBYTE TCHAR UCHAR UHALF_PTR UINT UINT_PTR UINT32 UINT64 ULONG ' +
41
- 'ULONGLONG ULONG_PTR ULONG32 ULONG64 USHORT USN VOID WCHAR WORD WPARAM WPARAM WPARAM ' +
42
- 'char bool short int __int32 __int64 __int8 __int16 long float double __wchar_t ' +
43
- 'clock_t _complex _dev_t _diskfree_t div_t ldiv_t _exception _EXCEPTION_POINTERS ' +
44
- 'FILE _finddata_t _finddatai64_t _wfinddata_t _wfinddatai64_t __finddata64_t ' +
45
- '__wfinddata64_t _FPIEEE_RECORD fpos_t _HEAPINFO _HFILE lconv intptr_t ' +
46
- 'jmp_buf mbstate_t _off_t _onexit_t _PNH ptrdiff_t _purecall_handler ' +
47
- 'sig_atomic_t size_t _stat __stat64 _stati64 terminate_function ' +
48
- 'time_t __time64_t _timeb __timeb64 tm uintptr_t _utimbuf ' +
49
- 'va_list wchar_t wctrans_t wctype_t wint_t signed';
50
-
51
- var keywords = 'break case catch class const __finally __exception __try ' +
52
- 'const_cast continue private public protected __declspec ' +
53
- 'default delete deprecated dllexport dllimport do dynamic_cast ' +
54
- 'else enum explicit extern if for friend goto inline ' +
55
- 'mutable naked namespace new noinline noreturn nothrow ' +
56
- 'register reinterpret_cast return selectany ' +
57
- 'sizeof static static_cast struct switch template this ' +
58
- 'thread throw true false try typedef typeid typename union ' +
59
- 'using uuid virtual void volatile whcar_t while';
60
-
61
- var functions = 'assert isalnum isalpha iscntrl isdigit isgraph islower isprint' +
62
- 'ispunct isspace isupper isxdigit tolower toupper errno localeconv ' +
63
- 'setlocale acos asin atan atan2 ceil cos cosh exp fabs floor fmod ' +
64
- 'frexp ldexp log log10 modf pow sin sinh sqrt tan tanh jmp_buf ' +
65
- 'longjmp setjmp raise signal sig_atomic_t va_arg va_end va_start ' +
66
- 'clearerr fclose feof ferror fflush fgetc fgetpos fgets fopen ' +
67
- 'fprintf fputc fputs fread freopen fscanf fseek fsetpos ftell ' +
68
- 'fwrite getc getchar gets perror printf putc putchar puts remove ' +
69
- 'rename rewind scanf setbuf setvbuf sprintf sscanf tmpfile tmpnam ' +
70
- 'ungetc vfprintf vprintf vsprintf abort abs atexit atof atoi atol ' +
71
- 'bsearch calloc div exit free getenv labs ldiv malloc mblen mbstowcs ' +
72
- 'mbtowc qsort rand realloc srand strtod strtol strtoul system ' +
73
- 'wcstombs wctomb memchr memcmp memcpy memmove memset strcat strchr ' +
74
- 'strcmp strcoll strcpy strcspn strerror strlen strncat strncmp ' +
75
- 'strncpy strpbrk strrchr strspn strstr strtok strxfrm asctime ' +
76
- 'clock ctime difftime gmtime localtime mktime strftime time';
77
-
78
- this.regexList = [
79
- { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
80
- { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
81
- { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
82
- { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
83
- { regex: /^ *#.*/gm, css: 'preprocessor' },
84
- { regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'color1 bold' },
85
- { regex: new RegExp(this.getKeywords(functions), 'gm'), css: 'functions bold' },
86
- { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword bold' }
87
- ];
88
- };
89
-
90
- Brush.prototype = new SyntaxHighlighter.Highlighter();
91
- Brush.aliases = ['cpp', 'c'];
92
-
93
- SyntaxHighlighter.brushes.Cpp = Brush;
94
-
95
- // CommonJS
96
- typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
97
- })();
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (Wed, 16 Apr 2014 03:56:09 GMT)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2013 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21
+
22
+ function Brush()
23
+ {
24
+ // Copyright 2006 Shin, YoungJin
25
+
26
+ var datatypes = 'ATOM BOOL BOOLEAN BYTE CHAR COLORREF DWORD DWORDLONG DWORD_PTR ' +
27
+ 'DWORD32 DWORD64 FLOAT HACCEL HALF_PTR HANDLE HBITMAP HBRUSH ' +
28
+ 'HCOLORSPACE HCONV HCONVLIST HCURSOR HDC HDDEDATA HDESK HDROP HDWP ' +
29
+ 'HENHMETAFILE HFILE HFONT HGDIOBJ HGLOBAL HHOOK HICON HINSTANCE HKEY ' +
30
+ 'HKL HLOCAL HMENU HMETAFILE HMODULE HMONITOR HPALETTE HPEN HRESULT ' +
31
+ 'HRGN HRSRC HSZ HWINSTA HWND INT INT_PTR INT32 INT64 LANGID LCID LCTYPE ' +
32
+ 'LGRPID LONG LONGLONG LONG_PTR LONG32 LONG64 LPARAM LPBOOL LPBYTE LPCOLORREF ' +
33
+ 'LPCSTR LPCTSTR LPCVOID LPCWSTR LPDWORD LPHANDLE LPINT LPLONG LPSTR LPTSTR ' +
34
+ 'LPVOID LPWORD LPWSTR LRESULT PBOOL PBOOLEAN PBYTE PCHAR PCSTR PCTSTR PCWSTR ' +
35
+ 'PDWORDLONG PDWORD_PTR PDWORD32 PDWORD64 PFLOAT PHALF_PTR PHANDLE PHKEY PINT ' +
36
+ 'PINT_PTR PINT32 PINT64 PLCID PLONG PLONGLONG PLONG_PTR PLONG32 PLONG64 POINTER_32 ' +
37
+ 'POINTER_64 PSHORT PSIZE_T PSSIZE_T PSTR PTBYTE PTCHAR PTSTR PUCHAR PUHALF_PTR ' +
38
+ 'PUINT PUINT_PTR PUINT32 PUINT64 PULONG PULONGLONG PULONG_PTR PULONG32 PULONG64 ' +
39
+ 'PUSHORT PVOID PWCHAR PWORD PWSTR SC_HANDLE SC_LOCK SERVICE_STATUS_HANDLE SHORT ' +
40
+ 'SIZE_T SSIZE_T TBYTE TCHAR UCHAR UHALF_PTR UINT UINT_PTR UINT32 UINT64 ULONG ' +
41
+ 'ULONGLONG ULONG_PTR ULONG32 ULONG64 USHORT USN VOID WCHAR WORD WPARAM WPARAM WPARAM ' +
42
+ 'char char16_t char32_t bool short int __int32 __int64 __int8 __int16 long float double __wchar_t ' +
43
+ 'clock_t _complex _dev_t _diskfree_t div_t ldiv_t _exception _EXCEPTION_POINTERS ' +
44
+ 'FILE _finddata_t _finddatai64_t _wfinddata_t _wfinddatai64_t __finddata64_t ' +
45
+ '__wfinddata64_t _FPIEEE_RECORD fpos_t _HEAPINFO _HFILE lconv intptr_t ' +
46
+ 'jmp_buf mbstate_t _off_t _onexit_t _PNH ptrdiff_t _purecall_handler ' +
47
+ 'sig_atomic_t size_t _stat __stat64 _stati64 terminate_function ' +
48
+ 'time_t __time64_t _timeb __timeb64 tm uintptr_t _utimbuf ' +
49
+ 'va_list wchar_t wctrans_t wctype_t wint_t signed';
50
+
51
+ var keywords = 'alignas alignof auto break case catch class const constexpr decltype __finally __exception __try ' +
52
+ 'const_cast continue private public protected __declspec ' +
53
+ 'default delete deprecated dllexport dllimport do dynamic_cast ' +
54
+ 'else enum explicit extern if for friend goto inline ' +
55
+ 'mutable naked namespace new noinline noreturn nothrow noexcept nullptr ' +
56
+ 'ref register reinterpret_cast return selectany ' +
57
+ 'sizeof static static_cast static_assert struct switch template this ' +
58
+ 'thread thread_local throw true false try typedef typeid typename union ' +
59
+ 'using uuid virtual void volatile whcar_t while';
60
+
61
+ var functions = 'assert isalnum isalpha iscntrl isdigit isgraph islower isprint' +
62
+ 'ispunct isspace isupper isxdigit tolower toupper errno localeconv ' +
63
+ 'setlocale acos asin atan atan2 ceil cos cosh exp fabs floor fmod ' +
64
+ 'frexp ldexp log log10 modf pow sin sinh sqrt tan tanh jmp_buf ' +
65
+ 'longjmp setjmp raise signal sig_atomic_t va_arg va_end va_start ' +
66
+ 'clearerr fclose feof ferror fflush fgetc fgetpos fgets fopen ' +
67
+ 'fprintf fputc fputs fread freopen fscanf fseek fsetpos ftell ' +
68
+ 'fwrite getc getchar gets perror printf putc putchar puts remove ' +
69
+ 'rename rewind scanf setbuf setvbuf sprintf sscanf tmpfile tmpnam ' +
70
+ 'ungetc vfprintf vprintf vsprintf abort abs atexit atof atoi atol ' +
71
+ 'bsearch calloc div exit free getenv labs ldiv malloc mblen mbstowcs ' +
72
+ 'mbtowc qsort rand realloc srand strtod strtol strtoul system ' +
73
+ 'wcstombs wctomb memchr memcmp memcpy memmove memset strcat strchr ' +
74
+ 'strcmp strcoll strcpy strcspn strerror strlen strncat strncmp ' +
75
+ 'strncpy strpbrk strrchr strspn strstr strtok strxfrm asctime ' +
76
+ 'clock ctime difftime gmtime localtime mktime strftime time';
77
+
78
+ this.regexList = [
79
+ { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
80
+ { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
81
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
82
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
83
+ { regex: /^ *#.*/gm, css: 'preprocessor' },
84
+ { regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'color1 bold' },
85
+ { regex: new RegExp(this.getKeywords(functions), 'gm'), css: 'functions bold' },
86
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword bold' }
87
+ ];
88
+ };
89
+
90
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
91
+ Brush.aliases = ['cpp', 'cc', 'c++', 'c', 'h', 'hpp', 'h++'];
92
+
93
+ SyntaxHighlighter.brushes.Cpp = Brush;
94
+
95
+ // CommonJS
96
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
97
+ })();
syntaxhighlighter3/scripts/shBrushCss.js CHANGED
@@ -1,91 +1,91 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/SyntaxHighlighter
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
- *
8
- * @version
9
- * 3.0.83 (July 02 2010)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2010 Alex Gorbatchev.
13
- *
14
- * @license
15
- * Dual licensed under the MIT and GPL licenses.
16
- */
17
- ;(function()
18
- {
19
- // CommonJS
20
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
-
22
- function Brush()
23
- {
24
- function getKeywordsCSS(str)
25
- {
26
- return '\\b([a-z_]|)' + str.replace(/ /g, '(?=:)\\b|\\b([a-z_\\*]|\\*|)') + '(?=:)\\b';
27
- };
28
-
29
- function getValuesCSS(str)
30
- {
31
- return '\\b' + str.replace(/ /g, '(?!-)(?!:)\\b|\\b()') + '\:\\b';
32
- };
33
-
34
- var keywords = 'ascent azimuth background-attachment background-color background-image background-position ' +
35
- 'background-repeat background baseline bbox border-collapse border-color border-spacing border-style border-top ' +
36
- 'border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color ' +
37
- 'border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width ' +
38
- 'border-bottom-width border-left-width border-width border bottom cap-height caption-side centerline clear clip color ' +
39
- 'content counter-increment counter-reset cue-after cue-before cue cursor definition-src descent direction display ' +
40
- 'elevation empty-cells float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font ' +
41
- 'height left letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top ' +
42
- 'margin-right margin-bottom margin-left margin marker-offset marks mathline max-height max-width min-height min-width orphans ' +
43
- 'outline-color outline-style outline-width outline overflow padding-top padding-right padding-bottom padding-left padding page ' +
44
- 'page-break-after page-break-before page-break-inside pause pause-after pause-before pitch pitch-range play-during position ' +
45
- 'quotes right richness size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress ' +
46
- 'table-layout text-align top text-decoration text-indent text-shadow text-transform unicode-bidi unicode-range units-per-em ' +
47
- 'vertical-align visibility voice-family volume white-space widows width widths word-spacing x-height z-index';
48
-
49
- var values = 'above absolute all always aqua armenian attr aural auto avoid baseline behind below bidi-override black blink block blue bold bolder '+
50
- 'both bottom braille capitalize caption center center-left center-right circle close-quote code collapse compact condensed '+
51
- 'continuous counter counters crop cross crosshair cursive dashed decimal decimal-leading-zero default digits disc dotted double '+
52
- 'embed embossed e-resize expanded extra-condensed extra-expanded fantasy far-left far-right fast faster fixed format fuchsia '+
53
- 'gray green groove handheld hebrew help hidden hide high higher icon inline-table inline inset inside invert italic '+
54
- 'justify landscape large larger left-side left leftwards level lighter lime line-through list-item local loud lower-alpha '+
55
- 'lowercase lower-greek lower-latin lower-roman lower low ltr marker maroon medium message-box middle mix move narrower '+
56
- 'navy ne-resize no-close-quote none no-open-quote no-repeat normal nowrap n-resize nw-resize oblique olive once open-quote outset '+
57
- 'outside overline pointer portrait pre print projection purple red relative repeat repeat-x repeat-y rgb ridge right right-side '+
58
- 'rightwards rtl run-in screen scroll semi-condensed semi-expanded separate se-resize show silent silver slower slow '+
59
- 'small small-caps small-caption smaller soft solid speech spell-out square s-resize static status-bar sub super sw-resize '+
60
- 'table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group teal '+
61
- 'text-bottom text-top thick thin top transparent tty tv ultra-condensed ultra-expanded underline upper-alpha uppercase upper-latin '+
62
- 'upper-roman url visible wait white wider w-resize x-fast x-high x-large x-loud x-low x-slow x-small x-soft xx-large xx-small yellow';
63
-
64
- var fonts = '[mM]onospace [tT]ahoma [vV]erdana [aA]rial [hH]elvetica [sS]ans-serif [sS]erif [cC]ourier mono sans serif';
65
-
66
- this.regexList = [
67
- { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
68
- { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
69
- { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
70
- { regex: /\#[a-fA-F0-9]{3,6}/g, css: 'value' }, // html colors
71
- { regex: /(-?\d+)(\.\d+)?(px|em|pt|\:|\%|)/g, css: 'value' }, // sizes
72
- { regex: /!important/g, css: 'color3' }, // !important
73
- { regex: new RegExp(getKeywordsCSS(keywords), 'gm'), css: 'keyword' }, // keywords
74
- { regex: new RegExp(getValuesCSS(values), 'g'), css: 'value' }, // values
75
- { regex: new RegExp(this.getKeywords(fonts), 'g'), css: 'color1' } // fonts
76
- ];
77
-
78
- this.forHtmlScript({
79
- left: /(&lt;|<)\s*style.*?(&gt;|>)/gi,
80
- right: /(&lt;|<)\/\s*style\s*(&gt;|>)/gi
81
- });
82
- };
83
-
84
- Brush.prototype = new SyntaxHighlighter.Highlighter();
85
- Brush.aliases = ['css'];
86
-
87
- SyntaxHighlighter.brushes.CSS = Brush;
88
-
89
- // CommonJS
90
- typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
91
- })();
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (Wed, 16 Apr 2014 03:56:09 GMT)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2013 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21
+
22
+ function Brush()
23
+ {
24
+ function getKeywordsCSS(str)
25
+ {
26
+ return '\\b([a-z_]|)' + str.replace(/ /g, '(?=:)\\b|\\b([a-z_\\*]|\\*|)') + '(?=:)\\b';
27
+ };
28
+
29
+ function getValuesCSS(str)
30
+ {
31
+ return '\\b' + str.replace(/ /g, '(?!-)(?!:)\\b|\\b()') + '\:\\b';
32
+ };
33
+
34
+ var keywords = 'ascent azimuth background-attachment background-color background-image background-position ' +
35
+ 'background-repeat background baseline bbox border-collapse border-color border-spacing border-style border-top ' +
36
+ 'border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color ' +
37
+ 'border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width ' +
38
+ 'border-bottom-width border-left-width border-width border bottom cap-height caption-side centerline clear clip color ' +
39
+ 'content counter-increment counter-reset cue-after cue-before cue cursor definition-src descent direction display ' +
40
+ 'elevation empty-cells float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font ' +
41
+ 'height left letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top ' +
42
+ 'margin-right margin-bottom margin-left margin marker-offset marks mathline max-height max-width min-height min-width orphans ' +
43
+ 'outline-color outline-style outline-width outline overflow padding-top padding-right padding-bottom padding-left padding page ' +
44
+ 'page-break-after page-break-before page-break-inside pause pause-after pause-before pitch pitch-range play-during position ' +
45
+ 'quotes right richness size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress ' +
46
+ 'table-layout text-align top text-decoration text-indent text-shadow text-transform unicode-bidi unicode-range units-per-em ' +
47
+ 'vertical-align visibility voice-family volume white-space widows width widths word-spacing x-height z-index';
48
+
49
+ var values = 'above absolute all always aqua armenian attr aural auto avoid baseline behind below bidi-override black blink block blue bold bolder '+
50
+ 'both bottom braille capitalize caption center center-left center-right circle close-quote code collapse compact condensed '+
51
+ 'continuous counter counters crop cross crosshair cursive dashed decimal decimal-leading-zero default digits disc dotted double '+
52
+ 'embed embossed e-resize expanded extra-condensed extra-expanded fantasy far-left far-right fast faster fixed format fuchsia '+
53
+ 'gray green groove handheld hebrew help hidden hide high higher icon inline-table inline inset inside invert italic '+
54
+ 'justify landscape large larger left-side left leftwards level lighter lime line-through list-item local loud lower-alpha '+
55
+ 'lowercase lower-greek lower-latin lower-roman lower low ltr marker maroon medium message-box middle mix move narrower '+
56
+ 'navy ne-resize no-close-quote none no-open-quote no-repeat normal nowrap n-resize nw-resize oblique olive once open-quote outset '+
57
+ 'outside overline pointer portrait pre print projection purple red relative repeat repeat-x repeat-y rgb ridge right right-side '+
58
+ 'rightwards rtl run-in screen scroll semi-condensed semi-expanded separate se-resize show silent silver slower slow '+
59
+ 'small small-caps small-caption smaller soft solid speech spell-out square s-resize static status-bar sub super sw-resize '+
60
+ 'table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group teal '+
61
+ 'text-bottom text-top thick thin top transparent tty tv ultra-condensed ultra-expanded underline upper-alpha uppercase upper-latin '+
62
+ 'upper-roman url visible wait white wider w-resize x-fast x-high x-large x-loud x-low x-slow x-small x-soft xx-large xx-small yellow';
63
+
64
+ var fonts = '[mM]onospace [tT]ahoma [vV]erdana [aA]rial [hH]elvetica [sS]ans-serif [sS]erif [cC]ourier mono sans serif';
65
+
66
+ this.regexList = [
67
+ { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
68
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
69
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
70
+ { regex: /\#[a-fA-F0-9]{3,6}/g, css: 'value' }, // html colors
71
+ { regex: /(-?\d+)(\.\d+)?(px|em|pt|\:|\%|)/g, css: 'value' }, // sizes
72
+ { regex: /!important/g, css: 'color3' }, // !important
73
+ { regex: new RegExp(getKeywordsCSS(keywords), 'gm'), css: 'keyword' }, // keywords
74
+ { regex: new RegExp(getValuesCSS(values), 'g'), css: 'value' }, // values
75
+ { regex: new RegExp(this.getKeywords(fonts), 'g'), css: 'color1' } // fonts
76
+ ];
77
+
78
+ this.forHtmlScript({
79
+ left: /(&lt;|<)\s*style.*?(&gt;|>)/gi,
80
+ right: /(&lt;|<)\/\s*style\s*(&gt;|>)/gi
81
+ });
82
+ };
83
+
84
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
85
+ Brush.aliases = ['css'];
86
+
87
+ SyntaxHighlighter.brushes.CSS = Brush;
88
+
89
+ // CommonJS
90
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
91
+ })();
syntaxhighlighter3/scripts/shBrushDelphi.js CHANGED
@@ -1,55 +1,55 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/SyntaxHighlighter
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
- *
8
- * @version
9
- * 3.0.83 (July 02 2010)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2010 Alex Gorbatchev.
13
- *
14
- * @license
15
- * Dual licensed under the MIT and GPL licenses.
16
- */
17
- ;(function()
18
- {
19
- // CommonJS
20
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
-
22
- function Brush()
23
- {
24
- var keywords = 'abs addr and ansichar ansistring array as asm begin boolean byte cardinal ' +
25
- 'case char class comp const constructor currency destructor div do double ' +
26
- 'downto else end except exports extended false file finalization finally ' +
27
- 'for function goto if implementation in inherited int64 initialization ' +
28
- 'integer interface is label library longint longword mod nil not object ' +
29
- 'of on or packed pansichar pansistring pchar pcurrency pdatetime pextended ' +
30
- 'pint64 pointer private procedure program property pshortstring pstring ' +
31
- 'pvariant pwidechar pwidestring protected public published raise real real48 ' +
32
- 'record repeat set shl shortint shortstring shr single smallint string then ' +
33
- 'threadvar to true try type unit until uses val var varirnt while widechar ' +
34
- 'widestring with word write writeln xor';
35
-
36
- this.regexList = [
37
- { regex: /\(\*[\s\S]*?\*\)/gm, css: 'comments' }, // multiline comments (* *)
38
- { regex: /{(?!\$)[\s\S]*?}/gm, css: 'comments' }, // multiline comments { }
39
- { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line
40
- { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
41
- { regex: /\{\$[a-zA-Z]+ .+\}/g, css: 'color1' }, // compiler Directives and Region tags
42
- { regex: /\b[\d\.]+\b/g, css: 'value' }, // numbers 12345
43
- { regex: /\$[a-zA-Z0-9]+\b/g, css: 'value' }, // numbers $F5D3
44
- { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
45
- ];
46
- };
47
-
48
- Brush.prototype = new SyntaxHighlighter.Highlighter();
49
- Brush.aliases = ['delphi', 'pascal', 'pas'];
50
-
51
- SyntaxHighlighter.brushes.Delphi = Brush;
52
-
53
- // CommonJS
54
- typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
55
- })();
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (Wed, 16 Apr 2014 03:56:09 GMT)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2013 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21
+
22
+ function Brush()
23
+ {
24
+ var keywords = 'abs addr and ansichar ansistring array as asm begin boolean byte cardinal ' +
25
+ 'case char class comp const constructor currency destructor div do double ' +
26
+ 'downto else end except exports extended false file finalization finally ' +
27
+ 'for function goto if implementation in inherited int64 initialization ' +
28
+ 'integer interface is label library longint longword mod nil not object ' +
29
+ 'of on or packed pansichar pansistring pchar pcurrency pdatetime pextended ' +
30
+ 'pint64 pointer private procedure program property pshortstring pstring ' +
31
+ 'pvariant pwidechar pwidestring protected public published raise real real48 ' +
32
+ 'record repeat set shl shortint shortstring shr single smallint string then ' +
33
+ 'threadvar to true try type unit until uses val var varirnt while widechar ' +
34
+ 'widestring with word write writeln xor';
35
+
36
+ this.regexList = [
37
+ { regex: /\(\*[\s\S]*?\*\)/gm, css: 'comments' }, // multiline comments (* *)
38
+ { regex: /{(?!\$)[\s\S]*?}/gm, css: 'comments' }, // multiline comments { }
39
+ { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line
40
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
41
+ { regex: /\{\$[a-zA-Z]+ .+\}/g, css: 'color1' }, // compiler Directives and Region tags
42
+ { regex: /\b[\d\.]+\b/g, css: 'value' }, // numbers 12345
43
+ { regex: /\$[a-zA-Z0-9]+\b/g, css: 'value' }, // numbers $F5D3
44
+ { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
45
+ ];
46
+ };
47
+
48
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
49
+ Brush.aliases = ['delphi', 'pascal', 'pas'];
50
+
51
+ SyntaxHighlighter.brushes.Delphi = Brush;
52
+
53
+ // CommonJS
54
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
55
+ })();
syntaxhighlighter3/scripts/shBrushDiff.js CHANGED
@@ -1,41 +1,41 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/SyntaxHighlighter
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
- *
8
- * @version
9
- * 3.0.83 (July 02 2010)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2010 Alex Gorbatchev.
13
- *
14
- * @license
15
- * Dual licensed under the MIT and GPL licenses.
16
- */
17
- ;(function()
18
- {
19
- // CommonJS
20
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
-
22
- function Brush()
23
- {
24
- this.regexList = [
25
- { regex: /^\+\+\+.*$/gm, css: 'color2' },
26
- { regex: /^\-\-\-.*$/gm, css: 'color2' },
27
- { regex: /^\s.*$/gm, css: 'color1' },
28
- { regex: /^@@.*@@$/gm, css: 'variable' },
29
- { regex: /^\+[^\+]{1}.*$/gm, css: 'string' },
30
- { regex: /^\-[^\-]{1}.*$/gm, css: 'comments' }
31
- ];
32
- };
33
-
34
- Brush.prototype = new SyntaxHighlighter.Highlighter();
35
- Brush.aliases = ['diff', 'patch'];
36
-
37
- SyntaxHighlighter.brushes.Diff = Brush;
38
-
39
- // CommonJS
40
- typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
41
- })();
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (Wed, 16 Apr 2014 03:56:09 GMT)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2013 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21
+
22
+ function Brush()
23
+ {
24
+ this.regexList = [
25
+ { regex: /^\+\+\+ .*$/gm, css: 'color2' }, // new file
26
+ { regex: /^\-\-\- .*$/gm, css: 'color2' }, // old file
27
+ { regex: /^\s.*$/gm, css: 'color1' }, // unchanged
28
+ { regex: /^@@.*@@.*$/gm, css: 'variable' }, // location
29
+ { regex: /^\+.*$/gm, css: 'string' }, // additions
30
+ { regex: /^\-.*$/gm, css: 'color3' } // deletions
31
+ ];
32
+ };
33
+
34
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
35
+ Brush.aliases = ['diff', 'patch'];
36
+
37
+ SyntaxHighlighter.brushes.Diff = Brush;
38
+
39
+ // CommonJS
40
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
41
+ })();
syntaxhighlighter3/scripts/shBrushErlang.js CHANGED
@@ -1,52 +1,52 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/SyntaxHighlighter
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
- *
8
- * @version
9
- * 3.0.83 (July 02 2010)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2010 Alex Gorbatchev.
13
- *
14
- * @license
15
- * Dual licensed under the MIT and GPL licenses.
16
- */
17
- ;(function()
18
- {
19
- // CommonJS
20
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
-
22
- function Brush()
23
- {
24
- // Contributed by Jean-Lou Dupont
25
- // http://jldupont.blogspot.com/2009/06/erlang-syntax-highlighter.html
26
-
27
- // According to: http://erlang.org/doc/reference_manual/introduction.html#1.5
28
- var keywords = 'after and andalso band begin bnot bor bsl bsr bxor '+
29
- 'case catch cond div end fun if let not of or orelse '+
30
- 'query receive rem try when xor'+
31
- // additional
32
- ' module export import define';
33
-
34
- this.regexList = [
35
- { regex: new RegExp("[A-Z][A-Za-z0-9_]+", 'g'), css: 'constants' },
36
- { regex: new RegExp("\\%.+", 'gm'), css: 'comments' },
37
- { regex: new RegExp("\\?[A-Za-z0-9_]+", 'g'), css: 'preprocessor' },
38
- { regex: new RegExp("[a-z0-9_]+:[a-z0-9_]+", 'g'), css: 'functions' },
39
- { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
40
- { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
41
- { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
42
- ];
43
- };
44
-
45
- Brush.prototype = new SyntaxHighlighter.Highlighter();
46
- Brush.aliases = ['erl', 'erlang'];
47
-
48
- SyntaxHighlighter.brushes.Erland = Brush;
49
-
50
- // CommonJS
51
- typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
52
- })();
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (Wed, 16 Apr 2014 03:56:09 GMT)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2013 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21
+
22
+ function Brush()
23
+ {
24
+ // Contributed by Jean-Lou Dupont
25
+ // http://jldupont.blogspot.com/2009/06/erlang-syntax-highlighter.html
26
+
27
+ // According to: http://erlang.org/doc/reference_manual/introduction.html#1.5
28
+ var keywords = 'after and andalso band begin bnot bor bsl bsr bxor '+
29
+ 'case catch cond div end fun if let not of or orelse '+
30
+ 'query receive rem try when xor'+
31
+ // additional
32
+ ' module export import define';
33
+
34
+ this.regexList = [
35
+ { regex: new RegExp("[A-Z][A-Za-z0-9_]+", 'g'), css: 'constants' },
36
+ { regex: new RegExp("\\%.+", 'gm'), css: 'comments' },
37
+ { regex: new RegExp("\\?[A-Za-z0-9_]+", 'g'), css: 'preprocessor' },
38
+ { regex: new RegExp("[a-z0-9_]+:[a-z0-9_]+", 'g'), css: 'functions' },
39
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
40
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
41
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
42
+ ];
43
+ };
44
+
45
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
46
+ Brush.aliases = ['erl', 'erlang'];
47
+
48
+ SyntaxHighlighter.brushes.Erlang = Brush;
49
+
50
+ // CommonJS
51
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
52
+ })();
syntaxhighlighter3/scripts/shBrushGroovy.js CHANGED
@@ -1,67 +1,67 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/SyntaxHighlighter
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
- *
8
- * @version
9
- * 3.0.83 (July 02 2010)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2010 Alex Gorbatchev.
13
- *
14
- * @license
15
- * Dual licensed under the MIT and GPL licenses.
16
- */
17
- ;(function()
18
- {
19
- // CommonJS
20
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
-
22
- function Brush()
23
- {
24
- // Contributed by Andres Almiray
25
- // http://jroller.com/aalmiray/entry/nice_source_code_syntax_highlighter
26
-
27
- var keywords = 'as assert break case catch class continue def default do else extends finally ' +
28
- 'if in implements import instanceof interface new package property return switch ' +
29
- 'throw throws try while public protected private static';
30
- var types = 'void boolean byte char short int long float double';
31
- var constants = 'null';
32
- var methods = 'allProperties count get size '+
33
- 'collect each eachProperty eachPropertyName eachWithIndex find findAll ' +
34
- 'findIndexOf grep inject max min reverseEach sort ' +
35
- 'asImmutable asSynchronized flatten intersect join pop reverse subMap toList ' +
36
- 'padRight padLeft contains eachMatch toCharacter toLong toUrl tokenize ' +
37
- 'eachFile eachFileRecurse eachB yte eachLine readBytes readLine getText ' +
38
- 'splitEachLine withReader append encodeBase64 decodeBase64 filterLine ' +
39
- 'transformChar transformLine withOutputStream withPrintWriter withStream ' +
40
- 'withStreams withWriter withWriterAppend write writeLine '+
41
- 'dump inspect invokeMethod print println step times upto use waitForOrKill '+
42
- 'getText';
43
-
44
- this.regexList = [
45
- { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
46
- { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
47
- { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
48
- { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
49
- { regex: /""".*"""/g, css: 'string' }, // GStrings
50
- { regex: new RegExp('\\b([\\d]+(\\.[\\d]+)?|0x[a-f0-9]+)\\b', 'gi'), css: 'value' }, // numbers
51
- { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // goovy keyword
52
- { regex: new RegExp(this.getKeywords(types), 'gm'), css: 'color1' }, // goovy/java type
53
- { regex: new RegExp(this.getKeywords(constants), 'gm'), css: 'constants' }, // constants
54
- { regex: new RegExp(this.getKeywords(methods), 'gm'), css: 'functions' } // methods
55
- ];
56
-
57
- this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
58
- }
59
-
60
- Brush.prototype = new SyntaxHighlighter.Highlighter();
61
- Brush.aliases = ['groovy'];
62
-
63
- SyntaxHighlighter.brushes.Groovy = Brush;
64
-
65
- // CommonJS
66
- typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
67
- })();
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (Wed, 16 Apr 2014 03:56:09 GMT)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2013 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21
+
22
+ function Brush()
23
+ {
24
+ // Contributed by Andres Almiray
25
+ // http://jroller.com/aalmiray/entry/nice_source_code_syntax_highlighter
26
+
27
+ var keywords = 'as assert break case catch class continue def default do else extends finally ' +
28
+ 'if in implements import instanceof interface new package property return switch ' +
29
+ 'throw throws try while public protected private static';
30
+ var types = 'void boolean byte char short int long float double';
31
+ var constants = 'null';
32
+ var methods = 'allProperties count get size '+
33
+ 'collect each eachProperty eachPropertyName eachWithIndex find findAll ' +
34
+ 'findIndexOf grep inject max min reverseEach sort ' +
35
+ 'asImmutable asSynchronized flatten intersect join pop reverse subMap toList ' +
36
+ 'padRight padLeft contains eachMatch toCharacter toLong toUrl tokenize ' +
37
+ 'eachFile eachFileRecurse eachB yte eachLine readBytes readLine getText ' +
38
+ 'splitEachLine withReader append encodeBase64 decodeBase64 filterLine ' +
39
+ 'transformChar transformLine withOutputStream withPrintWriter withStream ' +
40
+ 'withStreams withWriter withWriterAppend write writeLine '+
41
+ 'dump inspect invokeMethod print println step times upto use waitForOrKill '+
42
+ 'getText';
43
+
44
+ this.regexList = [
45
+ { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
46
+ { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
47
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
48
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
49
+ { regex: /""".*"""/g, css: 'string' }, // GStrings
50
+ { regex: new RegExp('\\b([\\d]+(\\.[\\d]+)?|0x[a-f0-9]+)\\b', 'gi'), css: 'value' }, // numbers
51
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // goovy keyword
52
+ { regex: new RegExp(this.getKeywords(types), 'gm'), css: 'color1' }, // goovy/java type
53
+ { regex: new RegExp(this.getKeywords(constants), 'gm'), css: 'constants' }, // constants
54
+ { regex: new RegExp(this.getKeywords(methods), 'gm'), css: 'functions' } // methods
55
+ ];
56
+
57
+ this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
58
+ }
59
+
60
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
61
+ Brush.aliases = ['groovy'];
62
+
63
+ SyntaxHighlighter.brushes.Groovy = Brush;
64
+
65
+ // CommonJS
66
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
67
+ })();
syntaxhighlighter3/scripts/shBrushJScript.js CHANGED
@@ -1,52 +1,52 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/SyntaxHighlighter
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
- *
8
- * @version
9
- * 3.0.83 (July 02 2010)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2010 Alex Gorbatchev.
13
- *
14
- * @license
15
- * Dual licensed under the MIT and GPL licenses.
16
- */
17
- ;(function()
18
- {
19
- // CommonJS
20
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
-
22
- function Brush()
23
- {
24
- var keywords = 'break case catch continue ' +
25
- 'default delete do else false ' +
26
- 'for function if in instanceof ' +
27
- 'new null return super switch ' +
28
- 'this throw true try typeof var while with'
29
- ;
30
-
31
- var r = SyntaxHighlighter.regexLib;
32
-
33
- this.regexList = [
34
- { regex: r.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings
35
- { regex: r.multiLineSingleQuotedString, css: 'string' }, // single quoted strings
36
- { regex: r.singleLineCComments, css: 'comments' }, // one line comments
37
- { regex: r.multiLineCComments, css: 'comments' }, // multiline comments
38
- { regex: /\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
39
- { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords
40
- ];
41
-
42
- this.forHtmlScript(r.scriptScriptTags);
43
- };
44
-
45
- Brush.prototype = new SyntaxHighlighter.Highlighter();
46
- Brush.aliases = ['js', 'jscript', 'javascript'];
47
-
48
- SyntaxHighlighter.brushes.JScript = Brush;
49
-
50
- // CommonJS
51
- typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
52
- })();
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (Wed, 16 Apr 2014 03:56:09 GMT)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2013 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21
+
22
+ function Brush()
23
+ {
24
+ var keywords = 'break case catch class continue ' +
25
+ 'default delete do else enum export extends false ' +
26
+ 'for function if implements import in instanceof ' +
27
+ 'interface let new null package private protected ' +
28
+ 'static return super switch ' +
29
+ 'this throw true try typeof var while with yield';
30
+
31
+ var r = SyntaxHighlighter.regexLib;
32
+
33
+ this.regexList = [
34
+ { regex: r.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings
35
+ { regex: r.multiLineSingleQuotedString, css: 'string' }, // single quoted strings
36
+ { regex: r.singleLineCComments, css: 'comments' }, // one line comments
37
+ { regex: r.multiLineCComments, css: 'comments' }, // multiline comments
38
+ { regex: /\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
39
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords
40
+ ];
41
+
42
+ this.forHtmlScript(r.scriptScriptTags);
43
+ };
44
+
45
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
46
+ Brush.aliases = ['js', 'jscript', 'javascript', 'json'];
47
+
48
+ SyntaxHighlighter.brushes.JScript = Brush;
49
+
50
+ // CommonJS
51
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
52
+ })();
syntaxhighlighter3/scripts/shBrushJava.js CHANGED
@@ -1,57 +1,57 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/SyntaxHighlighter
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
- *
8
- * @version
9
- * 3.0.83 (July 02 2010)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2010 Alex Gorbatchev.
13
- *
14
- * @license
15
- * Dual licensed under the MIT and GPL licenses.
16
- */
17
- ;(function()
18
- {
19
- // CommonJS
20
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
-
22
- function Brush()
23
- {
24
- var keywords = 'abstract assert boolean break byte case catch char class const ' +
25
- 'continue default do double else enum extends ' +
26
- 'false final finally float for goto if implements import ' +
27
- 'instanceof int interface long native new null ' +
28
- 'package private protected public return ' +
29
- 'short static strictfp super switch synchronized this throw throws true ' +
30
- 'transient try void volatile while';
31
-
32
- this.regexList = [
33
- { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
34
- { regex: /\/\*([^\*][\s\S]*)?\*\//gm, css: 'comments' }, // multiline comments
35
- { regex: /\/\*(?!\*\/)\*[\s\S]*?\*\//gm, css: 'preprocessor' }, // documentation comments
36
- { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
37
- { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
38
- { regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers
39
- { regex: /(?!\@interface\b)\@[\$\w]+\b/g, css: 'color1' }, // annotation @anno
40
- { regex: /\@interface\b/g, css: 'color2' }, // @interface keyword
41
- { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // java keyword
42
- ];
43
-
44
- this.forHtmlScript({
45
- left : /(&lt;|<)%[@!=]?/g,
46
- right : /%(&gt;|>)/g
47
- });
48
- };
49
-
50
- Brush.prototype = new SyntaxHighlighter.Highlighter();
51
- Brush.aliases = ['java'];
52
-
53
- SyntaxHighlighter.brushes.Java = Brush;
54
-
55
- // CommonJS
56
- typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
57
- })();
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (Wed, 16 Apr 2014 03:56:09 GMT)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2013 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21
+
22
+ function Brush()
23
+ {
24
+ var keywords = 'abstract assert boolean break byte case catch char class const ' +
25
+ 'continue default do double else enum extends ' +
26
+ 'false final finally float for goto if implements import ' +
27
+ 'instanceof int interface long native new null ' +
28
+ 'package private protected public return ' +
29
+ 'short static strictfp super switch synchronized this throw throws true ' +
30
+ 'transient try void volatile while';
31
+
32
+ this.regexList = [
33
+ { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
34
+ { regex: /\/\*([^\*][\s\S]*?)?\*\//gm, css: 'comments' }, // multiline comments
35
+ { regex: /\/\*(?!\*\/)\*[\s\S]*?\*\//gm, css: 'preprocessor' }, // documentation comments
36
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
37
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
38
+ { regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers
39
+ { regex: /(?!\@interface\b)\@[\$\w]+\b/g, css: 'color1' }, // annotation @anno
40
+ { regex: /\@interface\b/g, css: 'color2' }, // @interface keyword
41
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // java keyword
42
+ ];
43
+
44
+ this.forHtmlScript({
45
+ left : /(&lt;|<)%[@!=]?/g,
46
+ right : /%(&gt;|>)/g
47
+ });
48
+ };
49
+
50
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
51
+ Brush.aliases = ['java'];
52
+
53
+ SyntaxHighlighter.brushes.Java = Brush;
54
+
55
+ // CommonJS
56
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
57
+ })();
syntaxhighlighter3/scripts/shBrushJavaFX.js CHANGED
@@ -1,58 +1,58 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/SyntaxHighlighter
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
- *
8
- * @version
9
- * 3.0.83 (July 02 2010)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2010 Alex Gorbatchev.
13
- *
14
- * @license
15
- * Dual licensed under the MIT and GPL licenses.
16
- */
17
- ;(function()
18
- {
19
- // CommonJS
20
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
-
22
- function Brush()
23
- {
24
- // Contributed by Patrick Webster
25
- // http://patrickwebster.blogspot.com/2009/04/javafx-brush-for-syntaxhighlighter.html
26
- var datatypes = 'Boolean Byte Character Double Duration '
27
- + 'Float Integer Long Number Short String Void'
28
- ;
29
-
30
- var keywords = 'abstract after and as assert at before bind bound break catch class '
31
- + 'continue def delete else exclusive extends false finally first for from '
32
- + 'function if import in indexof init insert instanceof into inverse last '
33
- + 'lazy mixin mod nativearray new not null on or override package postinit '
34
- + 'protected public public-init public-read replace return reverse sizeof '
35
- + 'step super then this throw true try tween typeof var where while with '
36
- + 'attribute let private readonly static trigger'
37
- ;
38
-
39
- this.regexList = [
40
- { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' },
41
- { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' },
42
- { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
43
- { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
44
- { regex: /(-?\.?)(\b(\d*\.?\d+|\d+\.?\d*)(e[+-]?\d+)?|0x[a-f\d]+)\b\.?/gi, css: 'color2' }, // numbers
45
- { regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'variable' }, // datatypes
46
- { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
47
- ];
48
- this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
49
- };
50
-
51
- Brush.prototype = new SyntaxHighlighter.Highlighter();
52
- Brush.aliases = ['jfx', 'javafx'];
53
-
54
- SyntaxHighlighter.brushes.JavaFX = Brush;
55
-
56
- // CommonJS
57
- typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
58
- })();
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (Wed, 16 Apr 2014 03:56:09 GMT)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2013 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21
+
22
+ function Brush()
23
+ {
24
+ // Contributed by Patrick Webster
25
+ // http://patrickwebster.blogspot.com/2009/04/javafx-brush-for-syntaxhighlighter.html
26
+ var datatypes = 'Boolean Byte Character Double Duration '
27
+ + 'Float Integer Long Number Short String Void'
28
+ ;
29
+
30
+ var keywords = 'abstract after and as assert at before bind bound break catch class '
31
+ + 'continue def delete else exclusive extends false finally first for from '
32
+ + 'function if import in indexof init insert instanceof into inverse last '
33
+ + 'lazy mixin mod nativearray new not null on or override package postinit '
34
+ + 'protected public public-init public-read replace return reverse sizeof '
35
+ + 'step super then this throw true try tween typeof var where while with '
36
+ + 'attribute let private readonly static trigger'
37
+ ;
38
+
39
+ this.regexList = [
40
+ { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' },
41
+ { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' },
42
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
43
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
44
+ { regex: /(-?\.?)(\b(\d*\.?\d+|\d+\.?\d*)(e[+-]?\d+)?|0x[a-f\d]+)\b\.?/gi, css: 'color2' }, // numbers
45
+ { regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'variable' }, // datatypes
46
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
47
+ ];
48
+ this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
49
+ };
50
+
51
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
52
+ Brush.aliases = ['jfx', 'javafx'];
53
+
54
+ SyntaxHighlighter.brushes.JavaFX = Brush;
55
+
56
+ // CommonJS
57
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
58
+ })();
syntaxhighlighter3/scripts/shBrushPerl.js CHANGED
@@ -1,72 +1,96 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/SyntaxHighlighter
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
- *
8
- * @version
9
- * 3.0.83 (July 02 2010)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2010 Alex Gorbatchev.
13
- *
14
- * @license
15
- * Dual licensed under the MIT and GPL licenses.
16
- */
17
- ;(function()
18
- {
19
- // CommonJS
20
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
-
22
- function Brush()
23
- {
24
- // Contributed by David Simmons-Duffin and Marty Kube
25
-
26
- var funcs =
27
- 'abs accept alarm atan2 bind binmode chdir chmod chomp chop chown chr ' +
28
- 'chroot close closedir connect cos crypt defined delete each endgrent ' +
29
- 'endhostent endnetent endprotoent endpwent endservent eof exec exists ' +
30
- 'exp fcntl fileno flock fork format formline getc getgrent getgrgid ' +
31
- 'getgrnam gethostbyaddr gethostbyname gethostent getlogin getnetbyaddr ' +
32
- 'getnetbyname getnetent getpeername getpgrp getppid getpriority ' +
33
- 'getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid ' +
34
- 'getservbyname getservbyport getservent getsockname getsockopt glob ' +
35
- 'gmtime grep hex index int ioctl join keys kill lc lcfirst length link ' +
36
- 'listen localtime lock log lstat map mkdir msgctl msgget msgrcv msgsnd ' +
37
- 'oct open opendir ord pack pipe pop pos print printf prototype push ' +
38
- 'quotemeta rand read readdir readline readlink readpipe recv rename ' +
39
- 'reset reverse rewinddir rindex rmdir scalar seek seekdir select semctl ' +
40
- 'semget semop send setgrent sethostent setnetent setpgrp setpriority ' +
41
- 'setprotoent setpwent setservent setsockopt shift shmctl shmget shmread ' +
42
- 'shmwrite shutdown sin sleep socket socketpair sort splice split sprintf ' +
43
- 'sqrt srand stat study substr symlink syscall sysopen sysread sysseek ' +
44
- 'system syswrite tell telldir time times tr truncate uc ucfirst umask ' +
45
- 'undef unlink unpack unshift utime values vec wait waitpid warn write';
46
-
47
- var keywords =
48
- 'bless caller continue dbmclose dbmopen die do dump else elsif eval exit ' +
49
- 'for foreach goto if import last local my next no our package redo ref ' +
50
- 'require return sub tie tied unless untie until use wantarray while';
51
-
52
- this.regexList = [
53
- { regex: new RegExp('#[^!].*$', 'gm'), css: 'comments' },
54
- { regex: new RegExp('^\\s*#!.*$', 'gm'), css: 'preprocessor' }, // shebang
55
- { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
56
- { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
57
- { regex: new RegExp('(\\$|@|%)\\w+', 'g'), css: 'variable' },
58
- { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' },
59
- { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
60
- ];
61
-
62
- this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
63
- }
64
-
65
- Brush.prototype = new SyntaxHighlighter.Highlighter();
66
- Brush.aliases = ['perl', 'Perl', 'pl'];
67
-
68
- SyntaxHighlighter.brushes.Perl = Brush;
69
-
70
- // CommonJS
71
- typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
72
- })();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (Wed, 16 Apr 2014 03:56:09 GMT)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2013 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21
+
22
+ function Brush()
23
+ {
24
+ // Contributed by David Simmons-Duffin and Marty Kube
25
+
26
+ var funcs =
27
+ 'abs accept alarm atan2 bind binmode chdir chmod chomp chop chown chr ' +
28
+ 'chroot close closedir connect cos crypt defined delete each endgrent ' +
29
+ 'endhostent endnetent endprotoent endpwent endservent eof exec exists ' +
30
+ 'exp fcntl fileno flock fork format formline getc getgrent getgrgid ' +
31
+ 'getgrnam gethostbyaddr gethostbyname gethostent getlogin getnetbyaddr ' +
32
+ 'getnetbyname getnetent getpeername getpgrp getppid getpriority ' +
33
+ 'getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid ' +
34
+ 'getservbyname getservbyport getservent getsockname getsockopt glob ' +
35
+ 'gmtime grep hex index int ioctl join keys kill lc lcfirst length link ' +
36
+ 'listen localtime lock log lstat map mkdir msgctl msgget msgrcv msgsnd ' +
37
+ 'oct open opendir ord pack pipe pop pos print printf prototype push ' +
38
+ 'quotemeta rand read readdir readline readlink readpipe recv rename ' +
39
+ 'reset reverse rewinddir rindex rmdir scalar seek seekdir select semctl ' +
40
+ 'semget semop send setgrent sethostent setnetent setpgrp setpriority ' +
41
+ 'setprotoent setpwent setservent setsockopt shift shmctl shmget shmread ' +
42
+ 'shmwrite shutdown sin sleep socket socketpair sort splice split sprintf ' +
43
+ 'sqrt srand stat study substr symlink syscall sysopen sysread sysseek ' +
44
+ 'system syswrite tell telldir time times tr truncate uc ucfirst umask ' +
45
+ 'undef unlink unpack unshift utime values vec wait waitpid warn write ' +
46
+ // feature
47
+ 'say';
48
+
49
+ var keywords =
50
+ 'bless caller continue dbmclose dbmopen die do dump else elsif eval exit ' +
51
+ 'for foreach goto if import last local my next no our package redo ref ' +
52
+ 'require return sub tie tied unless untie until use wantarray while ' +
53
+ // feature
54
+ 'given when default ' +
55
+ // Try::Tiny
56
+ 'try catch finally ' +
57
+ // Moose
58
+ 'has extends with before after around override augment';
59
+
60
+ this.regexList = [
61
+ { regex: /(<<|&lt;&lt;)((\w+)|(['"])(.+?)\4)[\s\S]+?\n\3\5\n/g, css: 'string' }, // here doc (maybe html encoded)
62
+ { regex: /#.*$/gm, css: 'comments' },
63
+ { regex: /^#!.*\n/g, css: 'preprocessor' }, // shebang
64
+ { regex: /-?\w+(?=\s*=(>|&gt;))/g, css: 'string' }, // fat comma
65
+
66
+ // is this too much?
67
+ { regex: /\bq[qwxr]?\([\s\S]*?\)/g, css: 'string' }, // quote-like operators ()
68
+ { regex: /\bq[qwxr]?\{[\s\S]*?\}/g, css: 'string' }, // quote-like operators {}
69
+ { regex: /\bq[qwxr]?\[[\s\S]*?\]/g, css: 'string' }, // quote-like operators []
70
+ { regex: /\bq[qwxr]?(<|&lt;)[\s\S]*?(>|&gt;)/g, css: 'string' }, // quote-like operators <>
71
+ { regex: /\bq[qwxr]?([^\w({<[])[\s\S]*?\1/g, css: 'string' }, // quote-like operators non-paired
72
+
73
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
74
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
75
+ // currently ignoring single quote package separator and utf8 names
76
+ { regex: /(?:&amp;|[$@%*]|\$#)\$?[a-zA-Z_](\w+|::)*/g, css: 'variable' },
77
+ { regex: /\b__(?:END|DATA)__\b[\s\S]*$/g, css: 'comments' },
78
+
79
+ // don't capture the newline after =cut so that =cut\n\n=head1 will start a new pod section
80
+ { regex: /(^|\n)=\w[\s\S]*?(\n=cut\s*(?=\n)|$)/g, css: 'comments' }, // pod
81
+
82
+ { regex: new RegExp(this.getKeywords(funcs), 'gm'), css: 'functions' },
83
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
84
+ ];
85
+
86
+ this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
87
+ }
88
+
89
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
90
+ Brush.aliases = ['perl', 'Perl', 'pl'];
91
+
92
+ SyntaxHighlighter.brushes.Perl = Brush;
93
+
94
+ // CommonJS
95
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
96
+ })();
syntaxhighlighter3/scripts/shBrushPhp.js CHANGED
@@ -1,88 +1,88 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/SyntaxHighlighter
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
- *
8
- * @version
9
- * 3.0.83 (July 02 2010)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2010 Alex Gorbatchev.
13
- *
14
- * @license
15
- * Dual licensed under the MIT and GPL licenses.
16
- */
17
- ;(function()
18
- {
19
- // CommonJS
20
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
-
22
- function Brush()
23
- {
24
- var funcs = 'abs acos acosh addcslashes addslashes ' +
25
- 'array_change_key_case array_chunk array_combine array_count_values array_diff '+
26
- 'array_diff_assoc array_diff_key array_diff_uassoc array_diff_ukey array_fill '+
27
- 'array_filter array_flip array_intersect array_intersect_assoc array_intersect_key '+
28
- 'array_intersect_uassoc array_intersect_ukey array_key_exists array_keys array_map '+
29
- 'array_merge array_merge_recursive array_multisort array_pad array_pop array_product '+
30
- 'array_push array_rand array_reduce array_reverse array_search array_shift '+
31
- 'array_slice array_splice array_sum array_udiff array_udiff_assoc '+
32
- 'array_udiff_uassoc array_uintersect array_uintersect_assoc '+
33
- 'array_uintersect_uassoc array_unique array_unshift array_values array_walk '+
34
- 'array_walk_recursive atan atan2 atanh base64_decode base64_encode base_convert '+
35
- 'basename bcadd bccomp bcdiv bcmod bcmul bindec bindtextdomain bzclose bzcompress '+
36
- 'bzdecompress bzerrno bzerror bzerrstr bzflush bzopen bzread bzwrite ceil chdir '+
37
- 'checkdate checkdnsrr chgrp chmod chop chown chr chroot chunk_split class_exists '+
38
- 'closedir closelog copy cos cosh count count_chars date decbin dechex decoct '+
39
- 'deg2rad delete ebcdic2ascii echo empty end ereg ereg_replace eregi eregi_replace error_log '+
40
- 'error_reporting escapeshellarg escapeshellcmd eval exec exit exp explode extension_loaded '+
41
- 'feof fflush fgetc fgetcsv fgets fgetss file_exists file_get_contents file_put_contents '+
42
- 'fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype '+
43
- 'floatval flock floor flush fmod fnmatch fopen fpassthru fprintf fputcsv fputs fread fscanf '+
44
- 'fseek fsockopen fstat ftell ftok getallheaders getcwd getdate getenv gethostbyaddr gethostbyname '+
45
- 'gethostbynamel getimagesize getlastmod getmxrr getmygid getmyinode getmypid getmyuid getopt '+
46
- 'getprotobyname getprotobynumber getrandmax getrusage getservbyname getservbyport gettext '+
47
- 'gettimeofday gettype glob gmdate gmmktime ini_alter ini_get ini_get_all ini_restore ini_set '+
48
- 'interface_exists intval ip2long is_a is_array is_bool is_callable is_dir is_double '+
49
- 'is_executable is_file is_finite is_float is_infinite is_int is_integer is_link is_long '+
50
- 'is_nan is_null is_numeric is_object is_readable is_real is_resource is_scalar is_soap_fault '+
51
- 'is_string is_subclass_of is_uploaded_file is_writable is_writeable mkdir mktime nl2br '+
52
- 'parse_ini_file parse_str parse_url passthru pathinfo print readlink realpath rewind rewinddir rmdir '+
53
- 'round str_ireplace str_pad str_repeat str_replace str_rot13 str_shuffle str_split '+
54
- 'str_word_count strcasecmp strchr strcmp strcoll strcspn strftime strip_tags stripcslashes '+
55
- 'stripos stripslashes stristr strlen strnatcasecmp strnatcmp strncasecmp strncmp strpbrk '+
56
- 'strpos strptime strrchr strrev strripos strrpos strspn strstr strtok strtolower strtotime '+
57
- 'strtoupper strtr strval substr substr_compare';
58
-
59
- var keywords = 'abstract and array as break case catch cfunction class clone const continue declare default die do ' +
60
- 'else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach ' +
61
- 'function include include_once global goto if implements interface instanceof namespace new ' +
62
- 'old_function or private protected public return require require_once static switch ' +
63
- 'throw try use var while xor ';
64
-
65
- var constants = '__FILE__ __LINE__ __METHOD__ __FUNCTION__ __CLASS__';
66
-
67
- this.regexList = [
68
- { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
69
- { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
70
- { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
71
- { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
72
- { regex: /\$\w+/g, css: 'variable' }, // variables
73
- { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // common functions
74
- { regex: new RegExp(this.getKeywords(constants), 'gmi'), css: 'constants' }, // constants
75
- { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keyword
76
- ];
77
-
78
- this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
79
- };
80
-
81
- Brush.prototype = new SyntaxHighlighter.Highlighter();
82
- Brush.aliases = ['php'];
83
-
84
- SyntaxHighlighter.brushes.Php = Brush;
85
-
86
- // CommonJS
87
- typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
88
- })();
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (Wed, 16 Apr 2014 03:56:09 GMT)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2013 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21
+
22
+ function Brush()
23
+ {
24
+ var funcs = 'abs acos acosh addcslashes addslashes ' +
25
+ 'array_change_key_case array_chunk array_combine array_count_values array_diff '+
26
+ 'array_diff_assoc array_diff_key array_diff_uassoc array_diff_ukey array_fill '+
27
+ 'array_filter array_flip array_intersect array_intersect_assoc array_intersect_key '+
28
+ 'array_intersect_uassoc array_intersect_ukey array_key_exists array_keys array_map '+
29
+ 'array_merge array_merge_recursive array_multisort array_pad array_pop array_product '+
30
+ 'array_push array_rand array_reduce array_reverse array_search array_shift '+
31
+ 'array_slice array_splice array_sum array_udiff array_udiff_assoc '+
32
+ 'array_udiff_uassoc array_uintersect array_uintersect_assoc '+
33
+ 'array_uintersect_uassoc array_unique array_unshift array_values array_walk '+
34
+ 'array_walk_recursive atan atan2 atanh base64_decode base64_encode base_convert '+
35
+ 'basename bcadd bccomp bcdiv bcmod bcmul bindec bindtextdomain bzclose bzcompress '+
36
+ 'bzdecompress bzerrno bzerror bzerrstr bzflush bzopen bzread bzwrite ceil chdir '+
37
+ 'checkdate checkdnsrr chgrp chmod chop chown chr chroot chunk_split class_exists '+
38
+ 'closedir closelog copy cos cosh count count_chars date decbin dechex decoct '+
39
+ 'deg2rad delete ebcdic2ascii echo empty end ereg ereg_replace eregi eregi_replace error_log '+
40
+ 'error_reporting escapeshellarg escapeshellcmd eval exec exit exp explode extension_loaded '+
41
+ 'feof fflush fgetc fgetcsv fgets fgetss file_exists file_get_contents file_put_contents '+
42
+ 'fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype '+
43
+ 'floatval flock floor flush fmod fnmatch fopen fpassthru fprintf fputcsv fputs fread fscanf '+
44
+ 'fseek fsockopen fstat ftell ftok getallheaders getcwd getdate getenv gethostbyaddr gethostbyname '+
45
+ 'gethostbynamel getimagesize getlastmod getmxrr getmygid getmyinode getmypid getmyuid getopt '+
46
+ 'getprotobyname getprotobynumber getrandmax getrusage getservbyname getservbyport gettext '+
47
+ 'gettimeofday gettype glob gmdate gmmktime ini_alter ini_get ini_get_all ini_restore ini_set '+
48
+ 'interface_exists intval ip2long is_a is_array is_bool is_callable is_dir is_double '+
49
+ 'is_executable is_file is_finite is_float is_infinite is_int is_integer is_link is_long '+
50
+ 'is_nan is_null is_numeric is_object is_readable is_real is_resource is_scalar is_soap_fault '+
51
+ 'is_string is_subclass_of is_uploaded_file is_writable is_writeable mkdir mktime nl2br '+
52
+ 'parse_ini_file parse_str parse_url passthru pathinfo print readlink realpath rewind rewinddir rmdir '+
53
+ 'round str_ireplace str_pad str_repeat str_replace str_rot13 str_shuffle str_split '+
54
+ 'str_word_count strcasecmp strchr strcmp strcoll strcspn strftime strip_tags stripcslashes '+
55
+ 'stripos stripslashes stristr strlen strnatcasecmp strnatcmp strncasecmp strncmp strpbrk '+
56
+ 'strpos strptime strrchr strrev strripos strrpos strspn strstr strtok strtolower strtotime '+
57
+ 'strtoupper strtr strval substr substr_compare';
58
+
59
+ var keywords = 'abstract and array as break case catch cfunction class clone const continue declare default die do ' +
60
+ 'else elseif enddeclare endfor endforeach endif endswitch endwhile extends final finally for foreach ' +
61
+ 'function global goto if implements include include_once interface instanceof insteadof namespace new ' +
62
+ 'old_function or private protected public return require require_once static switch ' +
63
+ 'trait throw try use var while xor yield ';
64
+
65
+ var constants = '__FILE__ __LINE__ __METHOD__ __FUNCTION__ __CLASS__';
66
+
67
+ this.regexList = [
68
+ { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
69
+ { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
70
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
71
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
72
+ { regex: /\$\w+/g, css: 'variable' }, // variables
73
+ { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // common functions
74
+ { regex: new RegExp(this.getKeywords(constants), 'gmi'), css: 'constants' }, // constants
75
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keyword
76
+ ];
77
+
78
+ this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
79
+ };
80
+
81
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
82
+ Brush.aliases = ['php'];
83
+
84
+ SyntaxHighlighter.brushes.Php = Brush;
85
+
86
+ // CommonJS
87
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
88
+ })();
syntaxhighlighter3/scripts/shBrushPlain.js CHANGED
@@ -1,33 +1,33 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/SyntaxHighlighter
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
- *
8
- * @version
9
- * 3.0.83 (July 02 2010)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2010 Alex Gorbatchev.
13
- *
14
- * @license
15
- * Dual licensed under the MIT and GPL licenses.
16
- */
17
- ;(function()
18
- {
19
- // CommonJS
20
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
-
22
- function Brush()
23
- {
24
- };
25
-
26
- Brush.prototype = new SyntaxHighlighter.Highlighter();
27
- Brush.aliases = ['text', 'plain'];
28
-
29
- SyntaxHighlighter.brushes.Plain = Brush;
30
-
31
- // CommonJS
32
- typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
33
- })();
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (Wed, 16 Apr 2014 03:56:09 GMT)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2013 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21
+
22
+ function Brush()
23
+ {
24
+ };
25
+
26
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
27
+ Brush.aliases = ['text', 'plain'];
28
+
29
+ SyntaxHighlighter.brushes.Plain = Brush;
30
+
31
+ // CommonJS
32
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
33
+ })();
syntaxhighlighter3/scripts/shBrushPowerShell.js CHANGED
@@ -1,74 +1,75 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/SyntaxHighlighter
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
- *
8
- * @version
9
- * 3.0.83 (July 02 2010)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2010 Alex Gorbatchev.
13
- *
14
- * @license
15
- * Dual licensed under the MIT and GPL licenses.
16
- */
17
- ;(function()
18
- {
19
- // CommonJS
20
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
-
22
- function Brush()
23
- {
24
- // Contributes by B.v.Zanten, Getronics
25
- // http://confluence.atlassian.com/display/CONFEXT/New+Code+Macro
26
-
27
- var keywords = 'Add-Content Add-History Add-Member Add-PSSnapin Clear(-Content)? Clear-Item ' +
28
- 'Clear-ItemProperty Clear-Variable Compare-Object ConvertFrom-SecureString Convert-Path ' +
29
- 'ConvertTo-Html ConvertTo-SecureString Copy(-Item)? Copy-ItemProperty Export-Alias ' +
30
- 'Export-Clixml Export-Console Export-Csv ForEach(-Object)? Format-Custom Format-List ' +
31
- 'Format-Table Format-Wide Get-Acl Get-Alias Get-AuthenticodeSignature Get-ChildItem Get-Command ' +
32
- 'Get-Content Get-Credential Get-Culture Get-Date Get-EventLog Get-ExecutionPolicy ' +
33
- 'Get-Help Get-History Get-Host Get-Item Get-ItemProperty Get-Location Get-Member ' +
34
- 'Get-PfxCertificate Get-Process Get-PSDrive Get-PSProvider Get-PSSnapin Get-Service ' +
35
- 'Get-TraceSource Get-UICulture Get-Unique Get-Variable Get-WmiObject Group-Object ' +
36
- 'Import-Alias Import-Clixml Import-Csv Invoke-Expression Invoke-History Invoke-Item ' +
37
- 'Join-Path Measure-Command Measure-Object Move(-Item)? Move-ItemProperty New-Alias ' +
38
- 'New-Item New-ItemProperty New-Object New-PSDrive New-Service New-TimeSpan ' +
39
- 'New-Variable Out-Default Out-File Out-Host Out-Null Out-Printer Out-String Pop-Location ' +
40
- 'Push-Location Read-Host Remove-Item Remove-ItemProperty Remove-PSDrive Remove-PSSnapin ' +
41
- 'Remove-Variable Rename-Item Rename-ItemProperty Resolve-Path Restart-Service Resume-Service ' +
42
- 'Select-Object Select-String Set-Acl Set-Alias Set-AuthenticodeSignature Set-Content ' +
43
- 'Set-Date Set-ExecutionPolicy Set-Item Set-ItemProperty Set-Location Set-PSDebug ' +
44
- 'Set-Service Set-TraceSource Set(-Variable)? Sort-Object Split-Path Start-Service ' +
45
- 'Start-Sleep Start-Transcript Stop-Process Stop-Service Stop-Transcript Suspend-Service ' +
46
- 'Tee-Object Test-Path Trace-Command Update-FormatData Update-TypeData Where(-Object)? ' +
47
- 'Write-Debug Write-Error Write(-Host)? Write-Output Write-Progress Write-Verbose Write-Warning';
48
- var alias = 'ac asnp clc cli clp clv cpi cpp cvpa diff epal epcsv fc fl ' +
49
- 'ft fw gal gc gci gcm gdr ghy gi gl gm gp gps group gsv ' +
50
- 'gsnp gu gv gwmi iex ihy ii ipal ipcsv mi mp nal ndr ni nv oh rdr ' +
51
- 'ri rni rnp rp rsnp rv rvpa sal sasv sc select si sl sleep sort sp ' +
52
- 'spps spsv sv tee cat cd cp h history kill lp ls ' +
53
- 'mount mv popd ps pushd pwd r rm rmdir echo cls chdir del dir ' +
54
- 'erase rd ren type % \\?';
55
-
56
- this.regexList = [
57
- { regex: /#.*$/gm, css: 'comments' }, // one line comments
58
- { regex: /\$[a-zA-Z0-9]+\b/g, css: 'value' }, // variables $Computer1
59
- { regex: /\-[a-zA-Z]+\b/g, css: 'keyword' }, // Operators -not -and -eq
60
- { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
61
- { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
62
- { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' },
63
- { regex: new RegExp(this.getKeywords(alias), 'gmi'), css: 'keyword' }
64
- ];
65
- };
66
-
67
- Brush.prototype = new SyntaxHighlighter.Highlighter();
68
- Brush.aliases = ['powershell', 'ps'];
69
-
70
- SyntaxHighlighter.brushes.PowerShell = Brush;
71
-
72
- // CommonJS
73
- typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
74
- })();
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (Wed, 16 Apr 2014 03:56:09 GMT)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2013 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21
+
22
+ function Brush()
23
+ {
24
+ // Contributed by Joel 'Jaykul' Bennett, http://PoshCode.org | http://HuddledMasses.org
25
+ var keywords = 'while validateset validaterange validatepattern validatelength validatecount ' +
26
+ 'until trap switch return ref process param parameter in if global: '+
27
+ 'function foreach for finally filter end elseif else dynamicparam do default ' +
28
+ 'continue cmdletbinding break begin alias \\? % #script #private #local #global '+
29
+ 'mandatory parametersetname position valuefrompipeline ' +
30
+ 'valuefrompipelinebypropertyname valuefromremainingarguments helpmessage ';
31
+
32
+ var operators = ' and as band bnot bor bxor casesensitive ccontains ceq cge cgt cle ' +
33
+ 'clike clt cmatch cne cnotcontains cnotlike cnotmatch contains ' +
34
+ 'creplace eq exact f file ge gt icontains ieq ige igt ile ilike ilt ' +
35
+ 'imatch ine inotcontains inotlike inotmatch ireplace is isnot le like ' +
36
+ 'lt match ne not notcontains notlike notmatch or regex replace wildcard';
37
+
38
+ var verbs = 'write where wait use update unregister undo trace test tee take suspend ' +
39
+ 'stop start split sort skip show set send select scroll resume restore ' +
40
+ 'restart resolve resize reset rename remove register receive read push ' +
41
+ 'pop ping out new move measure limit join invoke import group get format ' +
42
+ 'foreach export expand exit enter enable disconnect disable debug cxnew ' +
43
+ 'copy convertto convertfrom convert connect complete compare clear ' +
44
+ 'checkpoint aggregate add';
45
+
46
+ // I can't find a way to match the comment based help in multi-line comments, because SH won't highlight in highlights, and javascript doesn't support lookbehind
47
+ var commenthelp = ' component description example externalhelp forwardhelpcategory forwardhelptargetname forwardhelptargetname functionality inputs link notes outputs parameter remotehelprunspace role synopsis';
48
+
49
+ this.regexList = [
50
+ { regex: new RegExp('^\\s*#[#\\s]*\\.('+this.getKeywords(commenthelp)+').*$', 'gim'), css: 'preprocessor help bold' }, // comment-based help
51
+ { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments
52
+ { regex: /(&lt;|<)#[\s\S]*?#(&gt;|>)/gm, css: 'comments here' }, // multi-line comments
53
+
54
+ { regex: new RegExp('@"\\n[\\s\\S]*?\\n"@', 'gm'), css: 'script string here' }, // double quoted here-strings
55
+ { regex: new RegExp("@'\\n[\\s\\S]*?\\n'@", 'gm'), css: 'script string single here' }, // single quoted here-strings
56
+ { regex: new RegExp('"(?:\\$\\([^\\)]*\\)|[^"]|`"|"")*[^`]"','g'), css: 'string' }, // double quoted strings
57
+ { regex: new RegExp("'(?:[^']|'')*'", 'g'), css: 'string single' }, // single quoted strings
58
+
59
+ { regex: new RegExp('[\\$|@|@@](?:(?:global|script|private|env):)?[A-Z0-9_]+', 'gi'), css: 'variable' }, // $variables
60
+ { regex: new RegExp('(?:\\b'+verbs.replace(/ /g, '\\b|\\b')+')-[a-zA-Z_][a-zA-Z0-9_]*', 'gmi'), css: 'functions' }, // functions and cmdlets
61
+ { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' }, // keywords
62
+ { regex: new RegExp('-'+this.getKeywords(operators), 'gmi'), css: 'operator value' }, // operators
63
+ { regex: new RegExp('\\[[A-Z_\\[][A-Z0-9_. `,\\[\\]]*\\]', 'gi'), css: 'constants' }, // .Net [Type]s
64
+ { regex: new RegExp('\\s+-(?!'+this.getKeywords(operators)+')[a-zA-Z_][a-zA-Z0-9_]*', 'gmi'), css: 'color1' }, // parameters
65
+ ];
66
+ };
67
+
68
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
69
+ Brush.aliases = ['powershell', 'ps', 'posh'];
70
+
71
+ SyntaxHighlighter.brushes.PowerShell = Brush;
72
+
73
+ // CommonJS
74
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
75
+ })();
syntaxhighlighter3/scripts/shBrushPython.js CHANGED
@@ -1,64 +1,64 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/SyntaxHighlighter
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
- *
8
- * @version
9
- * 3.0.83 (July 02 2010)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2010 Alex Gorbatchev.
13
- *
14
- * @license
15
- * Dual licensed under the MIT and GPL licenses.
16
- */
17
- ;(function()
18
- {
19
- // CommonJS
20
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
-
22
- function Brush()
23
- {
24
- // Contributed by Gheorghe Milas and Ahmad Sherif
25
-
26
- var keywords = 'and assert break class continue def del elif else ' +
27
- 'except exec finally for from global if import in is ' +
28
- 'lambda not or pass print raise return try yield while';
29
-
30
- var funcs = '__import__ abs all any apply basestring bin bool buffer callable ' +
31
- 'chr classmethod cmp coerce compile complex delattr dict dir ' +
32
- 'divmod enumerate eval execfile file filter float format frozenset ' +
33
- 'getattr globals hasattr hash help hex id input int intern ' +
34
- 'isinstance issubclass iter len list locals long map max min next ' +
35
- 'object oct open ord pow print property range raw_input reduce ' +
36
- 'reload repr reversed round set setattr slice sorted staticmethod ' +
37
- 'str sum super tuple type type unichr unicode vars xrange zip';
38
-
39
- var special = 'None True False self cls class_';
40
-
41
- this.regexList = [
42
- { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' },
43
- { regex: /^\s*@\w+/gm, css: 'decorator' },
44
- { regex: /(['\"]{3})([^\1])*?\1/gm, css: 'comments' },
45
- { regex: /"(?!")(?:\.|\\\"|[^\""\n])*"/gm, css: 'string' },
46
- { regex: /'(?!')(?:\.|(\\\')|[^\''\n])*'/gm, css: 'string' },
47
- { regex: /\+|\-|\*|\/|\%|=|==/gm, css: 'keyword' },
48
- { regex: /\b\d+\.?\w*/g, css: 'value' },
49
- { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' },
50
- { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' },
51
- { regex: new RegExp(this.getKeywords(special), 'gm'), css: 'color1' }
52
- ];
53
-
54
- this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
55
- };
56
-
57
- Brush.prototype = new SyntaxHighlighter.Highlighter();
58
- Brush.aliases = ['py', 'python'];
59
-
60
- SyntaxHighlighter.brushes.Python = Brush;
61
-
62
- // CommonJS
63
- typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
64
- })();
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (Wed, 16 Apr 2014 03:56:09 GMT)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2013 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21
+
22
+ function Brush()
23
+ {
24
+ // Contributed by Gheorghe Milas and Ahmad Sherif
25
+
26
+ var keywords = 'and assert break class continue def del elif else ' +
27
+ 'except exec finally for from global if import in is ' +
28
+ 'lambda not or pass raise return try yield while';
29
+
30
+ var funcs = '__import__ abs all any apply basestring bin bool buffer callable ' +
31
+ 'chr classmethod cmp coerce compile complex delattr dict dir ' +
32
+ 'divmod enumerate eval execfile file filter float format frozenset ' +
33
+ 'getattr globals hasattr hash help hex id input int intern ' +
34
+ 'isinstance issubclass iter len list locals long map max min next ' +
35
+ 'object oct open ord pow print property range raw_input reduce ' +
36
+ 'reload repr reversed round set setattr slice sorted staticmethod ' +
37
+ 'str sum super tuple type type unichr unicode vars xrange zip';
38
+
39
+ var special = 'None True False self cls class_';
40
+
41
+ this.regexList = [
42
+ { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' },
43
+ { regex: /^\s*@\w+/gm, css: 'decorator' },
44
+ { regex: /(['\"]{3})([^\1])*?\1/gm, css: 'comments' },
45
+ { regex: /"(?!")(?:\.|\\\"|[^\""\n])*"/gm, css: 'string' },
46
+ { regex: /'(?!')(?:\.|(\\\')|[^\''\n])*'/gm, css: 'string' },
47
+ { regex: /\+|\-|\*|\/|\%|=|==/gm, css: 'keyword' },
48
+ { regex: /\b\d+\.?\w*/g, css: 'value' },
49
+ { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' },
50
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' },
51
+ { regex: new RegExp(this.getKeywords(special), 'gm'), css: 'color1' }
52
+ ];
53
+
54
+ this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
55
+ };
56
+
57
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
58
+ Brush.aliases = ['py', 'python'];
59
+
60
+ SyntaxHighlighter.brushes.Python = Brush;
61
+
62
+ // CommonJS
63
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
64
+ })();
syntaxhighlighter3/scripts/shBrushRuby.js CHANGED
@@ -1,55 +1,55 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/SyntaxHighlighter
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
- *
8
- * @version
9
- * 3.0.83 (July 02 2010)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2010 Alex Gorbatchev.
13
- *
14
- * @license
15
- * Dual licensed under the MIT and GPL licenses.
16
- */
17
- ;(function()
18
- {
19
- // CommonJS
20
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
-
22
- function Brush()
23
- {
24
- // Contributed by Erik Peterson.
25
-
26
- var keywords = 'alias and BEGIN begin break case class def define_method defined do each else elsif ' +
27
- 'END end ensure false for if in module new next nil not or raise redo rescue retry return ' +
28
- 'self super then throw true undef unless until when while yield';
29
-
30
- var builtins = 'Array Bignum Binding Class Continuation Dir Exception FalseClass File::Stat File Fixnum Fload ' +
31
- 'Hash Integer IO MatchData Method Module NilClass Numeric Object Proc Range Regexp String Struct::TMS Symbol ' +
32
- 'ThreadGroup Thread Time TrueClass';
33
-
34
- this.regexList = [
35
- { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments
36
- { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
37
- { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
38
- { regex: /\b[A-Z0-9_]+\b/g, css: 'constants' }, // constants
39
- { regex: /:[a-z][A-Za-z0-9_]*/g, css: 'color2' }, // symbols
40
- { regex: /(\$|@@|@)\w+/g, css: 'variable bold' }, // $global, @instance, and @@class variables
41
- { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
42
- { regex: new RegExp(this.getKeywords(builtins), 'gm'), css: 'color1' } // builtins
43
- ];
44
-
45
- this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
46
- };
47
-
48
- Brush.prototype = new SyntaxHighlighter.Highlighter();
49
- Brush.aliases = ['ruby', 'rails', 'ror', 'rb'];
50
-
51
- SyntaxHighlighter.brushes.Ruby = Brush;
52
-
53
- // CommonJS
54
- typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
55
- })();
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (Wed, 16 Apr 2014 03:56:09 GMT)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2013 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21
+
22
+ function Brush()
23
+ {
24
+ // Contributed by Erik Peterson.
25
+
26
+ var keywords = 'alias and BEGIN begin break case class def define_method defined do each else elsif ' +
27
+ 'END end ensure false for if in module new next nil not or raise redo rescue retry return ' +
28
+ 'self super then throw true undef unless until when while yield';
29
+
30
+ var builtins = 'Array Bignum Binding Class Continuation Dir Exception FalseClass File::Stat File Fixnum Fload ' +
31
+ 'Hash Integer IO MatchData Method Module NilClass Numeric Object Proc Range Regexp String Struct::TMS Symbol ' +
32
+ 'ThreadGroup Thread Time TrueClass';
33
+
34
+ this.regexList = [
35
+ { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments
36
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
37
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
38
+ { regex: /\b[A-Z0-9_]+\b/g, css: 'constants' }, // constants
39
+ { regex: /:[a-z][A-Za-z0-9_]*/g, css: 'color2' }, // symbols
40
+ { regex: /(\$|@@|@)\w+/g, css: 'variable bold' }, // $global, @instance, and @@class variables
41
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
42
+ { regex: new RegExp(this.getKeywords(builtins), 'gm'), css: 'color1' } // builtins
43
+ ];
44
+
45
+ this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
46
+ };
47
+
48
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
49
+ Brush.aliases = ['ruby', 'rails', 'ror', 'rb'];
50
+
51
+ SyntaxHighlighter.brushes.Ruby = Brush;
52
+
53
+ // CommonJS
54
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
55
+ })();
syntaxhighlighter3/scripts/shBrushSass.js CHANGED
@@ -1,94 +1,99 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/SyntaxHighlighter
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
- *
8
- * @version
9
- * 3.0.83 (July 02 2010)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2010 Alex Gorbatchev.
13
- *
14
- * @license
15
- * Dual licensed under the MIT and GPL licenses.
16
- */
17
- ;(function()
18
- {
19
- // CommonJS
20
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
-
22
- function Brush()
23
- {
24
- function getKeywordsCSS(str)
25
- {
26
- return '\\b([a-z_]|)' + str.replace(/ /g, '(?=:)\\b|\\b([a-z_\\*]|\\*|)') + '(?=:)\\b';
27
- };
28
-
29
- function getValuesCSS(str)
30
- {
31
- return '\\b' + str.replace(/ /g, '(?!-)(?!:)\\b|\\b()') + '\:\\b';
32
- };
33
-
34
- var keywords = 'ascent azimuth background-attachment background-color background-image background-position ' +
35
- 'background-repeat background baseline bbox border-collapse border-color border-spacing border-style border-top ' +
36
- 'border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color ' +
37
- 'border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width ' +
38
- 'border-bottom-width border-left-width border-width border bottom cap-height caption-side centerline clear clip color ' +
39
- 'content counter-increment counter-reset cue-after cue-before cue cursor definition-src descent direction display ' +
40
- 'elevation empty-cells float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font ' +
41
- 'height left letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top ' +
42
- 'margin-right margin-bottom margin-left margin marker-offset marks mathline max-height max-width min-height min-width orphans ' +
43
- 'outline-color outline-style outline-width outline overflow padding-top padding-right padding-bottom padding-left padding page ' +
44
- 'page-break-after page-break-before page-break-inside pause pause-after pause-before pitch pitch-range play-during position ' +
45
- 'quotes right richness size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress ' +
46
- 'table-layout text-align top text-decoration text-indent text-shadow text-transform unicode-bidi unicode-range units-per-em ' +
47
- 'vertical-align visibility voice-family volume white-space widows width widths word-spacing x-height z-index';
48
-
49
- var values = 'above absolute all always aqua armenian attr aural auto avoid baseline behind below bidi-override black blink block blue bold bolder '+
50
- 'both bottom braille capitalize caption center center-left center-right circle close-quote code collapse compact condensed '+
51
- 'continuous counter counters crop cross crosshair cursive dashed decimal decimal-leading-zero digits disc dotted double '+
52
- 'embed embossed e-resize expanded extra-condensed extra-expanded fantasy far-left far-right fast faster fixed format fuchsia '+
53
- 'gray green groove handheld hebrew help hidden hide high higher icon inline-table inline inset inside invert italic '+
54
- 'justify landscape large larger left-side left leftwards level lighter lime line-through list-item local loud lower-alpha '+
55
- 'lowercase lower-greek lower-latin lower-roman lower low ltr marker maroon medium message-box middle mix move narrower '+
56
- 'navy ne-resize no-close-quote none no-open-quote no-repeat normal nowrap n-resize nw-resize oblique olive once open-quote outset '+
57
- 'outside overline pointer portrait pre print projection purple red relative repeat repeat-x repeat-y rgb ridge right right-side '+
58
- 'rightwards rtl run-in screen scroll semi-condensed semi-expanded separate se-resize show silent silver slower slow '+
59
- 'small small-caps small-caption smaller soft solid speech spell-out square s-resize static status-bar sub super sw-resize '+
60
- 'table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group teal '+
61
- 'text-bottom text-top thick thin top transparent tty tv ultra-condensed ultra-expanded underline upper-alpha uppercase upper-latin '+
62
- 'upper-roman url visible wait white wider w-resize x-fast x-high x-large x-loud x-low x-slow x-small x-soft xx-large xx-small yellow';
63
-
64
- var fonts = '[mM]onospace [tT]ahoma [vV]erdana [aA]rial [hH]elvetica [sS]ans-serif [sS]erif [cC]ourier mono sans serif';
65
-
66
- var statements = '!important !default';
67
- var preprocessor = '@import @extend @debug @warn @if @for @while @mixin @include';
68
-
69
- var r = SyntaxHighlighter.regexLib;
70
-
71
- this.regexList = [
72
- { regex: r.multiLineCComments, css: 'comments' }, // multiline comments
73
- { regex: r.singleLineCComments, css: 'comments' }, // singleline comments
74
- { regex: r.doubleQuotedString, css: 'string' }, // double quoted strings
75
- { regex: r.singleQuotedString, css: 'string' }, // single quoted strings
76
- { regex: /\#[a-fA-F0-9]{3,6}/g, css: 'value' }, // html colors
77
- { regex: /\b(-?\d+)(\.\d+)?(px|em|pt|\:|\%|)\b/g, css: 'value' }, // sizes
78
- { regex: /\$\w+/g, css: 'variable' }, // variables
79
- { regex: new RegExp(this.getKeywords(statements), 'g'), css: 'color3' }, // statements
80
- { regex: new RegExp(this.getKeywords(preprocessor), 'g'), css: 'preprocessor' }, // preprocessor
81
- { regex: new RegExp(getKeywordsCSS(keywords), 'gm'), css: 'keyword' }, // keywords
82
- { regex: new RegExp(getValuesCSS(values), 'g'), css: 'value' }, // values
83
- { regex: new RegExp(this.getKeywords(fonts), 'g'), css: 'color1' } // fonts
84
- ];
85
- };
86
-
87
- Brush.prototype = new SyntaxHighlighter.Highlighter();
88
- Brush.aliases = ['sass', 'scss'];
89
-
90
- SyntaxHighlighter.brushes.Sass = Brush;
91
-
92
- // CommonJS
93
- typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
94
- })();
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (Wed, 16 Apr 2014 03:56:09 GMT)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2013 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21
+
22
+ function Brush()
23
+ {
24
+ function getKeywordsCSS(str)
25
+ {
26
+ return '\\b([a-z_]|)' + str.replace(/ /g, '(?=:)\\b|\\b([a-z_\\*]|\\*|)') + '(?=:)\\b';
27
+ };
28
+
29
+ function getValuesCSS(str)
30
+ {
31
+ return '\\b' + str.replace(/ /g, '(?!-)(?!:)\\b|\\b()') + '\:\\b';
32
+ };
33
+
34
+ function getKeywordsPrependedBy(keywords, by)
35
+ {
36
+ return '(?:' + keywords.replace(/^\s+|\s+$/g, '').replace(/\s+/g, '|' + by + '\\b').replace(/^/, by + '\\b') + ')\\b';
37
+ }
38
+
39
+ var keywords = 'ascent azimuth background-attachment background-color background-image background-position ' +
40
+ 'background-repeat background baseline bbox border-collapse border-color border-spacing border-style border-top ' +
41
+ 'border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color ' +
42
+ 'border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width ' +
43
+ 'border-bottom-width border-left-width border-width border bottom cap-height caption-side centerline clear clip color ' +
44
+ 'content counter-increment counter-reset cue-after cue-before cue cursor definition-src descent direction display ' +
45
+ 'elevation empty-cells float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font ' +
46
+ 'height left letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top ' +
47
+ 'margin-right margin-bottom margin-left margin marker-offset marks mathline max-height max-width min-height min-width orphans ' +
48
+ 'outline-color outline-style outline-width outline overflow padding-top padding-right padding-bottom padding-left padding page ' +
49
+ 'page-break-after page-break-before page-break-inside pause pause-after pause-before pitch pitch-range play-during position ' +
50
+ 'quotes right richness size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress ' +
51
+ 'table-layout text-align top text-decoration text-indent text-shadow text-transform unicode-bidi unicode-range units-per-em ' +
52
+ 'vertical-align visibility voice-family volume white-space widows width widths word-spacing x-height z-index zoom';
53
+
54
+ var values = 'above absolute all always aqua armenian attr aural auto avoid baseline behind below bidi-override black blink block blue bold bolder '+
55
+ 'both bottom braille capitalize caption center center-left center-right circle close-quote code collapse compact condensed '+
56
+ 'continuous counter counters crop cross crosshair cursive dashed decimal decimal-leading-zero digits disc dotted double '+
57
+ 'embed embossed e-resize expanded extra-condensed extra-expanded fantasy far-left far-right fast faster fixed format fuchsia '+
58
+ 'gray green groove handheld hebrew help hidden hide high higher icon inline-table inline inset inside invert italic '+
59
+ 'justify landscape large larger left-side left leftwards level lighter lime line-through list-item local loud lower-alpha '+
60
+ 'lowercase lower-greek lower-latin lower-roman lower low ltr marker maroon medium message-box middle mix move narrower '+
61
+ 'navy ne-resize no-close-quote none no-open-quote no-repeat normal nowrap n-resize nw-resize oblique olive once open-quote outset '+
62
+ 'outside overline pointer portrait pre print projection purple red relative repeat repeat-x repeat-y rgb ridge right right-side '+
63
+ 'rightwards rtl run-in screen scroll semi-condensed semi-expanded separate se-resize show silent silver slower slow '+
64
+ 'small small-caps small-caption smaller soft solid speech spell-out square s-resize static status-bar sub super sw-resize '+
65
+ 'table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group teal '+
66
+ 'text-bottom text-top thick thin top transparent tty tv ultra-condensed ultra-expanded underline upper-alpha uppercase upper-latin '+
67
+ 'upper-roman url visible wait white wider w-resize x-fast x-high x-large x-loud x-low x-slow x-small x-soft xx-large xx-small yellow';
68
+
69
+ var fonts = '[mM]onospace [tT]ahoma [vV]erdana [aA]rial [hH]elvetica [sS]ans-serif [sS]erif [cC]ourier mono sans serif';
70
+
71
+ var statements = 'important default';
72
+ var preprocessor = 'import extend debug warn if else for while mixin function include content media';
73
+
74
+ var r = SyntaxHighlighter.regexLib;
75
+
76
+ this.regexList = [
77
+ { regex: r.multiLineCComments, css: 'comments' }, // multiline comments
78
+ { regex: r.singleLineCComments, css: 'comments' }, // singleline comments
79
+ { regex: r.doubleQuotedString, css: 'string' }, // double quoted strings
80
+ { regex: r.singleQuotedString, css: 'string' }, // single quoted strings
81
+ { regex: /\#[a-fA-F0-9]{3,6}/g, css: 'value' }, // html colors
82
+ { regex: /\b(-?\d+)(\.\d+)?(px|em|rem|pt|\:|\%|)\b/g, css: 'value' }, // sizes
83
+ { regex: /\$[\w-]+/g, css: 'variable' }, // variables
84
+ { regex: new RegExp(getKeywordsPrependedBy(statements, '!'), 'g'), css: 'color3' }, // statements
85
+ { regex: new RegExp(getKeywordsPrependedBy(preprocessor, '@'), 'g'), css: 'preprocessor' }, // preprocessor
86
+ { regex: new RegExp(getKeywordsCSS(keywords), 'gm'), css: 'keyword' }, // keywords
87
+ { regex: new RegExp(getValuesCSS(values), 'g'), css: 'value' }, // values
88
+ { regex: new RegExp(this.getKeywords(fonts), 'g'), css: 'color1' } // fonts
89
+ ];
90
+ };
91
+
92
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
93
+ Brush.aliases = ['sass', 'scss'];
94
+
95
+ SyntaxHighlighter.brushes.Sass = Brush;
96
+
97
+ // CommonJS
98
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
99
+ })();
syntaxhighlighter3/scripts/shBrushScala.js CHANGED
@@ -1,51 +1,51 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/SyntaxHighlighter
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
- *
8
- * @version
9
- * 3.0.83 (July 02 2010)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2010 Alex Gorbatchev.
13
- *
14
- * @license
15
- * Dual licensed under the MIT and GPL licenses.
16
- */
17
- ;(function()
18
- {
19
- // CommonJS
20
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
-
22
- function Brush()
23
- {
24
- // Contributed by Yegor Jbanov and David Bernard.
25
-
26
- var keywords = 'val sealed case def true trait implicit forSome import match object null finally super ' +
27
- 'override try lazy for var catch throw type extends class while with new final yield abstract ' +
28
- 'else do if return protected private this package false';
29
-
30
- var keyops = '[_:=><%#@]+';
31
-
32
- this.regexList = [
33
- { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
34
- { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
35
- { regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // multi-line strings
36
- { regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double-quoted string
37
- { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
38
- { regex: /0x[a-f0-9]+|\d+(\.\d+)?/gi, css: 'value' }, // numbers
39
- { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
40
- { regex: new RegExp(keyops, 'gm'), css: 'keyword' } // scala keyword
41
- ];
42
- }
43
-
44
- Brush.prototype = new SyntaxHighlighter.Highlighter();
45
- Brush.aliases = ['scala'];
46
-
47
- SyntaxHighlighter.brushes.Scala = Brush;
48
-
49
- // CommonJS
50
- typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
51
- })();
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (Wed, 16 Apr 2014 03:56:09 GMT)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2013 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21
+
22
+ function Brush()
23
+ {
24
+ // Contributed by Yegor Jbanov and David Bernard.
25
+
26
+ var keywords = 'val sealed case def true trait implicit forSome import match object null finally super ' +
27
+ 'override try lazy for var catch throw type extends class while with new final yield abstract ' +
28
+ 'else do if return protected private this package false';
29
+
30
+ var keyops = '[_:=><%#@]+';
31
+
32
+ this.regexList = [
33
+ { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
34
+ { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
35
+ { regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // multi-line strings
36
+ { regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double-quoted string
37
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
38
+ { regex: /0x[a-f0-9]+|\d+(\.\d+)?/gi, css: 'value' }, // numbers
39
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
40
+ { regex: new RegExp(keyops, 'gm'), css: 'keyword' } // scala keyword
41
+ ];
42
+ }
43
+
44
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
45
+ Brush.aliases = ['scala'];
46
+
47
+ SyntaxHighlighter.brushes.Scala = Brush;
48
+
49
+ // CommonJS
50
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
51
+ })();
syntaxhighlighter3/scripts/shBrushSql.js CHANGED
@@ -1,66 +1,67 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/SyntaxHighlighter
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
- *
8
- * @version
9
- * 3.0.83 (July 02 2010)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2010 Alex Gorbatchev.
13
- *
14
- * @license
15
- * Dual licensed under the MIT and GPL licenses.
16
- */
17
- ;(function()
18
- {
19
- // CommonJS
20
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
-
22
- function Brush()
23
- {
24
- var funcs = 'abs avg case cast coalesce convert count current_timestamp ' +
25
- 'current_user day isnull left lower month nullif replace right ' +
26
- 'session_user space substring sum system_user upper user year';
27
-
28
- var keywords = 'absolute action add after alter as asc at authorization begin bigint ' +
29
- 'binary bit by cascade char character check checkpoint close collate ' +
30
- 'column commit committed connect connection constraint contains continue ' +
31
- 'create cube current current_date current_time cursor database date ' +
32
- 'deallocate dec decimal declare default delete desc distinct double drop ' +
33
- 'dynamic else end end-exec escape except exec execute false fetch first ' +
34
- 'float for force foreign forward free from full function global goto grant ' +
35
- 'group grouping having hour ignore index inner insensitive insert instead ' +
36
- 'int integer intersect into is isolation key last level load local max min ' +
37
- 'minute modify move name national nchar next no numeric of off on only ' +
38
- 'open option order out output partial password precision prepare primary ' +
39
- 'prior privileges procedure public read real references relative repeatable ' +
40
- 'restrict return returns revoke rollback rollup rows rule schema scroll ' +
41
- 'second section select sequence serializable set size smallint static ' +
42
- 'statistics table temp temporary then time timestamp to top transaction ' +
43
- 'translation trigger true truncate uncommitted union unique update values ' +
44
- 'varchar varying view when where with work';
45
-
46
- var operators = 'all and any between cross in join like not null or outer some';
47
-
48
- this.regexList = [
49
- { regex: /--(.*)$/gm, css: 'comments' }, // one line and multiline comments
50
- { regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings
51
- { regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // single quoted strings
52
- { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'color2' }, // functions
53
- { regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // operators and such
54
- { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
55
- ];
56
- };
57
-
58
- Brush.prototype = new SyntaxHighlighter.Highlighter();
59
- Brush.aliases = ['sql'];
60
-
61
- SyntaxHighlighter.brushes.Sql = Brush;
62
-
63
- // CommonJS
64
- typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
65
- })();
66
-
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (Wed, 16 Apr 2014 03:56:09 GMT)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2013 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21
+
22
+ function Brush()
23
+ {
24
+ var funcs = 'abs avg case cast coalesce convert count current_timestamp ' +
25
+ 'current_user day isnull left lower month nullif replace right ' +
26
+ 'session_user space substring sum system_user upper user year';
27
+
28
+ var keywords = 'absolute action add after alter as asc at authorization begin bigint ' +
29
+ 'binary bit by cascade char character check checkpoint close collate ' +
30
+ 'column commit committed connect connection constraint contains continue ' +
31
+ 'create cube current current_date current_time cursor database date ' +
32
+ 'deallocate dec decimal declare default delete desc distinct double drop ' +
33
+ 'dynamic else end end-exec escape except exec execute false fetch first ' +
34
+ 'float for force foreign forward free from full function global goto grant ' +
35
+ 'group grouping having hour ignore index inner insensitive insert instead ' +
36
+ 'int integer intersect into is isolation key last level load local max min ' +
37
+ 'minute modify move name national nchar next no numeric of off on only ' +
38
+ 'open option order out output partial password precision prepare primary ' +
39
+ 'prior privileges procedure public read real references relative repeatable ' +
40
+ 'restrict return returns revoke rollback rollup rows rule schema scroll ' +
41
+ 'second section select sequence serializable set size smallint static ' +
42
+ 'statistics table temp temporary then time timestamp to top transaction ' +
43
+ 'translation trigger true truncate uncommitted union unique update values ' +
44
+ 'varchar varying view when where with work';
45
+
46
+ var operators = 'all and any between cross in join like not null or outer some';
47
+
48
+ this.regexList = [
49
+ { regex: /--(.*)$/gm, css: 'comments' }, // one line comments
50
+ { regex: /\/\*([^\*][\s\S]*?)?\*\//gm, css: 'comments' }, // multi line comments
51
+ { regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings
52
+ { regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // single quoted strings
53
+ { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'color2' }, // functions
54
+ { regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // operators and such
55
+ { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
56
+ ];
57
+ };
58
+
59
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
60
+ Brush.aliases = ['sql'];
61
+
62
+ SyntaxHighlighter.brushes.Sql = Brush;
63
+
64
+ // CommonJS
65
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
66
+ })();
67
+
syntaxhighlighter3/scripts/shBrushVb.js CHANGED
@@ -1,56 +1,56 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/SyntaxHighlighter
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
- *
8
- * @version
9
- * 3.0.83 (July 02 2010)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2010 Alex Gorbatchev.
13
- *
14
- * @license
15
- * Dual licensed under the MIT and GPL licenses.
16
- */
17
- ;(function()
18
- {
19
- // CommonJS
20
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
-
22
- function Brush()
23
- {
24
- var keywords = 'AddHandler AddressOf AndAlso Alias And Ansi As Assembly Auto ' +
25
- 'Boolean ByRef Byte ByVal Call Case Catch CBool CByte CChar CDate ' +
26
- 'CDec CDbl Char CInt Class CLng CObj Const CShort CSng CStr CType ' +
27
- 'Date Decimal Declare Default Delegate Dim DirectCast Do Double Each ' +
28
- 'Else ElseIf End Enum Erase Error Event Exit False Finally For Friend ' +
29
- 'Function Get GetType GoSub GoTo Handles If Implements Imports In ' +
30
- 'Inherits Integer Interface Is Let Lib Like Long Loop Me Mod Module ' +
31
- 'MustInherit MustOverride MyBase MyClass Namespace New Next Not Nothing ' +
32
- 'NotInheritable NotOverridable Object On Option Optional Or OrElse ' +
33
- 'Overloads Overridable Overrides ParamArray Preserve Private Property ' +
34
- 'Protected Public RaiseEvent ReadOnly ReDim REM RemoveHandler Resume ' +
35
- 'Return Select Set Shadows Shared Short Single Static Step Stop String ' +
36
- 'Structure Sub SyncLock Then Throw To True Try TypeOf Unicode Until ' +
37
- 'Variant When While With WithEvents WriteOnly Xor';
38
-
39
- this.regexList = [
40
- { regex: /'.*$/gm, css: 'comments' }, // one line comments
41
- { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
42
- { regex: /^\s*#.*$/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
43
- { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // vb keyword
44
- ];
45
-
46
- this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
47
- };
48
-
49
- Brush.prototype = new SyntaxHighlighter.Highlighter();
50
- Brush.aliases = ['vb', 'vbnet'];
51
-
52
- SyntaxHighlighter.brushes.Vb = Brush;
53
-
54
- // CommonJS
55
- typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
56
- })();
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (Wed, 16 Apr 2014 03:56:09 GMT)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2013 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21
+
22
+ function Brush()
23
+ {
24
+ var keywords = 'AddHandler AddressOf AndAlso Alias And Ansi As Assembly Auto ' +
25
+ 'Boolean ByRef Byte ByVal Call Case Catch CBool CByte CChar CDate ' +
26
+ 'CDec CDbl Char CInt Class CLng CObj Const CShort CSng CStr CType ' +
27
+ 'Date Decimal Declare Default Delegate Dim DirectCast Do Double Each ' +
28
+ 'Else ElseIf End Enum Erase Error Event Exit False Finally For Friend ' +
29
+ 'Function Get GetType GoSub GoTo Handles If Implements Imports In ' +
30
+ 'Inherits Integer Interface Is Let Lib Like Long Loop Me Mod Module ' +
31
+ 'MustInherit MustOverride MyBase MyClass Namespace New Next Not Nothing ' +
32
+ 'NotInheritable NotOverridable Object On Option Optional Or OrElse ' +
33
+ 'Overloads Overridable Overrides ParamArray Preserve Private Property ' +
34
+ 'Protected Public RaiseEvent ReadOnly ReDim REM RemoveHandler Resume ' +
35
+ 'Return Select Set Shadows Shared Short Single Static Step Stop String ' +
36
+ 'Structure Sub SyncLock Then Throw To True Try TypeOf Unicode Until ' +
37
+ 'Variant When While With WithEvents WriteOnly Xor';
38
+
39
+ this.regexList = [
40
+ { regex: /'.*$/gm, css: 'comments' }, // one line comments
41
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
42
+ { regex: /^\s*#.*$/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
43
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // vb keyword
44
+ ];
45
+
46
+ this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
47
+ };
48
+
49
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
50
+ Brush.aliases = ['vb', 'vbnet'];
51
+
52
+ SyntaxHighlighter.brushes.Vb = Brush;
53
+
54
+ // CommonJS
55
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
56
+ })();
syntaxhighlighter3/scripts/shBrushXml.js CHANGED
@@ -1,69 +1,71 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/SyntaxHighlighter
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
- *
8
- * @version
9
- * 3.0.83 (July 02 2010)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2010 Alex Gorbatchev.
13
- *
14
- * @license
15
- * Dual licensed under the MIT and GPL licenses.
16
- */
17
- ;(function()
18
- {
19
- // CommonJS
20
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
-
22
- function Brush()
23
- {
24
- function process(match, regexInfo)
25
- {
26
- var constructor = SyntaxHighlighter.Match,
27
- code = match[0],
28
- tag = new XRegExp('(&lt;|<)[\\s\\/\\?]*(?<name>[:\\w-\\.]+)', 'xg').exec(code),
29
- result = []
30
- ;
31
-
32
- if (match.attributes != null)
33
- {
34
- var attributes,
35
- regex = new XRegExp('(?<name> [\\w:\\-\\.]+)' +
36
- '\\s*=\\s*' +
37
- '(?<value> ".*?"|\'.*?\'|\\w+)',
38
- 'xg');
39
-
40
- while ((attributes = regex.exec(code)) != null)
41
- {
42
- result.push(new constructor(attributes.name, match.index + attributes.index, 'color1'));
43
- result.push(new constructor(attributes.value, match.index + attributes.index + attributes[0].indexOf(attributes.value), 'string'));
44
- }
45
- }
46
-
47
- if (tag != null)
48
- result.push(
49
- new constructor(tag.name, match.index + tag[0].indexOf(tag.name), 'keyword')
50
- );
51
-
52
- return result;
53
- }
54
-
55
- this.regexList = [
56
- { regex: new XRegExp('(\\&lt;|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\\&gt;|>)', 'gm'), css: 'color2' }, // <![ ... [ ... ]]>
57
- { regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, // <!-- ... -->
58
- { regex: new XRegExp('(&lt;|<)[\\s\\/\\?]*(\\w+)(?<attributes>.*?)[\\s\\/\\?]*(&gt;|>)', 'sg'), func: process }
59
- ];
60
- };
61
-
62
- Brush.prototype = new SyntaxHighlighter.Highlighter();
63
- Brush.aliases = ['xml', 'xhtml', 'xslt', 'html'];
64
-
65
- SyntaxHighlighter.brushes.Xml = Brush;
66
-
67
- // CommonJS
68
- typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
69
- })();
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (Wed, 16 Apr 2014 03:56:09 GMT)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2013 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ ;(function()
18
+ {
19
+ // CommonJS
20
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
21
+
22
+ function Brush()
23
+ {
24
+ function process(match, regexInfo)
25
+ {
26
+ var constructor = SyntaxHighlighter.Match,
27
+ code = match[0],
28
+ tag = XRegExp.exec(code, XRegExp('(&lt;|<)[\\s\\/\\?!]*(?<name>[:\\w-\\.]+)', 'xg')),
29
+ result = []
30
+ ;
31
+
32
+ if (match.attributes != null)
33
+ {
34
+ var attributes,
35
+ pos = 0,
36
+ regex = XRegExp('(?<name> [\\w:.-]+)' +
37
+ '\\s*=\\s*' +
38
+ '(?<value> ".*?"|\'.*?\'|\\w+)',
39
+ 'xg');
40
+
41
+ while ((attributes = XRegExp.exec(code, regex, pos)) != null)
42
+ {
43
+ result.push(new constructor(attributes.name, match.index + attributes.index, 'color1'));
44
+ result.push(new constructor(attributes.value, match.index + attributes.index + attributes[0].indexOf(attributes.value), 'string'));
45
+ pos = attributes.index + attributes[0].length;
46
+ }
47
+ }
48
+
49
+ if (tag != null)
50
+ result.push(
51
+ new constructor(tag.name, match.index + tag[0].indexOf(tag.name), 'keyword')
52
+ );
53
+
54
+ return result;
55
+ }
56
+
57
+ this.regexList = [
58
+ { regex: XRegExp('(\\&lt;|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\\&gt;|>)', 'gm'), css: 'color2' }, // <![ ... [ ... ]]>
59
+ { regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, // <!-- ... -->
60
+ { regex: XRegExp('(&lt;|<)[\\s\\/\\?!]*(\\w+)(?<attributes>.*?)[\\s\\/\\?]*(&gt;|>)', 'sg'), func: process }
61
+ ];
62
+ };
63
+
64
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
65
+ Brush.aliases = ['xml', 'xhtml', 'xslt', 'html', 'plist'];
66
+
67
+ SyntaxHighlighter.brushes.Xml = Brush;
68
+
69
+ // CommonJS
70
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
71
+ })();
syntaxhighlighter3/scripts/shCore.js CHANGED
@@ -1,17 +1,17 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/SyntaxHighlighter
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
- *
8
- * @version
9
- * 3.0.83 (July 02 2010)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2010 Alex Gorbatchev.
13
- *
14
- * @license
15
- * Dual licensed under the MIT and GPL licenses.
16
- */
17
- 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}('K M;I(M)1S 2U("2a\'t 4k M 4K 2g 3l 4G 4H");(6(){6 r(f,e){I(!M.1R(f))1S 3m("3s 15 4R");K a=f.1w;f=M(f.1m,t(f)+(e||""));I(a)f.1w={1m:a.1m,19:a.19?a.19.1a(0):N};H f}6 t(f){H(f.1J?"g":"")+(f.4s?"i":"")+(f.4p?"m":"")+(f.4v?"x":"")+(f.3n?"y":"")}6 B(f,e,a,b){K c=u.L,d,h,g;v=R;5K{O(;c--;){g=u[c];I(a&g.3r&&(!g.2p||g.2p.W(b))){g.2q.12=e;I((h=g.2q.X(f))&&h.P===e){d={3k:g.2b.W(b,h,a),1C:h};1N}}}}5v(i){1S i}5q{v=11}H d}6 p(f,e,a){I(3b.Z.1i)H f.1i(e,a);O(a=a||0;a<f.L;a++)I(f[a]===e)H a;H-1}M=6(f,e){K a=[],b=M.1B,c=0,d,h;I(M.1R(f)){I(e!==1d)1S 3m("2a\'t 5r 5I 5F 5B 5C 15 5E 5p");H r(f)}I(v)1S 2U("2a\'t W 3l M 59 5m 5g 5x 5i");e=e||"";O(d={2N:11,19:[],2K:6(g){H e.1i(g)>-1},3d:6(g){e+=g}};c<f.L;)I(h=B(f,c,b,d)){a.U(h.3k);c+=h.1C[0].L||1}Y I(h=n.X.W(z[b],f.1a(c))){a.U(h[0]);c+=h[0].L}Y{h=f.3a(c);I(h==="[")b=M.2I;Y I(h==="]")b=M.1B;a.U(h);c++}a=15(a.1K(""),n.Q.W(e,w,""));a.1w={1m:f,19:d.2N?d.19:N};H a};M.3v="1.5.0";M.2I=1;M.1B=2;K C=/\\$(?:(\\d\\d?|[$&`\'])|{([$\\w]+)})/g,w=/[^5h]+|([\\s\\S])(?=[\\s\\S]*\\1)/g,A=/^(?:[?*+]|{\\d+(?:,\\d*)?})\\??/,v=11,u=[],n={X:15.Z.X,1A:15.Z.1A,1C:1r.Z.1C,Q:1r.Z.Q,1e:1r.Z.1e},x=n.X.W(/()??/,"")[1]===1d,D=6(){K f=/^/g;n.1A.W(f,"");H!f.12}(),y=6(){K f=/x/g;n.Q.W("x",f,"");H!f.12}(),E=15.Z.3n!==1d,z={};z[M.2I]=/^(?:\\\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\\29-26-f]{2}|u[\\29-26-f]{4}|c[A-3o-z]|[\\s\\S]))/;z[M.1B]=/^(?:\\\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\\d*|x[\\29-26-f]{2}|u[\\29-26-f]{4}|c[A-3o-z]|[\\s\\S])|\\(\\?[:=!]|[?*+]\\?|{\\d+(?:,\\d*)?}\\??)/;M.1h=6(f,e,a,b){u.U({2q:r(f,"g"+(E?"y":"")),2b:e,3r:a||M.1B,2p:b||N})};M.2n=6(f,e){K a=f+"/"+(e||"");H M.2n[a]||(M.2n[a]=M(f,e))};M.3c=6(f){H r(f,"g")};M.5l=6(f){H f.Q(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g,"\\\\$&")};M.5e=6(f,e,a,b){e=r(e,"g"+(b&&E?"y":""));e.12=a=a||0;f=e.X(f);H b?f&&f.P===a?f:N:f};M.3q=6(){M.1h=6(){1S 2U("2a\'t 55 1h 54 3q")}};M.1R=6(f){H 53.Z.1q.W(f)==="[2m 15]"};M.3p=6(f,e,a,b){O(K c=r(e,"g"),d=-1,h;h=c.X(f);){a.W(b,h,++d,f,c);c.12===h.P&&c.12++}I(e.1J)e.12=0};M.57=6(f,e){H 6 a(b,c){K d=e[c].1I?e[c]:{1I:e[c]},h=r(d.1I,"g"),g=[],i;O(i=0;i<b.L;i++)M.3p(b[i],h,6(k){g.U(d.3j?k[d.3j]||"":k[0])});H c===e.L-1||!g.L?g:a(g,c+1)}([f],0)};15.Z.1p=6(f,e){H J.X(e[0])};15.Z.W=6(f,e){H J.X(e)};15.Z.X=6(f){K e=n.X.1p(J,14),a;I(e){I(!x&&e.L>1&&p(e,"")>-1){a=15(J.1m,n.Q.W(t(J),"g",""));n.Q.W(f.1a(e.P),a,6(){O(K c=1;c<14.L-2;c++)I(14[c]===1d)e[c]=1d})}I(J.1w&&J.1w.19)O(K b=1;b<e.L;b++)I(a=J.1w.19[b-1])e[a]=e[b];!D&&J.1J&&!e[0].L&&J.12>e.P&&J.12--}H e};I(!D)15.Z.1A=6(f){(f=n.X.W(J,f))&&J.1J&&!f[0].L&&J.12>f.P&&J.12--;H!!f};1r.Z.1C=6(f){M.1R(f)||(f=15(f));I(f.1J){K e=n.1C.1p(J,14);f.12=0;H e}H f.X(J)};1r.Z.Q=6(f,e){K a=M.1R(f),b,c;I(a&&1j e.58()==="3f"&&e.1i("${")===-1&&y)H n.Q.1p(J,14);I(a){I(f.1w)b=f.1w.19}Y f+="";I(1j e==="6")c=n.Q.W(J,f,6(){I(b){14[0]=1f 1r(14[0]);O(K d=0;d<b.L;d++)I(b[d])14[0][b[d]]=14[d+1]}I(a&&f.1J)f.12=14[14.L-2]+14[0].L;H e.1p(N,14)});Y{c=J+"";c=n.Q.W(c,f,6(){K d=14;H n.Q.W(e,C,6(h,g,i){I(g)5b(g){24"$":H"$";24"&":H d[0];24"`":H d[d.L-1].1a(0,d[d.L-2]);24"\'":H d[d.L-1].1a(d[d.L-2]+d[0].L);5a:i="";g=+g;I(!g)H h;O(;g>d.L-3;){i=1r.Z.1a.W(g,-1)+i;g=1Q.3i(g/10)}H(g?d[g]||"":"$")+i}Y{g=+i;I(g<=d.L-3)H d[g];g=b?p(b,i):-1;H g>-1?d[g+1]:h}})})}I(a&&f.1J)f.12=0;H c};1r.Z.1e=6(f,e){I(!M.1R(f))H n.1e.1p(J,14);K a=J+"",b=[],c=0,d,h;I(e===1d||+e<0)e=5D;Y{e=1Q.3i(+e);I(!e)H[]}O(f=M.3c(f);d=f.X(a);){I(f.12>c){b.U(a.1a(c,d.P));d.L>1&&d.P<a.L&&3b.Z.U.1p(b,d.1a(1));h=d[0].L;c=f.12;I(b.L>=e)1N}f.12===d.P&&f.12++}I(c===a.L){I(!n.1A.W(f,"")||h)b.U("")}Y b.U(a.1a(c));H b.L>e?b.1a(0,e):b};M.1h(/\\(\\?#[^)]*\\)/,6(f){H n.1A.W(A,f.2S.1a(f.P+f[0].L))?"":"(?:)"});M.1h(/\\((?!\\?)/,6(){J.19.U(N);H"("});M.1h(/\\(\\?<([$\\w]+)>/,6(f){J.19.U(f[1]);J.2N=R;H"("});M.1h(/\\\\k<([\\w$]+)>/,6(f){K e=p(J.19,f[1]);H e>-1?"\\\\"+(e+1)+(3R(f.2S.3a(f.P+f[0].L))?"":"(?:)"):f[0]});M.1h(/\\[\\^?]/,6(f){H f[0]==="[]"?"\\\\b\\\\B":"[\\\\s\\\\S]"});M.1h(/^\\(\\?([5A]+)\\)/,6(f){J.3d(f[1]);H""});M.1h(/(?:\\s+|#.*)+/,6(f){H n.1A.W(A,f.2S.1a(f.P+f[0].L))?"":"(?:)"},M.1B,6(){H J.2K("x")});M.1h(/\\./,6(){H"[\\\\s\\\\S]"},M.1B,6(){H J.2K("s")})})();1j 2e!="1d"&&(2e.M=M);K 1v=6(){6 r(a,b){a.1l.1i(b)!=-1||(a.1l+=" "+b)}6 t(a){H a.1i("3e")==0?a:"3e"+a}6 B(a){H e.1Y.2A[t(a)]}6 p(a,b,c){I(a==N)H N;K d=c!=R?a.3G:[a.2G],h={"#":"1c",".":"1l"}[b.1o(0,1)]||"3h",g,i;g=h!="3h"?b.1o(1):b.5u();I((a[h]||"").1i(g)!=-1)H a;O(a=0;d&&a<d.L&&i==N;a++)i=p(d[a],b,c);H i}6 C(a,b){K c={},d;O(d 2g a)c[d]=a[d];O(d 2g b)c[d]=b[d];H c}6 w(a,b,c,d){6 h(g){g=g||1P.5y;I(!g.1F){g.1F=g.52;g.3N=6(){J.5w=11}}c.W(d||1P,g)}a.3g?a.3g("4U"+b,h):a.4y(b,h,11)}6 A(a,b){K c=e.1Y.2j,d=N;I(c==N){c={};O(K h 2g e.1U){K g=e.1U[h];d=g.4x;I(d!=N){g.1V=h.4w();O(g=0;g<d.L;g++)c[d[g]]=h}}e.1Y.2j=c}d=e.1U[c[a]];d==N&&b!=11&&1P.1X(e.13.1x.1X+(e.13.1x.3E+a));H d}6 v(a,b){O(K c=a.1e("\\n"),d=0;d<c.L;d++)c[d]=b(c[d],d);H c.1K("\\n")}6 u(a,b){I(a==N||a.L==0||a=="\\n")H a;a=a.Q(/</g,"&1y;");a=a.Q(/ {2,}/g,6(c){O(K d="",h=0;h<c.L-1;h++)d+=e.13.1W;H d+" "});I(b!=N)a=v(a,6(c){I(c.L==0)H"";K d="";c=c.Q(/^(&2s;| )+/,6(h){d=h;H""});I(c.L==0)H d;H d+\'<17 1g="\'+b+\'">\'+c+"</17>"});H a}6 n(a,b){a.1e("\\n");O(K c="",d=0;d<50;d++)c+=" ";H a=v(a,6(h){I(h.1i("\\t")==-1)H h;O(K g=0;(g=h.1i("\\t"))!=-1;)h=h.1o(0,g)+c.1o(0,b-g%b)+h.1o(g+1,h.L);H h})}6 x(a){H a.Q(/^\\s+|\\s+$/g,"")}6 D(a,b){I(a.P<b.P)H-1;Y I(a.P>b.P)H 1;Y I(a.L<b.L)H-1;Y I(a.L>b.L)H 1;H 0}6 y(a,b){6 c(k){H k[0]}O(K d=N,h=[],g=b.2D?b.2D:c;(d=b.1I.X(a))!=N;){K i=g(d,b);I(1j i=="3f")i=[1f e.2L(i,d.P,b.23)];h=h.1O(i)}H h}6 E(a){K b=/(.*)((&1G;|&1y;).*)/;H a.Q(e.3A.3M,6(c){K d="",h=N;I(h=b.X(c)){c=h[1];d=h[2]}H\'<a 2h="\'+c+\'">\'+c+"</a>"+d})}6 z(){O(K a=1E.36("1k"),b=[],c=0;c<a.L;c++)a[c].3s=="20"&&b.U(a[c]);H b}6 f(a){a=a.1F;K b=p(a,".20",R);a=p(a,".3O",R);K c=1E.4i("3t");I(!(!a||!b||p(a,"3t"))){B(b.1c);r(b,"1m");O(K d=a.3G,h=[],g=0;g<d.L;g++)h.U(d[g].4z||d[g].4A);h=h.1K("\\r");c.39(1E.4D(h));a.39(c);c.2C();c.4C();w(c,"4u",6(){c.2G.4E(c);b.1l=b.1l.Q("1m","")})}}I(1j 3F!="1d"&&1j M=="1d")M=3F("M").M;K e={2v:{"1g-27":"","2i-1s":1,"2z-1s-2t":11,1M:N,1t:N,"42-45":R,"43-22":4,1u:R,16:R,"3V-17":R,2l:11,"41-40":R,2k:11,"1z-1k":11},13:{1W:"&2s;",2M:R,46:11,44:11,34:"4n",1x:{21:"4o 1m",2P:"?",1X:"1v\\n\\n",3E:"4r\'t 4t 1D O: ",4g:"4m 4B\'t 51 O 1z-1k 4F: ",37:\'<!4T 1z 4S "-//4V//3H 4W 1.0 4Z//4Y" "1Z://2y.3L.3K/4X/3I/3H/3I-4P.4J"><1z 4I="1Z://2y.3L.3K/4L/5L"><3J><4N 1Z-4M="5G-5M" 6K="2O/1z; 6J=6I-8" /><1t>6L 1v</1t></3J><3B 1L="25-6M:6Q,6P,6O,6N-6F;6y-2f:#6x;2f:#6w;25-22:6v;2O-3D:3C;"><T 1L="2O-3D:3C;3w-32:1.6z;"><T 1L="25-22:6A-6E;">1v</T><T 1L="25-22:.6C;3w-6B:6R;"><T>3v 3.0.76 (72 73 3x)</T><T><a 2h="1Z://3u.2w/1v" 1F="38" 1L="2f:#3y">1Z://3u.2w/1v</a></T><T>70 17 6U 71.</T><T>6T 6X-3x 6Y 6D.</T></T><T>6t 61 60 J 1k, 5Z <a 2h="6u://2y.62.2w/63-66/65?64=5X-5W&5P=5O" 1L="2f:#3y">5R</a> 5V <2R/>5U 5T 5S!</T></T></3B></1z>\'}},1Y:{2j:N,2A:{}},1U:{},3A:{6n:/\\/\\*[\\s\\S]*?\\*\\//2c,6m:/\\/\\/.*$/2c,6l:/#.*$/2c,6k:/"([^\\\\"\\n]|\\\\.)*"/g,6o:/\'([^\\\\\'\\n]|\\\\.)*\'/g,6p:1f M(\'"([^\\\\\\\\"]|\\\\\\\\.)*"\',"3z"),6s:1f M("\'([^\\\\\\\\\']|\\\\\\\\.)*\'","3z"),6q:/(&1y;|<)!--[\\s\\S]*?--(&1G;|>)/2c,3M:/\\w+:\\/\\/[\\w-.\\/?%&=:@;]*/g,6a:{18:/(&1y;|<)\\?=?/g,1b:/\\?(&1G;|>)/g},69:{18:/(&1y;|<)%=?/g,1b:/%(&1G;|>)/g},6d:{18:/(&1y;|<)\\s*1k.*?(&1G;|>)/2T,1b:/(&1y;|<)\\/\\s*1k\\s*(&1G;|>)/2T}},16:{1H:6(a){6 b(i,k){H e.16.2o(i,k,e.13.1x[k])}O(K c=\'<T 1g="16">\',d=e.16.2x,h=d.2X,g=0;g<h.L;g++)c+=(d[h[g]].1H||b)(a,h[g]);c+="</T>";H c},2o:6(a,b,c){H\'<2W><a 2h="#" 1g="6e 6h\'+b+" "+b+\'">\'+c+"</a></2W>"},2b:6(a){K b=a.1F,c=b.1l||"";b=B(p(b,".20",R).1c);K d=6(h){H(h=15(h+"6f(\\\\w+)").X(c))?h[1]:N}("6g");b&&d&&e.16.2x[d].2B(b);a.3N()},2x:{2X:["21","2P"],21:{1H:6(a){I(a.V("2l")!=R)H"";K b=a.V("1t");H e.16.2o(a,"21",b?b:e.13.1x.21)},2B:6(a){a=1E.6j(t(a.1c));a.1l=a.1l.Q("47","")}},2P:{2B:6(){K a="68=0";a+=", 18="+(31.30-33)/2+", 32="+(31.2Z-2Y)/2+", 30=33, 2Z=2Y";a=a.Q(/^,/,"");a=1P.6Z("","38",a);a.2C();K b=a.1E;b.6W(e.13.1x.37);b.6V();a.2C()}}}},35:6(a,b){K c;I(b)c=[b];Y{c=1E.36(e.13.34);O(K d=[],h=0;h<c.L;h++)d.U(c[h]);c=d}c=c;d=[];I(e.13.2M)c=c.1O(z());I(c.L===0)H d;O(h=0;h<c.L;h++){O(K g=c[h],i=a,k=c[h].1l,j=3W 0,l={},m=1f M("^\\\\[(?<2V>(.*?))\\\\]$"),s=1f M("(?<27>[\\\\w-]+)\\\\s*:\\\\s*(?<1T>[\\\\w-%#]+|\\\\[.*?\\\\]|\\".*?\\"|\'.*?\')\\\\s*;?","g");(j=s.X(k))!=N;){K o=j.1T.Q(/^[\'"]|[\'"]$/g,"");I(o!=N&&m.1A(o)){o=m.X(o);o=o.2V.L>0?o.2V.1e(/\\s*,\\s*/):[]}l[j.27]=o}g={1F:g,1n:C(i,l)};g.1n.1D!=N&&d.U(g)}H d},1M:6(a,b){K c=J.35(a,b),d=N,h=e.13;I(c.L!==0)O(K g=0;g<c.L;g++){b=c[g];K i=b.1F,k=b.1n,j=k.1D,l;I(j!=N){I(k["1z-1k"]=="R"||e.2v["1z-1k"]==R){d=1f e.4l(j);j="4O"}Y I(d=A(j))d=1f d;Y 6H;l=i.3X;I(h.2M){l=l;K m=x(l),s=11;I(m.1i("<![6G[")==0){m=m.4h(9);s=R}K o=m.L;I(m.1i("]]\\>")==o-3){m=m.4h(0,o-3);s=R}l=s?m:l}I((i.1t||"")!="")k.1t=i.1t;k.1D=j;d.2Q(k);b=d.2F(l);I((i.1c||"")!="")b.1c=i.1c;i.2G.74(b,i)}}},2E:6(a){w(1P,"4k",6(){e.1M(a)})}};e.2E=e.2E;e.1M=e.1M;e.2L=6(a,b,c){J.1T=a;J.P=b;J.L=a.L;J.23=c;J.1V=N};e.2L.Z.1q=6(){H J.1T};e.4l=6(a){6 b(j,l){O(K m=0;m<j.L;m++)j[m].P+=l}K c=A(a),d,h=1f e.1U.5Y,g=J,i="2F 1H 2Q".1e(" ");I(c!=N){d=1f c;O(K k=0;k<i.L;k++)(6(){K j=i[k];g[j]=6(){H h[j].1p(h,14)}})();d.28==N?1P.1X(e.13.1x.1X+(e.13.1x.4g+a)):h.2J.U({1I:d.28.17,2D:6(j){O(K l=j.17,m=[],s=d.2J,o=j.P+j.18.L,F=d.28,q,G=0;G<s.L;G++){q=y(l,s[G]);b(q,o);m=m.1O(q)}I(F.18!=N&&j.18!=N){q=y(j.18,F.18);b(q,j.P);m=m.1O(q)}I(F.1b!=N&&j.1b!=N){q=y(j.1b,F.1b);b(q,j.P+j[0].5Q(j.1b));m=m.1O(q)}O(j=0;j<m.L;j++)m[j].1V=c.1V;H m}})}};e.4j=6(){};e.4j.Z={V:6(a,b){K c=J.1n[a];c=c==N?b:c;K d={"R":R,"11":11}[c];H d==N?c:d},3Y:6(a){H 1E.4i(a)},4c:6(a,b){K c=[];I(a!=N)O(K d=0;d<a.L;d++)I(1j a[d]=="2m")c=c.1O(y(b,a[d]));H J.4e(c.6b(D))},4e:6(a){O(K b=0;b<a.L;b++)I(a[b]!==N)O(K c=a[b],d=c.P+c.L,h=b+1;h<a.L&&a[b]!==N;h++){K g=a[h];I(g!==N)I(g.P>d)1N;Y I(g.P==c.P&&g.L>c.L)a[b]=N;Y I(g.P>=c.P&&g.P<d)a[h]=N}H a},4d:6(a){K b=[],c=2u(J.V("2i-1s"));v(a,6(d,h){b.U(h+c)});H b},3U:6(a){K b=J.V("1M",[]);I(1j b!="2m"&&b.U==N)b=[b];a:{a=a.1q();K c=3W 0;O(c=c=1Q.6c(c||0,0);c<b.L;c++)I(b[c]==a){b=c;1N a}b=-1}H b!=-1},2r:6(a,b,c){a=["1s","6i"+b,"P"+a,"6r"+(b%2==0?1:2).1q()];J.3U(b)&&a.U("67");b==0&&a.U("1N");H\'<T 1g="\'+a.1K(" ")+\'">\'+c+"</T>"},3Q:6(a,b){K c="",d=a.1e("\\n").L,h=2u(J.V("2i-1s")),g=J.V("2z-1s-2t");I(g==R)g=(h+d-1).1q().L;Y I(3R(g)==R)g=0;O(K i=0;i<d;i++){K k=b?b[i]:h+i,j;I(k==0)j=e.13.1W;Y{j=g;O(K l=k.1q();l.L<j;)l="0"+l;j=l}a=j;c+=J.2r(i,k,a)}H c},49:6(a,b){a=x(a);K c=a.1e("\\n");J.V("2z-1s-2t");K d=2u(J.V("2i-1s"));a="";O(K h=J.V("1D"),g=0;g<c.L;g++){K i=c[g],k=/^(&2s;|\\s)+/.X(i),j=N,l=b?b[g]:d+g;I(k!=N){j=k[0].1q();i=i.1o(j.L);j=j.Q(" ",e.13.1W)}i=x(i);I(i.L==0)i=e.13.1W;a+=J.2r(g,l,(j!=N?\'<17 1g="\'+h+\' 5N">\'+j+"</17>":"")+i)}H a},4f:6(a){H a?"<4a>"+a+"</4a>":""},4b:6(a,b){6 c(l){H(l=l?l.1V||g:g)?l+" ":""}O(K d=0,h="",g=J.V("1D",""),i=0;i<b.L;i++){K k=b[i],j;I(!(k===N||k.L===0)){j=c(k);h+=u(a.1o(d,k.P-d),j+"48")+u(k.1T,j+k.23);d=k.P+k.L+(k.75||0)}}h+=u(a.1o(d),c()+"48");H h},1H:6(a){K b="",c=["20"],d;I(J.V("2k")==R)J.1n.16=J.1n.1u=11;1l="20";J.V("2l")==R&&c.U("47");I((1u=J.V("1u"))==11)c.U("6S");c.U(J.V("1g-27"));c.U(J.V("1D"));a=a.Q(/^[ ]*[\\n]+|[\\n]*[ ]*$/g,"").Q(/\\r/g," ");b=J.V("43-22");I(J.V("42-45")==R)a=n(a,b);Y{O(K h="",g=0;g<b;g++)h+=" ";a=a.Q(/\\t/g,h)}a=a;a:{b=a=a;h=/<2R\\s*\\/?>|&1y;2R\\s*\\/?&1G;/2T;I(e.13.46==R)b=b.Q(h,"\\n");I(e.13.44==R)b=b.Q(h,"");b=b.1e("\\n");h=/^\\s*/;g=4Q;O(K i=0;i<b.L&&g>0;i++){K k=b[i];I(x(k).L!=0){k=h.X(k);I(k==N){a=a;1N a}g=1Q.4q(k[0].L,g)}}I(g>0)O(i=0;i<b.L;i++)b[i]=b[i].1o(g);a=b.1K("\\n")}I(1u)d=J.4d(a);b=J.4c(J.2J,a);b=J.4b(a,b);b=J.49(b,d);I(J.V("41-40"))b=E(b);1j 2H!="1d"&&2H.3S&&2H.3S.1C(/5s/)&&c.U("5t");H b=\'<T 1c="\'+t(J.1c)+\'" 1g="\'+c.1K(" ")+\'">\'+(J.V("16")?e.16.1H(J):"")+\'<3Z 5z="0" 5H="0" 5J="0">\'+J.4f(J.V("1t"))+"<3T><3P>"+(1u?\'<2d 1g="1u">\'+J.3Q(a)+"</2d>":"")+\'<2d 1g="17"><T 1g="3O">\'+b+"</T></2d></3P></3T></3Z></T>"},2F:6(a){I(a===N)a="";J.17=a;K b=J.3Y("T");b.3X=J.1H(a);J.V("16")&&w(p(b,".16"),"5c",e.16.2b);J.V("3V-17")&&w(p(b,".17"),"56",f);H b},2Q:6(a){J.1c=""+1Q.5d(1Q.5n()*5k).1q();e.1Y.2A[t(J.1c)]=J;J.1n=C(e.2v,a||{});I(J.V("2k")==R)J.1n.16=J.1n.1u=11},5j:6(a){a=a.Q(/^\\s+|\\s+$/g,"").Q(/\\s+/g,"|");H"\\\\b(?:"+a+")\\\\b"},5f:6(a){J.28={18:{1I:a.18,23:"1k"},1b:{1I:a.1b,23:"1k"},17:1f M("(?<18>"+a.18.1m+")(?<17>.*?)(?<1b>"+a.1b.1m+")","5o")}}};H e}();1j 2e!="1d"&&(2e.1v=1v);',62,441,'||||||function|||||||||||||||||||||||||||||||||||||return|if|this|var|length|XRegExp|null|for|index|replace|true||div|push|getParam|call|exec|else|prototype||false|lastIndex|config|arguments|RegExp|toolbar|code|left|captureNames|slice|right|id|undefined|split|new|class|addToken|indexOf|typeof|script|className|source|params|substr|apply|toString|String|line|title|gutter|SyntaxHighlighter|_xregexp|strings|lt|html|test|OUTSIDE_CLASS|match|brush|document|target|gt|getHtml|regex|global|join|style|highlight|break|concat|window|Math|isRegExp|throw|value|brushes|brushName|space|alert|vars|http|syntaxhighlighter|expandSource|size|css|case|font|Fa|name|htmlScript|dA|can|handler|gm|td|exports|color|in|href|first|discoveredBrushes|light|collapse|object|cache|getButtonHtml|trigger|pattern|getLineHtml|nbsp|numbers|parseInt|defaults|com|items|www|pad|highlighters|execute|focus|func|all|getDiv|parentNode|navigator|INSIDE_CLASS|regexList|hasFlag|Match|useScriptTags|hasNamedCapture|text|help|init|br|input|gi|Error|values|span|list|250|height|width|screen|top|500|tagName|findElements|getElementsByTagName|aboutDialog|_blank|appendChild|charAt|Array|copyAsGlobal|setFlag|highlighter_|string|attachEvent|nodeName|floor|backref|output|the|TypeError|sticky|Za|iterate|freezeTokens|scope|type|textarea|alexgorbatchev|version|margin|2010|005896|gs|regexLib|body|center|align|noBrush|require|childNodes|DTD|xhtml1|head|org|w3|url|preventDefault|container|tr|getLineNumbersHtml|isNaN|userAgent|tbody|isLineHighlighted|quick|void|innerHTML|create|table|links|auto|smart|tab|stripBrs|tabs|bloggerMode|collapsed|plain|getCodeLinesHtml|caption|getMatchesHtml|findMatches|figureOutLineNumbers|removeNestedMatches|getTitleHtml|brushNotHtmlScript|substring|createElement|Highlighter|load|HtmlScript|Brush|pre|expand|multiline|min|Can|ignoreCase|find|blur|extended|toLowerCase|aliases|addEventListener|innerText|textContent|wasn|select|createTextNode|removeChild|option|same|frame|xmlns|dtd|twice|1999|equiv|meta|htmlscript|transitional|1E3|expected|PUBLIC|DOCTYPE|on|W3C|XHTML|TR|EN|Transitional||configured|srcElement|Object|after|run|dblclick|matchChain|valueOf|constructor|default|switch|click|round|execAt|forHtmlScript|token|gimy|functions|getKeywords|1E6|escape|within|random|sgi|another|finally|supply|MSIE|ie|toUpperCase|catch|returnValue|definition|event|border|imsx|constructing|one|Infinity|from|when|Content|cellpadding|flags|cellspacing|try|xhtml|Type|spaces|2930402|hosted_button_id|lastIndexOf|donate|active|development|keep|to|xclick|_s|Xml|please|like|you|paypal|cgi|cmd|webscr|bin|highlighted|scrollbars|aspScriptTags|phpScriptTags|sort|max|scriptScriptTags|toolbar_item|_|command|command_|number|getElementById|doubleQuotedString|singleLinePerlComments|singleLineCComments|multiLineCComments|singleQuotedString|multiLineDoubleQuotedString|xmlComments|alt|multiLineSingleQuotedString|If|https|1em|000|fff|background|5em|xx|bottom|75em|Gorbatchev|large|serif|CDATA|continue|utf|charset|content|About|family|sans|Helvetica|Arial|Geneva|3em|nogutter|Copyright|syntax|close|write|2004|Alex|open|JavaScript|highlighter|July|02|replaceChild|offset|83'.split('|'),0,{}))
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (Wed, 16 Apr 2014 03:56:09 GMT)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2013 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ var XRegExp;if(XRegExp=XRegExp||function(e){"use strict";function t(e,t,n){var r;for(r in c.prototype)c.prototype.hasOwnProperty(r)&&(e[r]=c.prototype[r]);return e.xregexp={captureNames:t,isNative:!!n},e}function n(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.extended?"x":"")+(e.sticky?"y":"")}function r(e,r,i){if(!c.isRegExp(e))throw new TypeError("type RegExp expected");var a=p.replace.call(n(e)+(r||""),E,"");return i&&(a=p.replace.call(a,RegExp("["+i+"]+","g"),"")),e=e.xregexp&&!e.xregexp.isNative?t(c(e.source,a),e.xregexp.captureNames?e.xregexp.captureNames.slice(0):null):t(RegExp(e.source,a),null,!0)}function i(e,t){var n=e.length;if(Array.prototype.lastIndexOf)return e.lastIndexOf(t);for(;n--;)if(e[n]===t)return n;return-1}function a(e,t){return Object.prototype.toString.call(e).toLowerCase()==="[object "+t+"]"}function l(e){return e=e||{},"all"===e||e.all?e={natives:!0,extensibility:!0}:a(e,"string")&&(e=c.forEach(e,/[^\s,]+/,function(e){this[e]=!0},{})),e}function s(e,t,n,r){var i,a,l=m.length,s=null;R=!0;try{for(;l--;)if(a=m[l],!("all"!==a.scope&&a.scope!==n||a.trigger&&!a.trigger.call(r))&&(a.pattern.lastIndex=t,i=d.exec.call(a.pattern,e),i&&i.index===t)){s={output:a.handler.call(r,i,n),match:i};break}}catch(o){throw o}finally{R=!1}return s}function o(e){c.addToken=g[e?"on":"off"],f.extensibility=e}function u(e){RegExp.prototype.exec=(e?d:p).exec,RegExp.prototype.test=(e?d:p).test,String.prototype.match=(e?d:p).match,String.prototype.replace=(e?d:p).replace,String.prototype.split=(e?d:p).split,f.natives=e}var c,g,h,f={natives:!1,extensibility:!1},p={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},d={},x={},m=[],v="default",b="class",y={"default":/^(?:\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|c[A-Za-z]|[\s\S])|\(\?[:=!]|[?*+]\?|{\d+(?:,\d*)?}\??)/,"class":/^(?:\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|c[A-Za-z]|[\s\S]))/},w=/\$(?:{([\w$]+)}|(\d\d?|[\s\S]))/g,E=/([\s\S])(?=[\s\S]*\1)/g,N=/^(?:[?*+]|{\d+(?:,\d*)?})\??/,S=p.exec.call(/()??/,"")[1]===e,H=RegExp.prototype.sticky!==e,R=!1,T="gim"+(H?"y":"");return c=function(n,i){if(c.isRegExp(n)){if(i!==e)throw new TypeError("can't supply flags when constructing one RegExp from another");return r(n)}if(R)throw Error("can't call the XRegExp constructor within token definition functions");var a,l,o,u=[],g=v,h={hasNamedCapture:!1,captureNames:[],hasFlag:function(e){return i.indexOf(e)>-1}},f=0;if(n=n===e?"":n+"",i=i===e?"":i+"",p.match.call(i,E))throw new SyntaxError("invalid duplicate regular expression flag");for(n=p.replace.call(n,/^\(\?([\w$]+)\)/,function(e,t){if(p.test.call(/[gy]/,t))throw new SyntaxError("can't use flag g or y in mode modifier");return i=p.replace.call(i+t,E,""),""}),c.forEach(i,/[\s\S]/,function(e){if(0>T.indexOf(e[0]))throw new SyntaxError("invalid regular expression flag "+e[0])});n.length>f;)a=s(n,f,g,h),a?(u.push(a.output),f+=a.match[0].length||1):(l=p.exec.call(y[g],n.slice(f)),l?(u.push(l[0]),f+=l[0].length):(o=n.charAt(f),"["===o?g=b:"]"===o&&(g=v),u.push(o),++f));return t(RegExp(u.join(""),p.replace.call(i,/[^gimy]+/g,"")),h.hasNamedCapture?h.captureNames:null)},g={on:function(e,t,n){n=n||{},e&&m.push({pattern:r(e,"g"+(H?"y":"")),handler:t,scope:n.scope||v,trigger:n.trigger||null}),n.customFlags&&(T=p.replace.call(T+n.customFlags,E,""))},off:function(){throw Error("extensibility must be installed before using addToken")}},c.addToken=g.off,c.cache=function(e,t){var n=e+"/"+(t||"");return x[n]||(x[n]=c(e,t))},c.escape=function(e){return p.replace.call(e,/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},c.exec=function(e,t,n,i){var a,l=r(t,"g"+(i&&H?"y":""),i===!1?"y":"");return l.lastIndex=n=n||0,a=d.exec.call(l,e),i&&a&&a.index!==n&&(a=null),t.global&&(t.lastIndex=a?l.lastIndex:0),a},c.forEach=function(e,t,n,r){for(var i,a=0,l=-1;i=c.exec(e,t,a);)n.call(r,i,++l,e,t),a=i.index+(i[0].length||1);return r},c.globalize=function(e){return r(e,"g")},c.install=function(e){e=l(e),!f.natives&&e.natives&&u(!0),!f.extensibility&&e.extensibility&&o(!0)},c.isInstalled=function(e){return!!f[e]},c.isRegExp=function(e){return a(e,"regexp")},c.matchChain=function(e,t){return function n(e,r){var i,a=t[r].regex?t[r]:{regex:t[r]},l=[],s=function(e){l.push(a.backref?e[a.backref]||"":e[0])};for(i=0;e.length>i;++i)c.forEach(e[i],a.regex,s);return r!==t.length-1&&l.length?n(l,r+1):l}([e],0)},c.replace=function(t,n,i,a){var l,s=c.isRegExp(n),o=n;return s?(a===e&&n.global&&(a="all"),o=r(n,"all"===a?"g":"","all"===a?"":"g")):"all"===a&&(o=RegExp(c.escape(n+""),"g")),l=d.replace.call(t+"",o,i),s&&n.global&&(n.lastIndex=0),l},c.split=function(e,t,n){return d.split.call(e,t,n)},c.test=function(e,t,n,r){return!!c.exec(e,t,n,r)},c.uninstall=function(e){e=l(e),f.natives&&e.natives&&u(!1),f.extensibility&&e.extensibility&&o(!1)},c.union=function(e,t){var n,r,i,l,s=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*]/g,o=0,u=function(e,t,i){var a=r[o-n];if(t){if(++o,a)return"(?<"+a+">"}else if(i)return"\\"+(+i+n);return e},g=[];if(!a(e,"array")||!e.length)throw new TypeError("patterns must be a nonempty array");for(l=0;e.length>l;++l)i=e[l],c.isRegExp(i)?(n=o,r=i.xregexp&&i.xregexp.captureNames||[],g.push(c(i.source).source.replace(s,u))):g.push(c.escape(i));return c(g.join("|"),t)},c.version="2.0.0",d.exec=function(t){var r,a,l,s,o;if(this.global||(s=this.lastIndex),r=p.exec.apply(this,arguments)){if(!S&&r.length>1&&i(r,"")>-1&&(l=RegExp(this.source,p.replace.call(n(this),"g","")),p.replace.call((t+"").slice(r.index),l,function(){var t;for(t=1;arguments.length-2>t;++t)arguments[t]===e&&(r[t]=e)})),this.xregexp&&this.xregexp.captureNames)for(o=1;r.length>o;++o)a=this.xregexp.captureNames[o-1],a&&(r[a]=r[o]);this.global&&!r[0].length&&this.lastIndex>r.index&&(this.lastIndex=r.index)}return this.global||(this.lastIndex=s),r},d.test=function(e){return!!d.exec.call(this,e)},d.match=function(e){if(c.isRegExp(e)){if(e.global){var t=p.match.apply(this,arguments);return e.lastIndex=0,t}}else e=RegExp(e);return d.exec.call(e,this)},d.replace=function(e,t){var n,r,l,s,o=c.isRegExp(e);return o?(e.xregexp&&(n=e.xregexp.captureNames),e.global||(s=e.lastIndex)):e+="",a(t,"function")?r=p.replace.call(this+"",e,function(){var r,i=arguments;if(n)for(i[0]=new String(i[0]),r=0;n.length>r;++r)n[r]&&(i[0][n[r]]=i[r+1]);return o&&e.global&&(e.lastIndex=i[i.length-2]+i[0].length),t.apply(null,i)}):(l=this+"",r=p.replace.call(l,e,function(){var e=arguments;return p.replace.call(t+"",w,function(t,r,a){var l;if(r){if(l=+r,e.length-3>=l)return e[l]||"";if(l=n?i(n,r):-1,0>l)throw new SyntaxError("backreference to undefined group "+t);return e[l+1]||""}if("$"===a)return"$";if("&"===a||0===+a)return e[0];if("`"===a)return e[e.length-1].slice(0,e[e.length-2]);if("'"===a)return e[e.length-1].slice(e[e.length-2]+e[0].length);if(a=+a,!isNaN(a)){if(a>e.length-3)throw new SyntaxError("backreference to undefined group "+t);return e[a]||""}throw new SyntaxError("invalid token "+t)})})),o&&(e.lastIndex=e.global?0:s),r},d.split=function(t,n){if(!c.isRegExp(t))return p.split.apply(this,arguments);var r,i=this+"",a=t.lastIndex,l=[],s=0;return n=(n===e?-1:n)>>>0,c.forEach(i,t,function(e){e.index+e[0].length>s&&(l.push(i.slice(s,e.index)),e.length>1&&e.index<i.length&&Array.prototype.push.apply(l,e.slice(1)),r=e[0].length,s=e.index+r)}),s===i.length?(!p.test.call(t,"")||r)&&l.push(""):l.push(i.slice(s)),t.lastIndex=a,l.length>n?l.slice(0,n):l},h=g.on,h(/\\([ABCE-RTUVXYZaeg-mopqyz]|c(?![A-Za-z])|u(?![\dA-Fa-f]{4})|x(?![\dA-Fa-f]{2}))/,function(e,t){if("B"===e[1]&&t===v)return e[0];throw new SyntaxError("invalid escape "+e[0])},{scope:"all"}),h(/\[(\^?)]/,function(e){return e[1]?"[\\s\\S]":"\\b\\B"}),h(/(?:\(\?#[^)]*\))+/,function(e){return p.test.call(N,e.input.slice(e.index+e[0].length))?"":"(?:)"}),h(/\\k<([\w$]+)>/,function(e){var t=isNaN(e[1])?i(this.captureNames,e[1])+1:+e[1],n=e.index+e[0].length;if(!t||t>this.captureNames.length)throw new SyntaxError("backreference to undefined group "+e[0]);return"\\"+t+(n===e.input.length||isNaN(e.input.charAt(n))?"":"(?:)")}),h(/(?:\s+|#.*)+/,function(e){return p.test.call(N,e.input.slice(e.index+e[0].length))?"":"(?:)"},{trigger:function(){return this.hasFlag("x")},customFlags:"x"}),h(/\./,function(){return"[\\s\\S]"},{trigger:function(){return this.hasFlag("s")},customFlags:"s"}),h(/\(\?P?<([\w$]+)>/,function(e){if(!isNaN(e[1]))throw new SyntaxError("can't use integer as capture name "+e[0]);return this.captureNames.push(e[1]),this.hasNamedCapture=!0,"("}),h(/\\(\d+)/,function(e,t){if(!(t===v&&/^[1-9]/.test(e[1])&&+e[1]<=this.captureNames.length)&&"0"!==e[1])throw new SyntaxError("can't use octal escape or backreference to undefined group "+e[0]);return e[0]},{scope:"all"}),h(/\((?!\?)/,function(){return this.hasFlag("n")?"(?:":(this.captureNames.push(null),"(")},{customFlags:"n"}),"undefined"!=typeof exports&&(exports.XRegExp=c),c}(),SyntaxHighlighter===void 0)var SyntaxHighlighter=function(){function e(e){return document.createElement("div").appendChild(document.createTextNode(e)).parentNode.innerHTML.replace(/"/g,"&quot;")}function t(e,t){return-1!=e.className.indexOf(t)}function n(e,n){t(e,n)||(e.className+=" "+n)}function r(e,t){e.className=e.className.replace(t,"")}function i(e){for(var t=[],n=0,r=e.length;r>n;n++)t.push(e[n]);return t}function a(e){return e.split(/\r?\n/)}function l(e){var t="highlighter_";return 0==e.indexOf(t)?e:t+e}function s(e){return B.vars.highlighters[l(e)]}function o(e){return document.getElementById(l(e))}function u(e){B.vars.highlighters[l(e.id)]=e}function c(e,t,n){if(null==e)return null;var r,i,a=1!=n?e.childNodes:[e.parentNode],l={"#":"id",".":"className"}[t.substr(0,1)]||"nodeName";if(r="nodeName"!=l?t.substr(1):t.toUpperCase(),-1!=(e[l]||"").indexOf(r))return e;for(var s=0,o=a.length;a&&o>s&&null==i;s++)i=c(a[s],t,n);return i}function g(e,t){return c(e,t,!0)}function h(e,t,n){n=Math.max(n||0,0);for(var r=n,i=e.length;i>r;r++)if(e[r]==t)return r;return-1}function f(e){return(e||"")+(""+Math.round(1e6*Math.random()))}function p(e,t){var n,r={};for(n in e)r[n]=e[n];for(n in t)r[n]=t[n];return r}function d(e){var t={"true":!0,"false":!1}[e];return null==t?e:t}function x(e,t,n,r,i){var a=(screen.width-n)/2,l=(screen.height-r)/2;i+=", left="+a+", top="+l+", width="+n+", height="+r,i=i.replace(/^,/,"");var s=window.open(e,t,i);return s.focus(),s}function m(e,t,n,r){function i(e){e=e||window.event,e.target||(e.target=e.srcElement,e.preventDefault=function(){this.returnValue=!1}),n.call(r||window,e)}e.attachEvent?e.attachEvent("on"+t,i):e.addEventListener(t,i,!1)}function v(e){window.alert(B.config.strings.alert+e)}function b(e,t){var n=B.vars.discoveredBrushes,r=null;if(null==n){n={};for(var i in B.brushes){var a=B.brushes[i],l=a.aliases;if(null!=l){a.brushName=i.toLowerCase();for(var s=0,o=l.length;o>s;s++)n[l[s]]=i}}B.vars.discoveredBrushes=n}return r=B.brushes[n[e]],null==r&&t&&v(B.config.strings.noBrush+e),r}function y(e,t){for(var n=a(e),r=0,i=n.length;i>r;r++)n[r]=t(n[r],r);return n.join("\r\n")}function w(e){return e.replace(/^[ ]*[\n]+|[\n]*[ ]*$/g,"")}function E(e){for(var t,n={},r=XRegExp("^\\[(?<values>(.*?))\\]$"),i=0,a=XRegExp("(?<name>[\\w-]+)\\s*:\\s*(?<value>[\\w%#-]+|\\[.*?\\]|\".*?\"|'.*?')\\s*;?","g");null!=(t=XRegExp.exec(e,a,i));){var l=t.value.replace(/^['"]|['"]$/g,"");if(null!=l&&r.test(l)){var s=XRegExp.exec(l,r);l=s.values.length>0?s.values.split(/\s*,\s*/):[]}n[t.name]=l,i=t.index+t[0].length}return n}function N(e,t){return null==e||0==e.length||"\n"==e?e:(e=e.replace(/</g,"&lt;"),e=e.replace(/ {2,}/g,function(e){for(var t="",n=0,r=e.length;r-1>n;n++)t+=B.config.space;return t+" "}),null!=t&&(e=y(e,function(e){if(0==e.length)return"";var n="";return e=e.replace(/^(&nbsp;| )+/,function(e){return n=e,""}),0==e.length?n:n+'<code class="'+t+'">'+e+"</code>"})),e)}function S(e,t){for(var n=""+e;t>n.length;)n="0"+n;return n}function H(e,t){for(var n="",r=0;t>r;r++)n+=" ";return e.replace(/\t/g,n)}function R(e,t){function n(e,t,n){return e.substr(0,t)+i.substr(0,n)+e.substr(t+1,e.length)}for(var r=(a(e)," "),i="",l=0;50>l;l++)i+=" ";return e=y(e,function(e){if(-1==e.indexOf(r))return e;for(var i=0;-1!=(i=e.indexOf(r));){var a=t-i%t;e=n(e,i,a)}return e})}function T(e){var t=/<br\s*\/?>|&lt;br\s*\/?&gt;/gi;return 1==B.config.bloggerMode&&(e=e.replace(t,"\n")),1==B.config.stripBrs&&(e=e.replace(t,"")),e}function C(e){return e.replace(/^\s+|\s+$/g,"")}function P(e){for(var t=a(T(e)),n=/^\s*/,r=1e3,i=0,l=t.length;l>i&&r>0;i++){var s=t[i];if(0!=C(s).length){var o=n.exec(s);if(null==o)return e;r=Math.min(o[0].length,r)}}if(r>0)for(var i=0,l=t.length;l>i;i++)t[i]=t[i].substr(r);return t.join("\n")}function k(e,t){return e.index<t.index?-1:e.index>t.index?1:e.length<t.length?-1:e.length>t.length?1:0}function L(e,t){function n(e){return e[0]}var r=null,i=[],a=t.func?t.func:n;for(pos=0;null!=(r=XRegExp.exec(e,t.regex,pos));){var l=a(r,t);"string"==typeof l&&(l=[new B.Match(l,r.index,t.css)]),i=i.concat(l),pos=r.index+r[0].length}return i}function I(e){var t=/(.*)((&gt;|&lt;).*)/;return e.replace(B.regexLib.url,function(e){var n="",r=null;return(r=t.exec(e))&&(e=r[1],n=r[2]),'<a href="'+e+'">'+e+"</a>"+n})}function A(){for(var e=document.getElementsByTagName("script"),t=[],n=0,r=e.length;r>n;n++)"syntaxhighlighter"==e[n].type&&t.push(e[n]);return t}function M(e){var t="<![CDATA[",n="]]>",r=C(e),i=!1,a=t.length,l=n.length;0==r.indexOf(t)&&(r=r.substring(a),i=!0);var s=r.length;return r.indexOf(n)==s-l&&(r=r.substring(0,s-l),i=!0),i?r:e}function X(e){var t,i=e.target,a=g(i,".syntaxhighlighter"),l=g(i,".container"),o=document.createElement("textarea");if(l&&a&&!c(l,"textarea")){t=s(a.id),n(a,"source");for(var u=l.childNodes,h=[],f=0,p=u.length;p>f;f++)h.push(u[f].innerText||u[f].textContent);h=h.join("\r"),h=h.replace(/\u00a0/g," "),o.appendChild(document.createTextNode(h)),l.appendChild(o),o.focus(),o.select(),m(o,"blur",function(){o.parentNode.removeChild(o),r(a,"source")})}}"undefined"!=typeof require&&XRegExp===void 0&&(XRegExp=require("xregexp").XRegExp);var B={defaults:{"class-name":"","first-line":1,"pad-line-numbers":!1,highlight:null,title:null,"smart-tabs":!0,"tab-size":4,gutter:!0,toolbar:!0,"quick-code":!0,collapse:!1,"auto-links":!0,light:!1,unindent:!0,"html-script":!1},config:{space:"&nbsp;",useScriptTags:!0,bloggerMode:!1,stripBrs:!1,tagName:"pre",strings:{expandSource:"expand source",help:"?",alert:"SyntaxHighlighter\n\n",noBrush:"Can't find brush for: ",brushNotHtmlScript:"Brush wasn't configured for html-script option: ",aboutDialog:'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>About SyntaxHighlighter</title></head><body style="font-family:Geneva,Arial,Helvetica,sans-serif;background-color:#fff;color:#000;font-size:1em;text-align:center;"><div style="text-align:center;margin-top:1.5em;"><div style="font-size:xx-large;">SyntaxHighlighter</div><div style="font-size:.75em;margin-bottom:3em;"><div>version 3.0.83 (Wed, 16 Apr 2014 03:56:09 GMT)</div><div><a href="http://alexgorbatchev.com/SyntaxHighlighter" target="_blank" style="color:#005896">http://alexgorbatchev.com/SyntaxHighlighter</a></div><div>JavaScript code syntax highlighter.</div><div>Copyright 2004-2013 Alex Gorbatchev.</div></div><div>If you like this script, please <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2930402" style="color:#005896">donate</a> to <br/>keep development active!</div></div></body></html>'}},vars:{discoveredBrushes:null,highlighters:{}},brushes:{},regexLib:{multiLineCComments:XRegExp("/\\*.*?\\*/","gs"),singleLineCComments:/\/\/.*$/gm,singleLinePerlComments:/#.*$/gm,doubleQuotedString:/"([^\\"\n]|\\.)*"/g,singleQuotedString:/'([^\\'\n]|\\.)*'/g,multiLineDoubleQuotedString:XRegExp('"([^\\\\"]|\\\\.)*"',"gs"),multiLineSingleQuotedString:XRegExp("'([^\\\\']|\\\\.)*'","gs"),xmlComments:XRegExp("(&lt;|<)!--.*?--(&gt;|>)","gs"),url:/\w+:\/\/[\w-.\/?%&=:@;#]*/g,phpScriptTags:{left:/(&lt;|<)\?(?:=|php)?/g,right:/\?(&gt;|>)/g,eof:!0},aspScriptTags:{left:/(&lt;|<)%=?/g,right:/%(&gt;|>)/g},scriptScriptTags:{left:/(&lt;|<)\s*script.*?(&gt;|>)/gi,right:/(&lt;|<)\/\s*script\s*(&gt;|>)/gi}},toolbar:{getHtml:function(e){function t(e,t){return B.toolbar.getButtonHtml(e,t,B.config.strings[t])}for(var n='<div class="toolbar">',r=B.toolbar.items,i=r.list,a=0,l=i.length;l>a;a++)n+=(r[i[a]].getHtml||t)(e,i[a]);return n+="</div>"},getButtonHtml:function(t,n,r){return n=e(n),'<span><a href="#" class="toolbar_item command_'+n+" "+n+'">'+e(r)+"</a></span>"},handler:function(e){function t(e){var t=RegExp(e+"_(\\w+)"),n=t.exec(r);return n?n[1]:null}var n=e.target,r=n.className||"",i=s(g(n,".syntaxhighlighter").id),a=t("command");i&&a&&B.toolbar.items[a].execute(i),e.preventDefault()},items:{list:["expandSource","help"],expandSource:{getHtml:function(e){if(1!=e.getParam("collapse"))return"";var t=e.getParam("title");return B.toolbar.getButtonHtml(e,"expandSource",t?t:B.config.strings.expandSource)},execute:function(e){var t=o(e.id);r(t,"collapsed")}},help:{execute:function(){var e=x("","_blank",500,250,"scrollbars=0"),t=e.document;t.write(B.config.strings.aboutDialog),t.close(),e.focus()}}}},findElements:function(e,t){var n=t?[t]:i(document.getElementsByTagName(B.config.tagName)),r=B.config,a=[];if(r.useScriptTags&&(n=n.concat(A())),0===n.length)return a;for(var l=0,s=n.length;s>l;l++){var o={target:n[l],params:p(e,E(n[l].className))};null!=o.params.brush&&a.push(o)}return a},highlight:function(e,t){var n=this.findElements(e,t),r="innerHTML",i=null,a=B.config;if(0!==n.length)for(var l=0,s=n.length;s>l;l++){var o,t=n[l],u=t.target,c=t.params,g=c.brush;if(null!=g){if("true"==c["html-script"]||1==B.defaults["html-script"])i=new B.HtmlScript(g),g="htmlscript";else{var h=b(g);if(!h)continue;i=new h}o=u[r],a.useScriptTags&&(o=M(o)),""!=(u.title||"")&&(c.title=u.title),c.brush=g,i.init(c),t=i.getDiv(o),""!=(u.id||"")&&(t.id=u.id),u.parentNode.replaceChild(t,u)}}},all:function(e){m(window,"load",function(){B.highlight(e)})}};return B.Match=function(e,t,n){this.value=e,this.index=t,this.length=e.length,this.css=n,this.brushName=null},B.Match.prototype.toString=function(){return this.value},B.HtmlScript=function(e){function t(e,t){for(var n=0,r=e.length;r>n;n++)e[n].index+=t}function n(e){for(var n,a=e.code,l=[],s=r.regexList,o=e.index+e.left.length,u=r.htmlScript,c=0,g=s.length;g>c;c++)n=L(a,s[c]),t(n,o),l=l.concat(n);null!=u.left&&null!=e.left&&(n=L(e.left,u.left),t(n,e.index),l=l.concat(n)),null!=u.right&&null!=e.right&&(n=L(e.right,u.right),t(n,e.index+e[0].lastIndexOf(e.right)),l=l.concat(n));for(var h=0,g=l.length;g>h;h++)l[h].brushName=i.brushName;return l}var r,i=b(e),a=new B.brushes.Xml,l=this,s="getDiv getHtml init".split(" ");if(null!=i){r=new i;for(var o=0,u=s.length;u>o;o++)(function(){var e=s[o];l[e]=function(){return a[e].apply(a,arguments)}})();return null==r.htmlScript?(v(B.config.strings.brushNotHtmlScript+e),void 0):(a.regexList.push({regex:r.htmlScript.code,func:n}),void 0)}},B.Highlighter=function(){},B.Highlighter.prototype={getParam:function(e,t){var n=this.params[e];return d(null==n?t:n)},create:function(e){return document.createElement(e)},findMatches:function(e,t){var n=[];if(null!=e)for(var r=0,i=e.length;i>r;r++)"object"==typeof e[r]&&(n=n.concat(L(t,e[r])));return this.removeNestedMatches(n.sort(k))},removeNestedMatches:function(e){for(var t=0,n=e.length;n>t;t++)if(null!==e[t])for(var r=e[t],i=r.index+r.length,a=t+1,n=e.length;n>a&&null!==e[t];a++){var l=e[a];if(null!==l){if(l.index>i)break;l.index==r.index&&l.length>r.length?e[t]=null:l.index>=r.index&&i>l.index&&(e[a]=null)}}return e},figureOutLineNumbers:function(e){var t=[],n=parseInt(this.getParam("first-line"));return y(e,function(e,r){t.push(r+n)}),t},isLineHighlighted:function(e){var t=this.getParam("highlight",[]);return"object"!=typeof t&&null==t.push&&(t=[t]),-1!=h(t,""+e)},getLineHtml:function(e,t,n){var r=["line","number"+t,"index"+e,"alt"+(""+(0==t%2?1:2))];return this.isLineHighlighted(t)&&r.push("highlighted"),0==t&&r.push("break"),'<div class="'+r.join(" ")+'">'+n+"</div>"},getLineNumbersHtml:function(e,t){var n="",r=a(e).length,i=parseInt(this.getParam("first-line")),l=this.getParam("pad-line-numbers");1==l?l=(""+(i+r-1)).length:1==isNaN(l)&&(l=0);for(var s=0;r>s;s++){var o=t?t[s]:i+s,e=0==o?B.config.space:S(o,l);n+=this.getLineHtml(s,o,e)}return n},getCodeLinesHtml:function(e,t){e=C(e);for(var n=a(e),r=(this.getParam("pad-line-numbers"),parseInt(this.getParam("first-line"))),e="",i=this.getParam("brush"),l=0,s=n.length;s>l;l++){var o=n[l],u=/^(&nbsp;|\s)+/.exec(o),c=null,g=t?t[l]:r+l;null!=u&&(c=""+u[0],o=o.substr(c.length),c=c.replace(" ",B.config.space)),o=C(o),0==o.length&&(o=B.config.space),e+=this.getLineHtml(l,g,(null!=c?'<code class="'+i+' spaces">'+c+"</code>":"")+o)}return e},getTitleHtml:function(t){return t?"<caption>"+e(t)+"</caption>":""},getMatchesHtml:function(e,t){function n(e){var t=e?e.brushName||a:a;return t?t+" ":""}for(var r=0,i="",a=this.getParam("brush",""),l=0,s=t.length;s>l;l++){var o,u=t[l];null!==u&&0!==u.length&&(o=n(u),i+=N(e.substr(r,u.index-r),o+"plain")+N(u.value,o+u.css),r=u.index+u.length+(u.offset||0))}return i+=N(e.substr(r),n()+"plain")},getHtml:function(t){var n,r,i,a="",s=["syntaxhighlighter"];return 1==this.getParam("light")&&(this.params.toolbar=this.params.gutter=!1),className="syntaxhighlighter",1==this.getParam("collapse")&&s.push("collapsed"),0==(gutter=this.getParam("gutter"))&&s.push("nogutter"),s.push(this.getParam("class-name")),s.push(this.getParam("brush")),t=w(t).replace(/\r/g," "),n=this.getParam("tab-size"),t=1==this.getParam("smart-tabs")?R(t,n):H(t,n),this.getParam("unindent")&&(t=P(t)),gutter&&(i=this.figureOutLineNumbers(t)),r=this.findMatches(this.regexList,t),a=this.getMatchesHtml(t,r),a=this.getCodeLinesHtml(a,i),this.getParam("auto-links")&&(a=I(a)),"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.match(/MSIE/)&&s.push("ie"),a='<div id="'+l(this.id)+'" class="'+e(s.join(" "))+'">'+(this.getParam("toolbar")?B.toolbar.getHtml(this):"")+'<table border="0" cellpadding="0" cellspacing="0">'+this.getTitleHtml(this.getParam("title"))+"<tbody>"+"<tr>"+(gutter?'<td class="gutter">'+this.getLineNumbersHtml(t)+"</td>":"")+'<td class="code">'+'<div class="container">'+a+"</div>"+"</td>"+"</tr>"+"</tbody>"+"</table>"+"</div>"},getDiv:function(e){null===e&&(e=""),this.code=e;var t=this.create("div");return t.innerHTML=this.getHtml(e),this.getParam("toolbar")&&m(c(t,".toolbar"),"click",B.toolbar.handler),this.getParam("quick-code")&&m(c(t,".code"),"dblclick",X),t},init:function(e){this.id=f(),u(this),this.params=p(B.defaults,e||{}),1==this.getParam("light")&&(this.params.toolbar=this.params.gutter=!1)},getKeywords:function(e){return e=e.replace(/^\s+|\s+$/g,"").replace(/\s+/g,"|"),"\\b(?:"+e+")\\b"},forHtmlScript:function(e){var t={end:e.right.source};e.eof&&(t.end="(?:(?:"+t.end+")|$)"),this.htmlScript={left:{regex:e.left,css:"script"},right:{regex:e.right,css:"script"},code:XRegExp("(?<left>"+e.left.source+")"+"(?<code>.*?)"+"(?<right>"+t.end+")","sgi")}}},B}();"undefined"!=typeof exports?exports.SyntaxHighlighter=SyntaxHighlighter:null;
syntaxhighlighter3/scripts/shLegacy.js CHANGED
@@ -1,17 +1,157 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/SyntaxHighlighter
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
- *
8
- * @version
9
- * 3.0.83 (July 02 2010)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2010 Alex Gorbatchev.
13
- *
14
- * @license
15
- * Dual licensed under the MIT and GPL licenses.
16
- */
17
- 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}('3 u={8:{}};u.8={A:4(c,k,l,m,n,o){4 d(a,b){2 a!=1?a:b}4 f(a){2 a!=1?a.E():1}c=c.I(":");3 g=c[0],e={};t={"r":K};M=1;5=8.5;9(3 j R c)e[c[j]]="r";k=f(d(k,5.C));l=f(d(l,5.D));m=f(d(m,5.s));o=f(d(o,5.Q));n=f(d(n,5["x-y"]));2{P:g,C:d(t[e.O],k),D:d(t[e.N],l),s:d({"r":r}[e.s],m),"x-y":d(4(a,b){9(3 h=T S("^"+b+"\\\\[(?<q>\\\\w+)\\\\]$","U"),i=1,p=0;p<a.7;p++)6((i=h.J(a[p]))!=1)2 i.q;2 1}(c,"G"),n)}},F:4(c,k,l,m,n,o){4 d(){9(3 a=H,b=0;b<a.7;b++)6(a[b]!==1){6(z a[b]=="L"&&a[b]!="")2 a[b]+"";6(z a[b]=="X"&&a[b].q!="")2 a[b].q+""}2 1}4 f(a,b,h){h=12.13(h);9(3 i=0;i<h.7;i++)h[i].V("15")==b&&a.Y(h[i])}3 g=[];f(g,c,"Z");f(g,c,"W");6(g.7!==0)9(c=0;c<g.7;c++){3 e=g[c],j=d(e.B["14"],e.10,e.B.v,e.v);6(j!==1){j=u.8.A(j,k,l,m,n,o);8.11(j,e)}}}};',62,68,'|null|return|var|function|defaults|if|length|SyntaxHighlighter|for|||||||||||||||||value|true|collapse|reverse|dp|language||first|line|typeof|parseParams|attributes|gutter|toolbar|toString|HighlightAll|firstline|arguments|split|exec|false|string|result|nocontrols|nogutter|brush|ruler|in|XRegExp|new|gi|getAttribute|textarea|object|push|pre|className|highlight|document|getElementsByTagName|class|name'.split('|'),0,{}))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (Wed, 16 Apr 2014 03:56:09 GMT)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2013 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ var dp = {
18
+ SyntaxHighlighter : {}
19
+ };
20
+
21
+ dp.SyntaxHighlighter = {
22
+ parseParams: function(
23
+ input,
24
+ showGutter,
25
+ showControls,
26
+ collapseAll,
27
+ firstLine,
28
+ showColumns
29
+ )
30
+ {
31
+ function getValue(list, name)
32
+ {
33
+ var regex = XRegExp('^' + name + '\\[(?<value>\\w+)\\]$', 'gi'),
34
+ match = null
35
+ ;
36
+
37
+ for (var i = 0; i < list.length; i++)
38
+ if ((match = XRegExp.exec(list[i], regex)) != null)
39
+ return match.value;
40
+
41
+ return null;
42
+ };
43
+
44
+ function defaultValue(value, def)
45
+ {
46
+ return value != null ? value : def;
47
+ };
48
+
49
+ function asString(value)
50
+ {
51
+ return value != null ? value.toString() : null;
52
+ };
53
+
54
+ var parts = input.split(':'),
55
+ brushName = parts[0],
56
+ options = {},
57
+ straight = { 'true' : true }
58
+ reverse = { 'true' : false },
59
+ result = null,
60
+ defaults = SyntaxHighlighter.defaults
61
+ ;
62
+
63
+ for (var i in parts)
64
+ options[parts[i]] = 'true';
65
+
66
+ showGutter = asString(defaultValue(showGutter, defaults.gutter));
67
+ showControls = asString(defaultValue(showControls, defaults.toolbar));
68
+ collapseAll = asString(defaultValue(collapseAll, defaults.collapse));
69
+ showColumns = asString(defaultValue(showColumns, defaults.ruler));
70
+ firstLine = asString(defaultValue(firstLine, defaults['first-line']));
71
+
72
+ return {
73
+ brush : brushName,
74
+ gutter : defaultValue(reverse[options.nogutter], showGutter),
75
+ toolbar : defaultValue(reverse[options.nocontrols], showControls),
76
+ collapse : defaultValue(straight[options.collapse], collapseAll),
77
+ // ruler : defaultValue(straight[options.showcolumns], showColumns),
78
+ 'first-line' : defaultValue(getValue(parts, 'firstline'), firstLine)
79
+ };
80
+ },
81
+
82
+ HighlightAll: function(
83
+ name,
84
+ showGutter /* optional */,
85
+ showControls /* optional */,
86
+ collapseAll /* optional */,
87
+ firstLine /* optional */,
88
+ showColumns /* optional */
89
+ )
90
+ {
91
+ function findValue()
92
+ {
93
+ var a = arguments;
94
+
95
+ for (var i = 0; i < a.length; i++)
96
+ {
97
+ if (a[i] === null)
98
+ continue;
99
+
100
+ if (typeof(a[i]) == 'string' && a[i] != '')
101
+ return a[i] + '';
102
+
103
+ if (typeof(a[i]) == 'object' && a[i].value != '')
104
+ return a[i].value + '';
105
+ }
106
+
107
+ return null;
108
+ };
109
+
110
+ function findTagsByName(list, name, tagName)
111
+ {
112
+ var tags = document.getElementsByTagName(tagName);
113
+
114
+ for (var i = 0; i < tags.length; i++)
115
+ if (tags[i].getAttribute('name') == name)
116
+ list.push(tags[i]);
117
+ }
118
+
119
+ var elements = [],
120
+ highlighter = null,
121
+ registered = {},
122
+ propertyName = 'innerHTML'
123
+ ;
124
+
125
+ // for some reason IE doesn't find <pre/> by name, however it does see them just fine by tag name...
126
+ findTagsByName(elements, name, 'pre');
127
+ findTagsByName(elements, name, 'textarea');
128
+
129
+ if (elements.length === 0)
130
+ return;
131
+
132
+ for (var i = 0; i < elements.length; i++)
133
+ {
134
+ var element = elements[i],
135
+ params = findValue(
136
+ element.attributes['class'], element.className,
137
+ element.attributes['language'], element.language
138
+ ),
139
+ language = ''
140
+ ;
141
+
142
+ if (params === null)
143
+ continue;
144
+
145
+ params = dp.SyntaxHighlighter.parseParams(
146
+ params,
147
+ showGutter,
148
+ showControls,
149
+ collapseAll,
150
+ firstLine,
151
+ showColumns
152
+ );
153
+
154
+ SyntaxHighlighter.highlight(params, element);
155
+ }
156
+ }
157
+ };
syntaxhighlighter3/styles/shCore.css CHANGED
@@ -82,6 +82,7 @@
82
  white-space: pre !important;
83
  }
84
  .syntaxhighlighter table {
 
85
  width: 100% !important;
86
  }
87
  .syntaxhighlighter table caption {
82
  white-space: pre !important;
83
  }
84
  .syntaxhighlighter table {
85
+ table-layout: auto !important;
86
  width: 100% !important;
87
  }
88
  .syntaxhighlighter table caption {