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