ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_dibol.php
Go to the documentation of this file.
1 <?php
2 $BEAUT_PATH = realpath(".")."/Services/COPage/syntax_highlight/php";
3 if (!isset ($BEAUT_PATH)) return;
4 require_once("$BEAUT_PATH/Beautifier/HFile.php");
5  class HFile_dibol extends HFile{
6  function HFile_dibol(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // DiBoL
11 /*************************************/
12 // Flags
13 
14 $this->nocase = "1";
15 $this->notrim = "0";
16 $this->perl = "0";
17 
18 // Colours
19 
20 $this->colours = array("blue", "gray", "purple", "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  "AP" => "",
46  "AR" => "",
47  "DEF" => "",
48  "RBP" => "",
49  ".align" => "1",
50  ".define" => "1",
51  ".else" => "1",
52  ".end" => "1",
53  ".endc" => "1",
54  ".function" => "1",
55  ".ifdef" => "1",
56  ".ifndef" => "1",
57  ".include" => "1",
58  ".proc" => "1",
59  ".subroutine" => "1",
60  "accept" => "1",
61  "begin" => "1",
62  "begincase" => "1",
63  "byte" => "1",
64  "call" => "1",
65  "case" => "1",
66  "clear" => "1",
67  "close" => "1",
68  "common" => "1",
69  "decr" => "1",
70  "delet" => "3",
71  "delete" => "1",
72  "display" => "1",
73  "do" => "1",
74  "else" => "1",
75  "end" => "1",
76  "endcase" => "1",
77  "endglobal" => "1",
78  "endgroup" => "1",
79  "endusing" => "1",
80  "exit" => "1",
81  "exitloop" => "1",
82  "find" => "1",
83  "flush" => "1",
84  "for" => "1",
85  "forever" => "1",
86  "forms" => "1",
87  "freturn" => "1",
88  "from" => "1",
89  "function" => "1",
90  "get" => "1",
91  "gets" => "1",
92  "global" => "1",
93  "goto" => "1",
94  "group" => "1",
95  "if" => "1",
96  "incr" => "1",
97  "locase" => "1",
98  "long" => "1",
99  "lpque" => "1",
100  "merge" => "1",
101  "nextloop" => "1",
102  "nop" => "1",
103  "of" => "1",
104  "offerror" => "1",
105  "on" => "1",
106  "onerror" => "1",
107  "open" => "1",
108  "proc" => "1",
109  "purge" => "1",
110  "put" => "1",
111  "puts" => "1",
112  "quad" => "1",
113  "range" => "1",
114  "read" => "1",
115  "reads" => "1",
116  "record" => "1",
117  "renam" => "3",
118  "repeat" => "1",
119  "return" => "1",
120  "send" => "1",
121  "set" => "1",
122  "sleep" => "1",
123  "sort" => "1",
124  "stop" => "1",
125  "store" => "1",
126  "subroutine" => "1",
127  "then" => "1",
128  "thru" => "1",
129  "unlock" => "1",
130  "until" => "1",
131  "upcase" => "1",
132  "using" => "1",
133  "while" => "1",
134  "word" => "1",
135  "write" => "1",
136  "writes" => "1",
137  "xcall" => "1",
138  "xreturn" => "1",
139  ".and." => "2",
140  ".band." => "2",
141  ".bnand." => "2",
142  ".bnot." => "2",
143  ".bor." => "2",
144  ".bxor." => "2",
145  ".eq." => "2",
146  ".eqs." => "2",
147  ".ge." => "2",
148  ".ges." => "2",
149  ".gt." => "2",
150  ".gts." => "2",
151  ".le." => "2",
152  ".les." => "2",
153  ".lt." => "2",
154  ".lts." => "2",
155  ".ne." => "2",
156  ".nes." => "2",
157  ".not." => "2",
158  ".or." => "2",
159  ".xor." => "2",
160  "%abs" => "3",
161  "%atrim" => "3",
162  "%bkstr" => "3",
163  "%char" => "3",
164  "%chopen" => "3",
165  "%date" => "3",
166  "%datecompiled" => "3",
167  "%datetime" => "3",
168  "%decml" => "3",
169  "%erlin" => "3",
170  "%ernum" => "3",
171  "%error" => "3",
172  "%false" => "3",
173  "%instr" => "3",
174  "%int" => "3",
175  "%integer" => "3",
176  "%len" => "3",
177  "%line" => "3",
178  "%rdlen" => "3",
179  "%recnum" => "3",
180  "%round" => "3",
181  "%rsize" => "3",
182  "%rvstr" => "3",
183  "%string" => "3",
184  "%syserr" => "3",
185  "%tnmbr" => "3",
186  "%trim" => "3",
187  "%true" => "3",
188  "%zoned" => "3",
189  "ascii" => "3",
190  "atrim" => "3",
191  "cmdlin" => "3",
192  "date" => "3",
193  "decml" => "3",
194  "envrn" => "3",
195  "error" => "3",
196  "ertxt" => "3",
197  "exec" => "3",
198  "execute" => "3",
199  "fatal" => "3",
200  "fill" => "3",
201  "filnm" => "3",
202  "flags" => "3",
203  "free" => "3",
204  "getlog" => "3",
205  "instr" => "3",
206  "isamc" => "3",
207  "isclr" => "3",
208  "iskey" => "3",
209  "issts" => "3",
210  "len" => "3",
211  "randm" => "3",
212  "shell" => "3",
213  "size" => "3",
214  "spawn" => "3",
215  "time" => "3",
216  "tnmbr" => "3",
217  "trim" => "3",
218  "versn" => "3",
219  "wait" => "3",
220  "wkday" => "3",
221  "w_area" => "3",
222  "w_brdr" => "3",
223  "w_caption" => "3",
224  "w_disp" => "3",
225  "w_exit" => "3",
226  "w_flds" => "3",
227  "w_info" => "3",
228  "w_init" => "3",
229  "w_proc" => "3",
230  "w_restore" => "3",
231  "w_save" => "3",
232  "w_updt" => "3",
233  "^a" => "3",
234  "^d" => "3",
235  "^defined" => "3",
236  "^i" => "3",
237  "^len" => "3",
238  "^passed" => "3",
239  "^size" => "3",
240  "input" => "4",
241  "lpoff" => "4",
242  "lpon" => "4",
243  "lpout" => "4",
244  "mesag" => "4",
245  "outpt" => "4",
246  "rdate" => "4",
247  "terid" => "4",
248  "vim_bad_stknum_ok" => "4",
249  "vim_close" => "4",
250  "vim_comp_id" => "4",
251  "vim_delete" => "4",
252  "vim_find" => "4",
253  "vim_get_file" => "4",
254  "vim_get_stknum" => "4",
255  "vim_init" => "4",
256  "vim_open" => "4",
257  "vim_override_cost" => "4",
258  "vim_read" => "4",
259  "vim_reads" => "4",
260  "vim_set_prompt" => "4",
261  "vim_squeeze_key" => "4",
262  "vim_store" => "4",
263  "vim_unlock" => "4",
264  "vim_vendor" => "4",
265  "vim_write" => "4",
266  "vim_writes" => "4",
267  "wate" => "4");
268 
269 // Special extensions
270 
271 // Each category can specify a PHP function that returns an altered
272 // version of the keyword.
273 
274 
275 
276 $this->linkscripts = array(
277  "" => "donothing",
278  "1" => "donothing",
279  "3" => "donothing",
280  "2" => "donothing",
281  "4" => "donothing");
282 }
283 
284 
285 function donothing($keywordin)
286 {
287  return $keywordin;
288 }
289 
290 }?>