ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
HFile_jasmin.php
Go to the documentation of this file.
1<?php
2$BEAUT_PATH = realpath(".")."/Services/COPage/syntax_highlight/php";
3if (!isset ($BEAUT_PATH)) return;
4require_once("$BEAUT_PATH/Beautifier/HFile.php");
5 class HFile_jasmin extends HFile{
6 function HFile_jasmin(){
7 $this->HFile();
8/*************************************/
9// Beautifier Highlighting Configuration File
10// Jasmin
11/*************************************/
12// Flags
13
14$this->nocase = "0";
15$this->notrim = "0";
16$this->perl = "0";
17
18// Colours
19
20$this->colours = array("blue", "purple", "gray", "brown");
21$this->quotecolour = "blue";
22$this->blockcommentcolour = "green";
23$this->linecommentcolour = "green";
24
25// Indent Strings
26
27$this->indent = array();
28$this->unindent = array();
29
30// String characters and delimiters
31
32$this->stringchars = array();
33$this->delimiters = array("~", "!", "@", "%", "^", "&", "*", "(", ")", "-", "+", "=", "|", "\\", "/", "{", "}", "[", "]", ":", ";", "\"", "'", "<", ">", " ", ",", " ", ".", "?");
34$this->escchar = "";
35
36// Comment settings
37
38$this->linecommenton = array(";");
39$this->blockcommenton = array("");
40$this->blockcommentoff = array("");
41
42// Keywords (keyword mapping to colour number)
43
44$this->keywords = array(
45 "catch" => "1",
46 "class" => "1",
47 "end" => "1",
48 "field" => "1",
49 "implements" => "1",
50 "interface" => "1",
51 "limit" => "1",
52 "line" => "1",
53 "method" => "1",
54 "source" => "1",
55 "super" => "1",
56 "throws" => "1",
57 "var" => "1",
58 "abstract" => "2",
59 "default" => "2",
60 "final" => "2",
61 "from" => "2",
62 "is" => "2",
63 "lookupswitch" => "2",
64 "native" => "2",
65 "private" => "2",
66 "protected" => "2",
67 "public" => "2",
68 "static" => "2",
69 "synchronized" => "2",
70 "tableswitch" => "2",
71 "to" => "2",
72 "transient" => "2",
73 "using" => "2",
74 "volatile" => "2",
75 "aaload" => "3",
76 "aastore" => "3",
77 "aconst_null" => "3",
78 "aload" => "3",
79 "aload_0" => "3",
80 "aload_1" => "3",
81 "aload_2" => "3",
82 "aload_3" => "3",
83 "anewarray" => "3",
84 "areturn" => "3",
85 "arraylength" => "3",
86 "astore" => "3",
87 "astore_0" => "3",
88 "astore_1" => "3",
89 "astore_2" => "3",
90 "astore_3" => "3",
91 "athrow" => "3",
92 "baload" => "3",
93 "bastore" => "3",
94 "bipush" => "3",
95 "breakpoint" => "3",
96 "caload" => "3",
97 "castore" => "3",
98 "checkcast" => "3",
99 "d2f" => "3",
100 "d2i" => "3",
101 "d2l" => "3",
102 "dadd" => "3",
103 "daload" => "3",
104 "dastore" => "3",
105 "dcmpg" => "3",
106 "dcmpl" => "3",
107 "dconst_0" => "3",
108 "dconst_1" => "3",
109 "ddiv" => "3",
110 "dead" => "3",
111 "dload" => "3",
112 "dload_0" => "3",
113 "dload_1" => "3",
114 "dload_2" => "3",
115 "dload_3" => "3",
116 "dmul" => "3",
117 "dneg" => "3",
118 "drem" => "3",
119 "dreturn" => "3",
120 "dstore" => "3",
121 "dstore_0" => "3",
122 "dstore_1" => "3",
123 "dstore_2" => "3",
124 "dstore_3" => "3",
125 "dsub" => "3",
126 "dup" => "3",
127 "dup2" => "3",
128 "dup2_x1" => "3",
129 "dup2_x2" => "3",
130 "dup_x1" => "3",
131 "dup_x2" => "3",
132 "f2d" => "3",
133 "f2i" => "3",
134 "f2l" => "3",
135 "fadd" => "3",
136 "faload" => "3",
137 "fastore" => "3",
138 "fcmpg" => "3",
139 "fcmpl" => "3",
140 "fconst_0" => "3",
141 "fconst_1" => "3",
142 "fconst_2" => "3",
143 "fdiv" => "3",
144 "fload" => "3",
145 "fload_0" => "3",
146 "fload_1" => "3",
147 "fload_2" => "3",
148 "fload_3" => "3",
149 "fmul" => "3",
150 "fneg" => "3",
151 "frem" => "3",
152 "freturn" => "3",
153 "fstore" => "3",
154 "fstore_0" => "3",
155 "fstore_1" => "3",
156 "fstore_2" => "3",
157 "fstore_3" => "3",
158 "fsub" => "3",
159 "getfield" => "3",
160 "getstatic" => "3",
161 "goto" => "3",
162 "goto_w" => "3",
163 "i2b" => "3",
164 "i2c" => "3",
165 "i2d" => "3",
166 "i2f" => "3",
167 "i2l" => "3",
168 "i2s" => "3",
169 "iadd" => "3",
170 "iaload" => "3",
171 "iand" => "3",
172 "iastore" => "3",
173 "iconst_0" => "3",
174 "iconst_1" => "3",
175 "iconst_2" => "3",
176 "iconst_3" => "3",
177 "iconst_4" => "3",
178 "iconst_5" => "3",
179 "iconst_m1" => "3",
180 "idiv" => "3",
181 "if_acmpeq" => "3",
182 "if_acmpne" => "3",
183 "if_icmpeq" => "3",
184 "if_icmpge" => "3",
185 "if_icmpgt" => "3",
186 "if_icmple" => "3",
187 "if_icmplt" => "3",
188 "if_icmpne" => "3",
189 "ifeq" => "3",
190 "ifge" => "3",
191 "ifgt" => "3",
192 "ifle" => "3",
193 "iflt" => "3",
194 "ifne" => "3",
195 "ifnonnull" => "3",
196 "ifnull" => "3",
197 "iinc" => "3",
198 "iload" => "3",
199 "iload_0" => "3",
200 "iload_1" => "3",
201 "iload_2" => "3",
202 "iload_3" => "3",
203 "imul" => "3",
204 "ineg" => "3",
205 "instanceof" => "3",
206 "int2byte" => "3",
207 "int2char" => "3",
208 "int2short" => "3",
209 "invokeinterface" => "3",
210 "invokenonvirtual" => "3",
211 "invokespecial" => "3",
212 "invokestatic" => "3",
213 "invokevirtual" => "3",
214 "ior" => "3",
215 "irem" => "3",
216 "ireturn" => "3",
217 "ishl" => "3",
218 "ishr" => "3",
219 "istore" => "3",
220 "istore_0" => "3",
221 "istore_1" => "3",
222 "istore_2" => "3",
223 "istore_3" => "3",
224 "isub" => "3",
225 "iushr" => "3",
226 "ixor" => "3",
227 "jsr" => "3",
228 "jsr_w" => "3",
229 "l2d" => "3",
230 "l2f" => "3",
231 "l2i" => "3",
232 "label" => "3",
233 "ladd" => "3",
234 "laload" => "3",
235 "land" => "3",
236 "lastore" => "3",
237 "lcmp" => "3",
238 "lconst_0" => "3",
239 "lconst_1" => "3",
240 "ldc" => "3",
241 "ldc2_w" => "3",
242 "ldc_w" => "3",
243 "ldiv" => "3",
244 "lload" => "3",
245 "lload_0" => "3",
246 "lload_1" => "3",
247 "lload_2" => "3",
248 "lload_3" => "3",
249 "lmul" => "3",
250 "lneg" => "3",
251 "lor" => "3",
252 "lrem" => "3",
253 "lreturn" => "3",
254 "lshl" => "3",
255 "lshr" => "3",
256 "lstore" => "3",
257 "lstore_0" => "3",
258 "lstore_1" => "3",
259 "lstore_2" => "3",
260 "lstore_3" => "3",
261 "lsub" => "3",
262 "lushr" => "3",
263 "lxor" => "3",
264 "monitorenter" => "3",
265 "monitorexit" => "3",
266 "multianewarray" => "3",
267 "new" => "3",
268 "newarray" => "3",
269 "nop" => "3",
270 "pop" => "3",
271 "pop2" => "3",
272 "putfield" => "3",
273 "putstatic" => "3",
274 "ret" => "3",
275 "return" => "3",
276 "saload" => "3",
277 "sastore" => "3",
278 "sipush" => "3",
279 "swap" => "3",
280 "try" => "3",
281 "wide" => "3",
282 "L;" => "4",
283 "B" => "4",
284 "C" => "4",
285 "D" => "4",
286 "F" => "4",
287 "I" => "4",
288 "J" => "4",
289 "S" => "4",
290 "V" => "4",
291 "Z" => "4",
292 "[" => "4");
293
294// Special extensions
295
296// Each category can specify a PHP function that returns an altered
297// version of the keyword.
298
299
300
301$this->linkscripts = array(
302 "1" => "donothing",
303 "2" => "donothing",
304 "3" => "donothing",
305 "4" => "donothing");
306}
307
308
309function donothing($keywordin)
310{
311 return $keywordin;
312}
313
314}?>
$BEAUT_PATH
Definition: HFile_jasmin.php:2
donothing($keywordin)