SyntaxHighlighter Evolved - Version 3.1.0

Version Description

Download this release

Release Info

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

Code changes from version 3.0.0 to 3.1.0

Files changed (45) hide show
  1. localization/syntaxhighlighter-it_IT.mo +0 -0
  2. localization/syntaxhighlighter-it_IT.po +127 -103
  3. readme.txt +10 -0
  4. syntaxhighlighter.php +207 -133
  5. syntaxhighlighter2/LGPLv3.txt +165 -0
  6. syntaxhighlighter2/scripts/clipboard.swf +0 -0
  7. syntaxhighlighter2/scripts/shBrushAS3.js +61 -0
  8. syntaxhighlighter2/scripts/shBrushBash.js +66 -0
  9. syntaxhighlighter2/scripts/shBrushCSharp.js +67 -0
  10. syntaxhighlighter2/scripts/shBrushColdFusion.js +102 -0
  11. syntaxhighlighter2/scripts/shBrushCpp.js +99 -0
  12. syntaxhighlighter2/scripts/shBrushCss.js +93 -0
  13. syntaxhighlighter2/scripts/shBrushDelphi.js +57 -0
  14. syntaxhighlighter2/scripts/shBrushDiff.js +43 -0
  15. syntaxhighlighter2/scripts/shBrushErlang.js +54 -0
  16. syntaxhighlighter2/scripts/shBrushGroovy.js +69 -0
  17. syntaxhighlighter2/scripts/shBrushJScript.js +52 -0
  18. syntaxhighlighter2/scripts/shBrushJava.js +59 -0
  19. syntaxhighlighter2/scripts/shBrushJavaFX.js +60 -0
  20. syntaxhighlighter2/scripts/shBrushPerl.js +74 -0
  21. syntaxhighlighter2/scripts/shBrushPhp.js +91 -0
  22. syntaxhighlighter2/scripts/shBrushPlain.js +35 -0
  23. syntaxhighlighter2/scripts/shBrushPowerShell.js +76 -0
  24. syntaxhighlighter2/scripts/shBrushPython.js +66 -0
  25. syntaxhighlighter2/scripts/shBrushRuby.js +57 -0
  26. syntaxhighlighter2/scripts/shBrushScala.js +53 -0
  27. syntaxhighlighter2/scripts/shBrushSql.js +68 -0
  28. syntaxhighlighter2/scripts/shBrushVb.js +58 -0
  29. syntaxhighlighter2/scripts/shBrushXml.js +71 -0
  30. syntaxhighlighter2/scripts/shCore.js +30 -0
  31. syntaxhighlighter2/scripts/shLegacy.js +30 -0
  32. syntaxhighlighter2/styles/help.png +0 -0
  33. syntaxhighlighter2/styles/magnifier.png +0 -0
  34. syntaxhighlighter2/styles/page_white_code.png +0 -0
  35. syntaxhighlighter2/styles/page_white_copy.png +0 -0
  36. syntaxhighlighter2/styles/printer.png +0 -0
  37. syntaxhighlighter2/styles/shCore.css +336 -0
  38. syntaxhighlighter2/styles/shThemeDefault.css +177 -0
  39. syntaxhighlighter2/styles/shThemeDjango.css +176 -0
  40. syntaxhighlighter2/styles/shThemeEclipse.css +190 -0
  41. syntaxhighlighter2/styles/shThemeEmacs.css +175 -0
  42. syntaxhighlighter2/styles/shThemeFadeToGrey.css +177 -0
  43. syntaxhighlighter2/styles/shThemeMidnight.css +175 -0
  44. syntaxhighlighter2/styles/shThemeRDark.css +175 -0
  45. syntaxhighlighter3/styles/shCore.css +3 -2
localization/syntaxhighlighter-it_IT.mo CHANGED
Binary file
localization/syntaxhighlighter-it_IT.po CHANGED
@@ -6,87 +6,91 @@
6
  msgid ""
7
  msgstr ""
8
  "Project-Id-Version: SyntaxHighlighter Evolved in italiano\n"
9
- "Report-Msgid-Bugs-To: http://wordpress.org/tag/syntaxhighlighter\n"
10
- "POT-Creation-Date: 2009-11-16 23:05+0000\n"
11
- "PO-Revision-Date: 2009-11-17 13:55+0100\n"
12
- "Last-Translator: Gianni Diurno (aka gidibao) <gidibao@gmail.com>\n"
13
- "Language-Team: Gianni Diurno | http://gidibao.net/ <gidibao@gmail.com>\n"
14
  "MIME-Version: 1.0\n"
15
  "Content-Type: text/plain; charset=UTF-8\n"
16
  "Content-Transfer-Encoding: 8bit\n"
17
  "X-Poedit-Language: Italian\n"
18
  "X-Poedit-Country: ITALY\n"
 
 
 
 
19
 
20
- #: syntaxhighlighter.php:209
21
  msgid "Default"
22
  msgstr "Predefinito"
23
 
24
- #: syntaxhighlighter.php:210
25
  msgid "Django"
26
  msgstr "Django"
27
 
28
- #: syntaxhighlighter.php:211
29
  msgid "Eclipse"
30
  msgstr "Eclipse"
31
 
32
- #: syntaxhighlighter.php:212
33
  msgid "Emacs"
34
  msgstr "Emacs"
35
 
36
- #: syntaxhighlighter.php:213
37
  msgid "Fade to Grey"
38
  msgstr "Fade to Grey"
39
 
40
- #: syntaxhighlighter.php:214
41
  msgid "Midnight"
42
  msgstr "Midnight"
43
 
44
- #: syntaxhighlighter.php:215
45
  msgid "RDark"
46
  msgstr "RDark"
47
 
48
- #: syntaxhighlighter.php:216
49
  msgid "[None]"
50
  msgstr "[nessuno]"
51
 
52
- #: syntaxhighlighter.php:223
53
- #: syntaxhighlighter.php:845
54
  msgid "SyntaxHighlighter Settings"
55
  msgstr "Impostazioni SyntaxHighlighter"
56
 
57
- #: syntaxhighlighter.php:223
58
  msgid "SyntaxHighlighter"
59
  msgstr "SyntaxHighlighter"
60
 
61
- #: syntaxhighlighter.php:254
62
  msgid "Settings"
63
  msgstr "Impostazioni"
64
 
65
- #: syntaxhighlighter.php:542
66
  msgid "show source"
67
  msgstr "mostra sorgente"
68
 
69
- #: syntaxhighlighter.php:543
70
  msgid "view source"
71
  msgstr "vedi sorgente"
72
 
73
- #: syntaxhighlighter.php:544
74
  msgid "copy to clipboard"
75
  msgstr "copia negli appunti"
76
 
77
- #: syntaxhighlighter.php:545
78
  msgid "The code is in your clipboard now"
79
  msgstr "Il codice é da ora nei tuoi appunti"
80
 
81
- #: syntaxhighlighter.php:546
82
  msgid "print"
83
  msgstr "stampa"
84
 
85
- #: syntaxhighlighter.php:547
86
  msgid "?"
87
  msgstr "info"
88
 
89
- #: syntaxhighlighter.php:548
90
  msgid ""
91
  "SyntaxHighlighter\\n"
92
  "\\n"
@@ -94,244 +98,264 @@ msgstr ""
94
  "SyntaxHighlighter\\n"
95
  "\\n"
96
 
97
- #: syntaxhighlighter.php:549
98
  msgid "Can't find brush for: "
99
  msgstr "Non é stato possibile trovare il file di sintassi per: "
100
 
101
- #: syntaxhighlighter.php:550
102
  msgid "Brush wasn't configured for html-script option: "
103
  msgstr "Il file di sintassi non é stato configurato per l'opzione html-script"
104
 
105
- #: syntaxhighlighter.php:833
106
  msgid "Are you sure you want to reset your settings to the defaults?"
107
  msgstr "Sei certo di volere ripristinare le impostazioni alle predefinite?"
108
 
109
- #: syntaxhighlighter.php:837
110
  msgid "Settings reset to defaults."
111
  msgstr "Ripristina le impostazioni alle predefinite"
112
 
113
- #: syntaxhighlighter.php:854
114
  msgid "Color Theme"
115
  msgstr "Colore del tema"
116
 
117
- #: syntaxhighlighter.php:869
 
 
 
 
 
 
 
 
 
118
  msgid "Defaults"
119
  msgstr "Parametri predefiniti"
120
 
121
- #: syntaxhighlighter.php:871
122
  msgid "All of the settings below can be configured on a per-code box basis, but you can control the defaults of all code boxes here."
123
  msgstr "Tutte le impostazioni qui sotto potranno essere configurate singolarmente comunque, sarà altresì possibile controllare qui tutte le caselle predefinite per i codici."
124
 
125
- #: syntaxhighlighter.php:875
126
- #: syntaxhighlighter.php:878
127
  msgid "Miscellaneous"
128
  msgstr "Varie"
129
 
130
- #: syntaxhighlighter.php:880
131
  msgid "Display line numbers"
132
  msgstr "mostra la numerazione delle linee"
133
 
134
- #: syntaxhighlighter.php:881
135
  msgid "Display the toolbar"
136
  msgstr "mostra la barra degli strumenti"
137
 
138
- #: syntaxhighlighter.php:882
139
  msgid "Automatically make URLs clickable"
140
  msgstr "rendi gli URL cliccabili (in automatico)"
141
 
142
- #: syntaxhighlighter.php:883
143
  msgid "Collapse code boxes"
144
  msgstr "comprimi le caselle del codice"
145
 
146
- #: syntaxhighlighter.php:884
147
  msgid "Use the light display mode, best for single lines of code"
148
  msgstr "utilizza la modalità light del tema, ideale per le singole linee di codice"
149
 
150
- #: syntaxhighlighter.php:885
151
  msgid "Use smart tabs allowing tabs being used for alignment"
152
  msgstr "utilizza le smart tabs in modo che le tag siano utilizzate per l'allineamento"
153
 
154
- #: syntaxhighlighter.php:886
155
- msgid "Wrap long lines (disabling this will make a scrollbar show instead)"
156
- msgstr "Wrap per le righe di grandi dimensioni (disattivando l'opzione si otterrà una barra di scorrimento)"
157
-
158
- #: syntaxhighlighter.php:887
159
  msgid "Enable &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."
160
  msgstr "Abilita la modalità &quot;HTML script&quot; come predefinita (vedi i dettagli a fondo pagina). La selezione di questa casella non é raccomandabile poiché la funzione lavora solamente con alcuni linguaggi."
161
 
162
- #: syntaxhighlighter.php:892
163
  msgid "Additional CSS Class(es)"
164
  msgstr "classe/i CSS addizionali"
165
 
166
- #: syntaxhighlighter.php:896
167
  msgid "Starting Line Number"
168
  msgstr "Numero di inizio linea"
169
 
170
- #: syntaxhighlighter.php:900
171
  msgid "Line Number Padding"
172
  msgstr "Padding numerazione linea"
173
 
174
- #: syntaxhighlighter.php:905
175
  msgid "Off"
176
  msgstr "Spento"
177
 
178
- #: syntaxhighlighter.php:906
179
  msgid "Automatic"
180
  msgstr "Automatico"
181
 
182
- #: syntaxhighlighter.php:924
183
  msgid "Tab Size"
184
  msgstr "Dimensione tab"
185
 
186
- #: syntaxhighlighter.php:930
187
  msgid "Save Changes"
188
  msgstr "Salva le modifiche"
189
 
190
- #: syntaxhighlighter.php:931
191
  msgid "Reset to Defaults"
192
  msgstr "Ripristina alle predefinite"
193
 
194
- #: syntaxhighlighter.php:936
195
  msgid "Preview"
196
  msgstr "Anteprima della casella"
197
 
198
- #: syntaxhighlighter.php:938
199
  msgid "Click &quot;Save Changes&quot; to update this preview."
200
  msgstr "Clicca &quot;Salva le modifiche&quot; per visualizzare l'anteprima aggiornata."
201
 
202
- #: syntaxhighlighter.php:950
203
  msgid "PHP Code Example"
204
  msgstr "Codice PHP di esempio"
205
 
206
- #: syntaxhighlighter.php:952
207
  msgid "Hello World!"
208
  msgstr "Hello World!"
209
 
210
- #: syntaxhighlighter.php:954
211
  msgid "This line is highlighted."
212
  msgstr "Questa linea é evidenziata."
213
 
214
- #: syntaxhighlighter.php:957
215
  msgid ""
216
- "\t\tThis\tis\tan\r\n"
217
- "\t\texample\tof\tsmart\r\n"
218
  "\t\ttabs."
219
  msgstr ""
220
- "\t\tQuesto\té\tun\r\n"
221
- "\t\tesempio\tdi\tsmart\r\n"
222
  "\t\ttabs."
223
 
224
- #: syntaxhighlighter.php:972
225
  msgid "Shortcode Parameters"
226
  msgstr "Parametri per lo shortcode"
227
 
228
- #: syntaxhighlighter.php:974
229
  #, php-format
230
  msgid "These are the parameters you can pass to the shortcode and what they do. For the booleans (i.e. on/off), pass %1$s/%2$s or %3$s/%4$s."
231
  msgstr "Lista dei parametri (e loro funzioni) che potrai inserire nello shortcode. Per i booleani (es: on/off), inserisci %1$s/%2$s oppure %3$s/%4$s."
232
 
233
- #: syntaxhighlighter.php:977
234
  #, php-format
235
  msgid "%1$s or %2$s &#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;)."
236
  msgstr "%1$s oppure %2$s &#8212; Il linguaggio da evidenziare. Potrai in alternativa utilizzarne il solo nome. Ad esempio: <code>[php]code[/php]</code>. <a href=\"%3$s\">Clicca qui</a> per la lista dei tag validi (sotto &quot;aliases&quot;)."
237
 
238
- #: syntaxhighlighter.php:978
239
  #, php-format
240
  msgid "%s &#8212; Toggle automatic URL linking."
241
  msgstr "%s &#8212; Commutazione automatica collegamento ad un URL."
242
 
243
- #: syntaxhighlighter.php:979
244
  #, php-format
245
  msgid "%s &#8212; Add an additional CSS class to the code box."
246
  msgstr "%s &#8212; Aggiungi una classe CSS addizionale alla casella per il codice."
247
 
248
- #: syntaxhighlighter.php:980
249
  #, php-format
250
  msgid "%s &#8212; Toggle collapsing the code box by default, requiring a click to expand it. Good for large code posts."
251
  msgstr "%s &#8212; Commuta in automatico (predefinita) la compressione della casella. Sarà necessario cliccare sulla casella per espanderla. Ottimo per l'inserimento di codici di grande dimensione."
252
 
253
- #: syntaxhighlighter.php:981
254
  #, php-format
255
  msgid "%s &#8212; An interger specifying what number the first line should be (for the line numbering)."
256
  msgstr "%s &#8212; Un numero intero per definire con quale numero abbia inizio la prima linea (per la numerazione)."
257
 
258
- #: syntaxhighlighter.php:982
259
  #, php-format
260
  msgid "%s &#8212; Toggle the left-side line numbering."
261
  msgstr "%s &#8212; Commutazione numerazione della linea nel lato sinistro."
262
 
263
- #: syntaxhighlighter.php:983
264
  #, php-format
265
- msgid "%s &#8212; A comma-sperated list of line numbers to highlight."
266
- msgstr "%s &#8212; Lista delle linee da evidenziare (numeri separati da una virgola)."
267
 
268
- #: syntaxhighlighter.php:984
269
  #, php-format
270
  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."
271
  msgstr "%s &#8212; Commuta mettendo in evidenza ogni HTML/XML extra. Ottima soluzione qualora utilizzassi del HTML/XML con un altro linguaggio (ad esempio del codice PHP inserito nel HTML di una pagina web). Vedi l'anteprima qui sopra. Questa funziona solamente per alcuni linguaggi."
272
 
273
- #: syntaxhighlighter.php:985
274
  #, php-format
275
  msgid "%s &#8212; Toggle light mode which disables the gutter and toolbar all at once."
276
  msgstr "%s &#8212; Commuta alla modalità light del tema disattivando contemporaneamente il gutter e la toolbar."
277
 
278
- #: syntaxhighlighter.php:986
279
  #, php-format
280
  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)."
281
  msgstr "%s &#8212; Controlla il padding per la linea di numerazione. I valori validi sono <code>false</code> (nessun padding), <code>true</code> (padding automatico) oppure un numero intero (padding forzato)."
282
 
283
- #: syntaxhighlighter.php:987
284
  #, php-format
285
- msgid "%s &#8212; Toggle the toolbar containing the helpful buttons."
286
- msgstr "%s &#8212; Commutazione toolbar contenente i pulsanti opzione."
287
 
288
- #: syntaxhighlighter.php:988
289
  #, php-format
290
- msgid "%s &#8212; Toggle line wrapping."
291
- msgstr "%s &#8212; Commuta il wrapping della riga."
292
 
293
- #: syntaxhighlighter.php:991
294
  msgid "Some example shortcodes:"
295
  msgstr "Alcuni esempi di shortcode:"
296
 
297
- #: syntaxhighlighter.php:994
298
- #: syntaxhighlighter.php:995
299
- #: syntaxhighlighter.php:996
300
- #: syntaxhighlighter.php:997
301
  msgid "your code here"
302
  msgstr "inserisci qui il tuo codice"
303
 
304
- #. Plugin Name of an extension
305
- msgid "SyntaxHighlighter Evolved"
306
- msgstr "SyntaxHighlighter Evolved"
 
307
 
308
- #. Plugin URI of an extension
309
- msgid "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/"
310
- msgstr "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/"
311
 
312
- #. Description of an extension
313
- msgid "Easily post syntax-highlighted code to your site without having to modify the code at all. Uses Alex Gorbatchev's <a href=\"http://alexgorbatchev.com/wiki/SyntaxHighlighter\">SyntaxHighlighter</a> v2.0.320 and some code by <a href=\"http://wordpress.com/\">Andrew Ozz of Automattic</a>."
314
- msgstr "Inserisci con semplicità il codice syntax-highlight nel tuo blog senza l'obbligo di doverlo modificare. Utilizza il <a href=\"http://alexgorbatchev.com/wiki/SyntaxHighlighter\">SyntaxHighlighter</a> v2.0.320 di Alex Gorbatchev ed un po' di codice da <a href=\"http://wordpress.com/\">Andrew Ozz di Automattic</a>."
315
 
316
- #. Author of an extension
317
- msgid "Viper007Bond"
318
- msgstr "Viper007Bond"
319
 
320
- #. Author URI of an extension
321
- msgid "http://www.viper007bond.com/"
322
- msgstr "http://www.viper007bond.com/"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
323
 
324
  #~ msgid "expand source"
325
  #~ msgstr "espandi sorgente"
 
326
  #~ msgid "Show a ruler column along the top of the code box"
327
  #~ msgstr ""
328
  #~ "mostra in alto del box per il codice una riga graduata per le colonne"
 
329
  #~ msgid "Font Size (Percentage)"
330
  #~ msgstr "Dimensione font (percentuale)"
 
331
  #~ msgid "%s &#8212; Toggle the column ruler at the top of the code box."
332
  #~ msgstr ""
333
  #~ "%s &#8212; Commuta la riga graduata posizionata nella parte superiore del "
334
  #~ "box per il codice."
 
335
  #~ msgid "Cheatin&#8217; uh?"
336
  #~ msgstr "Problemi! uh?"
337
-
6
  msgid ""
7
  msgstr ""
8
  "Project-Id-Version: SyntaxHighlighter Evolved in italiano\n"
9
+ "Report-Msgid-Bugs-To: \n"
10
+ "POT-Creation-Date: 2010-11-12 14:20+0100\n"
11
+ "PO-Revision-Date: 2010-11-12 14:32+0100\n"
12
+ "Last-Translator: Gianni Diurno (aka gidibao) <gidibao[at]gmail[dot]com>\n"
13
+ "Language-Team: Gianni Diurno | gidibao.net <gidibao[at]gmail[dot]com>\n"
14
  "MIME-Version: 1.0\n"
15
  "Content-Type: text/plain; charset=UTF-8\n"
16
  "Content-Transfer-Encoding: 8bit\n"
17
  "X-Poedit-Language: Italian\n"
18
  "X-Poedit-Country: ITALY\n"
19
+ "X-Poedit-KeywordsList: __;_e;esc_attr__;esc_attr_e;esc_html__;esc_html_e\n"
20
+ "X-Poedit-Basepath: ../\n"
21
+ "X-Poedit-SourceCharset: utf-8\n"
22
+ "X-Poedit-SearchPath-0: .\n"
23
 
24
+ #: syntaxhighlighter.php:227
25
  msgid "Default"
26
  msgstr "Predefinito"
27
 
28
+ #: syntaxhighlighter.php:228
29
  msgid "Django"
30
  msgstr "Django"
31
 
32
+ #: syntaxhighlighter.php:229
33
  msgid "Eclipse"
34
  msgstr "Eclipse"
35
 
36
+ #: syntaxhighlighter.php:230
37
  msgid "Emacs"
38
  msgstr "Emacs"
39
 
40
+ #: syntaxhighlighter.php:231
41
  msgid "Fade to Grey"
42
  msgstr "Fade to Grey"
43
 
44
+ #: syntaxhighlighter.php:232
45
  msgid "Midnight"
46
  msgstr "Midnight"
47
 
48
+ #: syntaxhighlighter.php:233
49
  msgid "RDark"
50
  msgstr "RDark"
51
 
52
+ #: syntaxhighlighter.php:234
53
  msgid "[None]"
54
  msgstr "[nessuno]"
55
 
56
+ #: syntaxhighlighter.php:246
57
+ #: syntaxhighlighter.php:908
58
  msgid "SyntaxHighlighter Settings"
59
  msgstr "Impostazioni SyntaxHighlighter"
60
 
61
+ #: syntaxhighlighter.php:246
62
  msgid "SyntaxHighlighter"
63
  msgstr "SyntaxHighlighter"
64
 
65
+ #: syntaxhighlighter.php:277
66
  msgid "Settings"
67
  msgstr "Impostazioni"
68
 
69
+ #: syntaxhighlighter.php:596
70
  msgid "show source"
71
  msgstr "mostra sorgente"
72
 
73
+ #: syntaxhighlighter.php:597
74
  msgid "view source"
75
  msgstr "vedi sorgente"
76
 
77
+ #: syntaxhighlighter.php:598
78
  msgid "copy to clipboard"
79
  msgstr "copia negli appunti"
80
 
81
+ #: syntaxhighlighter.php:599
82
  msgid "The code is in your clipboard now"
83
  msgstr "Il codice é da ora nei tuoi appunti"
84
 
85
+ #: syntaxhighlighter.php:600
86
  msgid "print"
87
  msgstr "stampa"
88
 
89
+ #: syntaxhighlighter.php:601
90
  msgid "?"
91
  msgstr "info"
92
 
93
+ #: syntaxhighlighter.php:602
94
  msgid ""
95
  "SyntaxHighlighter\\n"
96
  "\\n"
98
  "SyntaxHighlighter\\n"
99
  "\\n"
100
 
101
+ #: syntaxhighlighter.php:603
102
  msgid "Can't find brush for: "
103
  msgstr "Non é stato possibile trovare il file di sintassi per: "
104
 
105
+ #: syntaxhighlighter.php:604
106
  msgid "Brush wasn't configured for html-script option: "
107
  msgstr "Il file di sintassi non é stato configurato per l'opzione html-script"
108
 
109
+ #: syntaxhighlighter.php:896
110
  msgid "Are you sure you want to reset your settings to the defaults?"
111
  msgstr "Sei certo di volere ripristinare le impostazioni alle predefinite?"
112
 
113
+ #: syntaxhighlighter.php:900
114
  msgid "Settings reset to defaults."
115
  msgstr "Ripristina le impostazioni alle predefinite"
116
 
117
+ #: syntaxhighlighter.php:917
118
  msgid "Color Theme"
119
  msgstr "Colore del tema"
120
 
121
+ #: syntaxhighlighter.php:931
122
+ #: syntaxhighlighter.php:934
123
+ msgid "Load All Brushes"
124
+ msgstr "Carica tutti i brush"
125
+
126
+ #: syntaxhighlighter.php:935
127
+ 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"
128
+ msgstr "Carica sempre tutti i file di linguaggio (per utilizzo diretto dei tag <code>&lt;pre&gt;</code> piuttosto che gli shortcode)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Se non attivo (predefinito), i file saranno caricati secondo necessità"
129
+
130
+ #: syntaxhighlighter.php:941
131
  msgid "Defaults"
132
  msgstr "Parametri predefiniti"
133
 
134
+ #: syntaxhighlighter.php:943
135
  msgid "All of the settings below can be configured on a per-code box basis, but you can control the defaults of all code boxes here."
136
  msgstr "Tutte le impostazioni qui sotto potranno essere configurate singolarmente comunque, sarà altresì possibile controllare qui tutte le caselle predefinite per i codici."
137
 
138
+ #: syntaxhighlighter.php:947
139
+ #: syntaxhighlighter.php:950
140
  msgid "Miscellaneous"
141
  msgstr "Varie"
142
 
143
+ #: syntaxhighlighter.php:952
144
  msgid "Display line numbers"
145
  msgstr "mostra la numerazione delle linee"
146
 
147
+ #: syntaxhighlighter.php:953
148
  msgid "Display the toolbar"
149
  msgstr "mostra la barra degli strumenti"
150
 
151
+ #: syntaxhighlighter.php:954
152
  msgid "Automatically make URLs clickable"
153
  msgstr "rendi gli URL cliccabili (in automatico)"
154
 
155
+ #: syntaxhighlighter.php:955
156
  msgid "Collapse code boxes"
157
  msgstr "comprimi le caselle del codice"
158
 
159
+ #: syntaxhighlighter.php:956
160
  msgid "Use the light display mode, best for single lines of code"
161
  msgstr "utilizza la modalità light del tema, ideale per le singole linee di codice"
162
 
163
+ #: syntaxhighlighter.php:957
164
  msgid "Use smart tabs allowing tabs being used for alignment"
165
  msgstr "utilizza le smart tabs in modo che le tag siano utilizzate per l'allineamento"
166
 
167
+ #: syntaxhighlighter.php:958
 
 
 
 
168
  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."
169
  msgstr "Abilita la modalità &quot;HTML script&quot; come predefinita (vedi i dettagli a fondo pagina). La selezione di questa casella non é raccomandabile poiché la funzione lavora solamente con alcuni linguaggi."
170
 
171
+ #: syntaxhighlighter.php:963
172
  msgid "Additional CSS Class(es)"
173
  msgstr "classe/i CSS addizionali"
174
 
175
+ #: syntaxhighlighter.php:967
176
  msgid "Starting Line Number"
177
  msgstr "Numero di inizio linea"
178
 
179
+ #: syntaxhighlighter.php:971
180
  msgid "Line Number Padding"
181
  msgstr "Padding numerazione linea"
182
 
183
+ #: syntaxhighlighter.php:976
184
  msgid "Off"
185
  msgstr "Spento"
186
 
187
+ #: syntaxhighlighter.php:977
188
  msgid "Automatic"
189
  msgstr "Automatico"
190
 
191
+ #: syntaxhighlighter.php:995
192
  msgid "Tab Size"
193
  msgstr "Dimensione tab"
194
 
195
+ #: syntaxhighlighter.php:1001
196
  msgid "Save Changes"
197
  msgstr "Salva le modifiche"
198
 
199
+ #: syntaxhighlighter.php:1002
200
  msgid "Reset to Defaults"
201
  msgstr "Ripristina alle predefinite"
202
 
203
+ #: syntaxhighlighter.php:1007
204
  msgid "Preview"
205
  msgstr "Anteprima della casella"
206
 
207
+ #: syntaxhighlighter.php:1009
208
  msgid "Click &quot;Save Changes&quot; to update this preview."
209
  msgstr "Clicca &quot;Salva le modifiche&quot; per visualizzare l'anteprima aggiornata."
210
 
211
+ #: syntaxhighlighter.php:1021
212
  msgid "PHP Code Example"
213
  msgstr "Codice PHP di esempio"
214
 
215
+ #: syntaxhighlighter.php:1023
216
  msgid "Hello World!"
217
  msgstr "Hello World!"
218
 
219
+ #: syntaxhighlighter.php:1025
220
  msgid "This line is highlighted."
221
  msgstr "Questa linea é evidenziata."
222
 
223
+ #: syntaxhighlighter.php:1028
224
  msgid ""
225
+ "\t\tThis\tis\tan\n"
226
+ "\t\texample\tof\tsmart\n"
227
  "\t\ttabs."
228
  msgstr ""
229
+ "\t\tQuesto\té\tun\n"
230
+ "\t\tesempio\tdi\tsmart\n"
231
  "\t\ttabs."
232
 
233
+ #: syntaxhighlighter.php:1043
234
  msgid "Shortcode Parameters"
235
  msgstr "Parametri per lo shortcode"
236
 
237
+ #: syntaxhighlighter.php:1045
238
  #, php-format
239
  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."
240
  msgstr "Lista dei parametri (e loro funzioni) che potrai inserire nello shortcode. Per i booleani (es: on/off), inserisci %1$s/%2$s oppure %3$s/%4$s."
241
 
242
+ #: syntaxhighlighter.php:1048
243
  #, php-format
244
  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;)."
245
  msgstr "%1$s oppure %2$s &#8212; Il linguaggio da evidenziare. Potrai in alternativa utilizzarne il solo nome. Ad esempio: <code>[php]code[/php]</code>. <a href=\"%3$s\">Clicca qui</a> per la lista dei tag validi (sotto &quot;aliases&quot;)."
246
 
247
+ #: syntaxhighlighter.php:1049
248
  #, php-format
249
  msgid "%s &#8212; Toggle automatic URL linking."
250
  msgstr "%s &#8212; Commutazione automatica collegamento ad un URL."
251
 
252
+ #: syntaxhighlighter.php:1050
253
  #, php-format
254
  msgid "%s &#8212; Add an additional CSS class to the code box."
255
  msgstr "%s &#8212; Aggiungi una classe CSS addizionale alla casella per il codice."
256
 
257
+ #: syntaxhighlighter.php:1051
258
  #, php-format
259
  msgid "%s &#8212; Toggle collapsing the code box by default, requiring a click to expand it. Good for large code posts."
260
  msgstr "%s &#8212; Commuta in automatico (predefinita) la compressione della casella. Sarà necessario cliccare sulla casella per espanderla. Ottimo per l'inserimento di codici di grande dimensione."
261
 
262
+ #: syntaxhighlighter.php:1052
263
  #, php-format
264
  msgid "%s &#8212; An interger specifying what number the first line should be (for the line numbering)."
265
  msgstr "%s &#8212; Un numero intero per definire con quale numero abbia inizio la prima linea (per la numerazione)."
266
 
267
+ #: syntaxhighlighter.php:1053
268
  #, php-format
269
  msgid "%s &#8212; Toggle the left-side line numbering."
270
  msgstr "%s &#8212; Commutazione numerazione della linea nel lato sinistro."
271
 
272
+ #: syntaxhighlighter.php:1054
273
  #, php-format
274
+ msgid "%1$s &#8212; A comma-sperated list of line numbers to highlight. You can also specify a range. Example: %2$s"
275
+ msgstr "%1$s &#8212; Lista delle linee da evidenziare (numeri separati da una virgola). Puoi anche specificare il range. Esempio: %2$s"
276
 
277
+ #: syntaxhighlighter.php:1055
278
  #, php-format
279
  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."
280
  msgstr "%s &#8212; Commuta mettendo in evidenza ogni HTML/XML extra. Ottima soluzione qualora utilizzassi del HTML/XML con un altro linguaggio (ad esempio del codice PHP inserito nel HTML di una pagina web). Vedi l'anteprima qui sopra. Questa funziona solamente per alcuni linguaggi."
281
 
282
+ #: syntaxhighlighter.php:1056
283
  #, php-format
284
  msgid "%s &#8212; Toggle light mode which disables the gutter and toolbar all at once."
285
  msgstr "%s &#8212; Commuta alla modalità light del tema disattivando contemporaneamente il gutter e la toolbar."
286
 
287
+ #: syntaxhighlighter.php:1057
288
  #, php-format
289
  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)."
290
  msgstr "%s &#8212; Controlla il padding per la linea di numerazione. I valori validi sono <code>false</code> (nessun padding), <code>true</code> (padding automatico) oppure un numero intero (padding forzato)."
291
 
292
+ #: syntaxhighlighter.php:1058
293
  #, php-format
294
+ msgid "%1$s &#8212; Sets some text to show up before the code. Very useful when combined with the %2$s parameter."
295
+ msgstr "%1$s &#8212; Imposta il testo da mostrare prima del codice. Molto utile in combinazione con il parametro %2$s."
296
 
297
+ #: syntaxhighlighter.php:1059
298
  #, php-format
299
+ msgid "%s &#8212; Toggle the toolbar containing the helpful buttons."
300
+ msgstr "%s &#8212; Commutazione toolbar contenente i pulsanti opzione."
301
 
302
+ #: syntaxhighlighter.php:1062
303
  msgid "Some example shortcodes:"
304
  msgstr "Alcuni esempi di shortcode:"
305
 
306
+ #: syntaxhighlighter.php:1065
307
+ #: syntaxhighlighter.php:1066
308
+ #: syntaxhighlighter.php:1067
309
+ #: syntaxhighlighter.php:1068
310
  msgid "your code here"
311
  msgstr "inserisci qui il tuo codice"
312
 
313
+ #~ msgid "Wrap long lines (disabling this will make a scrollbar show instead)"
314
+ #~ msgstr ""
315
+ #~ "Wrap per le righe di grandi dimensioni (disattivando l'opzione si otterrà "
316
+ #~ "una barra di scorrimento)"
317
 
318
+ #~ msgid "%s &#8212; Toggle line wrapping."
319
+ #~ msgstr "%s &#8212; Commuta il wrapping della riga."
 
320
 
321
+ #~ msgid "SyntaxHighlighter Evolved"
322
+ #~ msgstr "SyntaxHighlighter Evolved"
 
323
 
324
+ #~ msgid "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/"
325
+ #~ msgstr "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/"
 
326
 
327
+ #~ msgid ""
328
+ #~ "Easily post syntax-highlighted code to your site without having to modify "
329
+ #~ "the code at all. Uses Alex Gorbatchev's <a href=\"http://alexgorbatchev."
330
+ #~ "com/wiki/SyntaxHighlighter\">SyntaxHighlighter</a> v2.0.320 and some code "
331
+ #~ "by <a href=\"http://wordpress.com/\">Andrew Ozz of Automattic</a>."
332
+ #~ msgstr ""
333
+ #~ "Inserisci con semplicità il codice syntax-highlight nel tuo blog senza "
334
+ #~ "l'obbligo di doverlo modificare. Utilizza il <a href=\"http://"
335
+ #~ "alexgorbatchev.com/wiki/SyntaxHighlighter\">SyntaxHighlighter</a> "
336
+ #~ "v2.0.320 di Alex Gorbatchev ed un po' di codice da <a href=\"http://"
337
+ #~ "wordpress.com/\">Andrew Ozz di Automattic</a>."
338
+
339
+ #~ msgid "Viper007Bond"
340
+ #~ msgstr "Viper007Bond"
341
+
342
+ #~ msgid "http://www.viper007bond.com/"
343
+ #~ msgstr "http://www.viper007bond.com/"
344
 
345
  #~ msgid "expand source"
346
  #~ msgstr "espandi sorgente"
347
+
348
  #~ msgid "Show a ruler column along the top of the code box"
349
  #~ msgstr ""
350
  #~ "mostra in alto del box per il codice una riga graduata per le colonne"
351
+
352
  #~ msgid "Font Size (Percentage)"
353
  #~ msgstr "Dimensione font (percentuale)"
354
+
355
  #~ msgid "%s &#8212; Toggle the column ruler at the top of the code box."
356
  #~ msgstr ""
357
  #~ "%s &#8212; Commuta la riga graduata posizionata nella parte superiore del "
358
  #~ "box per il codice."
359
+
360
  #~ msgid "Cheatin&#8217; uh?"
361
  #~ msgstr "Problemi! uh?"
 
readme.txt CHANGED
@@ -55,6 +55,15 @@ Make sure your theme's `footer.php` file has `<?php wp_footer(); ?>` somewhere i
55
 
56
  == ChangeLog ==
57
 
 
 
 
 
 
 
 
 
 
58
  = Version 3.0.0 =
59
 
60
  * Updated to SyntaxHighlighter v3.0.83. See [changes](http://alexgorbatchev.com/SyntaxHighlighter/whatsnew.html). Main highlight is the ability to directly copy the code or double-click it to highlight it all.
@@ -63,6 +72,7 @@ Make sure your theme's `footer.php` file has `<?php wp_footer(); ?>` somewhere i
63
  * Add third-party Clojure brush by [Travis Whitton](http://travis-whitton.blogspot.com/2009/06/syntaxhighlighter-for-clojure.html).
64
  * Add third-party R language brush by [Yihui Xie](http://yihui.name/en/2010/09/syntaxhighlighter-brush-for-the-r-language).
65
  * Ukrainian transation update thanks to [AzzePis](http://wordpress.co.ua/).
 
66
 
67
  = Version 2.3.8 =
68
 
55
 
56
  == ChangeLog ==
57
 
58
+ = Version 3.1.0 =
59
+
60
+ * Allow choosing between v2.x and v3.x of the SyntaxHighlighting package. Some people prefer the old one and there's nothing wrong with it really.
61
+ * Fix broken TinyMCE plugin URL.
62
+ * Force LTR text in v3.x.
63
+ * If global collapse default is on, force on the toolbar and force off light mode to avoid the code block from disappearing.
64
+ * Make the demo on the settings page the width of the content area on the front end so it's a better example of what the code will look like.
65
+ * Bring back v2.x specific settings like `linewrap`.
66
+
67
  = Version 3.0.0 =
68
 
69
  * Updated to SyntaxHighlighter v3.0.83. See [changes](http://alexgorbatchev.com/SyntaxHighlighter/whatsnew.html). Main highlight is the ability to directly copy the code or double-click it to highlight it all.
72
  * Add third-party Clojure brush by [Travis Whitton](http://travis-whitton.blogspot.com/2009/06/syntaxhighlighter-for-clojure.html).
73
  * Add third-party R language brush by [Yihui Xie](http://yihui.name/en/2010/09/syntaxhighlighter-brush-for-the-r-language).
74
  * Ukrainian transation update thanks to [AzzePis](http://wordpress.co.ua/).
75
+ * An updated Italian transation thanks to [gidibao](http://gidibao.net/).
76
 
77
  = Version 2.3.8 =
78
 
syntaxhighlighter.php CHANGED
@@ -4,8 +4,8 @@
4
 
5
  Plugin Name: SyntaxHighlighter Evolved
6
  Plugin URI: http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/
7
- Version: 3.0.0
8
- Description: Easily post syntax-highlighted code to your site without having to modify the code at all. Uses Alex Gorbatchev's <a href="http://alexgorbatchev.com/wiki/SyntaxHighlighter">SyntaxHighlighter</a> v2.0.320 and some code by <a href="http://wordpress.com/">Andrew Ozz of Automattic</a>.
9
  Author: Viper007Bond
10
  Author URI: http://www.viper007bond.com/
11
 
@@ -13,8 +13,7 @@ Author URI: http://www.viper007bond.com/
13
 
14
  Thanks to:
15
 
16
- * Alex Gorbatchev for writing such an awesome Javascript-powered synatax
17
- highlighter script
18
 
19
  * Andrew Ozz for writing the TinyMCE plugin
20
 
@@ -22,8 +21,9 @@ Thanks to:
22
 
23
  class SyntaxHighlighter {
24
  // All of these variables are private. Filters are provided for things that can be modified.
25
- var $pluginver = '3.0.0'; // Plugin version
26
- var $agshver = '3.0.83'; // Alex Gorbatchev's SyntaxHighlighter version
 
27
  var $settings = array(); // Contains the user's settings
28
  var $defaultsettings = array(); // Contains the default settings
29
  var $brushes = array(); // Array of aliases => brushes
@@ -42,74 +42,6 @@ class SyntaxHighlighter {
42
  // Load localization domain
43
  load_plugin_textdomain( 'syntaxhighlighter', false, '/syntaxhighlighter/localization' );
44
 
45
- // Register brush scripts
46
- wp_register_script( 'syntaxhighlighter-core', plugins_url('syntaxhighlighter/syntaxhighlighter3/scripts/shCore.js'), array(), $this->agshver );
47
- wp_register_script( 'syntaxhighlighter-brush-as3', plugins_url('syntaxhighlighter/syntaxhighlighter3/scripts/shBrushAS3.js'), array('syntaxhighlighter-core'), $this->agshver );
48
- wp_register_script( 'syntaxhighlighter-brush-bash', plugins_url('syntaxhighlighter/syntaxhighlighter3/scripts/shBrushBash.js'), array('syntaxhighlighter-core'), $this->agshver );
49
- wp_register_script( 'syntaxhighlighter-brush-coldfusion', plugins_url('syntaxhighlighter/syntaxhighlighter3/scripts/shBrushColdFusion.js'), array('syntaxhighlighter-core'), $this->agshver );
50
- wp_register_script( 'syntaxhighlighter-brush-cpp', plugins_url('syntaxhighlighter/syntaxhighlighter3/scripts/shBrushCpp.js'), array('syntaxhighlighter-core'), $this->agshver );
51
- wp_register_script( 'syntaxhighlighter-brush-csharp', plugins_url('syntaxhighlighter/syntaxhighlighter3/scripts/shBrushCSharp.js'), array('syntaxhighlighter-core'), $this->agshver );
52
- wp_register_script( 'syntaxhighlighter-brush-css', plugins_url('syntaxhighlighter/syntaxhighlighter3/scripts/shBrushCss.js'), array('syntaxhighlighter-core'), $this->agshver );
53
- wp_register_script( 'syntaxhighlighter-brush-delphi', plugins_url('syntaxhighlighter/syntaxhighlighter3/scripts/shBrushDelphi.js'), array('syntaxhighlighter-core'), $this->agshver );
54
- wp_register_script( 'syntaxhighlighter-brush-diff', plugins_url('syntaxhighlighter/syntaxhighlighter3/scripts/shBrushDiff.js'), array('syntaxhighlighter-core'), $this->agshver );
55
- wp_register_script( 'syntaxhighlighter-brush-erlang', plugins_url('syntaxhighlighter/syntaxhighlighter3/scripts/shBrushErlang.js'), array('syntaxhighlighter-core'), $this->agshver );
56
- wp_register_script( 'syntaxhighlighter-brush-groovy', plugins_url('syntaxhighlighter/syntaxhighlighter3/scripts/shBrushGroovy.js'), array('syntaxhighlighter-core'), $this->agshver );
57
- wp_register_script( 'syntaxhighlighter-brush-java', plugins_url('syntaxhighlighter/syntaxhighlighter3/scripts/shBrushJava.js'), array('syntaxhighlighter-core'), $this->agshver );
58
- wp_register_script( 'syntaxhighlighter-brush-javafx', plugins_url('syntaxhighlighter/syntaxhighlighter3/scripts/shBrushJavaFX.js'), array('syntaxhighlighter-core'), $this->agshver );
59
- wp_register_script( 'syntaxhighlighter-brush-jscript', plugins_url('syntaxhighlighter/syntaxhighlighter3/scripts/shBrushJScript.js'), array('syntaxhighlighter-core'), $this->agshver );
60
- wp_register_script( 'syntaxhighlighter-brush-perl', plugins_url('syntaxhighlighter/syntaxhighlighter3/scripts/shBrushPerl.js'), array('syntaxhighlighter-core'), $this->agshver );
61
- wp_register_script( 'syntaxhighlighter-brush-php', plugins_url('syntaxhighlighter/syntaxhighlighter3/scripts/shBrushPhp.js'), array('syntaxhighlighter-core'), $this->agshver );
62
- wp_register_script( 'syntaxhighlighter-brush-plain', plugins_url('syntaxhighlighter/syntaxhighlighter3/scripts/shBrushPlain.js'), array('syntaxhighlighter-core'), $this->agshver );
63
- wp_register_script( 'syntaxhighlighter-brush-powershell', plugins_url('syntaxhighlighter/syntaxhighlighter3/scripts/shBrushPowerShell.js'), array('syntaxhighlighter-core'), $this->agshver );
64
- wp_register_script( 'syntaxhighlighter-brush-python', plugins_url('syntaxhighlighter/syntaxhighlighter3/scripts/shBrushPython.js'), array('syntaxhighlighter-core'), $this->agshver );
65
- wp_register_script( 'syntaxhighlighter-brush-ruby', plugins_url('syntaxhighlighter/syntaxhighlighter3/scripts/shBrushRuby.js'), array('syntaxhighlighter-core'), $this->agshver );
66
- wp_register_script( 'syntaxhighlighter-brush-scala', plugins_url('syntaxhighlighter/syntaxhighlighter3/scripts/shBrushScala.js'), array('syntaxhighlighter-core'), $this->agshver );
67
- wp_register_script( 'syntaxhighlighter-brush-sql', plugins_url('syntaxhighlighter/syntaxhighlighter3/scripts/shBrushSql.js'), array('syntaxhighlighter-core'), $this->agshver );
68
- wp_register_script( 'syntaxhighlighter-brush-vb', plugins_url('syntaxhighlighter/syntaxhighlighter3/scripts/shBrushVb.js'), array('syntaxhighlighter-core'), $this->agshver );
69
- wp_register_script( 'syntaxhighlighter-brush-xml', plugins_url('syntaxhighlighter/syntaxhighlighter3/scripts/shBrushXml.js'), array('syntaxhighlighter-core'), $this->agshver );
70
-
71
- // Register some popular third-party brushes
72
- wp_register_script( 'syntaxhighlighter-brush-clojure', plugins_url('syntaxhighlighter/third-party-brushes/shBrushClojure.js'), array('syntaxhighlighter-core'), '20090602' );
73
- wp_register_script( 'syntaxhighlighter-brush-fsharp', plugins_url('syntaxhighlighter/third-party-brushes/shBrushFSharp.js'), array('syntaxhighlighter-core'), '20091003' );
74
- wp_register_script( 'syntaxhighlighter-brush-latex', plugins_url('syntaxhighlighter/third-party-brushes/shBrushLatex.js'), array('syntaxhighlighter-core'), '20090613' );
75
- wp_register_script( 'syntaxhighlighter-brush-matlabkey', plugins_url('syntaxhighlighter/third-party-brushes/shBrushMatlabKey.js'), array('syntaxhighlighter-core'), '20091209' );
76
- wp_register_script( 'syntaxhighlighter-brush-objc', plugins_url('syntaxhighlighter/third-party-brushes/shBrushObjC.js'), array('syntaxhighlighter-core'), '20091207' );
77
- wp_register_script( 'syntaxhighlighter-brush-r', plugins_url('syntaxhighlighter/third-party-brushes/shBrushR.js'), array('syntaxhighlighter-core'), '20100919' );
78
-
79
- // Register theme stylesheets
80
- wp_register_style( 'syntaxhighlighter-core', plugins_url('syntaxhighlighter/syntaxhighlighter3/styles/shCore.css'), array(), $this->agshver );
81
- wp_register_style( 'syntaxhighlighter-theme-default', plugins_url('syntaxhighlighter/syntaxhighlighter3/styles/shThemeDefault.css'), array('syntaxhighlighter-core'), $this->agshver );
82
- wp_register_style( 'syntaxhighlighter-theme-django', plugins_url('syntaxhighlighter/syntaxhighlighter3/styles/shThemeDjango.css'), array('syntaxhighlighter-core'), $this->agshver );
83
- wp_register_style( 'syntaxhighlighter-theme-eclipse', plugins_url('syntaxhighlighter/syntaxhighlighter3/styles/shThemeEclipse.css'), array('syntaxhighlighter-core'), $this->agshver );
84
- wp_register_style( 'syntaxhighlighter-theme-emacs', plugins_url('syntaxhighlighter/syntaxhighlighter3/styles/shThemeEmacs.css'), array('syntaxhighlighter-core'), $this->agshver );
85
- wp_register_style( 'syntaxhighlighter-theme-fadetogrey', plugins_url('syntaxhighlighter/syntaxhighlighter3/styles/shThemeFadeToGrey.css'), array('syntaxhighlighter-core'), $this->agshver );
86
- wp_register_style( 'syntaxhighlighter-theme-midnight', plugins_url('syntaxhighlighter/syntaxhighlighter3/styles/shThemeMidnight.css'), array('syntaxhighlighter-core'), $this->agshver );
87
- wp_register_style( 'syntaxhighlighter-theme-rdark', plugins_url('syntaxhighlighter/syntaxhighlighter3/styles/shThemeRDark.css'), array('syntaxhighlighter-core'), $this->agshver );
88
-
89
-
90
- // Create array of default settings (you can use the filter to modify these)
91
- $this->defaultsettings = (array) apply_filters( 'syntaxhighlighter_defaultsettings', array(
92
- 'theme' => 'default',
93
- 'loadallbrushes' => 0,
94
- 'autolinks' => 1,
95
- 'classname' => '',
96
- 'collapse' => 0,
97
- 'firstline' => 1,
98
- 'gutter' => 1,
99
- 'htmlscript' => 0,
100
- 'light' => 0,
101
- 'padlinenumbers' => 'true',
102
- 'smarttabs' => 1,
103
- 'tabsize' => 4,
104
- 'toolbar' => 1,
105
- 'wraplines' => 1,
106
- ) );
107
-
108
- // Create the settings array by merging the user's settings and the defaults
109
- $usersettings = (array) get_option('syntaxhighlighter_settings');
110
- $this->settings = wp_parse_args( $usersettings, $this->defaultsettings );
111
-
112
-
113
  // Display hooks
114
  add_filter( 'the_content', array(&$this, 'parse_shortcodes'), 7 ); // Posts
115
  add_filter( 'comment_text', array(&$this, 'parse_shortcodes_comment'), 7 ); // Comments
@@ -151,6 +83,79 @@ class SyntaxHighlighter {
151
  }
152
 
153
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
154
  // Create list of brush aliases and map them to their real brushes
155
  // The key is the language alias
156
  // The value is the script handle suffix: syntaxhighlighter-brush-ThisBitHere (your plugin needs to register the script itself)
@@ -183,7 +188,7 @@ class SyntaxHighlighter {
183
  'js' => 'jscript',
184
  'jscript' => 'jscript',
185
  'javascript' => 'jscript',
186
- 'latex' => 'latex',
187
  'tex' => 'latex',
188
  'matlab' => 'matlabkey',
189
  'objc' => 'objc',
@@ -197,7 +202,7 @@ class SyntaxHighlighter {
197
  'powershell' => 'powershell',
198
  'py' => 'python',
199
  'python' => 'python',
200
- //'r' => 'r', // Too short
201
  'splus' => 'r',
202
  'rails' => 'ruby',
203
  'rb' => 'ruby',
@@ -214,14 +219,20 @@ class SyntaxHighlighter {
214
  'xhtml' => 'xml',
215
  ) );
216
 
 
217
  // Create a list of shortcodes to use. You can use the filter to add/remove ones.
218
  // If the language/lang parameter is left out, it's assumed the shortcode name is the language.
219
  // If that's invalid, then "plain" is used.
220
  $this->shortcodes = array( 'sourcecode', 'source', 'code' );
221
  $this->shortcodes = array_merge( $this->shortcodes, array_keys( $this->brushes ) );
 
 
222
  unset( $this->shortcodes[array_search( 'latex', $this->shortcodes )] ); // Remove "latex" shortcode (it'll collide)
 
 
223
  $this->shortcodes = (array) apply_filters( 'syntaxhighlighter_shortcodes', $this->shortcodes );
224
 
 
225
  // Create list of themes and their human readable names
226
  // Plugins can add to this list: http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/adding-a-new-theme/
227
  $this->themes = (array) apply_filters( 'syntaxhighlighter_themes', array(
@@ -256,7 +267,7 @@ class SyntaxHighlighter {
256
 
257
  // Add the custom TinyMCE plugin which wraps plugin shortcodes in <pre> in TinyMCE
258
  function add_tinymce_plugin( $plugins ) {
259
- $plugins['syntaxhighlighter'] = plugins_url('syntaxhighlighter/syntaxhighlighter3_mce.js');
260
  return $plugins;
261
  }
262
 
@@ -593,16 +604,27 @@ class SyntaxHighlighter {
593
 
594
  echo " })();\n";
595
 
596
- echo " SyntaxHighlighter.config.clipboardSwf = '" . esc_js( apply_filters( 'syntaxhighlighter_clipboardurl', plugins_url('syntaxhighlighter/syntaxhighlighter3/scripts/clipboard.swf') ) ) . "';\n";
597
- echo " SyntaxHighlighter.config.strings.expandSource = '" . $this->js_escape_singlequotes( __( 'show source', 'syntaxhighlighter' ) ) . "';\n";
598
- echo " SyntaxHighlighter.config.strings.viewSource = '" . $this->js_escape_singlequotes( __( 'view source', 'syntaxhighlighter' ) ) . "';\n";
599
- echo " SyntaxHighlighter.config.strings.copyToClipboard = '" . $this->js_escape_singlequotes( __( 'copy to clipboard', 'syntaxhighlighter' ) ) . "';\n";
600
- echo " SyntaxHighlighter.config.strings.copyToClipboardConfirmation = '" . $this->js_escape_singlequotes( __( 'The code is in your clipboard now', 'syntaxhighlighter' ) ) . "';\n";
601
- echo " SyntaxHighlighter.config.strings.print = '" . $this->js_escape_singlequotes( __( 'print', 'syntaxhighlighter' ) ) . "';\n";
602
- echo " SyntaxHighlighter.config.strings.help = '" . $this->js_escape_singlequotes( __( '?', 'syntaxhighlighter' ) ) . "';\n";
603
- echo " SyntaxHighlighter.config.strings.alert = '" . $this->js_escape_singlequotes( __( 'SyntaxHighlighter\n\n', 'syntaxhighlighter' ) ) . "';\n";
604
- echo " SyntaxHighlighter.config.strings.noBrush = '" . $this->js_escape_singlequotes( __( "Can't find brush for: ", 'syntaxhighlighter' ) ) . "';\n";
605
- echo " SyntaxHighlighter.config.strings.brushNotHtmlScript = '" . $this->js_escape_singlequotes( __( "Brush wasn't configured for html-script option: ", 'syntaxhighlighter' ) ) . "';\n";
 
 
 
 
 
 
 
 
 
 
 
606
 
607
  if ( 1 != $this->settings['autolinks'] )
608
  echo " SyntaxHighlighter.defaults['auto-links'] = false;\n";
@@ -619,20 +641,26 @@ class SyntaxHighlighter {
619
  if ( 1 != $this->settings['gutter'] )
620
  echo " SyntaxHighlighter.defaults['gutter'] = false;\n";
621
 
622
- //if ( 1 == $this->settings['htmlscript'] )
623
- // echo " SyntaxHighlighter.defaults['html-script'] = true;\n";
 
 
624
 
625
  if ( 1 == $this->settings['light'] )
626
  echo " SyntaxHighlighter.defaults['light'] = true;\n";
627
 
628
- if ( 'true' != $this->settings['padlinenumbers'] ) {
629
- echo " SyntaxHighlighter.defaults['pad-line-numbers'] = ";
630
- if ( 'false' == $this->settings['padlinenumbers'] )
 
 
 
631
  echo 'false';
632
- else
 
633
  echo (int) $this->settings['padlinenumbers'];
634
- echo ";\n";
635
  }
 
636
 
637
  if ( 1 != $this->settings['smarttabs'] )
638
  echo " SyntaxHighlighter.defaults['smart-tabs'] = false;\n";
@@ -643,6 +671,7 @@ class SyntaxHighlighter {
643
  if ( 1 != $this->settings['toolbar'] )
644
  echo " SyntaxHighlighter.defaults['toolbar'] = false;\n";
645
 
 
646
  if ( 1 != $this->settings['wraplines'] )
647
  echo " SyntaxHighlighter.defaults['wrap-lines'] = false;\n";
648
 
@@ -750,8 +779,8 @@ class SyntaxHighlighter {
750
  $params = array();
751
  $params[] = "brush: $lang;";
752
 
753
- // Fix bug that prevents collapse from working if the toolbar is off
754
- if ( 'true' == $atts['collapse'] || '1' === $atts['collapse'] ) {
755
  $atts['toolbar'] = 'true';
756
  $atts['light'] = 'false';
757
  }
@@ -920,15 +949,32 @@ class SyntaxHighlighter {
920
 
921
 
922
  <table class="form-table">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
923
  <tr valign="top">
924
  <th scope="row"><label for="syntaxhighlighter-theme"><?php _e( 'Color Theme', 'syntaxhighlighter' ); ?></label></th>
925
  <td>
926
  <select name="syntaxhighlighter_settings[theme]" id="syntaxhighlighter-theme" class="postform">
927
  <?php
928
  foreach ( $this->themes as $theme => $name ) {
929
- echo ' <option value="' . esc_attr($theme) . '"';
930
- selected( $this->settings['theme'], $theme );
931
- echo '>' . htmlspecialchars($name) . "</option>\n";
932
  }
933
  ?>
934
  </select>
@@ -939,7 +985,7 @@ class SyntaxHighlighter {
939
  <td>
940
  <fieldset>
941
  <legend class="hidden"><?php _e( 'Load All Brushes', 'syntaxhighlighter' ); ?></legend>
942
- <label for="syntaxhighlighter-loadallbrushes"><input name="syntaxhighlighter_settings[loadallbrushes]" type="checkbox" id="syntaxhighlighter-loadallbrushes" value="1" <?php checked( $this->settings['loadallbrushes'], 1 ); ?> /> <?php _e( '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', 'syntaxhighlighter' ); ?></label>
943
  </fieldset>
944
  </td>
945
  </tr>
@@ -947,7 +993,7 @@ class SyntaxHighlighter {
947
 
948
  <h3><?php _e( 'Defaults', 'syntaxhighlighter' ); ?></h3>
949
 
950
- <p><?php _e( 'All of the settings below can be configured on a per-code box basis, but you can control the defaults of all code boxes here.', 'syntaxhighlighter' ); ?></p>
951
 
952
  <table class="form-table">
953
  <tr valign="top">
@@ -962,7 +1008,7 @@ class SyntaxHighlighter {
962
  <label for="syntaxhighlighter-collapse"><input name="syntaxhighlighter_settings[collapse]" type="checkbox" id="syntaxhighlighter-collapse" value="1" <?php checked( $this->settings['collapse'], 1 ); ?> /> <?php _e( 'Collapse code boxes', 'syntaxhighlighter' ); ?></label><br />
963
  <label for="syntaxhighlighter-light"><input name="syntaxhighlighter_settings[light]" type="checkbox" id="syntaxhighlighter-light" value="1" <?php checked( $this->settings['light'], 1 ); ?> /> <?php _e( 'Use the light display mode, best for single lines of code', 'syntaxhighlighter' ); ?></label><br />
964
  <label for="syntaxhighlighter-smarttabs"><input name="syntaxhighlighter_settings[smarttabs]" type="checkbox" id="syntaxhighlighter-smarttabs" value="1" <?php checked( $this->settings['smarttabs'], 1 ); ?> /> <?php _e( 'Use smart tabs allowing tabs being used for alignment', 'syntaxhighlighter' ); ?></label><br />
965
- <label for="syntaxhighlighter-wraplines"><input name="syntaxhighlighter_settings[wraplines]" type="checkbox" id="syntaxhighlighter-wraplines" value="1" <?php checked( $this->settings['wraplines'], 1 ); ?> /> <?php _e( 'Wrap long lines (disabling this will make a scrollbar show instead)', 'syntaxhighlighter' ); ?></label><br />
966
  <!--<label for="syntaxhighlighter-htmlscript"><input name="syntaxhighlighter_settings[htmlscript]" type="checkbox" id="syntaxhighlighter-htmlscript" value="1" <?php checked( $this->settings['htmlscript'], 1 ); ?> /> <?php _e( 'Enable &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.', 'syntaxhighlighter' ); ?></label>-->
967
  </fieldset>
968
  </td>
@@ -991,9 +1037,7 @@ class SyntaxHighlighter {
991
  );
992
 
993
  foreach ( $linepaddings as $value => $name ) {
994
- echo ' <option value="' . esc_attr( $value ) . '"';
995
- selected( $this->settings['padlinenumbers'], $value );
996
- echo '>' . esc_html( $name ) . "</option>\n";
997
  }
998
  ?>
999
  </select>
@@ -1003,11 +1047,26 @@ class SyntaxHighlighter {
1003
  <th scope="row"><label for="syntaxhighlighter-tabsize"><?php _e( 'Tab Size', 'syntaxhighlighter' ); ?></label></th>
1004
  <td><input name="syntaxhighlighter_settings[tabsize]" type="text" id="syntaxhighlighter-tabsize" value="<?php echo esc_attr( $this->settings['tabsize'] ); ?>" class="small-text" /></td>
1005
  </tr>
 
 
 
 
 
 
 
1006
  </table>
1007
 
1008
  <p class="submit">
1009
- <input type="submit" name="syntaxhighlighter-submit" class="button-primary" value="<?php _e( 'Save Changes') ?>" />
1010
- <input type="submit" name="syntaxhighlighter-defaults" id="syntaxhighlighter-defaults" class="button-primary" value="<?php _e( 'Reset to Defaults', 'syntaxhighlighter' ) ?>" />
 
 
 
 
 
 
 
 
1011
  </p>
1012
 
1013
  </form>
@@ -1018,8 +1077,15 @@ class SyntaxHighlighter {
1018
 
1019
  <?php
1020
 
 
 
 
 
 
 
 
1021
  // Site owners may opt to disable the short tags, i.e. [php]
1022
- $democode = apply_filters( 'syntaxhighlighter_democode', '[sourcecode language="php" htmlscript="true" highlight="12"]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
1023
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
1024
  <head>
1025
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
@@ -1038,7 +1104,7 @@ class SyntaxHighlighter {
1038
  tabs.', 'syntaxhighlighter' ) . '
1039
  </div>
1040
 
1041
- <p><a href="http://wordpress.org/">WordPress</a></p>
1042
  </body>
1043
  </html>[/sourcecode]' );
1044
 
@@ -1046,6 +1112,7 @@ class SyntaxHighlighter {
1046
  echo $this->parse_shortcodes( $democode );
1047
  $this->codeformat = false;
1048
 
 
1049
  ?>
1050
 
1051
  <h3 style="margin-top:30px"><?php _e( 'Shortcode Parameters', 'syntaxhighlighter' ); ?></h3>
@@ -1053,26 +1120,26 @@ class SyntaxHighlighter {
1053
  <p><?php printf( __( 'These are the parameters you can pass to the shortcode and what they do. For the booleans (i.e. on/off), pass %1$s/%2$s or %3$s/%4$s.', 'syntaxhighlighter' ), '<code>true</code>', '<code>1</code>', '<code>false</code>', '<code>0</code>' ); ?></p>
1054
 
1055
  <ul class="ul-disc">
1056
- <li><?php printf( __( '%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;).', 'syntaxhighlighter' ), '<code>lang</code>', '<code>language</code>', 'http://alexgorbatchev.com/wiki/SyntaxHighlighter:Brushes' ); ?></li>
1057
- <li><?php printf( __( '%s &#8212; Toggle automatic URL linking.', 'syntaxhighlighter' ), '<code>autolinks</code>' ); ?></li>
1058
- <li><?php printf( __( '%s &#8212; Add an additional CSS class to the code box.', 'syntaxhighlighter' ), '<code>classname</code>' ); ?></li>
1059
- <li><?php printf( __( '%s &#8212; Toggle collapsing the code box by default, requiring a click to expand it. Good for large code posts.', 'syntaxhighlighter' ), '<code>collapse</code>' ); ?></li>
1060
- <li><?php printf( __( '%s &#8212; An interger specifying what number the first line should be (for the line numbering).', 'syntaxhighlighter' ), '<code>firstline</code>' ); ?></li>
1061
- <li><?php printf( __( '%s &#8212; Toggle the left-side line numbering.', 'syntaxhighlighter' ), '<code>gutter</code>' ); ?></li>
1062
- <li><?php printf( __( '%1$s &#8212; A comma-sperated list of line numbers to highlight. You can also specify a range. Example: %2$s', 'syntaxhighlighter' ), '<code>highlight</code>', '<code>2,5-10,12</code>' ); ?></li>
1063
- <li><?php printf( __( "%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.", 'syntaxhighlighter' ), '<code>htmlscript</code>' ); ?></li>
1064
- <li><?php printf( __( '%s &#8212; Toggle light mode which disables the gutter and toolbar all at once.', 'syntaxhighlighter' ), '<code>light</code>' ); ?></li>
1065
- <li><?php printf( __( '%s &#8212; Controls line number padding. Valid values are <code>false</code> (no padding), <code>true</code> (automatic padding), or an integer (forced padding).', 'syntaxhighlighter' ), '<code>padlinenumbers</code>' ); ?></li>
1066
- <li><?php printf( __( '%1$s &#8212; Sets some text to show up before the code. Very useful when combined with the %2$s parameter.', 'syntaxhighlighter' ), '<code>title</code>', '<code>collapse</code>' ); ?></li>
1067
- <li><?php printf( __( '%s &#8212; Toggle the toolbar containing the helpful buttons.', 'syntaxhighlighter' ), '<code>toolbar</code>' ); ?></li>
1068
- <li><?php printf( __( '%s &#8212; Toggle line wrapping.', 'syntaxhighlighter' ), '<code>wraplines</code>' ); ?></li>
1069
  </ul>
1070
 
1071
  <p><?php _e( 'Some example shortcodes:', 'syntaxhighlighter' ); ?></p>
1072
 
1073
  <ul class="ul-disc">
1074
  <li><code>[php]<?php _e( 'your code here', 'syntaxhighlighter' ); ?>[/php]</code></li>
1075
- <li><code>[css autolinks=&quot;false&quot; classname=&quot;myclass&quot; collapse=&quot;false&quot; firstline=&quot;1&quot; gutter=&quot;true&quot; highlight=&quot;1-3,6,9&quot; htmlscript=&quot;false&quot; light=&quot;false&quot; padlinenumbers=&quot;false&quot; smarttabs=&quot;true&quot; tabsize=&quot;4&quot; toolbar=&quot;true&quot;]<?php _e( 'your code here', 'syntaxhighlighter' ); ?>[/css]</code></li>
1076
  <li><code>[code lang=&quot;js&quot;]<?php _e( 'your code here', 'syntaxhighlighter' ); ?>[/code]</code></li>
1077
  <li><code>[sourcecode language=&quot;plain&quot;]<?php _e( 'your code here', 'syntaxhighlighter' ); ?>[/sourcecode]</code></li>
1078
  </ul>
@@ -1091,16 +1158,23 @@ class SyntaxHighlighter {
1091
  $settings = $this->defaultsettings;
1092
  $_REQUEST['_wp_http_referer'] = add_query_arg( 'defaults', 'true', $_REQUEST['_wp_http_referer'] );
1093
  } else {
1094
- $settings['theme'] = ( !empty($settings['theme']) && isset($this->themes[$settings['theme']]) ) ? strtolower($settings['theme']) : $this->defaultsettings['theme'];
1095
-
1096
- $settings['loadallbrushes'] = ( !empty($settings['loadallbrushes']) ) ? 1 : 0;
1097
- $settings['autolinks'] = ( !empty($settings['autolinks']) ) ? 1 : 0;
1098
- $settings['collapse'] = ( !empty($settings['collapse']) ) ? 1 : 0;
1099
- $settings['gutter'] = ( !empty($settings['gutter']) ) ? 1 : 0;
1100
- $settings['light'] = ( !empty($settings['light']) ) ? 1 : 0;
1101
- $settings['smarttabs'] = ( !empty($settings['smarttabs']) ) ? 1 : 0;
1102
- $settings['toolbar'] = ( !empty($settings['toolbar']) ) ? 1 : 0;
1103
- $settings['wraplines'] = ( !empty($settings['wraplines']) ) ? 1 : 0;
 
 
 
 
 
 
 
1104
 
1105
  if ( 'true' != $settings['padlinenumbers'] && 'false' != $settings['padlinenumbers'] )
1106
  $settings['padlinenumbers'] = (int) $settings['padlinenumbers'];
4
 
5
  Plugin Name: SyntaxHighlighter Evolved
6
  Plugin URI: http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/
7
+ Version: 3.1.0
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: Viper007Bond
10
  Author URI: http://www.viper007bond.com/
11
 
13
 
14
  Thanks to:
15
 
16
+ * Alex Gorbatchev for writing the Javascript-powered synatax highlighter script
 
17
 
18
  * Andrew Ozz for writing the TinyMCE plugin
19
 
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.0'; // 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
28
  var $defaultsettings = array(); // Contains the default settings
29
  var $brushes = array(); // Array of aliases => brushes
42
  // Load localization domain
43
  load_plugin_textdomain( 'syntaxhighlighter', false, '/syntaxhighlighter/localization' );
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  // Display hooks
46
  add_filter( 'the_content', array(&$this, 'parse_shortcodes'), 7 ); // Posts
47
  add_filter( 'comment_text', array(&$this, 'parse_shortcodes_comment'), 7 ); // Comments
83
  }
84
 
85
 
86
+ // Create array of default settings (you can use the filter to modify these)
87
+ $this->defaultsettings = (array) apply_filters( 'syntaxhighlighter_defaultsettings', array(
88
+ 'theme' => 'default',
89
+ 'loadallbrushes' => 0,
90
+ 'shversion' => 3,
91
+ 'title' => '',
92
+ 'autolinks' => 1,
93
+ 'classname' => '',
94
+ 'collapse' => 0,
95
+ 'firstline' => 1,
96
+ 'gutter' => 1,
97
+ 'htmlscript' => 0,
98
+ 'light' => 0,
99
+ 'padlinenumbers' => 'false',
100
+ 'smarttabs' => 1,
101
+ 'tabsize' => 4,
102
+ 'toolbar' => 0,
103
+ 'wraplines' => 1, // 2.x only
104
+ ) );
105
+
106
+ // Create the settings array by merging the user's settings and the defaults
107
+ $usersettings = (array) get_option('syntaxhighlighter_settings');
108
+ $this->settings = wp_parse_args( $usersettings, $this->defaultsettings );
109
+
110
+ // Dynamically set folder and version names for SynaxHighlighter
111
+ $this->shfolder = ( 2 == $this->settings['shversion'] ) ? 'syntaxhighlighter2' : 'syntaxhighlighter3';
112
+ $this->agshver = ( 2 == $this->settings['shversion'] ) ? '2.1.364' : '3.0.83';
113
+
114
+ // Register brush scripts
115
+ wp_register_script( 'syntaxhighlighter-core', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shCore.js'), array(), $this->agshver );
116
+ wp_register_script( 'syntaxhighlighter-brush-as3', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushAS3.js'), array('syntaxhighlighter-core'), $this->agshver );
117
+ wp_register_script( 'syntaxhighlighter-brush-bash', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushBash.js'), array('syntaxhighlighter-core'), $this->agshver );
118
+ wp_register_script( 'syntaxhighlighter-brush-coldfusion', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushColdFusion.js'), array('syntaxhighlighter-core'), $this->agshver );
119
+ wp_register_script( 'syntaxhighlighter-brush-cpp', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushCpp.js'), array('syntaxhighlighter-core'), $this->agshver );
120
+ wp_register_script( 'syntaxhighlighter-brush-csharp', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushCSharp.js'), array('syntaxhighlighter-core'), $this->agshver );
121
+ wp_register_script( 'syntaxhighlighter-brush-css', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushCss.js'), array('syntaxhighlighter-core'), $this->agshver );
122
+ wp_register_script( 'syntaxhighlighter-brush-delphi', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushDelphi.js'), array('syntaxhighlighter-core'), $this->agshver );
123
+ wp_register_script( 'syntaxhighlighter-brush-diff', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushDiff.js'), array('syntaxhighlighter-core'), $this->agshver );
124
+ wp_register_script( 'syntaxhighlighter-brush-erlang', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushErlang.js'), array('syntaxhighlighter-core'), $this->agshver );
125
+ wp_register_script( 'syntaxhighlighter-brush-groovy', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushGroovy.js'), array('syntaxhighlighter-core'), $this->agshver );
126
+ wp_register_script( 'syntaxhighlighter-brush-java', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushJava.js'), array('syntaxhighlighter-core'), $this->agshver );
127
+ wp_register_script( 'syntaxhighlighter-brush-javafx', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushJavaFX.js'), array('syntaxhighlighter-core'), $this->agshver );
128
+ wp_register_script( 'syntaxhighlighter-brush-jscript', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushJScript.js'), array('syntaxhighlighter-core'), $this->agshver );
129
+ wp_register_script( 'syntaxhighlighter-brush-perl', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushPerl.js'), array('syntaxhighlighter-core'), $this->agshver );
130
+ wp_register_script( 'syntaxhighlighter-brush-php', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushPhp.js'), array('syntaxhighlighter-core'), $this->agshver );
131
+ wp_register_script( 'syntaxhighlighter-brush-plain', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushPlain.js'), array('syntaxhighlighter-core'), $this->agshver );
132
+ wp_register_script( 'syntaxhighlighter-brush-powershell', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushPowerShell.js'), array('syntaxhighlighter-core'), $this->agshver );
133
+ wp_register_script( 'syntaxhighlighter-brush-python', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushPython.js'), array('syntaxhighlighter-core'), $this->agshver );
134
+ wp_register_script( 'syntaxhighlighter-brush-ruby', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushRuby.js'), array('syntaxhighlighter-core'), $this->agshver );
135
+ wp_register_script( 'syntaxhighlighter-brush-scala', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushScala.js'), array('syntaxhighlighter-core'), $this->agshver );
136
+ wp_register_script( 'syntaxhighlighter-brush-sql', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushSql.js'), array('syntaxhighlighter-core'), $this->agshver );
137
+ wp_register_script( 'syntaxhighlighter-brush-vb', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushVb.js'), array('syntaxhighlighter-core'), $this->agshver );
138
+ wp_register_script( 'syntaxhighlighter-brush-xml', plugins_url('syntaxhighlighter/' . $this->shfolder . '/scripts/shBrushXml.js'), array('syntaxhighlighter-core'), $this->agshver );
139
+
140
+ // Register some popular third-party brushes
141
+ wp_register_script( 'syntaxhighlighter-brush-clojure', plugins_url('syntaxhighlighter/third-party-brushes/shBrushClojure.js'), array('syntaxhighlighter-core'), '20090602' );
142
+ wp_register_script( 'syntaxhighlighter-brush-fsharp', plugins_url('syntaxhighlighter/third-party-brushes/shBrushFSharp.js'), array('syntaxhighlighter-core'), '20091003' );
143
+ wp_register_script( 'syntaxhighlighter-brush-latex', plugins_url('syntaxhighlighter/third-party-brushes/shBrushLatex.js'), array('syntaxhighlighter-core'), '20090613' );
144
+ wp_register_script( 'syntaxhighlighter-brush-matlabkey', plugins_url('syntaxhighlighter/third-party-brushes/shBrushMatlabKey.js'), array('syntaxhighlighter-core'), '20091209' );
145
+ wp_register_script( 'syntaxhighlighter-brush-objc', plugins_url('syntaxhighlighter/third-party-brushes/shBrushObjC.js'), array('syntaxhighlighter-core'), '20091207' );
146
+ wp_register_script( 'syntaxhighlighter-brush-r', plugins_url('syntaxhighlighter/third-party-brushes/shBrushR.js'), array('syntaxhighlighter-core'), '20100919' );
147
+
148
+ // Register theme stylesheets
149
+ wp_register_style( 'syntaxhighlighter-core', plugins_url('syntaxhighlighter/' . $this->shfolder . '/styles/shCore.css'), array(), $this->agshver );
150
+ wp_register_style( 'syntaxhighlighter-theme-default', plugins_url('syntaxhighlighter/' . $this->shfolder . '/styles/shThemeDefault.css'), array('syntaxhighlighter-core'), $this->agshver );
151
+ wp_register_style( 'syntaxhighlighter-theme-django', plugins_url('syntaxhighlighter/' . $this->shfolder . '/styles/shThemeDjango.css'), array('syntaxhighlighter-core'), $this->agshver );
152
+ wp_register_style( 'syntaxhighlighter-theme-eclipse', plugins_url('syntaxhighlighter/' . $this->shfolder . '/styles/shThemeEclipse.css'), array('syntaxhighlighter-core'), $this->agshver );
153
+ wp_register_style( 'syntaxhighlighter-theme-emacs', plugins_url('syntaxhighlighter/' . $this->shfolder . '/styles/shThemeEmacs.css'), array('syntaxhighlighter-core'), $this->agshver );
154
+ wp_register_style( 'syntaxhighlighter-theme-fadetogrey', plugins_url('syntaxhighlighter/' . $this->shfolder . '/styles/shThemeFadeToGrey.css'), array('syntaxhighlighter-core'), $this->agshver );
155
+ wp_register_style( 'syntaxhighlighter-theme-midnight', plugins_url('syntaxhighlighter/' . $this->shfolder . '/styles/shThemeMidnight.css'), array('syntaxhighlighter-core'), $this->agshver );
156
+ wp_register_style( 'syntaxhighlighter-theme-rdark', plugins_url('syntaxhighlighter/' . $this->shfolder . '/styles/shThemeRDark.css'), array('syntaxhighlighter-core'), $this->agshver );
157
+
158
+
159
  // Create list of brush aliases and map them to their real brushes
160
  // The key is the language alias
161
  // The value is the script handle suffix: syntaxhighlighter-brush-ThisBitHere (your plugin needs to register the script itself)
188
  'js' => 'jscript',
189
  'jscript' => 'jscript',
190
  'javascript' => 'jscript',
191
+ 'latex' => 'latex', // Not used as a shortcode
192
  'tex' => 'latex',
193
  'matlab' => 'matlabkey',
194
  'objc' => 'objc',
202
  'powershell' => 'powershell',
203
  'py' => 'python',
204
  'python' => 'python',
205
+ 'r' => 'r', // Not used as a shortcode
206
  'splus' => 'r',
207
  'rails' => 'ruby',
208
  'rb' => 'ruby',
219
  'xhtml' => 'xml',
220
  ) );
221
 
222
+
223
  // Create a list of shortcodes to use. You can use the filter to add/remove ones.
224
  // If the language/lang parameter is left out, it's assumed the shortcode name is the language.
225
  // If that's invalid, then "plain" is used.
226
  $this->shortcodes = array( 'sourcecode', 'source', 'code' );
227
  $this->shortcodes = array_merge( $this->shortcodes, array_keys( $this->brushes ) );
228
+
229
+ // Remove some shortcodes we don't want while still supporting them as language values
230
  unset( $this->shortcodes[array_search( 'latex', $this->shortcodes )] ); // Remove "latex" shortcode (it'll collide)
231
+ unset( $this->shortcodes[array_search( 'r', $this->shortcodes )] ); // Remove "r" shortcode (too short)
232
+
233
  $this->shortcodes = (array) apply_filters( 'syntaxhighlighter_shortcodes', $this->shortcodes );
234
 
235
+
236
  // Create list of themes and their human readable names
237
  // Plugins can add to this list: http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/adding-a-new-theme/
238
  $this->themes = (array) apply_filters( 'syntaxhighlighter_themes', array(
267
 
268
  // Add the custom TinyMCE plugin which wraps plugin shortcodes in <pre> in TinyMCE
269
  function add_tinymce_plugin( $plugins ) {
270
+ $plugins['syntaxhighlighter'] = plugins_url('syntaxhighlighter/syntaxhighlighter_mce.js');
271
  return $plugins;
272
  }
273
 
604
 
605
  echo " })();\n";
606
 
607
+ switch ( $this->settings['shversion'] ) {
608
+ case 2:
609
+ echo " SyntaxHighlighter.config.clipboardSwf = '" . esc_js( apply_filters( 'syntaxhighlighter_clipboardurl', plugins_url('syntaxhighlighter/syntaxhighlighter2/scripts/clipboard.swf') ) ) . "';\n";
610
+ echo " SyntaxHighlighter.config.strings.expandSource = '" . $this->js_escape_singlequotes( __( 'show source', 'syntaxhighlighter' ) ) . "';\n";
611
+ echo " SyntaxHighlighter.config.strings.viewSource = '" . $this->js_escape_singlequotes( __( 'view source', 'syntaxhighlighter' ) ) . "';\n";
612
+ echo " SyntaxHighlighter.config.strings.copyToClipboard = '" . $this->js_escape_singlequotes( __( 'copy to clipboard', 'syntaxhighlighter' ) ) . "';\n";
613
+ echo " SyntaxHighlighter.config.strings.copyToClipboardConfirmation = '" . $this->js_escape_singlequotes( __( 'The code is in your clipboard now', 'syntaxhighlighter' ) ) . "';\n";
614
+ echo " SyntaxHighlighter.config.strings.print = '" . $this->js_escape_singlequotes( __( 'print', 'syntaxhighlighter' ) ) . "';\n";
615
+ echo " SyntaxHighlighter.config.strings.help = '" . $this->js_escape_singlequotes( __( '?', 'syntaxhighlighter' ) ) . "';\n";
616
+ echo " SyntaxHighlighter.config.strings.alert = '" . $this->js_escape_singlequotes( __( 'SyntaxHighlighter\n\n', 'syntaxhighlighter' ) ) . "';\n";
617
+ echo " SyntaxHighlighter.config.strings.noBrush = '" . $this->js_escape_singlequotes( __( "Can't find brush for: ", 'syntaxhighlighter' ) ) . "';\n";
618
+ echo " SyntaxHighlighter.config.strings.brushNotHtmlScript = '" . $this->js_escape_singlequotes( __( "Brush wasn't configured for html-script option: ", 'syntaxhighlighter' ) ) . "';\n";
619
+ break;
620
+ case 3:
621
+ echo " SyntaxHighlighter.config.strings.expandSource = '" . $this->js_escape_singlequotes( __( '+ expand source', 'syntaxhighlighter' ) ) . "';\n";
622
+ echo " SyntaxHighlighter.config.strings.help = '" . $this->js_escape_singlequotes( __( '?', 'syntaxhighlighter' ) ) . "';\n";
623
+ echo " SyntaxHighlighter.config.strings.alert = '" . $this->js_escape_singlequotes( __( 'SyntaxHighlighter\n\n', 'syntaxhighlighter' ) ) . "';\n";
624
+ echo " SyntaxHighlighter.config.strings.noBrush = '" . $this->js_escape_singlequotes( __( "Can't find brush for: ", 'syntaxhighlighter' ) ) . "';\n";
625
+ echo " SyntaxHighlighter.config.strings.brushNotHtmlScript = '" . $this->js_escape_singlequotes( __( "Brush wasn't configured for html-script option: ", 'syntaxhighlighter' ) ) . "';\n";
626
+ break;
627
+ }
628
 
629
  if ( 1 != $this->settings['autolinks'] )
630
  echo " SyntaxHighlighter.defaults['auto-links'] = false;\n";
641
  if ( 1 != $this->settings['gutter'] )
642
  echo " SyntaxHighlighter.defaults['gutter'] = false;\n";
643
 
644
+ /*
645
+ if ( 1 == $this->settings['htmlscript'] )
646
+ echo " SyntaxHighlighter.defaults['html-script'] = true;\n";
647
+ */
648
 
649
  if ( 1 == $this->settings['light'] )
650
  echo " SyntaxHighlighter.defaults['light'] = true;\n";
651
 
652
+ echo " SyntaxHighlighter.defaults['pad-line-numbers'] = ";
653
+ switch ( $this->settings['padlinenumbers'] ) {
654
+ case 'true':
655
+ echo 'true';
656
+ break;
657
+ case 'false';
658
  echo 'false';
659
+ break;
660
+ default;
661
  echo (int) $this->settings['padlinenumbers'];
 
662
  }
663
+ echo ";\n";
664
 
665
  if ( 1 != $this->settings['smarttabs'] )
666
  echo " SyntaxHighlighter.defaults['smart-tabs'] = false;\n";
671
  if ( 1 != $this->settings['toolbar'] )
672
  echo " SyntaxHighlighter.defaults['toolbar'] = false;\n";
673
 
674
+ // 2.x only for now
675
  if ( 1 != $this->settings['wraplines'] )
676
  echo " SyntaxHighlighter.defaults['wrap-lines'] = false;\n";
677
 
779
  $params = array();
780
  $params[] = "brush: $lang;";
781
 
782
+ // Fix bug that prevents collapse from working if the toolbar is off or light mode is on
783
+ if ( 'true' == $atts['collapse'] || '1' === $atts['collapse'] || 1 == $this->settings['collapse'] ) {
784
  $atts['toolbar'] = 'true';
785
  $atts['light'] = 'false';
786
  }
949
 
950
 
951
  <table class="form-table">
952
+ <tr valign="top">
953
+ <th scope="row"><label for="syntaxhighlighter-shversion"><?php _e( 'Highlighter Version', 'syntaxhighlighter' ); ?></label></th>
954
+ <td>
955
+ <select name="syntaxhighlighter_settings[shversion]" id="syntaxhighlighter-shversion" class="postform">
956
+ <?php
957
+ $versions = array(
958
+ 3 => __( 'Version 3.x', 'syntaxhighlighter' ),
959
+ 2 => __( 'Version 2.x', 'syntaxhighlighter' ),
960
+ );
961
+
962
+ foreach ( $versions as $version => $name ) {
963
+ echo ' <option value="' . esc_attr( $version ) . '"' . selected( $this->settings['shversion'], $version, false ) . '>' . esc_html( $name ) . "&nbsp;</option>\n";
964
+ }
965
+ ?>
966
+ </select><br />
967
+ <?php _e( '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.', 'syntaxhighlighter' ); ?><br />
968
+ <?php _e( 'Version 2 allows for line wrapping, something that version 3 does not do at this time.', 'syntaxhighlighter' ); ?>
969
+ </td>
970
+ </tr>
971
  <tr valign="top">
972
  <th scope="row"><label for="syntaxhighlighter-theme"><?php _e( 'Color Theme', 'syntaxhighlighter' ); ?></label></th>
973
  <td>
974
  <select name="syntaxhighlighter_settings[theme]" id="syntaxhighlighter-theme" class="postform">
975
  <?php
976
  foreach ( $this->themes as $theme => $name ) {
977
+ echo ' <option value="' . esc_attr( $theme ) . '"' . selected( $this->settings['theme'], $theme, false ) . '>' . esc_html( $name ) . "&nbsp;</option>\n";
 
 
978
  }
979
  ?>
980
  </select>
985
  <td>
986
  <fieldset>
987
  <legend class="hidden"><?php _e( 'Load All Brushes', 'syntaxhighlighter' ); ?></legend>
988
+ <label for="syntaxhighlighter-loadallbrushes"><input name="syntaxhighlighter_settings[loadallbrushes]" type="checkbox" id="syntaxhighlighter-loadallbrushes" value="1" <?php checked( $this->settings['loadallbrushes'], 1 ); ?> /> <?php _e( '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', 'syntaxhighlighter' ); ?></label>
989
  </fieldset>
990
  </td>
991
  </tr>
993
 
994
  <h3><?php _e( 'Defaults', 'syntaxhighlighter' ); ?></h3>
995
 
996
+ <p><?php _e( '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.', 'syntaxhighlighter' ); ?></p>
997
 
998
  <table class="form-table">
999
  <tr valign="top">
1008
  <label for="syntaxhighlighter-collapse"><input name="syntaxhighlighter_settings[collapse]" type="checkbox" id="syntaxhighlighter-collapse" value="1" <?php checked( $this->settings['collapse'], 1 ); ?> /> <?php _e( 'Collapse code boxes', 'syntaxhighlighter' ); ?></label><br />
1009
  <label for="syntaxhighlighter-light"><input name="syntaxhighlighter_settings[light]" type="checkbox" id="syntaxhighlighter-light" value="1" <?php checked( $this->settings['light'], 1 ); ?> /> <?php _e( 'Use the light display mode, best for single lines of code', 'syntaxhighlighter' ); ?></label><br />
1010
  <label for="syntaxhighlighter-smarttabs"><input name="syntaxhighlighter_settings[smarttabs]" type="checkbox" id="syntaxhighlighter-smarttabs" value="1" <?php checked( $this->settings['smarttabs'], 1 ); ?> /> <?php _e( 'Use smart tabs allowing tabs being used for alignment', 'syntaxhighlighter' ); ?></label><br />
1011
+ <label for="syntaxhighlighter-wraplines"><input name="syntaxhighlighter_settings[wraplines]" type="checkbox" id="syntaxhighlighter-wraplines" value="1" <?php checked( $this->settings['wraplines'], 1 ); ?> /> <?php _e( 'Wrap long lines (v2.x only, disabling this will make a scrollbar show instead)', 'syntaxhighlighter' ); ?></label><br />
1012
  <!--<label for="syntaxhighlighter-htmlscript"><input name="syntaxhighlighter_settings[htmlscript]" type="checkbox" id="syntaxhighlighter-htmlscript" value="1" <?php checked( $this->settings['htmlscript'], 1 ); ?> /> <?php _e( 'Enable &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.', 'syntaxhighlighter' ); ?></label>-->
1013
  </fieldset>
1014
  </td>
1037
  );
1038
 
1039
  foreach ( $linepaddings as $value => $name ) {
1040
+ echo ' <option value="' . esc_attr( $value ) . '"' . selected( $this->settings['padlinenumbers'], $value, false ) . '>' . esc_html( $name ) . "&nbsp;</option>\n";
 
 
1041
  }
1042
  ?>
1043
  </select>
1047
  <th scope="row"><label for="syntaxhighlighter-tabsize"><?php _e( 'Tab Size', 'syntaxhighlighter' ); ?></label></th>
1048
  <td><input name="syntaxhighlighter_settings[tabsize]" type="text" id="syntaxhighlighter-tabsize" value="<?php echo esc_attr( $this->settings['tabsize'] ); ?>" class="small-text" /></td>
1049
  </tr>
1050
+ <tr valign="top">
1051
+ <th scope="row"><label for="syntaxhighlighter-title"><?php _e( 'Title', 'syntaxhighlighter' ); ?></label></th>
1052
+ <td>
1053
+ <input name="syntaxhighlighter_settings[title]" type="text" id="syntaxhighlighter-title" value="<?php echo esc_attr( $this->settings['title'] ); ?>" class="regular-text" /><br />
1054
+ <?php _e( 'Some optional default text to display above each code block or as the clickable text for collapsed code blocks.', 'syntaxhighlighter' ); ?>
1055
+ </td>
1056
+ </tr>
1057
  </table>
1058
 
1059
  <p class="submit">
1060
+ <?php
1061
+ if ( function_exists( 'submit_button' ) ) {
1062
+ submit_button( null, 'primary', 'syntaxhighlighter-submit', false );
1063
+ echo ' ';
1064
+ submit_button( __( 'Reset to Defaults', 'syntaxhighlighter' ), 'primary', 'syntaxhighlighter-defaults', false );
1065
+ } else {
1066
+ echo '<input type="submit" name="syntaxhighlighter-submit" class="button-primary" value="' . __( 'Save Changes') . '" />' . "\n";
1067
+ echo '<input type="submit" name="syntaxhighlighter-defaults" id="syntaxhighlighter-defaults" class="button-primary" value="' . __( 'Reset to Defaults', 'syntaxhighlighter' ) . '" />' . "\n";
1068
+ }
1069
+ ?>
1070
  </p>
1071
 
1072
  </form>
1077
 
1078
  <?php
1079
 
1080
+ echo '<div';
1081
+ if ( ! empty( $GLOBALS['content_width'] ) )
1082
+ echo ' style="max-width:' . intval( $GLOBALS['content_width'] ) . 'px"';
1083
+ echo '>';
1084
+
1085
+ $title = ( empty( $this->settings['title'] ) && 1 != $this->settings['collapse'] ) ? ' title="Code example: (this example was added using the title parameter)"' : '';
1086
+
1087
  // Site owners may opt to disable the short tags, i.e. [php]
1088
+ $democode = apply_filters( 'syntaxhighlighter_democode', '[sourcecode language="php" htmlscript="true" highlight="12"' . $title . ']<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
1089
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
1090
  <head>
1091
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
1104
  tabs.', 'syntaxhighlighter' ) . '
1105
  </div>
1106
 
1107
+ <p><a href="http://wordpress.org/">' . __( 'WordPress' ) . '</a></p>
1108
  </body>
1109
  </html>[/sourcecode]' );
1110
 
1112
  echo $this->parse_shortcodes( $democode );
1113
  $this->codeformat = false;
1114
 
1115
+ echo '</div>';
1116
  ?>
1117
 
1118
  <h3 style="margin-top:30px"><?php _e( 'Shortcode Parameters', 'syntaxhighlighter' ); ?></h3>
1120
  <p><?php printf( __( 'These are the parameters you can pass to the shortcode and what they do. For the booleans (i.e. on/off), pass %1$s/%2$s or %3$s/%4$s.', 'syntaxhighlighter' ), '<code>true</code>', '<code>1</code>', '<code>false</code>', '<code>0</code>' ); ?></p>
1121
 
1122
  <ul class="ul-disc">
1123
+ <li><?php printf( _x( '%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;).', 'language parameter', 'syntaxhighlighter' ), '<code>lang</code>', '<code>language</code>', 'http://alexgorbatchev.com/wiki/SyntaxHighlighter:Brushes' ); ?></li>
1124
+ <li><?php printf( _x( '%s &#8212; Toggle automatic URL linking.', 'autolinks parameter', 'syntaxhighlighter' ), '<code>autolinks</code>' ); ?></li>
1125
+ <li><?php printf( _x( '%s &#8212; Add an additional CSS class to the code box.', 'classname parameter', 'syntaxhighlighter' ), '<code>classname</code>' ); ?></li>
1126
+ <li><?php printf( _x( '%s &#8212; Toggle collapsing the code box by default, requiring a click to expand it. Good for large code posts.', 'collapse parameter', 'syntaxhighlighter' ), '<code>collapse</code>' ); ?></li>
1127
+ <li><?php printf( _x( '%s &#8212; An interger specifying what number the first line should be (for the line numbering).', 'firstline parameter', 'syntaxhighlighter' ), '<code>firstline</code>' ); ?></li>
1128
+ <li><?php printf( _x( '%s &#8212; Toggle the left-side line numbering.', 'gutter parameter', 'syntaxhighlighter' ), '<code>gutter</code>' ); ?></li>
1129
+ <li><?php printf( _x( '%1$s &#8212; A comma-sperated list of line numbers to highlight. You can also specify a range. Example: %2$s', 'highlight parameter', 'syntaxhighlighter' ), '<code>highlight</code>', '<code>2,5-10,12</code>' ); ?></li>
1130
+ <li><?php printf( _x( "%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.", 'htmlscript parameter', 'syntaxhighlighter' ), '<code>htmlscript</code>' ); ?></li>
1131
+ <li><?php printf( _x( '%s &#8212; Toggle light mode which disables the gutter and toolbar all at once.', 'light parameter', 'syntaxhighlighter' ), '<code>light</code>' ); ?></li>
1132
+ <li><?php printf( _x( '%s &#8212; Controls line number padding. Valid values are <code>false</code> (no padding), <code>true</code> (automatic padding), or an integer (forced padding).', 'padlinenumbers parameter', 'syntaxhighlighter' ), '<code>padlinenumbers</code>' ); ?></li>
1133
+ <li><?php printf( _x( '%1$s (v3 only) &#8212; Sets some text to show up before the code. Very useful when combined with the %2$s parameter.', 'title parameter', 'syntaxhighlighter' ), '<code>title</code>', '<code>collapse</code>' ); ?></li>
1134
+ <li><?php printf( _x( '%s &#8212; Toggle the toolbar (buttons in v2, the about question mark in v3)', 'toolbar parameter', 'syntaxhighlighter' ), '<code>toolbar</code>' ); ?></li>
1135
+ <li><?php printf( _x( '%s (v2 only) &#8212; Toggle line wrapping.', 'wraplines parameter', 'syntaxhighlighter'), '<code>wraplines</code>' ); ?></li>
1136
  </ul>
1137
 
1138
  <p><?php _e( 'Some example shortcodes:', 'syntaxhighlighter' ); ?></p>
1139
 
1140
  <ul class="ul-disc">
1141
  <li><code>[php]<?php _e( 'your code here', 'syntaxhighlighter' ); ?>[/php]</code></li>
1142
+ <li><code>[css autolinks=&quot;false&quot; classname=&quot;myclass&quot; collapse=&quot;false&quot; firstline=&quot;1&quot; gutter=&quot;true&quot; highlight=&quot;1-3,6,9&quot; htmlscript=&quot;false&quot; light=&quot;false&quot; padlinenumbers=&quot;false&quot; smarttabs=&quot;true&quot; tabsize=&quot;4&quot; toolbar=&quot;true&quot; title=&quot;<?php _e( 'example-filename.php', 'syntaxhighlighter' ); ?>&quot;]<?php _e( 'your code here', 'syntaxhighlighter' ); ?>[/css]</code></li>
1143
  <li><code>[code lang=&quot;js&quot;]<?php _e( 'your code here', 'syntaxhighlighter' ); ?>[/code]</code></li>
1144
  <li><code>[sourcecode language=&quot;plain&quot;]<?php _e( 'your code here', 'syntaxhighlighter' ); ?>[/sourcecode]</code></li>
1145
  </ul>
1158
  $settings = $this->defaultsettings;
1159
  $_REQUEST['_wp_http_referer'] = add_query_arg( 'defaults', 'true', $_REQUEST['_wp_http_referer'] );
1160
  } else {
1161
+ $settings['shversion'] = ( ! empty($settings['shversion']) && 2 == $settings['shversion'] ) ? 2 : 3;
1162
+
1163
+ $settings['theme'] = ( ! empty($settings['theme']) && isset($this->themes[$settings['theme']]) ) ? strtolower($settings['theme']) : $this->defaultsettings['theme'];
1164
+
1165
+ $settings['loadallbrushes'] = ( ! empty($settings['loadallbrushes']) ) ? 1 : 0;
1166
+ $settings['autolinks'] = ( ! empty($settings['autolinks']) ) ? 1 : 0;
1167
+ $settings['collapse'] = ( ! empty($settings['collapse']) ) ? 1 : 0;
1168
+ $settings['gutter'] = ( ! empty($settings['gutter']) ) ? 1 : 0;
1169
+ $settings['light'] = ( ! empty($settings['light']) ) ? 1 : 0;
1170
+ $settings['smarttabs'] = ( ! empty($settings['smarttabs']) ) ? 1 : 0;
1171
+ $settings['toolbar'] = ( ! empty($settings['toolbar']) ) ? 1 : 0; // May be overridden below
1172
+ $settings['wraplines'] = ( ! empty($settings['wraplines']) ) ? 1 : 0; // 2.x only for now
1173
+
1174
+ // If the version changed, then force change the toolbar version setting
1175
+ if ( $settings['shversion'] != $this->settings['shversion'] ) {
1176
+ $settings['toolbar'] = ( 2 == $settings['shversion'] ) ? 1 : 0;
1177
+ }
1178
 
1179
  if ( 'true' != $settings['padlinenumbers'] && 'false' != $settings['padlinenumbers'] )
1180
  $settings['padlinenumbers'] = (int) $settings['padlinenumbers'];
syntaxhighlighter2/LGPLv3.txt ADDED
@@ -0,0 +1,165 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.
syntaxhighlighter2/scripts/clipboard.swf ADDED
Binary file
syntaxhighlighter2/scripts/shBrushAS3.js ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ SyntaxHighlighter.brushes.AS3 = function()
31
+ {
32
+ // Created by Peter Atoria @ http://iAtoria.com
33
+
34
+ var inits = 'class interface function package';
35
+
36
+ var keywords = '-Infinity ...rest Array as AS3 Boolean break case catch const continue Date decodeURI ' +
37
+ 'decodeURIComponent default delete do dynamic each else encodeURI encodeURIComponent escape ' +
38
+ 'extends false final finally flash_proxy for get if implements import in include Infinity ' +
39
+ 'instanceof int internal is isFinite isNaN isXMLName label namespace NaN native new null ' +
40
+ 'Null Number Object object_proxy override parseFloat parseInt private protected public ' +
41
+ 'return set static String super switch this throw true try typeof uint undefined unescape ' +
42
+ 'use void while with'
43
+ ;
44
+
45
+ this.regexList = [
46
+ { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
47
+ { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
48
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
49
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
50
+ { regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers
51
+ { regex: new RegExp(this.getKeywords(inits), 'gm'), css: 'color3' }, // initializations
52
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
53
+ { regex: new RegExp('var', 'gm'), css: 'variable' }, // variable
54
+ { regex: new RegExp('trace', 'gm'), css: 'color1' } // trace
55
+ ];
56
+
57
+ this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags);
58
+ };
59
+
60
+ SyntaxHighlighter.brushes.AS3.prototype = new SyntaxHighlighter.Highlighter();
61
+ SyntaxHighlighter.brushes.AS3.aliases = ['actionscript3', 'as3'];
syntaxhighlighter2/scripts/shBrushBash.js ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ SyntaxHighlighter.brushes.Bash = function()
31
+ {
32
+ var keywords = 'if fi then elif else for do done until while break continue case function return in eq ne gt lt ge le';
33
+ var commands = 'alias apropos awk basename bash bc bg builtin bzip2 cal cat cd cfdisk chgrp chmod chown chroot' +
34
+ 'cksum clear cmp comm command cp cron crontab csplit cut date dc dd ddrescue declare df ' +
35
+ 'diff diff3 dig dir dircolors dirname dirs du echo egrep eject enable env ethtool eval ' +
36
+ 'exec exit expand export expr false fdformat fdisk fg fgrep file find fmt fold format ' +
37
+ 'free fsck ftp gawk getopts grep groups gzip hash head history hostname id ifconfig ' +
38
+ 'import install join kill less let ln local locate logname logout look lpc lpr lprint ' +
39
+ 'lprintd lprintq lprm ls lsof make man mkdir mkfifo mkisofs mknod more mount mtools ' +
40
+ 'mv netstat nice nl nohup nslookup open op passwd paste pathchk ping popd pr printcap ' +
41
+ 'printenv printf ps pushd pwd quota quotacheck quotactl ram rcp read readonly renice ' +
42
+ 'remsync rm rmdir rsync screen scp sdiff sed select seq set sftp shift shopt shutdown ' +
43
+ 'sleep sort source split ssh strace su sudo sum symlink sync tail tar tee test time ' +
44
+ 'times touch top traceroute trap tr true tsort tty type ulimit umask umount unalias ' +
45
+ 'uname unexpand uniq units unset unshar useradd usermod users uuencode uudecode v vdir ' +
46
+ 'vi watch wc whereis which who whoami Wget xargs yes'
47
+ ;
48
+
49
+ this.findMatches = function(regexList, code)
50
+ {
51
+ code = code.replace(/&gt;/g, '>').replace(/&lt;/g, '<');
52
+ this.code = code;
53
+ return SyntaxHighlighter.Highlighter.prototype.findMatches.apply(this, [regexList, code]);
54
+ };
55
+
56
+ this.regexList = [
57
+ { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments
58
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
59
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
60
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
61
+ { regex: new RegExp(this.getKeywords(commands), 'gm'), css: 'functions' } // commands
62
+ ];
63
+ }
64
+
65
+ SyntaxHighlighter.brushes.Bash.prototype = new SyntaxHighlighter.Highlighter();
66
+ SyntaxHighlighter.brushes.Bash.aliases = ['bash', 'shell'];
syntaxhighlighter2/scripts/shBrushCSharp.js ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ SyntaxHighlighter.brushes.CSharp = function()
31
+ {
32
+ var keywords = 'abstract as base bool break byte case catch char checked class const ' +
33
+ 'continue decimal default delegate do double else enum event explicit ' +
34
+ 'extern false finally fixed float for foreach get goto if implicit in int ' +
35
+ 'interface internal is lock long namespace new null object operator out ' +
36
+ 'override params private protected public readonly ref return sbyte sealed set ' +
37
+ 'short sizeof stackalloc static string struct switch this throw true try ' +
38
+ 'typeof uint ulong unchecked unsafe ushort using virtual void while';
39
+
40
+ function fixComments(match, regexInfo)
41
+ {
42
+ var css = (match[0].indexOf("///") == 0)
43
+ ? 'color1'
44
+ : 'comments'
45
+ ;
46
+
47
+ return [new SyntaxHighlighter.Match(match[0], match.index, css)];
48
+ }
49
+
50
+ this.regexList = [
51
+ { regex: SyntaxHighlighter.regexLib.singleLineCComments, func : fixComments }, // one line comments
52
+ { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
53
+ { regex: /@"(?:[^"]|"")*"/g, css: 'string' }, // @-quoted strings
54
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
55
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
56
+ { regex: /^\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
57
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // c# keyword
58
+ { regex: /\bpartial(?=\s+(?:class|interface|struct)\b)/g, css: 'keyword' }, // contextual keyword: 'partial'
59
+ { regex: /\byield(?=\s+(?:return|break)\b)/g, css: 'keyword' } // contextual keyword: 'yield'
60
+ ];
61
+
62
+ this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
63
+ };
64
+
65
+ SyntaxHighlighter.brushes.CSharp.prototype = new SyntaxHighlighter.Highlighter();
66
+ SyntaxHighlighter.brushes.CSharp.aliases = ['c#', 'c-sharp', 'csharp'];
67
+
syntaxhighlighter2/scripts/shBrushColdFusion.js ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ SyntaxHighlighter.brushes.ColdFusion = function()
31
+ {
32
+ // Contributed by Jen
33
+ // http://www.jensbits.com/2009/05/14/coldfusion-brush-for-syntaxhighlighter-plus
34
+
35
+ var funcs = 'Abs ACos AddSOAPRequestHeader AddSOAPResponseHeader AjaxLink AjaxOnLoad ArrayAppend ArrayAvg ArrayClear ArrayDeleteAt ' +
36
+ 'ArrayInsertAt ArrayIsDefined ArrayIsEmpty ArrayLen ArrayMax ArrayMin ArraySet ArraySort ArraySum ArraySwap ArrayToList ' +
37
+ 'Asc ASin Atn BinaryDecode BinaryEncode BitAnd BitMaskClear BitMaskRead BitMaskSet BitNot BitOr BitSHLN BitSHRN BitXor ' +
38
+ 'Ceiling CharsetDecode CharsetEncode Chr CJustify Compare CompareNoCase Cos CreateDate CreateDateTime CreateObject ' +
39
+ 'CreateODBCDate CreateODBCDateTime CreateODBCTime CreateTime CreateTimeSpan CreateUUID DateAdd DateCompare DateConvert ' +
40
+ 'DateDiff DateFormat DatePart Day DayOfWeek DayOfWeekAsString DayOfYear DaysInMonth DaysInYear DE DecimalFormat DecrementValue ' +
41
+ 'Decrypt DecryptBinary DeleteClientVariable DeserializeJSON DirectoryExists DollarFormat DotNetToCFType Duplicate Encrypt ' +
42
+ 'EncryptBinary Evaluate Exp ExpandPath FileClose FileCopy FileDelete FileExists FileIsEOF FileMove FileOpen FileRead ' +
43
+ 'FileReadBinary FileReadLine FileSetAccessMode FileSetAttribute FileSetLastModified FileWrite Find FindNoCase FindOneOf ' +
44
+ 'FirstDayOfMonth Fix FormatBaseN GenerateSecretKey GetAuthUser GetBaseTagData GetBaseTagList GetBaseTemplatePath ' +
45
+ 'GetClientVariablesList GetComponentMetaData GetContextRoot GetCurrentTemplatePath GetDirectoryFromPath GetEncoding ' +
46
+ 'GetException GetFileFromPath GetFileInfo GetFunctionList GetGatewayHelper GetHttpRequestData GetHttpTimeString ' +
47
+ 'GetK2ServerDocCount GetK2ServerDocCountLimit GetLocale GetLocaleDisplayName GetLocalHostIP GetMetaData GetMetricData ' +
48
+ 'GetPageContext GetPrinterInfo GetProfileSections GetProfileString GetReadableImageFormats GetSOAPRequest GetSOAPRequestHeader ' +
49
+ 'GetSOAPResponse GetSOAPResponseHeader GetTempDirectory GetTempFile GetTemplatePath GetTickCount GetTimeZoneInfo GetToken ' +
50
+ 'GetUserRoles GetWriteableImageFormats Hash Hour HTMLCodeFormat HTMLEditFormat IIf ImageAddBorder ImageBlur ImageClearRect ' +
51
+ 'ImageCopy ImageCrop ImageDrawArc ImageDrawBeveledRect ImageDrawCubicCurve ImageDrawLine ImageDrawLines ImageDrawOval ' +
52
+ 'ImageDrawPoint ImageDrawQuadraticCurve ImageDrawRect ImageDrawRoundRect ImageDrawText ImageFlip ImageGetBlob ImageGetBufferedImage ' +
53
+ 'ImageGetEXIFTag ImageGetHeight ImageGetIPTCTag ImageGetWidth ImageGrayscale ImageInfo ImageNegative ImageNew ImageOverlay ImagePaste ' +
54
+ 'ImageRead ImageReadBase64 ImageResize ImageRotate ImageRotateDrawingAxis ImageScaleToFit ImageSetAntialiasing ImageSetBackgroundColor ' +
55
+ 'ImageSetDrawingColor ImageSetDrawingStroke ImageSetDrawingTransparency ImageSharpen ImageShear ImageShearDrawingAxis ImageTranslate ' +
56
+ 'ImageTranslateDrawingAxis ImageWrite ImageWriteBase64 ImageXORDrawingMode IncrementValue InputBaseN Insert Int IsArray IsBinary ' +
57
+ 'IsBoolean IsCustomFunction IsDate IsDDX IsDebugMode IsDefined IsImage IsImageFile IsInstanceOf IsJSON IsLeapYear IsLocalHost ' +
58
+ 'IsNumeric IsNumericDate IsObject IsPDFFile IsPDFObject IsQuery IsSimpleValue IsSOAPRequest IsStruct IsUserInAnyRole IsUserInRole ' +
59
+ 'IsUserLoggedIn IsValid IsWDDX IsXML IsXmlAttribute IsXmlDoc IsXmlElem IsXmlNode IsXmlRoot JavaCast JSStringFormat LCase Left Len ' +
60
+ 'ListAppend ListChangeDelims ListContains ListContainsNoCase ListDeleteAt ListFind ListFindNoCase ListFirst ListGetAt ListInsertAt ' +
61
+ 'ListLast ListLen ListPrepend ListQualify ListRest ListSetAt ListSort ListToArray ListValueCount ListValueCountNoCase LJustify Log ' +
62
+ 'Log10 LSCurrencyFormat LSDateFormat LSEuroCurrencyFormat LSIsCurrency LSIsDate LSIsNumeric LSNumberFormat LSParseCurrency LSParseDateTime ' +
63
+ 'LSParseEuroCurrency LSParseNumber LSTimeFormat LTrim Max Mid Min Minute Month MonthAsString Now NumberFormat ParagraphFormat ParseDateTime ' +
64
+ 'Pi PrecisionEvaluate PreserveSingleQuotes Quarter QueryAddColumn QueryAddRow QueryConvertForGrid QueryNew QuerySetCell QuotedValueList Rand ' +
65
+ 'Randomize RandRange REFind REFindNoCase ReleaseComObject REMatch REMatchNoCase RemoveChars RepeatString Replace ReplaceList ReplaceNoCase ' +
66
+ 'REReplace REReplaceNoCase Reverse Right RJustify Round RTrim Second SendGatewayMessage SerializeJSON SetEncoding SetLocale SetProfileString ' +
67
+ 'SetVariable Sgn Sin Sleep SpanExcluding SpanIncluding Sqr StripCR StructAppend StructClear StructCopy StructCount StructDelete StructFind ' +
68
+ 'StructFindKey StructFindValue StructGet StructInsert StructIsEmpty StructKeyArray StructKeyExists StructKeyList StructKeyList StructNew ' +
69
+ 'StructSort StructUpdate Tan TimeFormat ToBase64 ToBinary ToScript ToString Trim UCase URLDecode URLEncodedFormat URLSessionFormat Val ' +
70
+ 'ValueList VerifyClient Week Wrap Wrap WriteOutput XmlChildPos XmlElemNew XmlFormat XmlGetNodeType XmlNew XmlParse XmlSearch XmlTransform ' +
71
+ 'XmlValidate Year YesNoFormat';
72
+
73
+ var keywords = 'cfabort cfajaximport cfajaxproxy cfapplet cfapplication cfargument cfassociate cfbreak cfcache cfcalendar ' +
74
+ 'cfcase cfcatch cfchart cfchartdata cfchartseries cfcol cfcollection cfcomponent cfcontent cfcookie cfdbinfo ' +
75
+ 'cfdefaultcase cfdirectory cfdiv cfdocument cfdocumentitem cfdocumentsection cfdump cfelse cfelseif cferror ' +
76
+ 'cfexchangecalendar cfexchangeconnection cfexchangecontact cfexchangefilter cfexchangemail cfexchangetask ' +
77
+ 'cfexecute cfexit cffeed cffile cfflush cfform cfformgroup cfformitem cfftp cffunction cfgrid cfgridcolumn ' +
78
+ 'cfgridrow cfgridupdate cfheader cfhtmlhead cfhttp cfhttpparam cfif cfimage cfimport cfinclude cfindex ' +
79
+ 'cfinput cfinsert cfinterface cfinvoke cfinvokeargument cflayout cflayoutarea cfldap cflocation cflock cflog ' +
80
+ 'cflogin cfloginuser cflogout cfloop cfmail cfmailparam cfmailpart cfmenu cfmenuitem cfmodule cfNTauthenticate ' +
81
+ 'cfobject cfobjectcache cfoutput cfparam cfpdf cfpdfform cfpdfformparam cfpdfparam cfpdfsubform cfpod cfpop ' +
82
+ 'cfpresentation cfpresentationslide cfpresenter cfprint cfprocessingdirective cfprocparam cfprocresult ' +
83
+ 'cfproperty cfquery cfqueryparam cfregistry cfreport cfreportparam cfrethrow cfreturn cfsavecontent cfschedule ' +
84
+ 'cfscript cfsearch cfselect cfset cfsetting cfsilent cfslider cfsprydataset cfstoredproc cfswitch cftable ' +
85
+ 'cftextarea cfthread cfthrow cftimer cftooltip cftrace cftransaction cftree cftreeitem cftry cfupdate cfwddx ' +
86
+ 'cfwindow cfxml cfzip cfzipparam';
87
+
88
+ var operators = 'all and any between cross in join like not null or outer some';
89
+
90
+ this.regexList = [
91
+ { regex: new RegExp('--(.*)$', 'gm'), css: 'comments' }, // one line and multiline comments
92
+ { regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, // single quoted strings
93
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
94
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
95
+ { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // functions
96
+ { regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // operators and such
97
+ { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
98
+ ];
99
+ }
100
+
101
+ SyntaxHighlighter.brushes.ColdFusion.prototype = new SyntaxHighlighter.Highlighter();
102
+ SyntaxHighlighter.brushes.ColdFusion.aliases = ['coldfusion','cf'];
syntaxhighlighter2/scripts/shBrushCpp.js ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ SyntaxHighlighter.brushes.Cpp = function()
31
+ {
32
+ // Copyright 2006 Shin, YoungJin
33
+
34
+ var datatypes = 'ATOM BOOL BOOLEAN BYTE CHAR COLORREF DWORD DWORDLONG DWORD_PTR ' +
35
+ 'DWORD32 DWORD64 FLOAT HACCEL HALF_PTR HANDLE HBITMAP HBRUSH ' +
36
+ 'HCOLORSPACE HCONV HCONVLIST HCURSOR HDC HDDEDATA HDESK HDROP HDWP ' +
37
+ 'HENHMETAFILE HFILE HFONT HGDIOBJ HGLOBAL HHOOK HICON HINSTANCE HKEY ' +
38
+ 'HKL HLOCAL HMENU HMETAFILE HMODULE HMONITOR HPALETTE HPEN HRESULT ' +
39
+ 'HRGN HRSRC HSZ HWINSTA HWND INT INT_PTR INT32 INT64 LANGID LCID LCTYPE ' +
40
+ 'LGRPID LONG LONGLONG LONG_PTR LONG32 LONG64 LPARAM LPBOOL LPBYTE LPCOLORREF ' +
41
+ 'LPCSTR LPCTSTR LPCVOID LPCWSTR LPDWORD LPHANDLE LPINT LPLONG LPSTR LPTSTR ' +
42
+ 'LPVOID LPWORD LPWSTR LRESULT PBOOL PBOOLEAN PBYTE PCHAR PCSTR PCTSTR PCWSTR ' +
43
+ 'PDWORDLONG PDWORD_PTR PDWORD32 PDWORD64 PFLOAT PHALF_PTR PHANDLE PHKEY PINT ' +
44
+ 'PINT_PTR PINT32 PINT64 PLCID PLONG PLONGLONG PLONG_PTR PLONG32 PLONG64 POINTER_32 ' +
45
+ 'POINTER_64 PSHORT PSIZE_T PSSIZE_T PSTR PTBYTE PTCHAR PTSTR PUCHAR PUHALF_PTR ' +
46
+ 'PUINT PUINT_PTR PUINT32 PUINT64 PULONG PULONGLONG PULONG_PTR PULONG32 PULONG64 ' +
47
+ 'PUSHORT PVOID PWCHAR PWORD PWSTR SC_HANDLE SC_LOCK SERVICE_STATUS_HANDLE SHORT ' +
48
+ 'SIZE_T SSIZE_T TBYTE TCHAR UCHAR UHALF_PTR UINT UINT_PTR UINT32 UINT64 ULONG ' +
49
+ 'ULONGLONG ULONG_PTR ULONG32 ULONG64 USHORT USN VOID WCHAR WORD WPARAM WPARAM WPARAM ' +
50
+ 'char bool short int __int32 __int64 __int8 __int16 long float double __wchar_t ' +
51
+ 'clock_t _complex _dev_t _diskfree_t div_t ldiv_t _exception _EXCEPTION_POINTERS ' +
52
+ 'FILE _finddata_t _finddatai64_t _wfinddata_t _wfinddatai64_t __finddata64_t ' +
53
+ '__wfinddata64_t _FPIEEE_RECORD fpos_t _HEAPINFO _HFILE lconv intptr_t ' +
54
+ 'jmp_buf mbstate_t _off_t _onexit_t _PNH ptrdiff_t _purecall_handler ' +
55
+ 'sig_atomic_t size_t _stat __stat64 _stati64 terminate_function ' +
56
+ 'time_t __time64_t _timeb __timeb64 tm uintptr_t _utimbuf ' +
57
+ 'va_list wchar_t wctrans_t wctype_t wint_t signed';
58
+
59
+ var keywords = 'break case catch class const __finally __exception __try ' +
60
+ 'const_cast continue private public protected __declspec ' +
61
+ 'default delete deprecated dllexport dllimport do dynamic_cast ' +
62
+ 'else enum explicit extern if for friend goto inline ' +
63
+ 'mutable naked namespace new noinline noreturn nothrow ' +
64
+ 'register reinterpret_cast return selectany ' +
65
+ 'sizeof static static_cast struct switch template this ' +
66
+ 'thread throw true false try typedef typeid typename union ' +
67
+ 'using uuid virtual void volatile whcar_t while';
68
+
69
+ var functions = 'assert isalnum isalpha iscntrl isdigit isgraph islower isprint' +
70
+ 'ispunct isspace isupper isxdigit tolower toupper errno localeconv ' +
71
+ 'setlocale acos asin atan atan2 ceil cos cosh exp fabs floor fmod ' +
72
+ 'frexp ldexp log log10 modf pow sin sinh sqrt tan tanh jmp_buf ' +
73
+ 'longjmp setjmp raise signal sig_atomic_t va_arg va_end va_start ' +
74
+ 'clearerr fclose feof ferror fflush fgetc fgetpos fgets fopen ' +
75
+ 'fprintf fputc fputs fread freopen fscanf fseek fsetpos ftell ' +
76
+ 'fwrite getc getchar gets perror printf putc putchar puts remove ' +
77
+ 'rename rewind scanf setbuf setvbuf sprintf sscanf tmpfile tmpnam ' +
78
+ 'ungetc vfprintf vprintf vsprintf abort abs atexit atof atoi atol ' +
79
+ 'bsearch calloc div exit free getenv labs ldiv malloc mblen mbstowcs ' +
80
+ 'mbtowc qsort rand realloc srand strtod strtol strtoul system ' +
81
+ 'wcstombs wctomb memchr memcmp memcpy memmove memset strcat strchr ' +
82
+ 'strcmp strcoll strcpy strcspn strerror strlen strncat strncmp ' +
83
+ 'strncpy strpbrk strrchr strspn strstr strtok strxfrm asctime ' +
84
+ 'clock ctime difftime gmtime localtime mktime strftime time';
85
+
86
+ this.regexList = [
87
+ { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
88
+ { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
89
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
90
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
91
+ { regex: /^ *#.*/gm, css: 'preprocessor' },
92
+ { regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'color1 bold' },
93
+ { regex: new RegExp(this.getKeywords(functions), 'gm'), css: 'functions bold' },
94
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword bold' }
95
+ ];
96
+ };
97
+
98
+ SyntaxHighlighter.brushes.Cpp.prototype = new SyntaxHighlighter.Highlighter();
99
+ SyntaxHighlighter.brushes.Cpp.aliases = ['cpp', 'c'];
syntaxhighlighter2/scripts/shBrushCss.js ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ SyntaxHighlighter.brushes.CSS = function()
31
+ {
32
+ function getKeywordsCSS(str)
33
+ {
34
+ return '\\b([a-z_]|)' + str.replace(/ /g, '(?=:)\\b|\\b([a-z_\\*]|\\*|)') + '(?=:)\\b';
35
+ };
36
+
37
+ function getValuesCSS(str)
38
+ {
39
+ return '\\b' + str.replace(/ /g, '(?!-)(?!:)\\b|\\b()') + '\:\\b';
40
+ };
41
+
42
+ var keywords = 'ascent azimuth background-attachment background-color background-image background-position ' +
43
+ 'background-repeat background baseline bbox border-collapse border-color border-spacing border-style border-top ' +
44
+ 'border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color ' +
45
+ 'border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width ' +
46
+ 'border-bottom-width border-left-width border-width border bottom cap-height caption-side centerline clear clip color ' +
47
+ 'content counter-increment counter-reset cue-after cue-before cue cursor definition-src descent direction display ' +
48
+ 'elevation empty-cells float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font ' +
49
+ 'height left letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top ' +
50
+ 'margin-right margin-bottom margin-left margin marker-offset marks mathline max-height max-width min-height min-width orphans ' +
51
+ 'outline-color outline-style outline-width outline overflow padding-top padding-right padding-bottom padding-left padding page ' +
52
+ 'page-break-after page-break-before page-break-inside pause pause-after pause-before pitch pitch-range play-during position ' +
53
+ 'quotes right richness size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress ' +
54
+ 'table-layout text-align top text-decoration text-indent text-shadow text-transform unicode-bidi unicode-range units-per-em ' +
55
+ 'vertical-align visibility voice-family volume white-space widows width widths word-spacing x-height z-index';
56
+
57
+ var values = 'above absolute all always aqua armenian attr aural auto avoid baseline behind below bidi-override black blink block blue bold bolder '+
58
+ 'both bottom braille capitalize caption center center-left center-right circle close-quote code collapse compact condensed '+
59
+ 'continuous counter counters crop cross crosshair cursive dashed decimal decimal-leading-zero default digits disc dotted double '+
60
+ 'embed embossed e-resize expanded extra-condensed extra-expanded fantasy far-left far-right fast faster fixed format fuchsia '+
61
+ 'gray green groove handheld hebrew help hidden hide high higher icon inline-table inline inset inside invert italic '+
62
+ 'justify landscape large larger left-side left leftwards level lighter lime line-through list-item local loud lower-alpha '+
63
+ 'lowercase lower-greek lower-latin lower-roman lower low ltr marker maroon medium message-box middle mix move narrower '+
64
+ 'navy ne-resize no-close-quote none no-open-quote no-repeat normal nowrap n-resize nw-resize oblique olive once open-quote outset '+
65
+ 'outside overline pointer portrait pre print projection purple red relative repeat repeat-x repeat-y rgb ridge right right-side '+
66
+ 'rightwards rtl run-in screen scroll semi-condensed semi-expanded separate se-resize show silent silver slower slow '+
67
+ 'small small-caps small-caption smaller soft solid speech spell-out square s-resize static status-bar sub super sw-resize '+
68
+ 'table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group teal '+
69
+ 'text-bottom text-top thick thin top transparent tty tv ultra-condensed ultra-expanded underline upper-alpha uppercase upper-latin '+
70
+ 'upper-roman url visible wait white wider w-resize x-fast x-high x-large x-loud x-low x-slow x-small x-soft xx-large xx-small yellow';
71
+
72
+ var fonts = '[mM]onospace [tT]ahoma [vV]erdana [aA]rial [hH]elvetica [sS]ans-serif [sS]erif [cC]ourier mono sans serif';
73
+
74
+ this.regexList = [
75
+ { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
76
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
77
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
78
+ { regex: /\#[a-fA-F0-9]{3,6}/g, css: 'value' }, // html colors
79
+ { regex: /(-?\d+)(\.\d+)?(px|em|pt|\:|\%|)/g, css: 'value' }, // sizes
80
+ { regex: /!important/g, css: 'color3' }, // !important
81
+ { regex: new RegExp(getKeywordsCSS(keywords), 'gm'), css: 'keyword' }, // keywords
82
+ { regex: new RegExp(getValuesCSS(values), 'g'), css: 'value' }, // values
83
+ { regex: new RegExp(this.getKeywords(fonts), 'g'), css: 'color1' } // fonts
84
+ ];
85
+
86
+ this.forHtmlScript({
87
+ left: /(&lt;|<)\s*style.*?(&gt;|>)/gi,
88
+ right: /(&lt;|<)\/\s*style\s*(&gt;|>)/gi
89
+ });
90
+ };
91
+
92
+ SyntaxHighlighter.brushes.CSS.prototype = new SyntaxHighlighter.Highlighter();
93
+ SyntaxHighlighter.brushes.CSS.aliases = ['css'];
syntaxhighlighter2/scripts/shBrushDelphi.js ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ SyntaxHighlighter.brushes.Delphi = function()
31
+ {
32
+ var keywords = 'abs addr and ansichar ansistring array as asm begin boolean byte cardinal ' +
33
+ 'case char class comp const constructor currency destructor div do double ' +
34
+ 'downto else end except exports extended false file finalization finally ' +
35
+ 'for function goto if implementation in inherited int64 initialization ' +
36
+ 'integer interface is label library longint longword mod nil not object ' +
37
+ 'of on or packed pansichar pansistring pchar pcurrency pdatetime pextended ' +
38
+ 'pint64 pointer private procedure program property pshortstring pstring ' +
39
+ 'pvariant pwidechar pwidestring protected public published raise real real48 ' +
40
+ 'record repeat set shl shortint shortstring shr single smallint string then ' +
41
+ 'threadvar to true try type unit until uses val var varirnt while widechar ' +
42
+ 'widestring with word write writeln xor';
43
+
44
+ this.regexList = [
45
+ { regex: /\(\*[\s\S]*?\*\)/gm, css: 'comments' }, // multiline comments (* *)
46
+ { regex: /{(?!\$)[\s\S]*?}/gm, css: 'comments' }, // multiline comments { }
47
+ { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line
48
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
49
+ { regex: /\{\$[a-zA-Z]+ .+\}/g, css: 'color1' }, // compiler Directives and Region tags
50
+ { regex: /\b[\d\.]+\b/g, css: 'value' }, // numbers 12345
51
+ { regex: /\$[a-zA-Z0-9]+\b/g, css: 'value' }, // numbers $F5D3
52
+ { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
53
+ ];
54
+ };
55
+
56
+ SyntaxHighlighter.brushes.Delphi.prototype = new SyntaxHighlighter.Highlighter();
57
+ SyntaxHighlighter.brushes.Delphi.aliases = ['delphi', 'pascal', 'pas'];
syntaxhighlighter2/scripts/shBrushDiff.js ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ SyntaxHighlighter.brushes.Diff = function()
31
+ {
32
+ this.regexList = [
33
+ { regex: /^\+\+\+.*$/gm, css: 'color2' },
34
+ { regex: /^\-\-\-.*$/gm, css: 'color2' },
35
+ { regex: /^\s.*$/gm, css: 'color1' },
36
+ { regex: /^@@.*@@$/gm, css: 'variable' },
37
+ { regex: /^\+[^\+]{1}.*$/gm, css: 'string' },
38
+ { regex: /^\-[^\-]{1}.*$/gm, css: 'comments' }
39
+ ];
40
+ };
41
+
42
+ SyntaxHighlighter.brushes.Diff.prototype = new SyntaxHighlighter.Highlighter();
43
+ SyntaxHighlighter.brushes.Diff.aliases = ['diff', 'patch'];
syntaxhighlighter2/scripts/shBrushErlang.js ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ SyntaxHighlighter.brushes.Erlang = function()
31
+ {
32
+ // Contributed by Jean-Lou Dupont
33
+ // http://jldupont.blogspot.com/2009/06/erlang-syntax-highlighter.html
34
+
35
+ // According to: http://erlang.org/doc/reference_manual/introduction.html#1.5
36
+ var keywords = 'after and andalso band begin bnot bor bsl bsr bxor '+
37
+ 'case catch cond div end fun if let not of or orelse '+
38
+ 'query receive rem try when xor'+
39
+ // additional
40
+ ' module export import define';
41
+
42
+ this.regexList = [
43
+ { regex: new RegExp("[A-Z][A-Za-z0-9_]+", 'g'), css: 'constants' },
44
+ { regex: new RegExp("\\%.+", 'gm'), css: 'comments' },
45
+ { regex: new RegExp("\\?[A-Za-z0-9_]+", 'g'), css: 'preprocessor' },
46
+ { regex: new RegExp("[a-z0-9_]+:[a-z0-9_]+", 'g'), css: 'functions' },
47
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
48
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
49
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
50
+ ];
51
+ };
52
+
53
+ SyntaxHighlighter.brushes.Erlang.prototype = new SyntaxHighlighter.Highlighter();
54
+ SyntaxHighlighter.brushes.Erlang.aliases = ['erl', 'erlang'];
syntaxhighlighter2/scripts/shBrushGroovy.js ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ SyntaxHighlighter.brushes.Groovy = function()
31
+ {
32
+ // Contributed by Andres Almiray
33
+ // http://jroller.com/aalmiray/entry/nice_source_code_syntax_highlighter
34
+
35
+ var keywords = 'as assert break case catch class continue def default do else extends finally ' +
36
+ 'if in implements import instanceof interface new package property return switch ' +
37
+ 'throw throws try while public protected private static';
38
+ var types = 'void boolean byte char short int long float double';
39
+ var constants = 'null';
40
+ var methods = 'allProperties count get size '+
41
+ 'collect each eachProperty eachPropertyName eachWithIndex find findAll ' +
42
+ 'findIndexOf grep inject max min reverseEach sort ' +
43
+ 'asImmutable asSynchronized flatten intersect join pop reverse subMap toList ' +
44
+ 'padRight padLeft contains eachMatch toCharacter toLong toUrl tokenize ' +
45
+ 'eachFile eachFileRecurse eachB yte eachLine readBytes readLine getText ' +
46
+ 'splitEachLine withReader append encodeBase64 decodeBase64 filterLine ' +
47
+ 'transformChar transformLine withOutputStream withPrintWriter withStream ' +
48
+ 'withStreams withWriter withWriterAppend write writeLine '+
49
+ 'dump inspect invokeMethod print println step times upto use waitForOrKill '+
50
+ 'getText';
51
+
52
+ this.regexList = [
53
+ { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
54
+ { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
55
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
56
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
57
+ { regex: /""".*"""/g, css: 'string' }, // GStrings
58
+ { regex: new RegExp('\\b([\\d]+(\\.[\\d]+)?|0x[a-f0-9]+)\\b', 'gi'), css: 'value' }, // numbers
59
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // goovy keyword
60
+ { regex: new RegExp(this.getKeywords(types), 'gm'), css: 'color1' }, // goovy/java type
61
+ { regex: new RegExp(this.getKeywords(constants), 'gm'), css: 'constants' }, // constants
62
+ { regex: new RegExp(this.getKeywords(methods), 'gm'), css: 'functions' } // methods
63
+ ];
64
+
65
+ this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
66
+ }
67
+
68
+ SyntaxHighlighter.brushes.Groovy.prototype = new SyntaxHighlighter.Highlighter();
69
+ SyntaxHighlighter.brushes.Groovy.aliases = ['groovy'];
syntaxhighlighter2/scripts/shBrushJScript.js ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ SyntaxHighlighter.brushes.JScript = function()
31
+ {
32
+ var keywords = 'break case catch continue ' +
33
+ 'default delete do else false ' +
34
+ 'for function if in instanceof ' +
35
+ 'new null return super switch ' +
36
+ 'this throw true try typeof var while with'
37
+ ;
38
+
39
+ this.regexList = [
40
+ { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
41
+ { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
42
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
43
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
44
+ { regex: /\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
45
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords
46
+ ];
47
+
48
+ this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags);
49
+ };
50
+
51
+ SyntaxHighlighter.brushes.JScript.prototype = new SyntaxHighlighter.Highlighter();
52
+ SyntaxHighlighter.brushes.JScript.aliases = ['js', 'jscript', 'javascript'];
syntaxhighlighter2/scripts/shBrushJava.js ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ SyntaxHighlighter.brushes.Java = function()
31
+ {
32
+ var keywords = 'abstract assert boolean break byte case catch char class const ' +
33
+ 'continue default do double else enum extends ' +
34
+ 'false final finally float for goto if implements import ' +
35
+ 'instanceof int interface long native new null ' +
36
+ 'package private protected public return ' +
37
+ 'short static strictfp super switch synchronized this throw throws true ' +
38
+ 'transient try void volatile while';
39
+
40
+ this.regexList = [
41
+ { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
42
+ { regex: /\/\*([^\*][\s\S]*)?\*\//gm, css: 'comments' }, // multiline comments
43
+ { regex: /\/\*(?!\*\/)\*[\s\S]*?\*\//gm, css: 'preprocessor' }, // documentation comments
44
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
45
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
46
+ { regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers
47
+ { regex: /(?!\@interface\b)\@[\$\w]+\b/g, css: 'color1' }, // annotation @anno
48
+ { regex: /\@interface\b/g, css: 'color2' }, // @interface keyword
49
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // java keyword
50
+ ];
51
+
52
+ this.forHtmlScript({
53
+ left : /(&lt;|<)%[@!=]?/g,
54
+ right : /%(&gt;|>)/g
55
+ });
56
+ };
57
+
58
+ SyntaxHighlighter.brushes.Java.prototype = new SyntaxHighlighter.Highlighter();
59
+ SyntaxHighlighter.brushes.Java.aliases = ['java'];
syntaxhighlighter2/scripts/shBrushJavaFX.js ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ SyntaxHighlighter.brushes.JavaFX = function()
31
+ {
32
+ // Contributed by Patrick Webster
33
+ // http://patrickwebster.blogspot.com/2009/04/javafx-brush-for-syntaxhighlighter.html
34
+ var datatypes = 'Boolean Byte Character Double Duration '
35
+ + 'Float Integer Long Number Short String Void'
36
+ ;
37
+
38
+ var keywords = 'abstract after and as assert at before bind bound break catch class '
39
+ + 'continue def delete else exclusive extends false finally first for from '
40
+ + 'function if import in indexof init insert instanceof into inverse last '
41
+ + 'lazy mixin mod nativearray new not null on or override package postinit '
42
+ + 'protected public public-init public-read replace return reverse sizeof '
43
+ + 'step super then this throw true try tween typeof var where while with '
44
+ + 'attribute let private readonly static trigger'
45
+ ;
46
+
47
+ this.regexList = [
48
+ { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' },
49
+ { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' },
50
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
51
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
52
+ { regex: /(-?\.?)(\b(\d*\.?\d+|\d+\.?\d*)(e[+-]?\d+)?|0x[a-f\d]+)\b\.?/gi, css: 'color2' }, // numbers
53
+ { regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'variable' }, // datatypes
54
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
55
+ ];
56
+ this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
57
+ };
58
+
59
+ SyntaxHighlighter.brushes.JavaFX.prototype = new SyntaxHighlighter.Highlighter();
60
+ SyntaxHighlighter.brushes.JavaFX.aliases = ['jfx', 'javafx'];
syntaxhighlighter2/scripts/shBrushPerl.js ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ SyntaxHighlighter.brushes.Perl = function()
31
+ {
32
+ // Contributed by David Simmons-Duffin and Marty Kube
33
+
34
+ var funcs =
35
+ 'abs accept alarm atan2 bind binmode chdir chmod chomp chop chown chr ' +
36
+ 'chroot close closedir connect cos crypt defined delete each endgrent ' +
37
+ 'endhostent endnetent endprotoent endpwent endservent eof exec exists ' +
38
+ 'exp fcntl fileno flock fork format formline getc getgrent getgrgid ' +
39
+ 'getgrnam gethostbyaddr gethostbyname gethostent getlogin getnetbyaddr ' +
40
+ 'getnetbyname getnetent getpeername getpgrp getppid getpriority ' +
41
+ 'getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid ' +
42
+ 'getservbyname getservbyport getservent getsockname getsockopt glob ' +
43
+ 'gmtime grep hex index int ioctl join keys kill lc lcfirst length link ' +
44
+ 'listen localtime lock log lstat map mkdir msgctl msgget msgrcv msgsnd ' +
45
+ 'oct open opendir ord pack pipe pop pos print printf prototype push ' +
46
+ 'quotemeta rand read readdir readline readlink readpipe recv rename ' +
47
+ 'reset reverse rewinddir rindex rmdir scalar seek seekdir select semctl ' +
48
+ 'semget semop send setgrent sethostent setnetent setpgrp setpriority ' +
49
+ 'setprotoent setpwent setservent setsockopt shift shmctl shmget shmread ' +
50
+ 'shmwrite shutdown sin sleep socket socketpair sort splice split sprintf ' +
51
+ 'sqrt srand stat study substr symlink syscall sysopen sysread sysseek ' +
52
+ 'system syswrite tell telldir time times tr truncate uc ucfirst umask ' +
53
+ 'undef unlink unpack unshift utime values vec wait waitpid warn write';
54
+
55
+ var keywords =
56
+ 'bless caller continue dbmclose dbmopen die do dump else elsif eval exit ' +
57
+ 'for foreach goto if import last local my next no our package redo ref ' +
58
+ 'require return sub tie tied unless untie until use wantarray while';
59
+
60
+ this.regexList = [
61
+ { regex: new RegExp('#[^!].*$', 'gm'), css: 'comments' },
62
+ { regex: new RegExp('^\\s*#!.*$', 'gm'), css: 'preprocessor' }, // shebang
63
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' },
64
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' },
65
+ { regex: new RegExp('(\\$|@|%)\\w+', 'g'), css: 'variable' },
66
+ { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' },
67
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }
68
+ ];
69
+
70
+ this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
71
+ }
72
+
73
+ SyntaxHighlighter.brushes.Perl.prototype = new SyntaxHighlighter.Highlighter();
74
+ SyntaxHighlighter.brushes.Perl.aliases = ['perl', 'Perl', 'pl'];
syntaxhighlighter2/scripts/shBrushPhp.js ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ SyntaxHighlighter.brushes.Php = function()
31
+ {
32
+ var funcs = 'abs acos acosh addcslashes addslashes ' +
33
+ 'array_change_key_case array_chunk array_combine array_count_values array_diff '+
34
+ 'array_diff_assoc array_diff_key array_diff_uassoc array_diff_ukey array_fill '+
35
+ 'array_filter array_flip array_intersect array_intersect_assoc array_intersect_key '+
36
+ 'array_intersect_uassoc array_intersect_ukey array_key_exists array_keys array_map '+
37
+ 'array_merge array_merge_recursive array_multisort array_pad array_pop array_product '+
38
+ 'array_push array_rand array_reduce array_reverse array_search array_shift '+
39
+ 'array_slice array_splice array_sum array_udiff array_udiff_assoc '+
40
+ 'array_udiff_uassoc array_uintersect array_uintersect_assoc '+
41
+ 'array_uintersect_uassoc array_unique array_unshift array_values array_walk '+
42
+ 'array_walk_recursive atan atan2 atanh base64_decode base64_encode base_convert '+
43
+ 'basename bcadd bccomp bcdiv bcmod bcmul bindec bindtextdomain bzclose bzcompress '+
44
+ 'bzdecompress bzerrno bzerror bzerrstr bzflush bzopen bzread bzwrite ceil chdir '+
45
+ 'checkdate checkdnsrr chgrp chmod chop chown chr chroot chunk_split class_exists '+
46
+ 'closedir closelog copy cos cosh count count_chars date decbin dechex decoct '+
47
+ 'deg2rad delete ebcdic2ascii echo empty end ereg ereg_replace eregi eregi_replace error_log '+
48
+ 'error_reporting escapeshellarg escapeshellcmd eval exec exit exp explode extension_loaded '+
49
+ 'feof fflush fgetc fgetcsv fgets fgetss file_exists file_get_contents file_put_contents '+
50
+ 'fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype '+
51
+ 'floatval flock floor flush fmod fnmatch fopen fpassthru fprintf fputcsv fputs fread fscanf '+
52
+ 'fseek fsockopen fstat ftell ftok getallheaders getcwd getdate getenv gethostbyaddr gethostbyname '+
53
+ 'gethostbynamel getimagesize getlastmod getmxrr getmygid getmyinode getmypid getmyuid getopt '+
54
+ 'getprotobyname getprotobynumber getrandmax getrusage getservbyname getservbyport gettext '+
55
+ 'gettimeofday gettype glob gmdate gmmktime ini_alter ini_get ini_get_all ini_restore ini_set '+
56
+ 'interface_exists intval ip2long is_a is_array is_bool is_callable is_dir is_double '+
57
+ 'is_executable is_file is_finite is_float is_infinite is_int is_integer is_link is_long '+
58
+ 'is_nan is_null is_numeric is_object is_readable is_real is_resource is_scalar is_soap_fault '+
59
+ 'is_string is_subclass_of is_uploaded_file is_writable is_writeable mkdir mktime nl2br '+
60
+ 'parse_ini_file parse_str parse_url passthru pathinfo print readlink realpath rewind rewinddir rmdir '+
61
+ 'round str_ireplace str_pad str_repeat str_replace str_rot13 str_shuffle str_split '+
62
+ 'str_word_count strcasecmp strchr strcmp strcoll strcspn strftime strip_tags stripcslashes '+
63
+ 'stripos stripslashes stristr strlen strnatcasecmp strnatcmp strncasecmp strncmp strpbrk '+
64
+ 'strpos strptime strrchr strrev strripos strrpos strspn strstr strtok strtolower strtotime '+
65
+ 'strtoupper strtr strval substr substr_compare';
66
+
67
+ var keywords = 'and or xor array as break case ' +
68
+ 'cfunction class const continue declare default die do else ' +
69
+ 'elseif enddeclare endfor endforeach endif endswitch endwhile ' +
70
+ 'extends for foreach function include include_once global if ' +
71
+ 'new old_function return static switch use require require_once ' +
72
+ 'var while abstract interface public implements extends private protected throw';
73
+
74
+ var constants = '__FILE__ __LINE__ __METHOD__ __FUNCTION__ __CLASS__';
75
+
76
+ this.regexList = [
77
+ { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
78
+ { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
79
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
80
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
81
+ { regex: /\$\w+/g, css: 'variable' }, // variables
82
+ { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // common functions
83
+ { regex: new RegExp(this.getKeywords(constants), 'gmi'), css: 'constants' }, // constants
84
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keyword
85
+ ];
86
+
87
+ this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
88
+ };
89
+
90
+ SyntaxHighlighter.brushes.Php.prototype = new SyntaxHighlighter.Highlighter();
91
+ SyntaxHighlighter.brushes.Php.aliases = ['php'];
syntaxhighlighter2/scripts/shBrushPlain.js ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ SyntaxHighlighter.brushes.Plain = function()
31
+ {
32
+ };
33
+
34
+ SyntaxHighlighter.brushes.Plain.prototype = new SyntaxHighlighter.Highlighter();
35
+ SyntaxHighlighter.brushes.Plain.aliases = ['text', 'plain'];
syntaxhighlighter2/scripts/shBrushPowerShell.js ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ SyntaxHighlighter.brushes.PowerShell = function()
31
+ {
32
+ // Contributes by B.v.Zanten, Getronics
33
+ // http://confluence.atlassian.com/display/CONFEXT/New+Code+Macro
34
+
35
+ var keywords = 'Add-Content Add-History Add-Member Add-PSSnapin Clear(-Content)? Clear-Item ' +
36
+ 'Clear-ItemProperty Clear-Variable Compare-Object ConvertFrom-SecureString Convert-Path ' +
37
+ 'ConvertTo-Html ConvertTo-SecureString Copy(-Item)? Copy-ItemProperty Export-Alias ' +
38
+ 'Export-Clixml Export-Console Export-Csv ForEach(-Object)? Format-Custom Format-List ' +
39
+ 'Format-Table Format-Wide Get-Acl Get-Alias Get-AuthenticodeSignature Get-ChildItem Get-Command ' +
40
+ 'Get-Content Get-Credential Get-Culture Get-Date Get-EventLog Get-ExecutionPolicy ' +
41
+ 'Get-Help Get-History Get-Host Get-Item Get-ItemProperty Get-Location Get-Member ' +
42
+ 'Get-PfxCertificate Get-Process Get-PSDrive Get-PSProvider Get-PSSnapin Get-Service ' +
43
+ 'Get-TraceSource Get-UICulture Get-Unique Get-Variable Get-WmiObject Group-Object ' +
44
+ 'Import-Alias Import-Clixml Import-Csv Invoke-Expression Invoke-History Invoke-Item ' +
45
+ 'Join-Path Measure-Command Measure-Object Move(-Item)? Move-ItemProperty New-Alias ' +
46
+ 'New-Item New-ItemProperty New-Object New-PSDrive New-Service New-TimeSpan ' +
47
+ 'New-Variable Out-Default Out-File Out-Host Out-Null Out-Printer Out-String Pop-Location ' +
48
+ 'Push-Location Read-Host Remove-Item Remove-ItemProperty Remove-PSDrive Remove-PSSnapin ' +
49
+ 'Remove-Variable Rename-Item Rename-ItemProperty Resolve-Path Restart-Service Resume-Service ' +
50
+ 'Select-Object Select-String Set-Acl Set-Alias Set-AuthenticodeSignature Set-Content ' +
51
+ 'Set-Date Set-ExecutionPolicy Set-Item Set-ItemProperty Set-Location Set-PSDebug ' +
52
+ 'Set-Service Set-TraceSource Set(-Variable)? Sort-Object Split-Path Start-Service ' +
53
+ 'Start-Sleep Start-Transcript Stop-Process Stop-Service Stop-Transcript Suspend-Service ' +
54
+ 'Tee-Object Test-Path Trace-Command Update-FormatData Update-TypeData Where(-Object)? ' +
55
+ 'Write-Debug Write-Error Write(-Host)? Write-Output Write-Progress Write-Verbose Write-Warning';
56
+ var alias = 'ac asnp clc cli clp clv cpi cpp cvpa diff epal epcsv fc fl ' +
57
+ 'ft fw gal gc gci gcm gdr ghy gi gl gm gp gps group gsv ' +
58
+ 'gsnp gu gv gwmi iex ihy ii ipal ipcsv mi mp nal ndr ni nv oh rdr ' +
59
+ 'ri rni rnp rp rsnp rv rvpa sal sasv sc select si sl sleep sort sp ' +
60
+ 'spps spsv sv tee cat cd cp h history kill lp ls ' +
61
+ 'mount mv popd ps pushd pwd r rm rmdir echo cls chdir del dir ' +
62
+ 'erase rd ren type % \\?';
63
+
64
+ this.regexList = [
65
+ { regex: /#.*$/gm, css: 'comments' }, // one line comments
66
+ { regex: /\$[a-zA-Z0-9]+\b/g, css: 'value' }, // variables $Computer1
67
+ { regex: /\-[a-zA-Z]+\b/g, css: 'keyword' }, // Operators -not -and -eq
68
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
69
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
70
+ { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' },
71
+ { regex: new RegExp(this.getKeywords(alias), 'gmi'), css: 'keyword' }
72
+ ];
73
+ };
74
+
75
+ SyntaxHighlighter.brushes.PowerShell.prototype = new SyntaxHighlighter.Highlighter();
76
+ SyntaxHighlighter.brushes.PowerShell.aliases = ['powershell', 'ps'];
syntaxhighlighter2/scripts/shBrushPython.js ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ SyntaxHighlighter.brushes.Python = function()
31
+ {
32
+ // Contributed by Gheorghe Milas and Ahmad Sherif
33
+
34
+ var keywords = 'and assert break class continue def del elif else ' +
35
+ 'except exec finally for from global if import in is ' +
36
+ 'lambda not or pass print raise return try yield while';
37
+
38
+ var funcs = '__import__ abs all any apply basestring bin bool buffer callable ' +
39
+ 'chr classmethod cmp coerce compile complex delattr dict dir ' +
40
+ 'divmod enumerate eval execfile file filter float format frozenset ' +
41
+ 'getattr globals hasattr hash help hex id input int intern ' +
42
+ 'isinstance issubclass iter len list locals long map max min next ' +
43
+ 'object oct open ord pow print property range raw_input reduce ' +
44
+ 'reload repr reversed round set setattr slice sorted staticmethod ' +
45
+ 'str sum super tuple type type unichr unicode vars xrange zip';
46
+
47
+ var special = 'None True False self cls class_';
48
+
49
+ this.regexList = [
50
+ { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' },
51
+ { regex: /^\s*@\w+/gm, css: 'decorator' },
52
+ { regex: /(['\"]{3})([^\1])*?\1/gm, css: 'comments' },
53
+ { regex: /"(?!")(?:\.|\\\"|[^\""\n])*"/gm, css: 'string' },
54
+ { regex: /'(?!')(?:\.|(\\\')|[^\''\n])*'/gm, css: 'string' },
55
+ { regex: /\+|\-|\*|\/|\%|=|==/gm, css: 'keyword' },
56
+ { regex: /\b\d+\.?\w*/g, css: 'value' },
57
+ { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' },
58
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' },
59
+ { regex: new RegExp(this.getKeywords(special), 'gm'), css: 'color1' }
60
+ ];
61
+
62
+ this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
63
+ };
64
+
65
+ SyntaxHighlighter.brushes.Python.prototype = new SyntaxHighlighter.Highlighter();
66
+ SyntaxHighlighter.brushes.Python.aliases = ['py', 'python'];
syntaxhighlighter2/scripts/shBrushRuby.js ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ SyntaxHighlighter.brushes.Ruby = function()
31
+ {
32
+ // Contributed by Erik Peterson.
33
+
34
+ var keywords = 'alias and BEGIN begin break case class def define_method defined do each else elsif ' +
35
+ 'END end ensure false for if in module new next nil not or raise redo rescue retry return ' +
36
+ 'self super then throw true undef unless until when while yield';
37
+
38
+ var builtins = 'Array Bignum Binding Class Continuation Dir Exception FalseClass File::Stat File Fixnum Fload ' +
39
+ 'Hash Integer IO MatchData Method Module NilClass Numeric Object Proc Range Regexp String Struct::TMS Symbol ' +
40
+ 'ThreadGroup Thread Time TrueClass';
41
+
42
+ this.regexList = [
43
+ { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments
44
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
45
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
46
+ { regex: /\b[A-Z0-9_]+\b/g, css: 'constants' }, // constants
47
+ { regex: /:[a-z][A-Za-z0-9_]*/g, css: 'color2' }, // symbols
48
+ { regex: /(\$|@@|@)\w+/g, css: 'variable bold' }, // $global, @instance, and @@class variables
49
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
50
+ { regex: new RegExp(this.getKeywords(builtins), 'gm'), css: 'color1' } // builtins
51
+ ];
52
+
53
+ this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
54
+ };
55
+
56
+ SyntaxHighlighter.brushes.Ruby.prototype = new SyntaxHighlighter.Highlighter();
57
+ SyntaxHighlighter.brushes.Ruby.aliases = ['ruby', 'rails', 'ror', 'rb'];
syntaxhighlighter2/scripts/shBrushScala.js ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ SyntaxHighlighter.brushes.Scala = function()
31
+ {
32
+ // Contributed by Yegor Jbanov and David Bernard.
33
+
34
+ var keywords = 'val sealed case def true trait implicit forSome import match object null finally super ' +
35
+ 'override try lazy for var catch throw type extends class while with new final yield abstract ' +
36
+ 'else do if return protected private this package false';
37
+
38
+ var keyops = '[_:=><%#@]+';
39
+
40
+ this.regexList = [
41
+ { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
42
+ { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
43
+ { regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // multi-line strings
44
+ { regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double-quoted string
45
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings
46
+ { regex: /0x[a-f0-9]+|\d+(\.\d+)?/gi, css: 'value' }, // numbers
47
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
48
+ { regex: new RegExp(keyops, 'gm'), css: 'keyword' } // scala keyword
49
+ ];
50
+ }
51
+
52
+ SyntaxHighlighter.brushes.Scala.prototype = new SyntaxHighlighter.Highlighter();
53
+ SyntaxHighlighter.brushes.Scala.aliases = ['scala'];
syntaxhighlighter2/scripts/shBrushSql.js ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ SyntaxHighlighter.brushes.Sql = function()
31
+ {
32
+ var funcs = 'abs avg case cast coalesce convert count current_timestamp ' +
33
+ 'current_user day isnull left lower month nullif replace right ' +
34
+ 'session_user space substring sum system_user upper user year';
35
+
36
+ var keywords = 'absolute action add after alter as asc at authorization begin bigint ' +
37
+ 'binary bit by cascade char character check checkpoint close collate ' +
38
+ 'column commit committed connect connection constraint contains continue ' +
39
+ 'create cube current current_date current_time cursor database date ' +
40
+ 'deallocate dec decimal declare default delete desc distinct double drop ' +
41
+ 'dynamic else end end-exec escape except exec execute false fetch first ' +
42
+ 'float for force foreign forward free from full function global goto grant ' +
43
+ 'group grouping having hour ignore index inner insensitive insert instead ' +
44
+ 'int integer intersect into is isolation key last level load local max min ' +
45
+ 'minute modify move name national nchar next no numeric of off on only ' +
46
+ 'open option order out output partial password precision prepare primary ' +
47
+ 'prior privileges procedure public read real references relative repeatable ' +
48
+ 'restrict return returns revoke rollback rollup rows rule schema scroll ' +
49
+ 'second section select sequence serializable set size smallint static ' +
50
+ 'statistics table temp temporary then time timestamp to top transaction ' +
51
+ 'translation trigger true truncate uncommitted union unique update values ' +
52
+ 'varchar varying view when where with work';
53
+
54
+ var operators = 'all and any between cross in join like not null or outer some';
55
+
56
+ this.regexList = [
57
+ { regex: /--(.*)$/gm, css: 'comments' }, // one line and multiline comments
58
+ { regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings
59
+ { regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // single quoted strings
60
+ { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'color2' }, // functions
61
+ { regex: new RegExp(this.getKeywords(operators), 'gmi'), css: 'color1' }, // operators and such
62
+ { regex: new RegExp(this.getKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
63
+ ];
64
+ };
65
+
66
+ SyntaxHighlighter.brushes.Sql.prototype = new SyntaxHighlighter.Highlighter();
67
+ SyntaxHighlighter.brushes.Sql.aliases = ['sql'];
68
+
syntaxhighlighter2/scripts/shBrushVb.js ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ SyntaxHighlighter.brushes.Vb = function()
31
+ {
32
+ var keywords = 'AddHandler AddressOf AndAlso Alias And Ansi As Assembly Auto ' +
33
+ 'Boolean ByRef Byte ByVal Call Case Catch CBool CByte CChar CDate ' +
34
+ 'CDec CDbl Char CInt Class CLng CObj Const CShort CSng CStr CType ' +
35
+ 'Date Decimal Declare Default Delegate Dim DirectCast Do Double Each ' +
36
+ 'Else ElseIf End Enum Erase Error Event Exit False Finally For Friend ' +
37
+ 'Function Get GetType GoSub GoTo Handles If Implements Imports In ' +
38
+ 'Inherits Integer Interface Is Let Lib Like Long Loop Me Mod Module ' +
39
+ 'MustInherit MustOverride MyBase MyClass Namespace New Next Not Nothing ' +
40
+ 'NotInheritable NotOverridable Object On Option Optional Or OrElse ' +
41
+ 'Overloads Overridable Overrides ParamArray Preserve Private Property ' +
42
+ 'Protected Public RaiseEvent ReadOnly ReDim REM RemoveHandler Resume ' +
43
+ 'Return Select Set Shadows Shared Short Single Static Step Stop String ' +
44
+ 'Structure Sub SyncLock Then Throw To True Try TypeOf Unicode Until ' +
45
+ 'Variant When While With WithEvents WriteOnly Xor';
46
+
47
+ this.regexList = [
48
+ { regex: /'.*$/gm, css: 'comments' }, // one line comments
49
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings
50
+ { regex: /^\s*#.*$/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
51
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // vb keyword
52
+ ];
53
+
54
+ this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
55
+ };
56
+
57
+ SyntaxHighlighter.brushes.Vb.prototype = new SyntaxHighlighter.Highlighter();
58
+ SyntaxHighlighter.brushes.Vb.aliases = ['vb', 'vbnet'];
syntaxhighlighter2/scripts/shBrushXml.js ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ SyntaxHighlighter.brushes.Xml = function()
31
+ {
32
+ function process(match, regexInfo)
33
+ {
34
+ var constructor = SyntaxHighlighter.Match,
35
+ code = match[0],
36
+ tag = new XRegExp('(&lt;|<)[\\s\\/\\?]*(?<name>[:\\w-\\.]+)', 'xg').exec(code),
37
+ result = []
38
+ ;
39
+
40
+ if (match.attributes != null)
41
+ {
42
+ var attributes,
43
+ regex = new XRegExp('(?<name> [\\w:\\-\\.]+)' +
44
+ '\\s*=\\s*' +
45
+ '(?<value> ".*?"|\'.*?\'|\\w+)',
46
+ 'xg');
47
+
48
+ while ((attributes = regex.exec(code)) != null)
49
+ {
50
+ result.push(new constructor(attributes.name, match.index + attributes.index, 'color1'));
51
+ result.push(new constructor(attributes.value, match.index + attributes.index + attributes[0].indexOf(attributes.value), 'string'));
52
+ }
53
+ }
54
+
55
+ if (tag != null)
56
+ result.push(
57
+ new constructor(tag.name, match.index + tag[0].indexOf(tag.name), 'keyword')
58
+ );
59
+
60
+ return result;
61
+ }
62
+
63
+ this.regexList = [
64
+ { regex: new XRegExp('(\\&lt;|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\\&gt;|>)', 'gm'), css: 'color2' }, // <![ ... [ ... ]]>
65
+ { regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, // <!-- ... -->
66
+ { regex: new XRegExp('(&lt;|<)[\\s\\/\\?]*(\\w+)(?<attributes>.*?)[\\s\\/\\?]*(&gt;|>)', 'sg'), func: process }
67
+ ];
68
+ };
69
+
70
+ SyntaxHighlighter.brushes.Xml.prototype = new SyntaxHighlighter.Highlighter();
71
+ SyntaxHighlighter.brushes.Xml.aliases = ['xml', 'xhtml', 'xslt', 'html'];
syntaxhighlighter2/scripts/shCore.js ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('c(!1q.2X){h 2X=l(){h p={6b:{"1s-R":"","84-2y":1,"83-2y-7W":I,"1I":v,"8d-89":I,"1H-2Q":4,"3g":I,"1w":I,"66":N,"8k-8l":I,"88":N,"5h-1p":I,"1L-1l":N},M:{4T:I,69:v,5l:16,5k:16,8B:N,8f:N,8s:"54",1f:{5q:"53 1g",5d:"9N 1g",5i:"9O 6q 6p",78:"9M C 9L 1V 9I 6p 9J",3t:"3t",6C:"?",1A:"2X\\n\\n",6T:"9K\'t 9P 2O D: ",7x:"9Q 9W\'t 9X D 1L-1l 9V: ",77:"<!9U 1L 9R \\"-//9S//6H 9T 1.0 9H//9G\\" \\"2s://5x.6x.6B/9v/6D/6H/6D-9w.9u\\"><1L 9t=\\"2s://5x.6x.6B/9s/9x\\"><6z><9y 2s-9E=\\"9F-9D\\" 63=\\"1X/1L; 9C=9z-8\\" /><3i>9A 2X</3i></6z><33 1m=\\"39-9Y:9Z,an,ao,am-al;ai-3f:#aj;3f:#ak;39-2Q:ap;1X-6G:6u;\\"><A 1m=\\"1X-6G:6u;6w-4w:aw;\\"><A 1m=\\"39-2Q:au-at;\\">2X</A><A 1m=\\"39-2Q:.as;6w-9p:ah;\\"><A>6O 2.1.ag (a5 15 6h)</A><A><a 27=\\"2s://6I.3k\\" a6=\\"4k\\" 1m=\\"3f:#6F;1X-6t:6L;\\">2s://6I.3k</a></A><A>a3 a0 a1 f 1l, a2 <a 27=\\"a7://5x.a8.3k/ae-af/ad?ac=a9-aa&ab=ax\\" 1m=\\"3f:#6F;1X-6t:6L;\\">8R</a> 6q 8Q 8O 8W!</A></A><A>8V C 8U 8X.</A><A>8K 8N-6h 8M 8S.</A></A></33></1L>"},8u:N},1r:{4Z:v,9o:v,3m:v,6f:{}},2d:{},8h:{9g:/\\/\\*[\\s\\S]*?\\*\\//3b,9d:/\\/\\/.*$/3b,9e:/#.*$/3b,9j:/"([^\\\\"\\n]|\\\\.)*"/g,9n:/\'([^\\\\\'\\n]|\\\\.)*\'/g,9m:/"([^\\\\"]|\\\\.)*"/g,8Y:/\'([^\\\\\']|\\\\.)*\'/g,9k:/(&X;|<)!--[\\s\\S]*?--(&Z;|>)/3b,43:/&X;\\w+:\\/\\/[\\w-.\\/?%&=@:;]*&Z;|\\w+:\\/\\/[\\w-.\\/?%&=@:;]*/g,9c:{G:/(&X;|<)\\?=?/g,1d:/\\?(&Z;|>)/g},93:{G:/(&X;|<)%=?/g,1d:/%(&Z;|>)/g},92:{G:/(&X;|<)\\s*1l.*?(&Z;|>)/4e,1d:/(&X;|<)\\/\\s*1l\\s*(&Z;|>)/4e}},1w:{1c:l(3O){h 3T=Q.22("3Y"),5s=p.1w.7d;3T.L="1w";D(h 30 1V 5s){h 6i=5s[30],5t=W 6i(3O),1Y=5t.1c();3O.6g[30]=5t;c(1Y==v){1J}c(7X(1Y)=="91"){1Y=p.1w.6m(1Y,3O.1k,30)}1Y.L+="5v "+30;3T.2p(1Y)}q 3T},6m:l(5L,7j,5K){h a=Q.22("a"),5N=a.1m,5D=p.M,5M=5D.5l,5J=5D.5k;a.27="#"+5K;a.3i=5L;a.5j=7j;a.76=5K;a.1Q=5L;c(40(5M)==N){5N.26=5M+"75"}c(40(5J)==N){5N.2e=5J+"75"}a.9l=l(e){97{p.1w.6M(f,e||1q.6Y,f.5j,f.76)}98(e){p.B.1A(e.6n)}q N};q a},6M:l(7i,7g,7b,7h,7f){h 5G=p.1r.6f[7b],5H;c(5G==v||(5H=5G.6g[7h])==v){q v}q 5H.2z(7i,7g,7f)},7d:{5q:l(5b){f.1c=l(){c(5b.V("66")!=I){q}q p.M.1f.5q};f.2z=l(5c,8T,8P){h A=5b.A;5c.7y.4p(5c);A.L=A.L.E("5O","")}},5d:l(6R){f.1c=l(){q p.M.1f.5d};f.2z=l(b1,bU,bV){h 3J=p.B.3d(6R.5g).E(/</g,"&X;"),2A=p.B.4z("","4k",bT,bS,"bQ=0, bR=1, bW=0, 7a=1");3J=p.B.2T(3J);2A.Q.3D("<54>"+3J+"</54>");2A.Q.4o()}},5i:l(64){h 3C,c2,6a=64.1k;f.1c=l(){h 2V=p.M;c(2V.69==v){q v}l 1E(56){h 5m="";D(h 5f 1V 56){5m+="<c1 R=\'"+5f+"\' 24=\'"+56[5f]+"\'/>"}q 5m};l 2i(5n){h 5p="";D(h 5o 1V 5n){5p+=" "+5o+"=\'"+5n[5o]+"\'"}q 5p};h 67={26:2V.5l,2e:2V.5k,1k:6a+"bY",4r:"bZ/x-71-6V",3i:p.M.1f.5i},5V={bE:"ay",bD:"bC",bA:"5j="+6a,c4:"N"},5U=2V.69,3x;c(/bG/i.1R(6K.7k)){3x="<4h"+2i({bH:"bM:bN-bL-bK-bI-bJ",c3:"2s://ck.cj.3k/cm/71/c9/6V/c8.c7#6O=9,0,0,0"})+2i(67)+">"+1E(5V)+1E({c6:5U})+"</4h>"}F{3x="<ca"+2i(67)+2i(5V)+2i({cg:5U})+"/>"}3C=Q.22("A");3C.1Q=3x;q 3C};f.2z=l(cf,ce,62){h 7c=62.cd;6U(7c){2K"7q":h 61=p.B.2T(p.B.3d(64.5g).E(/&X;/g,"<").E(/&Z;/g,">").E(/&aT;/g,"&"));c(1q.74){1q.74.aU("1X",61)}F{q p.B.2T(61)}2K"aR":p.B.1A(p.M.1f.78);2h;2K"aP":p.B.1A(62.6n);2h}}},aV:l(65){f.1c=l(){q p.M.1f.3t};f.2z=l(aW,bz,b0){h 1Z=Q.22("aZ"),1N=v;c(p.1r.3m!=v){Q.33.4p(p.1r.3m)}p.1r.3m=1Z;1Z.1m.aX="aY:aO;26:6r;2e:6r;G:-6j;4w:-6j;";Q.33.2p(1Z);1N=1Z.5Q.Q;6J(1N,1q.Q);1N.3D("<A 1s=\\""+65.A.L.E("5O","")+" aD\\">"+65.A.1Q+"</A>");1N.4o();1Z.5Q.4F();1Z.5Q.3t();l 6J(6N,6E){h 2I=6E.4O("4n");D(h i=0;i<2I.u;i++){c(2I[i].6y.6P()=="6A"&&/aE\\.1a$/.1R(2I[i].27)){6N.3D("<4n 4r=\\"1X/1a\\" 6y=\\"6A\\" 27=\\""+2I[i].27+"\\"></4n>")}}}}},az:l(aA){f.1c=l(){q p.M.1f.6C};f.2z=l(aF,aG){h 2A=p.B.4z("","4k",aM,aK,"7a=0"),1N=2A.Q;1N.3D(p.M.1f.77);1N.4o();2A.4F()}}}},B:{Y:l(49,73,3y){3y=3e.aH(3y||0,0);D(h i=3y;i<49.u;i++){c(49[i]==73){q i}}q-1},6d:l(72){q 72+3e.aI(3e.b2()*b3).2u()},6c:l(51,4L){h 3h={},1W;D(1W 1V 51){3h[1W]=51[1W]}D(1W 1V 4L){3h[1W]=4L[1W]}q 3h},80:l(4J){6U(4J){2K"I":q I;2K"N":q N}q 4J},4z:l(43,6W,4B,4H,2N){h x=(6X.26-4B)/2,y=(6X.2e-4H)/2;2N+=", G="+x+", 4w="+y+", 26="+4B+", 2e="+4H;2N=2N.E(/^,/,"");h 4E=1q.bk(43,6W,2N);4E.4F();q 4E},7C:l(1G,1T,1U){c(1G.6Z){1G["e"+1T+1U]=1U;1G[1T+1U]=l(){1G["e"+1T+1U](1q.6Y)};1G.6Z("bw"+1T,1G[1T+1U])}F{1G.bv(1T,1U,N)}},1A:l(z){1A(p.M.1f.1A+z)},4u:l(4N,6Q){h 2r=p.1r.4Z,3V=v;c(2r==v){2r={};D(h 2L 1V p.2d){h 42=p.2d[2L].bu;c(42==v){1J}p.2d[2L].R=2L.6P();D(h i=0;i<42.u;i++){2r[42[i]]=2L}}p.1r.4Z=2r}3V=p.2d[2r[4N]];c(3V==v&&6Q!=N){p.B.1A(p.M.1f.6T+4N)}q 3V},46:l(z,6S){h 2E=z.1P("\\n");D(h i=0;i<2E.u;i++){2E[i]=6S(2E[i])}q 2E.5A("\\n")},8C:l(z){q z.E(/^[ ]*[\\n]+|[\\n]*[ ]*$/g,"")},8H:l(z){h 3X,45={},4P=W U("^\\\\[(?<4c>(.*?))\\\\]$"),7e=W U("(?<R>[\\\\w-]+)"+"\\\\s*:\\\\s*"+"(?<24>"+"[\\\\w-%#]+|"+"\\\\[.*?\\\\]|"+"\\".*?\\"|"+"\'.*?\'"+")\\\\s*;?","g");2j((3X=7e.T(z))!=v){h 2f=3X.24.E(/^[\'"]|[\'"]$/g,"");c(2f!=v&&4P.1R(2f)){h m=4P.T(2f);2f=m.4c.u>0?m.4c.1P(/\\s*,\\s*/):[]}45[3X.R]=2f}q 45},7K:l(z,1a){c(z==v||z.u==0||z=="\\n"){q z}z=z.E(/</g,"&X;");z=z.E(/ {2,}/g,l(m){h 4t="";D(h i=0;i<m.u-1;i++){4t+="&2B;"}q 4t+" "});c(1a!=v){z=p.B.46(z,l(2l){c(2l.u==0){q""}h 3W="";2l=2l.E(/^(&2B;| )+/,l(s){3W=s;q""});c(2l.u==0){q 3W}q 3W+"<C 1s=\\""+1a+"\\">"+2l+"</C>"})}q z},7V:l(6l,6o){h 32=6l.2u();2j(32.u<6o){32="0"+32}q 32},6k:l(){h 3w=Q.22("A"),3B,3o=0,44=Q.33,1k=p.B.6d("6k"),36="<A 1s=\\"",2Y="</A>",4U="</4G>";3w.1Q=36+"6e\\">"+36+"1p\\">"+36+"2y\\">"+36+"63"+"\\"><4G 1s=\\"b5\\"><4G 1k=\\""+1k+"\\">&2B;"+4U+4U+2Y+2Y+2Y+2Y;44.2p(3w);3B=Q.bb(1k);c(/bg/i.1R(6K.7k)){h 6v=1q.be(3B,v);3o=85(6v.bc("26"))}F{3o=3B.bd}44.4p(3w);q 3o},8b:l(79,6s){h 1H="";D(h i=0;i<6s;i++){1H+=" "}q 79.E(/\\t/g,1H)},8a:l(2Z,4f){h bF=2Z.1P("\\n"),1H="\\t",4d="";D(h i=0;i<50;i++){4d+=" "}l 8x(3s,18,8A){q 3s.29(0,18)+4d.29(0,8A)+3s.29(18+1,3s.u)};2Z=p.B.46(2Z,l(20){c(20.Y(1H)==-1){q 20}h 18=0;2j((18=20.Y(1H))!=-1){h 8w=4f-18%4f;20=8x(20,18,8w)}q 20});q 2Z},3d:l(z){h br=/<br\\s*\\/?>|&X;br\\s*\\/?&Z;/4e;c(p.M.8B==I){z=z.E(br,"\\n")}c(p.M.8f==I){z=z.E(br,"")}q z},2G:l(z){q z.E(/^\\s+|\\s+$/g,"")},2T:l(z){h 21=p.B.3d(z).1P("\\n"),bf=W bh(),8D=/^\\s*/,2a=ba;D(h i=0;i<21.u&&2a>0;i++){h 4x=21[i];c(p.B.2G(4x).u==0){1J}h 4I=8D.T(4x);c(4I==v){q z}2a=3e.2a(4I[0].u,2a)}c(2a>0){D(h i=0;i<21.u;i++){21[i]=21[i].29(2a)}}q 21.5A("\\n")},82:l(35,31){c(35.H<31.H){q-1}F{c(35.H>31.H){q 1}F{c(35.u<31.u){q-1}F{c(35.u>31.u){q 1}}}}q 0},2D:l(8q,34){l 8n(4D,8r){q[W p.4v(4D[0],4D.H,8r.1a)]};h b4=0,4s=v,3L=[],8p=34.4X?34.4X:8n;2j((4s=34.3K.T(8q))!=v){3L=3L.2t(8p(4s,34))}q 3L},8m:l(8o){h X="&X;",Z="&Z;";q 8o.E(p.8h.43,l(m){h 4j="",47="";c(m.Y(X)==0){47=X;m=m.3U(X.u)}c(m.Y(Z)==m.u-Z.u){m=m.3U(0,m.u-Z.u);4j=Z}q 47+"<a 27=\\""+m+"\\">"+m+"</a>"+4j})},8v:l(){h 3N=Q.4O("1l"),4i=[];D(h i=0;i<3N.u;i++){c(3N[i].4r=="6e"){4i.K(3N[i])}}q 4i},8I:l(4b){h 4q="<![b6[",3S="]]>",1v=p.B.2G(4b),3R=N;c(1v.Y(4q)==0){1v=1v.3U(4q.u);3R=I}c(1v.Y(3S)==1v.u-3S.u){1v=1v.3U(0,1v.u-3S.u);3R=I}q 3R?1v:4b}},1I:l(8E,4R){l 8e(4g){h 4Q=[];D(h i=0;i<4g.u;i++){4Q.K(4g[i])}q 4Q};h 2q=4R?[4R]:8e(Q.4O(p.M.8s)),8J="1Q",2k=v,4S=p.M;c(4S.4T){2q=2q.2t(p.B.8v())}c(2q.u===0){q}D(h i=0;i<2q.u;i++){h 2M=2q[i],28=p.B.8H(2M.L),1D,2W,25;28=p.B.6c(8E,28);1D=28["2O"];c(1D==v){1J}c(28["1L-1l"]=="I"||p.6b["1L-1l"]==I){2k=W p.4a(1D);1D="b9"}F{h 3P=p.B.4u(1D);c(3P){1D=3P.R;2k=W 3P()}F{1J}}2W=2M[8J];c(4S.4T){2W=p.B.8I(2W)}28["2O-R"]=1D;2k.1I(2W,28);25=2k.A;c(p.M.8u){25=Q.22("bj");25.24=2k.A.1Q;25.1m.26="bt";25.1m.2e="bx"}2M.7y.bs(25,2M)}},bq:l(7H){p.B.7C(1q,"bl",l(){p.1I(7H)})}};p.4v=l(4A,7G,1a){f.24=4A;f.H=7G;f.u=4A.u;f.1a=1a;f.5Y=v};p.4v.14.2u=l(){q f.24};p.4a=l(4K){h 3z=p.B.4u(4K),2g,4W=W p.2d.bm(),bn=v;c(3z==v){q}2g=W 3z();f.4m=4W;c(2g.3I==v){p.B.1A(p.M.1f.7x+4K);q}4W.59.K({3K:2g.3I.C,4X:7p});l 3A(4Y,7w){D(h j=0;j<4Y.u;j++){4Y[j].H+=7w}};l 7p(19,bp){h 7n=19.C,1o=[],4M=2g.59,7l=19.H+19.G.u,2U=2g.3I,1n;D(h i=0;i<4M.u;i++){1n=p.B.2D(7n,4M[i]);3A(1n,7l);1o=1o.2t(1n)}c(2U.G!=v&&19.G!=v){1n=p.B.2D(19.G,2U.G);3A(1n,19.H);1o=1o.2t(1n)}c(2U.1d!=v&&19.1d!=v){1n=p.B.2D(19.1d,2U.1d);3A(1n,19.H+19[0].bo(19.1d));1o=1o.2t(1n)}D(h j=0;j<1o.u;j++){1o[j].5Y=3z.R}q 1o}};p.4a.14.1I=l(7t,7s){f.4m.1I(7t,7s);f.A=f.4m.A};p.7I=l(){};p.7I.14={V:l(7J,7Z){h 4l=f.1E[7J];q p.B.80(4l==v?7Z:4l)},1c:l(7Y){q Q.22(7Y)},8i:l(2F,81){h 3u=[];c(2F!=v){D(h i=0;i<2F.u;i++){c(7X(2F[i])=="4h"){3u=3u.2t(p.B.2D(81,2F[i]))}}}q 3u.aB(p.B.82)},86:l(){h 23=f.2C;D(h i=0;i<23.u;i++){c(23[i]===v){1J}h 2x=23[i],4V=2x.H+2x.u;D(h j=i+1;j<23.u&&23[i]!==v;j++){h 1S=23[j];c(1S===v){1J}F{c(1S.H>4V){2h}F{c(1S.H==2x.H&&1S.u>2x.u){f.2C[i]=v}F{c(1S.H>=2x.H&&1S.H<4V){f.2C[j]=v}}}}}}},8t:l(2H){h 3r=2H.1P(/\\n/g),3n=85(f.V("84-2y")),2v=f.V("83-2y-7W"),7N=f.V("1I",[]),7U=f.V("3g");2H="";c(2v==I){2v=(3n+3r.u-1).2u().u}F{c(40(2v)==I){2v=0}}D(h i=0;i<3r.u;i++){h 1x=3r[i],60=/^(&2B;|\\s)+/.T(1x),52="aN"+(i%2==0?1:2),7F=p.B.7V(3n+i,2v),7P=p.B.Y(7N,(3n+i).2u())!=-1,2S=v;c(60!=v){2S=60[0].2u();1x=1x.29(2S.u)}1x=p.B.2G(1x);c(1x.u==0){1x="&2B;"}c(7P){52+=" aQ"}2H+="<A 1s=\\"2y "+52+"\\">"+"<7L>"+"<7T>"+(7U?"<3F 1s=\\"aS\\"><C>"+7F+"</C></3F>":"")+"<3F 1s=\\"63\\">"+(2S!=v?"<C 1s=\\"by\\">"+2S.E(" ","&2B;")+"</C>":"")+1x+"</3F>"+"</7T>"+"</7L>"+"</A>"}q 2H},8y:l(5X,5T){h 18=0,3c="",3a=p.B.7K,5S=f.V("2O-R","");l 5W(5Z){h 5R=5Z?(5Z.5Y||5S):5S;q 5R?5R+" ":""};D(h i=0;i<5T.u;i++){h 1y=5T[i],3G;c(1y===v||1y.u===0){1J}3G=5W(1y);3c+=3a(5X.29(18,1y.H-18),3G+"7O")+3a(1y.24,3G+1y.1a);18=1y.H+1y.u}3c+=3a(5X.29(18),5W()+"7O");q 3c},1I:l(C,7E){h cb=p.M,1r=p.1r,A,ci,3Z,ch="cn";f.1E={};f.A=v;f.1p=v;f.C=v;f.1i=v;f.6g={};f.1k=p.B.6d("cl");1r.6f[f.1k]=f;c(C===v){C=""}f.1E=p.B.6c(p.6b,7E||{});c(f.V("88")==I){f.1E.1w=f.1E.3g=N}f.A=A=f.1c("3Y");f.1p=f.1c("3Y");f.1p.L="1p";L="6e";A.1k=f.1k;c(f.V("66")){L+=" 5O"}c(f.V("3g")==N){L+=" bB"}c(f.V("5h-1p")==N){f.1p.L+=" bO-5h"}L+=" "+f.V("1s-R");L+=" "+f.V("2O-R");A.L=L;f.5g=C;f.C=p.B.8C(C).E(/\\r/g," ");3Z=f.V("1H-2Q");f.C=f.V("8d-89")==I?p.B.8a(f.C,3Z):p.B.8b(f.C,3Z);f.C=p.B.2T(f.C);c(f.V("1w")){f.1i=f.1c("3Y");f.1i.L="1i";f.1i.2p(p.1w.1c(f));A.2p(f.1i);h 1i=f.1i;l 58(){1i.L=1i.L.E("53","")};A.c0=l(){58();1i.L+=" 53"};A.bX=l(){58()}}A.2p(f.1p);f.2C=f.8i(f.59,f.C);f.86();C=f.8y(f.C,f.2C);C=f.8t(p.B.2G(C));c(f.V("8k-8l")){C=p.B.8m(C)}f.1p.1Q=C},9f:l(z){z=z.E(/^\\s+|\\s+$/g,"").E(/\\s+/g,"|");q"\\\\b(?:"+z+")\\\\b"},9i:l(2J){f.3I={G:{3K:2J.G,1a:"1l"},1d:{3K:2J.1d,1a:"1l"},C:W U("(?<G>"+2J.G.1g+")"+"(?<C>.*?)"+"(?<1d>"+2J.1d.1g+")","96")}}};q p}()}c(!1q.U){(l(){h 2w={T:10.14.T,87:5I.14.87,E:5I.14.E,1P:5I.14.1P},1F={13:/(?:[^\\\\([#\\s.]+|\\\\(?!k<[\\w$]+>|[7z]{[^}]+})[\\S\\s]?|\\((?=\\?(?!#|<[\\w$]+>)))+|(\\()(?:\\?(?:(#)[^)]*\\)|<([$\\w]+)>))?|\\\\(?:k<([\\w$]+)>|[7z]{([^}]+)})|(\\[\\^?)|([\\S\\s])/g,99:/(?:[^$]+|\\$(?![1-9$&`\']|{[$\\w]+}))+|\\$(?:([1-9]\\d*|[$&`\'])|{([$\\w]+)})/g,37:/^(?:\\s+|#.*)+/,5B:/^(?:[?*+]|{\\d+(?:,\\d*)?})/,7Q:/&&\\[\\^?/g,7S:/]/g},7o=l(5C,5v,5u){D(h i=5u||0;i<5C.u;i++){c(5C[i]===5v){q i}}q-1},8G=/()??/.T("")[1]!==3j,3q={};U=l(1e,1O){c(1e 68 10){c(1O!==3j){3H 7r("4y\'t 4C 9a 8z 95 7u 10 5u 94")}q 1e.3E()}h 1O=1O||"",7R=1O.Y("s")>-1,7M=1O.Y("x")>-1,5z=N,3v=[],1b=[],13=1F.13,J,cc,38,3M,3p;13.O=0;2j(J=2w.T.2n(13,1e)){c(J[2]){c(!1F.5B.1R(1e.17(13.O))){1b.K("(?:)")}}F{c(J[1]){3v.K(J[3]||v);c(J[3]){5z=I}1b.K("(")}F{c(J[4]){3M=7o(3v,J[4]);1b.K(3M>-1?"\\\\"+(3M+1)+(40(1e.5w(13.O))?"":"(?:)"):J[0])}F{c(J[5]){1b.K(3q.7m?3q.7m.7q(J[5],J[0].5w(1)==="P"):J[0])}F{c(J[6]){c(1e.5w(13.O)==="]"){1b.K(J[6]==="["?"(?!)":"[\\\\S\\\\s]");13.O++}F{cc=U.8g("&&"+1e.17(J.H),1F.7Q,1F.7S,"",{7D:"\\\\"})[0];1b.K(J[6]+cc+"]");13.O+=cc.u+1}}F{c(J[7]){c(7R&&J[7]==="."){1b.K("[\\\\S\\\\s]")}F{c(7M&&1F.37.1R(J[7])){38=2w.T.2n(1F.37,1e.17(13.O-1))[0].u;c(!1F.5B.1R(1e.17(13.O-1+38))){1b.K("(?:)")}13.O+=38-1}F{1b.K(J[7])}}}F{1b.K(J[0])}}}}}}}3p=10(1b.5A(""),2w.E.2n(1O,/[9B]+/g,""));3p.1C={1g:1e,2m:5z?3v:v};q 3p};U.9q=l(R,o){3q[R]=o};10.14.T=l(z){h 1h=2w.T.2n(f,z),R,i,5y;c(1h){c(8G&&1h.u>1){5y=W 10("^"+f.1g+"$(?!\\\\s)",f.5E());2w.E.2n(1h[0],5y,l(){D(i=1;i<8j.u-2;i++){c(8j[i]===3j){1h[i]=3j}}})}c(f.1C&&f.1C.2m){D(i=1;i<1h.u;i++){R=f.1C.2m[i-1];c(R){1h[R]=1h[i]}}}c(f.3l&&f.O>(1h.H+1h[0].u)){f.O--}}q 1h}})()}10.14.5E=l(){q(f.3l?"g":"")+(f.av?"i":"")+(f.8F?"m":"")+(f.37?"x":"")+(f.a4?"y":"")};10.14.3E=l(7A){h 5F=W U(f.1g,(7A||"")+f.5E());c(f.1C){5F.1C={1g:f.1C.1g,2m:f.1C.2m?f.1C.2m.17(0):v}}q 5F};10.14.2n=l(90,z){q f.T(z)};10.14.9b=l(9h,8c){q f.T(8c[0])};U.5P=l(57,5e){h 55="/"+57+"/"+(5e||"");q U.5P[55]||(U.5P[55]=W U(57,5e))};U.41=l(z){q z.E(/[-[\\]{}()*+?.\\\\^$|,#\\s]/g,"\\\\$&")};U.8g=l(z,G,11,1j,2R){h 2R=2R||{},2P=2R.7D,12=2R.c5,1j=1j||"",5r=1j.Y("g")>-1,70=1j.Y("i")>-1,7v=1j.Y("m")>-1,5a=1j.Y("y")>-1,1j=1j.E(/y/g,""),G=G 68 10?(G.3l?G:G.3E("g")):W U(G,"g"+1j),11=11 68 10?(11.3l?11:11.3E("g")):W U(11,"g"+1j),1M=[],2o=0,1u=0,1t=0,1z=0,2b,2c,1B,1K,3Q,48;c(2P){c(2P.u>1){3H aC("4y\'t 4C aL aJ 7u 41 7B")}c(7v){3H 7r("4y\'t 4C 41 7B 8z bi b8 8F b7")}3Q=U.41(2P);48=W 10("^(?:"+3Q+"[\\\\S\\\\s]|(?:(?!"+G.1g+"|"+11.1g+")[^"+3Q+"])+)+",70?"i":"")}2j(I){G.O=11.O=1t+(2P?(48.T(z.17(1t))||[""])[0].u:0);1B=G.T(z);1K=11.T(z);c(1B&&1K){c(1B.H<=1K.H){1K=v}F{1B=v}}c(1B||1K){1u=(1B||1K).H;1t=(1B?G:11).O}F{c(!2o){2h}}c(5a&&!2o&&1u>1z){2h}c(1B){c(!2o++){2b=1u;2c=1t}}F{c(1K&&2o){c(!--2o){c(12){c(12[0]&&2b>1z){1M.K([12[0],z.17(1z,2b),1z,2b])}c(12[1]){1M.K([12[1],z.17(2b,2c),2b,2c])}c(12[2]){1M.K([12[2],z.17(2c,1u),2c,1u])}c(12[3]){1M.K([12[3],z.17(1u,1t),1u,1t])}}F{1M.K(z.17(2c,1u))}1z=1t;c(!5r){2h}}}F{G.O=11.O=0;3H bP("8L aq 9r ar 8Z")}}c(1u===1t){1t++}}c(5r&&!5a&&12&&12[0]&&z.u>1z){1M.K([12[0],z.17(1z),1z,z.u])}G.O=11.O=0;q 1M};',62,768,'||||||||||||if|||this||var||||function||||sh|return||||length|null||||str|div|utils|code|for|replace|else|left|index|true|_121|push|className|config|false|lastIndex||document|name||exec|XRegExp|getParam|new|lt|indexOf|gt|RegExp|_139|vN|part|prototype|||slice|pos|_d3|css|_11f|create|right|_119|strings|source|_129|bar|_13a|id|script|style|_da|_d6|lines|window|vars|class|_145|_144|_b5|toolbar|_f4|_103|_146|alert|_149|_x|_c3|params|lib|obj|tab|highlight|continue|_14a|html|_142|doc|_11a|split|innerHTML|test|_ec|_5a|_5b|in|_4f|text|_8|_3c|_91|_98|createElement|_e7|value|_c5|width|href|_c2|substr|min|_147|_148|brushes|height|_6e|_cd|break|attributes|while|_be|_75|captureNames|call|_143|appendChild|_bc|_5f|http|concat|toString|_f0|real|_e9|line|execute|wnd|nbsp|matches|getMatches|_66|_e3|trim|_ed|_40|_10f|case|_61|_c1|_55|brush|_13c|size|_13b|_f9|unindent|_d9|_28|_c4|SyntaxHighlighter|_81|_88|_5|m2|_7a|body|_a2|m1|_80|extended|len|font|_fe|gm|_fd|fixInputString|Math|color|gutter|_4e|title|undefined|com|global|printFrame|_ef|_7d|_125|_118|_ee|_8e|print|_e5|_11e|_7b|_32|_49|_cc|offsetMatches|_7c|_25|write|addFlags|td|_104|throw|htmlScript|_22|regex|_a7|_124|_af|_2|_c6|_14b|_b6|_b4|_3|substring|_60|_76|_6a|DIV|_10b|isNaN|escape|_62|url|_7e|_6b|eachLine|_ae|esc|_47|HtmlScript|_b2|values|_8c|gi|_89|_b9|object|_b0|_ad|_blank|_e1|xmlBrush|link|close|removeChild|_b3|type|_a6|_73|findBrush|Match|top|_9d|can|popup|_c8|_53|supply|_a3|win|focus|span|_54|_9e|_50|_cb|_4d|_d7|_5d|getElementsByTagName|_6c|_ba|_b8|_bf|useScriptTags|_82|_ea|_ce|func|_d0|discoveredBrushes||_4c|_f6|show|pre|key|_29|_133|hide|regexList|_141|_19|_1a|viewSource|_134|_2b|originalCode|wrap|copyToClipboard|highlighterId|toolbarItemHeight|toolbarItemWidth|_2a|_2c|_2e|_2d|expandSource|_13e|_4|_7|from|item|charAt|www|r2|_11d|join|quantifier|_113|_e|getNativeFlags|_12e|_17|_18|String|_10|_b|_9|_f|_d|collapsed|cache|contentWindow|_101|_ff|_fb|swf|_30|getBrushNameCss|_fa|brushName|_100|_f5|_37|_35|content|_24|_38|collapse|_2f|instanceof|clipboardSwf|_27|defaults|merge|guid|syntaxhighlighter|highlighters|toolbarCommands|2009|_6|500px|measureSpace|_78|createButton|message|_79|clipboard|to|0px|_85|decoration|center|_83|margin|w3|rel|head|stylesheet|org|help|xhtml1|_3f|0099FF|align|DTD|alexgorbatchev|copyStyles|navigator|none|executeCommand|_3e|version|toLowerCase|_5e|_1e|_65|noBrush|switch|flash|_52|screen|event|attachEvent|_13f|shockwave|_4b|_48|clipboardData|px|commandName|aboutDialog|copyToClipboardConfirmation|_84|scrollbars|_14|_36|items|_6d|_16|_13|_15|_12|_a|userAgent|_d8|unicode|_d5|_112|process|get|TypeError|_de|_dd|one|_140|_d1|brushNotHtmlScript|parentNode|pP|_12d|character|addEvent|escapeChar|_106|_f7|_c9|_c7|Highlighter|_df|decorate|table|_11c|_f1|plain|_f8|classLeft|_11b|classRight|tr|_f2|padNumber|numbers|typeof|_e2|_e0|toBoolean|_e4|matchesSortCallback|pad|first|parseInt|removeNestedMatches|match|light|tabs|processSmartTabs|processTabs|args|smart|toArray|stripBrs|matchRecursive|regexLib|findMatches|arguments|auto|links|processUrls|defaultAdd|_a9|_a8|_a1|_a4|tagName|createDisplayLines|debug|getSyntaxHighlighterScriptTags|_93|insertSpaces|processMatches|when|_90|bloggerMode|trimFirstAndLastLines|_9a|_b7|multiline|_117|parseParams|stripCData|_bd|Copyright|subject|Alex|2004|development|_1c|keep|donate|Gorbatchev|_1b|syntax|JavaScript|active|highlighter|multiLineSingleQuotedString|delimiters|_12f|string|scriptScriptTags|aspScriptTags|another|constructing|sgi|try|catch|replaceVar|flags|apply|phpScriptTags|singleLineCComments|singleLinePerlComments|getKeywords|multiLineCComments|_131|forHtmlScript|doubleQuotedString|xmlComments|onclick|multiLineDoubleQuotedString|singleQuotedString|spaceWidth|bottom|addPlugin|contains|1999|xmlns|dtd|TR|transitional|xhtml|meta|utf|About|sx|charset|Type|equiv|Content|EN|Transitional|your|now|Can|is|The|view|copy|find|Brush|PUBLIC|W3C|XHTML|DOCTYPE|option|wasn|configured|family|Geneva|you|like|please|If|sticky|October|target|https|paypal|_s|xclick|hosted_button_id|cmd|webscr|cgi|bin|364|4em|background|fff|000|serif|sans|Arial|Helvetica|1em|data|unbalanced|75em|large|xx|ignoreCase|3em|2930402|always|about|_42|sort|SyntaxError|printing|shCore|_43|_44|max|round|than|250|more|500|alt|absolute|error|highlighted|ok|number|amp|setData|printSource|_39|cssText|position|IFRAME|_3b|_1f|random|1000000|_a5|block|CDATA|flag|the|htmlscript|1000|getElementById|getPropertyValue|offsetWidth|getComputedStyle|_99|opera|Array|using|textarea|open|load|Xml|_cf|lastIndexOf|_d4|all||replaceChild|70em|aliases|addEventListener|on|30em|spaces|_3a|flashVars|nogutter|transparent|wmode|allowScriptAccess|_8a|msie|classid|96b8|444553540000|11cf|ae6d|clsid|d27cdb6e|no|Error|location|resizable|400|750|_20|_21|menubar|onmouseout|_clipboard|application|onmouseover|param|_26|codebase|menu|valueNames|movie|cab|swflash|cabs|embed|conf||command|_34|_33|src|_10c|_10a|macromedia|download|highlighter_|pub|important'.split('|'),0,{}))
syntaxhighlighter2/scripts/shLegacy.js ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('1 y={d:{}};y.d={F:6(S,l,q,k,m,n){6 J(z,Y){1 V=16 15("^"+Y+"\\\\[(?<o>\\\\w+)\\\\]$","14"),x=2;h(1 i=0;i<z.g;i++){7((x=V.17(z[i]))!=2){4 x.o}}4 2};6 3(r,U){4 r!=2?r:U};6 9(s){4 s!=2?s.13():2};1 f=S.18(":"),E=f[0],c={},u={"p":"p"};C={"p":"1a"},v=2,5=d.5;h(1 i 19 f){c[f[i]]="p"}l=9(3(l,5.O));q=9(3(q,5.T));k=9(3(k,5.A));n=9(3(n,5.W));m=9(3(m,5["K-L"]));v={1b:E,O:3(C[c.12],l),T:3(C[c.1g],q),A:3(u[c.A],k),W:3(u[c.1t],n),"K-L":3(J(f,"1q"),m)};4 v},1x:6(B,I,D,H,N,M){6 Z(){1 a=1r;h(1 i=0;i<a.g;i++){7(a[i]===2){10}7(G(a[i])=="1s"&&a[i]!=""){4 a[i]+""}7(G(a[i])=="1c"&&a[i].o!=""){4 a[i].o+""}}4 2};6 t(Q,R,11){1 j=1w.1v(11);h(1 i=0;i<j.g;i++){7(j[i].1u("1p")==R){Q.1n(j[i])}}};1 b=[],1o=2,1f={},1e="1d";t(b,B,"1h");t(b,B,"1i");7(b.g===0){4}h(1 i=0;i<b.g;i++){1 8=b[i],e=Z(8.X["1m"],8.1l,8.X["P"],8.P),1k="";7(e===2){10}e=y.d.F(e,I,D,H,N,M);d.1j(e,8)}}};',62,96,'|var|null|defaultValue|return|defaults|function|if|_26|asString||_21|_11|SyntaxHighlighter|_27|_f|length|for||_1f|_4|_2|_5|_6|value|true|_3|_c|_e|findTagsByName|_12|result||_a|dp|_7|collapse|_14|reverse|_16|_10|parseParams|typeof|_17|_15|getValue|first|line|_19|_18|gutter|language|_1c|_1d|_1|toolbar|_d|_9|ruler|attributes|_8|findValue|continue|_1e|nogutter|toString|gi|XRegExp|new|exec|split|in|false|brush|object|innerHTML|_24|_23|nocontrols|pre|textarea|highlight|_28|className|class|push|_22|name|firstline|arguments|string|showcolumns|getAttribute|getElementsByTagName|document|HighlightAll'.split('|'),0,{}))
syntaxhighlighter2/styles/help.png ADDED
Binary file
syntaxhighlighter2/styles/magnifier.png ADDED
Binary file
syntaxhighlighter2/styles/page_white_code.png ADDED
Binary file
syntaxhighlighter2/styles/page_white_copy.png ADDED
Binary file
syntaxhighlighter2/styles/printer.png ADDED
Binary file
syntaxhighlighter2/styles/shCore.css ADDED
@@ -0,0 +1,336 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ .syntaxhighlighter,
31
+ .syntaxhighlighter div,
32
+ .syntaxhighlighter code,
33
+ .syntaxhighlighter table,
34
+ .syntaxhighlighter table td,
35
+ .syntaxhighlighter table tr,
36
+ .syntaxhighlighter table tbody
37
+ {
38
+ margin: 0 !important;
39
+ padding: 0 !important;
40
+ border: 0 !important;
41
+ outline: 0 !important;
42
+ background: none !important;
43
+ text-align: left !important;
44
+ float: none !important;
45
+ vertical-align: baseline !important;
46
+ position: static !important;
47
+ left: auto !important;
48
+ top: auto !important;
49
+ right: auto !important;
50
+ bottom: auto !important;
51
+ height: auto !important;
52
+ width: auto !important;
53
+ line-height: 1.1em !important;
54
+ font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
55
+ font-weight: normal !important;
56
+ font-style: normal !important;
57
+ font-size: 1em !important;
58
+ /*min-height: inherit !important; *//* For IE8, FF & WebKit */
59
+ /*min-height: auto !important;*/ /* For IE7 */
60
+ direction: ltr !important;
61
+ }
62
+
63
+ .syntaxhighlighter
64
+ {
65
+ width: 99% !important; /* 99% fixes IE8 horizontal scrollbar */
66
+ margin: 1em 0 1em 0 !important;
67
+ padding: 1px !important; /* adds a little border on top and bottom */
68
+ position: relative !important;
69
+ }
70
+
71
+ .syntaxhighlighter code
72
+ {
73
+ display: inline !important;
74
+ }
75
+
76
+ .syntaxhighlighter .bold
77
+ {
78
+ font-weight: bold !important;
79
+ }
80
+
81
+ .syntaxhighlighter .italic
82
+ {
83
+ font-style: italic !important;
84
+ }
85
+
86
+ .syntaxhighlighter .line
87
+ {
88
+ }
89
+
90
+ .syntaxhighlighter .no-wrap .line .content
91
+ {
92
+ white-space: pre !important;
93
+ }
94
+
95
+ .syntaxhighlighter .line table
96
+ {
97
+ border-collapse: collapse !important;
98
+ }
99
+
100
+ .syntaxhighlighter .line td
101
+ {
102
+ vertical-align: top !important;
103
+ }
104
+
105
+ .syntaxhighlighter .line .number
106
+ {
107
+ width: 3em !important;
108
+ }
109
+
110
+ .syntaxhighlighter .line .number code
111
+ {
112
+ width: 2.7em !important;
113
+ padding-right: .3em !important;
114
+ text-align: right !important;
115
+ display: block !important;
116
+ }
117
+
118
+ .syntaxhighlighter .line .content
119
+ {
120
+ padding-left: .5em !important;
121
+ }
122
+
123
+ .syntaxhighlighter .line .spaces
124
+ {
125
+ }
126
+
127
+ /* Disable border and margin on the lines when no gutter option is set */
128
+ .syntaxhighlighter.nogutter .line .content
129
+ {
130
+ border-left: none !important;
131
+ }
132
+
133
+ .syntaxhighlighter .bar
134
+ {
135
+ display: none !important;
136
+ }
137
+
138
+ .syntaxhighlighter .bar.show
139
+ {
140
+ display: block !important;
141
+ }
142
+
143
+ .syntaxhighlighter.collapsed .bar
144
+ {
145
+ display: block !important;
146
+ }
147
+
148
+ /* Adjust some properties when collapsed */
149
+
150
+ .syntaxhighlighter.collapsed .lines
151
+ {
152
+ display: none !important;
153
+ }
154
+
155
+ .syntaxhighlighter .lines.no-wrap
156
+ {
157
+ overflow: auto !important;
158
+ overflow-y: hidden !important;
159
+ }
160
+
161
+ /* Styles for the toolbar */
162
+
163
+ .syntaxhighlighter .toolbar
164
+ {
165
+ position: absolute !important;
166
+ right: 0px !important;
167
+ top: 0px !important;
168
+ font-size: 1px !important;
169
+ padding: 8px 8px 8px 0 !important; /* in px because images don't scale with ems */
170
+ }
171
+
172
+ .syntaxhighlighter.collapsed .toolbar
173
+ {
174
+ font-size: 80% !important;
175
+ padding: .2em 0 .5em .5em !important;
176
+ position: static !important;
177
+ }
178
+
179
+ .syntaxhighlighter .toolbar a.item,
180
+ .syntaxhighlighter .toolbar .item
181
+ {
182
+ display: block !important;
183
+ float: left !important;
184
+ margin-left: 8px !important;
185
+ background-repeat: no-repeat !important;
186
+ overflow: hidden !important;
187
+ text-indent: -5000px !important;
188
+ }
189
+
190
+ .syntaxhighlighter.collapsed .toolbar .item
191
+ {
192
+ display: none !important;
193
+ }
194
+
195
+ .syntaxhighlighter.collapsed .toolbar .item.expandSource
196
+ {
197
+ background-image: url(magnifier.png) !important;
198
+ display: inline !important;
199
+ text-indent: 0 !important;
200
+ width: auto !important;
201
+ float: none !important;
202
+ height: 16px !important;
203
+ padding-left: 20px !important;
204
+ }
205
+
206
+ .syntaxhighlighter .toolbar .item.viewSource
207
+ {
208
+ background-image: url(page_white_code.png) !important;
209
+ }
210
+
211
+ .syntaxhighlighter .toolbar .item.printSource
212
+ {
213
+ background-image: url(printer.png) !important;
214
+ }
215
+
216
+ .syntaxhighlighter .toolbar .item.copyToClipboard
217
+ {
218
+ text-indent: 0 !important;
219
+ background: none !important;
220
+ overflow: visible !important;
221
+ }
222
+
223
+ .syntaxhighlighter .toolbar .item.about
224
+ {
225
+ background-image: url(help.png) !important;
226
+ }
227
+
228
+ /**
229
+ * Print view.
230
+ * Colors are based on the default theme without background.
231
+ */
232
+
233
+ .syntaxhighlighter.printing,
234
+ .syntaxhighlighter.printing .line.alt1 .content,
235
+ .syntaxhighlighter.printing .line.alt2 .content,
236
+ .syntaxhighlighter.printing .line.highlighted .number,
237
+ .syntaxhighlighter.printing .line.highlighted.alt1 .content,
238
+ .syntaxhighlighter.printing .line.highlighted.alt2 .content,
239
+ {
240
+ background: none !important;
241
+ }
242
+
243
+ /* Gutter line numbers */
244
+ .syntaxhighlighter.printing .line .number
245
+ {
246
+ color: #bbb !important;
247
+ }
248
+
249
+ /* Add border to the lines */
250
+ .syntaxhighlighter.printing .line .content
251
+ {
252
+ color: #000 !important;
253
+ }
254
+
255
+ /* Toolbar when visible */
256
+ .syntaxhighlighter.printing .toolbar
257
+ {
258
+ display: none !important;
259
+ }
260
+
261
+ .syntaxhighlighter.printing a
262
+ {
263
+ text-decoration: none !important;
264
+ }
265
+
266
+ .syntaxhighlighter.printing .plain,
267
+ .syntaxhighlighter.printing .plain a
268
+ {
269
+ color: #000 !important;
270
+ }
271
+
272
+ .syntaxhighlighter.printing .comments,
273
+ .syntaxhighlighter.printing .comments a
274
+ {
275
+ color: #008200 !important;
276
+ }
277
+
278
+ .syntaxhighlighter.printing .string,
279
+ .syntaxhighlighter.printing .string a
280
+ {
281
+ color: blue !important;
282
+ }
283
+
284
+ .syntaxhighlighter.printing .keyword
285
+ {
286
+ color: #069 !important;
287
+ font-weight: bold !important;
288
+ }
289
+
290
+ .syntaxhighlighter.printing .preprocessor
291
+ {
292
+ color: gray !important;
293
+ }
294
+
295
+ .syntaxhighlighter.printing .variable
296
+ {
297
+ color: #a70 !important;
298
+ }
299
+
300
+ .syntaxhighlighter.printing .value
301
+ {
302
+ color: #090 !important;
303
+ }
304
+
305
+ .syntaxhighlighter.printing .functions
306
+ {
307
+ color: #ff1493 !important;
308
+ }
309
+
310
+ .syntaxhighlighter.printing .constants
311
+ {
312
+ color: #0066CC !important;
313
+ }
314
+
315
+ .syntaxhighlighter.printing .script
316
+ {
317
+ font-weight: bold !important;
318
+ }
319
+
320
+ .syntaxhighlighter.printing .color1,
321
+ .syntaxhighlighter.printing .color1 a
322
+ {
323
+ color: #808080 !important;
324
+ }
325
+
326
+ .syntaxhighlighter.printing .color2,
327
+ .syntaxhighlighter.printing .color2 a
328
+ {
329
+ color: #ff1493 !important;
330
+ }
331
+
332
+ .syntaxhighlighter.printing .color3,
333
+ .syntaxhighlighter.printing .color3 a
334
+ {
335
+ color: red !important;
336
+ }
syntaxhighlighter2/styles/shThemeDefault.css ADDED
@@ -0,0 +1,177 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ /************************************
31
+ * Default Syntax Highlighter theme.
32
+ *
33
+ * Interface elements.
34
+ ************************************/
35
+
36
+ .syntaxhighlighter
37
+ {
38
+ background-color: #fff !important;
39
+ border: 1px solid #E0E0E0 !important;
40
+ padding: 0 !important;
41
+ }
42
+
43
+ /* Highlighed line number */
44
+ .syntaxhighlighter .line.highlighted .number
45
+ {
46
+ color: black !important;
47
+ }
48
+
49
+ /* Highlighed line */
50
+ .syntaxhighlighter .line.highlighted.alt1,
51
+ .syntaxhighlighter .line.highlighted.alt2
52
+ {
53
+ background-color: #e0e0e0 !important;
54
+ }
55
+
56
+ /* Gutter line numbers */
57
+ .syntaxhighlighter .line .number
58
+ {
59
+ color: #afafaf !important;
60
+ }
61
+
62
+ /* Add border to the lines */
63
+ .syntaxhighlighter .line .content
64
+ {
65
+ border-left: 3px solid #6CE26C !important;
66
+ color: #000 !important;
67
+ }
68
+
69
+ .syntaxhighlighter.printing .line .content
70
+ {
71
+ border: 0 !important;
72
+ }
73
+
74
+ /* First line */
75
+ .syntaxhighlighter .line.alt1
76
+ {
77
+ background-color: #fff !important;
78
+ }
79
+
80
+ /* Second line */
81
+ .syntaxhighlighter .line.alt2
82
+ {
83
+ background-color: #F8F8F8 !important;
84
+ }
85
+
86
+ .syntaxhighlighter .toolbar
87
+ {
88
+ background-color: #F8F8F8 !important;
89
+ border: #E7E5DC solid 1px !important;
90
+ }
91
+
92
+ .syntaxhighlighter .toolbar a
93
+ {
94
+ color: #a0a0a0 !important;
95
+ }
96
+
97
+ .syntaxhighlighter .toolbar a:hover
98
+ {
99
+ color: red !important;
100
+ }
101
+
102
+ .nogutter { border: none !important; }
103
+
104
+ /************************************
105
+ * Actual syntax highlighter colors.
106
+ ************************************/
107
+ .syntaxhighlighter .plain,
108
+ .syntaxhighlighter .plain a
109
+ {
110
+ color: #000 !important;
111
+ }
112
+
113
+ .syntaxhighlighter .comments,
114
+ .syntaxhighlighter .comments a
115
+ {
116
+ color: #008200 !important;
117
+ }
118
+
119
+ .syntaxhighlighter .string,
120
+ .syntaxhighlighter .string a
121
+ {
122
+ color: blue !important;
123
+ }
124
+
125
+ .syntaxhighlighter .keyword
126
+ {
127
+ color: #069 !important;
128
+ font-weight: bold !important;
129
+ }
130
+
131
+ .syntaxhighlighter .preprocessor
132
+ {
133
+ color: gray !important;
134
+ }
135
+
136
+ .syntaxhighlighter .variable
137
+ {
138
+ color: #a70 !important;
139
+ }
140
+
141
+ .syntaxhighlighter .value
142
+ {
143
+ color: #090 !important;
144
+ }
145
+
146
+ .syntaxhighlighter .functions
147
+ {
148
+ color: #ff1493 !important;
149
+ }
150
+
151
+ .syntaxhighlighter .constants
152
+ {
153
+ color: #0066CC !important;
154
+ }
155
+
156
+ .syntaxhighlighter .script
157
+ {
158
+ background-color: yellow !important;
159
+ }
160
+
161
+ .syntaxhighlighter .color1,
162
+ .syntaxhighlighter .color1 a
163
+ {
164
+ color: #808080 !important;
165
+ }
166
+
167
+ .syntaxhighlighter .color2,
168
+ .syntaxhighlighter .color2 a
169
+ {
170
+ color: #ff1493 !important;
171
+ }
172
+
173
+ .syntaxhighlighter .color3,
174
+ .syntaxhighlighter .color3 a
175
+ {
176
+ color: red !important;
177
+ }
syntaxhighlighter2/styles/shThemeDjango.css ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ /**
31
+ * Django SyntaxHighlighter theme
32
+ */
33
+
34
+ /************************************
35
+ * Interface elements.
36
+ ************************************/
37
+
38
+ .syntaxhighlighter
39
+ {
40
+ background-color: #0B2F20 !important;
41
+ }
42
+
43
+ /* Gutter line numbers */
44
+ .syntaxhighlighter .line .number
45
+ {
46
+ color: #497958 !important;
47
+ }
48
+
49
+ /* Add border to the lines */
50
+ .syntaxhighlighter .line .content
51
+ {
52
+ border-left: 3px solid #41A83E !important;
53
+ color: #B9BDB6 !important;
54
+ }
55
+
56
+ .syntaxhighlighter.printing .line .content
57
+ {
58
+ border: 0 !important;
59
+ }
60
+
61
+ /* First line */
62
+ .syntaxhighlighter .line.alt1
63
+ {
64
+ }
65
+
66
+ /* Second line */
67
+ .syntaxhighlighter .line.alt2
68
+ {
69
+ background-color: #0a2b1d !important;
70
+ }
71
+
72
+ /* Highlighed line number */
73
+ .syntaxhighlighter .line.highlighted .number
74
+ {
75
+ background-color: #336442 !important;
76
+ color: #fff !important;
77
+ }
78
+
79
+ /* Highlighed line */
80
+ .syntaxhighlighter .line.highlighted.alt1,
81
+ .syntaxhighlighter .line.highlighted.alt2
82
+ {
83
+ background-color: #336442 !important;
84
+ }
85
+
86
+ .syntaxhighlighter .toolbar
87
+ {
88
+ background-color: #245032 !important;
89
+ border: #0B2F20 solid 1px !important;
90
+ }
91
+
92
+ .syntaxhighlighter .toolbar a
93
+ {
94
+ color: #C4B14A !important;
95
+ }
96
+
97
+ .syntaxhighlighter .toolbar a:hover
98
+ {
99
+ color: #FFE862 !important;
100
+ }
101
+
102
+ /************************************
103
+ * Actual syntax highlighter colors.
104
+ ************************************/
105
+ .syntaxhighlighter .plain,
106
+ .syntaxhighlighter .plain a
107
+ {
108
+ color: #F8F8F8 !important;
109
+ }
110
+
111
+ .syntaxhighlighter .comments,
112
+ .syntaxhighlighter .comments a
113
+ {
114
+ color: #336442 !important;
115
+ font-style: italic !important;
116
+ }
117
+
118
+ .syntaxhighlighter .string,
119
+ .syntaxhighlighter .string a
120
+ {
121
+ color: #9DF39F !important;
122
+ }
123
+
124
+ .syntaxhighlighter .keyword
125
+ {
126
+ color: #96DD3B !important;
127
+ font-weight: bold !important;
128
+ }
129
+
130
+ .syntaxhighlighter .preprocessor
131
+ {
132
+ color: #91BB9E !important;
133
+ }
134
+
135
+ .syntaxhighlighter .variable
136
+ {
137
+ color: #FFAA3E !important;
138
+ }
139
+
140
+ .syntaxhighlighter .value
141
+ {
142
+ color: #F7E741 !important;
143
+ }
144
+
145
+ .syntaxhighlighter .functions
146
+ {
147
+ color: #FFAA3E !important;
148
+ }
149
+
150
+ .syntaxhighlighter .constants
151
+ {
152
+ color: #E0E8FF !important;
153
+ }
154
+
155
+ .syntaxhighlighter .script
156
+ {
157
+ background-color: #497958 !important;
158
+ }
159
+
160
+ .syntaxhighlighter .color1,
161
+ .syntaxhighlighter .color1 a
162
+ {
163
+ color: #EB939A !important;
164
+ }
165
+
166
+ .syntaxhighlighter .color2,
167
+ .syntaxhighlighter .color2 a
168
+ {
169
+ color: #91BB9E !important;
170
+ }
171
+
172
+ .syntaxhighlighter .color3,
173
+ .syntaxhighlighter .color3 a
174
+ {
175
+ color: #EDEF7D !important;
176
+ }
syntaxhighlighter2/styles/shThemeEclipse.css ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ /**
31
+ * Eclipse IDE SyntaxHighlighter color theme
32
+ * (C) Code-House
33
+ * http://blog.code-house.org/2009/10/xml-i-adnotacje-kod-ogolnego-przeznaczenia-i-jpa/
34
+ */
35
+
36
+ .syntaxhighlighter
37
+ {
38
+ background-color: #fff !important;
39
+ }
40
+
41
+ /* Highlighed line number */
42
+ .syntaxhighlighter .line.highlighted .number
43
+ {
44
+ background-color: #c3defe !important;
45
+ }
46
+
47
+ /* Highlighed line */
48
+ .syntaxhighlighter .line.highlighted.alt1,
49
+ .syntaxhighlighter .line.highlighted.alt2
50
+ {
51
+ background-color: #c3defe !important;
52
+ }
53
+
54
+ /* Gutter line numbers */
55
+ .syntaxhighlighter .line .number
56
+ {
57
+ color: #787878 !important;
58
+ background-color: #fff !important;
59
+ }
60
+
61
+ /* Add border to the lines */
62
+ .syntaxhighlighter .line .content
63
+ {
64
+ border-left: 1px solid #d4d0c8 !important;
65
+ color: #000 !important;
66
+ }
67
+
68
+ .syntaxhighlighter.printing .line .content
69
+ {
70
+ border: 0 !important;
71
+ }
72
+
73
+ /* First line */
74
+ .syntaxhighlighter .line.alt1
75
+ {
76
+ background-color: #fff !important;
77
+ }
78
+
79
+ /* Second line */
80
+ .syntaxhighlighter .line.alt2
81
+ {
82
+ background-color: #fff !important;
83
+ }
84
+
85
+ .syntaxhighlighter .toolbar
86
+ {
87
+ background-color: #F8F8F8 !important;
88
+ border: #E7E5DC solid 1px !important;
89
+ }
90
+
91
+ .syntaxhighlighter .toolbar a
92
+ {
93
+ color: #a0a0a0 !important;
94
+ }
95
+
96
+ .syntaxhighlighter .toolbar a:hover
97
+ {
98
+ color: red !important;
99
+ }
100
+
101
+ /************************************
102
+ * Actual syntax highlighter colors.
103
+ ************************************/
104
+ .syntaxhighlighter .plain,
105
+ .syntaxhighlighter .plain a
106
+ {
107
+ color: #000 !important;
108
+ }
109
+
110
+ .syntaxhighlighter .comments,
111
+ .syntaxhighlighter .comments a
112
+ {
113
+ color: #3f5fbf !important;
114
+ }
115
+
116
+ .syntaxhighlighter .string,
117
+ .syntaxhighlighter .string a
118
+ {
119
+ color: #2a00ff !important;
120
+ }
121
+
122
+ .syntaxhighlighter .keyword
123
+ {
124
+ color: #7f0055 !important;
125
+ font-weight: bold !important;
126
+ }
127
+
128
+ .syntaxhighlighter .preprocessor
129
+ {
130
+ color: #646464 !important;
131
+ }
132
+
133
+ .syntaxhighlighter .variable
134
+ {
135
+ color: #a70 !important;
136
+ }
137
+
138
+ .syntaxhighlighter .value
139
+ {
140
+ color: #090 !important;
141
+ }
142
+
143
+ .syntaxhighlighter .functions
144
+ {
145
+ color: #ff1493 !important;
146
+ }
147
+
148
+ .syntaxhighlighter .constants
149
+ {
150
+ color: #0066CC !important;
151
+ }
152
+
153
+ .syntaxhighlighter .script
154
+ {
155
+ background-color: yellow !important;
156
+ }
157
+
158
+ .syntaxhighlighter .color1,
159
+ .syntaxhighlighter .color1 a
160
+ {
161
+ color: #808080 !important;
162
+ }
163
+
164
+ .syntaxhighlighter .color2,
165
+ .syntaxhighlighter .color2 a
166
+ {
167
+ color: #ff1493 !important;
168
+ }
169
+
170
+ .syntaxhighlighter .color3,
171
+ .syntaxhighlighter .color3 a
172
+ {
173
+ color: red !important;
174
+ }
175
+
176
+
177
+ .xml .keyword {
178
+ color: #3f7f7f !important;
179
+ font-weight: normal !important;
180
+ }
181
+
182
+ .xml .color1,
183
+ .xml .color1 a{
184
+ color: #7f007f !important;
185
+ }
186
+
187
+ .xml .string {
188
+ font-style: italic !important;
189
+ color: #2a00ff !important;
190
+ }
syntaxhighlighter2/styles/shThemeEmacs.css ADDED
@@ -0,0 +1,175 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ /**
31
+ * Emacs SyntaxHighlighter theme based on theme by Joshua Emmons
32
+ * http://www.skia.net/
33
+ */
34
+
35
+ /************************************
36
+ * Interface elements.
37
+ ************************************/
38
+
39
+ .syntaxhighlighter
40
+ {
41
+ background-color: #000000 !important;
42
+ }
43
+
44
+ /* Gutter line numbers */
45
+ .syntaxhighlighter .line .number
46
+ {
47
+ color: #D3D3D3 !important;
48
+ }
49
+
50
+ /* Add border to the lines */
51
+ .syntaxhighlighter .line .content
52
+ {
53
+ border-left: 3px solid #990000 !important;
54
+ color: #B9BDB6 !important;
55
+ }
56
+
57
+ .syntaxhighlighter.printing .line .content
58
+ {
59
+ border: 0 !important;
60
+ }
61
+
62
+ /* First line */
63
+ .syntaxhighlighter .line.alt1
64
+ {
65
+ }
66
+
67
+ /* Second line */
68
+ .syntaxhighlighter .line.alt2
69
+ {
70
+ background-color: #0f0f0f !important;
71
+ }
72
+
73
+ /* Highlighed line number */
74
+ .syntaxhighlighter .line.highlighted .number
75
+ {
76
+ background-color: #435A5F !important;
77
+ color: #fff !important;
78
+ }
79
+
80
+ /* Highlighed line */
81
+ .syntaxhighlighter .line.highlighted.alt1,
82
+ .syntaxhighlighter .line.highlighted.alt2
83
+ {
84
+ background-color: #435A5F !important;
85
+ }
86
+
87
+ .syntaxhighlighter .toolbar
88
+ {
89
+ background-color: #000000 !important;
90
+ border: #000000 solid 1px !important;
91
+ }
92
+
93
+ .syntaxhighlighter .toolbar a
94
+ {
95
+ color: #646763 !important;
96
+ }
97
+
98
+ .syntaxhighlighter .toolbar a:hover
99
+ {
100
+ color: #9CCFF4 !important;
101
+ }
102
+
103
+ /************************************
104
+ * Actual syntax highlighter colors.
105
+ ************************************/
106
+ .syntaxhighlighter .plain,
107
+ .syntaxhighlighter .plain a
108
+ {
109
+ color: #D3D3D3 !important;
110
+ }
111
+
112
+ .syntaxhighlighter .comments,
113
+ .syntaxhighlighter .comments a
114
+ {
115
+ color: #FF7D27 !important;
116
+ }
117
+
118
+ .syntaxhighlighter .string,
119
+ .syntaxhighlighter .string a
120
+ {
121
+ color: #FF9E7B !important;
122
+ }
123
+
124
+ .syntaxhighlighter .keyword
125
+ {
126
+ color: #00FFFF !important;
127
+ }
128
+
129
+ .syntaxhighlighter .preprocessor
130
+ {
131
+ color: #AEC4DE !important;
132
+ }
133
+
134
+ .syntaxhighlighter .variable
135
+ {
136
+ color: #FFAA3E !important;
137
+ }
138
+
139
+ .syntaxhighlighter .value
140
+ {
141
+ color: #090 !important;
142
+ }
143
+
144
+ .syntaxhighlighter .functions
145
+ {
146
+ color: #81CEF9 !important;
147
+ }
148
+
149
+ .syntaxhighlighter .constants
150
+ {
151
+ color: #FF9E7B !important;
152
+ }
153
+
154
+ .syntaxhighlighter .script
155
+ {
156
+ background-color: #990000 !important;
157
+ }
158
+
159
+ .syntaxhighlighter .color1,
160
+ .syntaxhighlighter .color1 a
161
+ {
162
+ color: #EBDB8D !important;
163
+ }
164
+
165
+ .syntaxhighlighter .color2,
166
+ .syntaxhighlighter .color2 a
167
+ {
168
+ color: #FF7D27 !important;
169
+ }
170
+
171
+ .syntaxhighlighter .color3,
172
+ .syntaxhighlighter .color3 a
173
+ {
174
+ color: #AEC4DE !important;
175
+ }
syntaxhighlighter2/styles/shThemeFadeToGrey.css ADDED
@@ -0,0 +1,177 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ /**
31
+ * Fade to Grey SyntaxHighlighter theme based on theme by Brasten Sager
32
+ * http://www.ibrasten.com/
33
+ */
34
+
35
+ /************************************
36
+ * Interface elements.
37
+ ************************************/
38
+
39
+ .syntaxhighlighter
40
+ {
41
+ background-color: #121212 !important;
42
+ }
43
+
44
+ /* Gutter line numbers */
45
+ .syntaxhighlighter .line .number
46
+ {
47
+ color: #C3C3C3 !important;
48
+ }
49
+
50
+ /* Add border to the lines */
51
+ .syntaxhighlighter .line .content
52
+ {
53
+ border-left: 3px solid #3185B9 !important;
54
+ color: #B9BDB6 !important;
55
+ }
56
+
57
+ .syntaxhighlighter.printing .line .content
58
+ {
59
+ border: 0 !important;
60
+ }
61
+
62
+ /* First line */
63
+ .syntaxhighlighter .line.alt1
64
+ {
65
+ }
66
+
67
+ /* Second line */
68
+ .syntaxhighlighter .line.alt2
69
+ {
70
+ background-color: #000000 !important;
71
+ }
72
+
73
+ /* Highlighed line number */
74
+ .syntaxhighlighter .line.highlighted .number
75
+ {
76
+ background-color: #3A3A00 !important;
77
+ color: #fff !important;
78
+ }
79
+
80
+ /* Highlighed line */
81
+ .syntaxhighlighter .line.highlighted.alt1,
82
+ .syntaxhighlighter .line.highlighted.alt2
83
+ {
84
+ background-color: #3A3A00 !important;
85
+ }
86
+
87
+ .syntaxhighlighter .toolbar
88
+ {
89
+ background-color: #000000 !important;
90
+ border: #000000 solid 1px !important;
91
+ }
92
+
93
+ .syntaxhighlighter .toolbar a
94
+ {
95
+ color: #808080 !important;
96
+ }
97
+
98
+ .syntaxhighlighter .toolbar a:hover
99
+ {
100
+ color: #96DAFF !important;
101
+ }
102
+
103
+ /************************************
104
+ * Actual syntax highlighter colors.
105
+ ************************************/
106
+ .syntaxhighlighter .plain,
107
+ .syntaxhighlighter .plain a
108
+ {
109
+ color: #FFFFFF !important;
110
+ }
111
+
112
+ .syntaxhighlighter .comments,
113
+ .syntaxhighlighter .comments a
114
+ {
115
+ color: #696854 !important;
116
+ }
117
+
118
+ .syntaxhighlighter .string,
119
+ .syntaxhighlighter .string a
120
+ {
121
+ color: #E3E658 !important;
122
+ }
123
+
124
+ .syntaxhighlighter .keyword
125
+ {
126
+ color: #D01D33 !important;
127
+ }
128
+
129
+ .syntaxhighlighter .preprocessor
130
+ {
131
+ color: #435A5F !important;
132
+ }
133
+
134
+ .syntaxhighlighter .variable
135
+ {
136
+ color: #898989 !important;
137
+ }
138
+
139
+ .syntaxhighlighter .value
140
+ {
141
+ color: #090 !important;
142
+ }
143
+
144
+ .syntaxhighlighter .functions
145
+ {
146
+ color: #AAAAAA !important;
147
+ font-weight: bold !important;
148
+ }
149
+
150
+ .syntaxhighlighter .constants
151
+ {
152
+ color: #96DAFF !important;
153
+ }
154
+
155
+ .syntaxhighlighter .script
156
+ {
157
+ background-color: #C3C3C3 !important;
158
+ color: #000 !important;
159
+ }
160
+
161
+ .syntaxhighlighter .color1,
162
+ .syntaxhighlighter .color1 a
163
+ {
164
+ color: #FFC074 !important;
165
+ }
166
+
167
+ .syntaxhighlighter .color2,
168
+ .syntaxhighlighter .color2 a
169
+ {
170
+ color: #4A8CDB !important;
171
+ }
172
+
173
+ .syntaxhighlighter .color3,
174
+ .syntaxhighlighter .color3 a
175
+ {
176
+ color: #96DAFF !important;
177
+ }
syntaxhighlighter2/styles/shThemeMidnight.css ADDED
@@ -0,0 +1,175 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ /**
31
+ * Midnight SyntaxHighlighter theme based on theme by J.D. Myers
32
+ * http://webdesign.lsnjd.com/
33
+ */
34
+
35
+ /************************************
36
+ * Interface elements.
37
+ ************************************/
38
+
39
+ .syntaxhighlighter
40
+ {
41
+ background-color: #0F192A !important;
42
+ }
43
+
44
+ /* Gutter line numbers */
45
+ .syntaxhighlighter .line .number
46
+ {
47
+ color: #38566F !important;
48
+ }
49
+
50
+ /* Add border to the lines */
51
+ .syntaxhighlighter .line .content
52
+ {
53
+ border-left: 3px solid #435A5F !important;
54
+ color: #B9BDB6 !important;
55
+ }
56
+
57
+ .syntaxhighlighter.printing .line .content
58
+ {
59
+ border: 0 !important;
60
+ }
61
+
62
+ /* First line */
63
+ .syntaxhighlighter .line.alt1
64
+ {
65
+ background-color: #0F192A !important;
66
+ }
67
+
68
+ /* Second line */
69
+ .syntaxhighlighter .line.alt2
70
+ {
71
+ background-color: #0F192A !important;
72
+ }
73
+
74
+ /* Highlighed line number */
75
+ .syntaxhighlighter .line.highlighted .number
76
+ {
77
+ background-color: #253E5A !important;
78
+ color: #fff !important;
79
+ }
80
+
81
+ /* Highlighed line */
82
+ .syntaxhighlighter .line.highlighted.alt1,
83
+ .syntaxhighlighter .line.highlighted.alt2
84
+ {
85
+ background-color: #253E5A !important;
86
+ }
87
+
88
+ .syntaxhighlighter .toolbar
89
+ {
90
+ background-color: #0F192A !important;
91
+ }
92
+
93
+ .syntaxhighlighter .toolbar a
94
+ {
95
+ color: #38566F !important;
96
+ }
97
+
98
+ .syntaxhighlighter .toolbar a:hover
99
+ {
100
+ color: #8AA6C1 !important;
101
+ }
102
+
103
+ /************************************
104
+ * Actual syntax highlighter colors.
105
+ ************************************/
106
+ .syntaxhighlighter .plain,
107
+ .syntaxhighlighter .plain a
108
+ {
109
+ color: #D1EDFF !important;
110
+ }
111
+
112
+ .syntaxhighlighter .comments,
113
+ .syntaxhighlighter .comments a
114
+ {
115
+ color: #428BDD !important;
116
+ }
117
+
118
+ .syntaxhighlighter .string,
119
+ .syntaxhighlighter .string a
120
+ {
121
+ color: #1DC116 !important;
122
+ }
123
+
124
+ .syntaxhighlighter .keyword
125
+ {
126
+ color: #B43D3D !important;
127
+ }
128
+
129
+ .syntaxhighlighter .preprocessor
130
+ {
131
+ color: #8AA6C1 !important;
132
+ }
133
+
134
+ .syntaxhighlighter .variable
135
+ {
136
+ color: #FFAA3E !important;
137
+ }
138
+
139
+ .syntaxhighlighter .value
140
+ {
141
+ color: #F7E741 !important;
142
+ }
143
+
144
+ .syntaxhighlighter .functions
145
+ {
146
+ color: #FFAA3E !important;
147
+ }
148
+
149
+ .syntaxhighlighter .constants
150
+ {
151
+ color: #E0E8FF !important;
152
+ }
153
+
154
+ .syntaxhighlighter .script
155
+ {
156
+ background-color: #404040 !important;
157
+ }
158
+
159
+ .syntaxhighlighter .color1,
160
+ .syntaxhighlighter .color1 a
161
+ {
162
+ color: #F8BB00 !important;
163
+ }
164
+
165
+ .syntaxhighlighter .color2,
166
+ .syntaxhighlighter .color2 a
167
+ {
168
+ color: #FFFFFF !important;
169
+ }
170
+
171
+ .syntaxhighlighter .color3,
172
+ .syntaxhighlighter .color3 a
173
+ {
174
+ color: #FFAA3E !important;
175
+ }
syntaxhighlighter2/styles/shThemeRDark.css ADDED
@@ -0,0 +1,175 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ /**
31
+ * RDark SyntaxHighlighter theme based on theme by Radu Dineiu
32
+ * http://www.vim.org/scripts/script.php?script_id=1732
33
+ */
34
+
35
+ /************************************
36
+ * Interface elements.
37
+ ************************************/
38
+
39
+ .syntaxhighlighter
40
+ {
41
+ background-color: #1B2426 !important;
42
+ }
43
+
44
+ /* Gutter line numbers */
45
+ .syntaxhighlighter .line .number
46
+ {
47
+ color: #B9BDB6 !important;
48
+ }
49
+
50
+ /* Add border to the lines */
51
+ .syntaxhighlighter .line .content
52
+ {
53
+ border-left: 3px solid #435A5F !important;
54
+ color: #B9BDB6 !important;
55
+ }
56
+
57
+ .syntaxhighlighter.printing .line .content
58
+ {
59
+ border: 0 !important;
60
+ }
61
+
62
+ /* First line */
63
+ .syntaxhighlighter .line.alt1
64
+ {
65
+ background-color: #1B2426 !important;
66
+ }
67
+
68
+ /* Second line */
69
+ .syntaxhighlighter .line.alt2
70
+ {
71
+ background-color: #1B2426 !important;
72
+ }
73
+
74
+ /* Highlighed line number */
75
+ .syntaxhighlighter .line.highlighted .number
76
+ {
77
+ background-color: #435A5F !important;
78
+ color: #fff !important;
79
+ }
80
+
81
+ /* Highlighed line */
82
+ .syntaxhighlighter .line.highlighted.alt1,
83
+ .syntaxhighlighter .line.highlighted.alt2
84
+ {
85
+ background-color: #435A5F !important;
86
+ }
87
+
88
+ .syntaxhighlighter .toolbar
89
+ {
90
+ background-color: #1B2426 !important;
91
+ }
92
+
93
+ .syntaxhighlighter .toolbar a
94
+ {
95
+ color: #646763 !important;
96
+ }
97
+
98
+ .syntaxhighlighter .toolbar a:hover
99
+ {
100
+ color: #E0E8FF !important;
101
+ }
102
+
103
+ /************************************
104
+ * Actual syntax highlighter colors.
105
+ ************************************/
106
+ .syntaxhighlighter .plain,
107
+ .syntaxhighlighter .plain a
108
+ {
109
+ color: #B9BDB6 !important;
110
+ }
111
+
112
+ .syntaxhighlighter .comments,
113
+ .syntaxhighlighter .comments a
114
+ {
115
+ color: #878A85 !important;
116
+ }
117
+
118
+ .syntaxhighlighter .string,
119
+ .syntaxhighlighter .string a
120
+ {
121
+ color: #5CE638 !important;
122
+ }
123
+
124
+ .syntaxhighlighter .keyword
125
+ {
126
+ color: #5BA1CF !important;
127
+ }
128
+
129
+ .syntaxhighlighter .preprocessor
130
+ {
131
+ color: #435A5F !important;
132
+ }
133
+
134
+ .syntaxhighlighter .variable
135
+ {
136
+ color: #FFAA3E !important;
137
+ }
138
+
139
+ .syntaxhighlighter .value
140
+ {
141
+ color: #090 !important;
142
+ }
143
+
144
+ .syntaxhighlighter .functions
145
+ {
146
+ color: #FFAA3E !important;
147
+ }
148
+
149
+ .syntaxhighlighter .constants
150
+ {
151
+ color: #E0E8FF !important;
152
+ }
153
+
154
+ .syntaxhighlighter .script
155
+ {
156
+ background-color: #435A5F !important;
157
+ }
158
+
159
+ .syntaxhighlighter .color1,
160
+ .syntaxhighlighter .color1 a
161
+ {
162
+ color: #E0E8FF !important;
163
+ }
164
+
165
+ .syntaxhighlighter .color2,
166
+ .syntaxhighlighter .color2 a
167
+ {
168
+ color: #FFFFFF !important;
169
+ }
170
+
171
+ .syntaxhighlighter .color3,
172
+ .syntaxhighlighter .color3 a
173
+ {
174
+ color: #FFAA3E !important;
175
+ }
syntaxhighlighter3/styles/shCore.css CHANGED
@@ -48,8 +48,9 @@
48
  font-weight: normal !important;
49
  font-style: normal !important;
50
  font-size: 1em !important;
51
- min-height: inherit !important;
52
- min-height: auto !important;
 
53
  }
54
 
55
  .syntaxhighlighter {
48
  font-weight: normal !important;
49
  font-style: normal !important;
50
  font-size: 1em !important;
51
+ /*min-height: inherit !important; */
52
+ /*min-height: auto !important;*/
53
+ direction: ltr !important;
54
  }
55
 
56
  .syntaxhighlighter {