ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_dataflex.php
Go to the documentation of this file.
1 <?php
2 $BEAUT_PATH = realpath(".") . "/Services/COPage/syntax_highlight/php";
3 if (!isset($BEAUT_PATH)) {
4  return;
5 }
6 require_once("$BEAUT_PATH/Beautifier/HFile.php");
7  class HFile_dataflex extends HFile
8  {
9  public function HFile_dataflex()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // DataFlex
15  /*************************************/
16  // Flags
17 
18  $this->nocase = "1";
19  $this->notrim = "0";
20  $this->perl = "0";
21 
22  // Colours
23 
24  $this->colours = array("blue", "purple", "gray", "brown", "blue", "purple", "gray");
25  $this->quotecolour = "blue";
26  $this->blockcommentcolour = "green";
27  $this->linecommentcolour = "green";
28 
29  // Indent Strings
30 
31  $this->indent = array("Then", "Begin", "Lock", "repeat", "while", "enumeration_list", "class", "object");
32  $this->unindent = array("End", "Next", "End If", "End Select", "Unlock", "loop", "end_enumeration_list", "end_class", "end_object");
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  "#endheader" => "1",
50  "#header" => "1",
51  "#include" => "1",
52  "#replace" => "1",
53  "abort" => "2",
54  "abort_transaction" => "2",
55  "accept" => "2",
56  "activate_view" => "2",
57  "add" => "2",
58  "append" => "2",
59  "append_output" => "2",
60  "ascii" => "2",
61  "attach" => "2",
62  "autopage" => "2",
63  "backfield" => "2",
64  "begin" => "2",
65  "begin_contraints" => "2",
66  "begin_transaction" => "2",
67  "blankform" => "2",
68  "body" => "2",
69  "break" => "2",
70  "broadcast" => "2",
71  "broadcast_focus" => "2",
72  "calc" => "2",
73  "calculate" => "2",
74  "call" => "2",
75  "call_driver" => "2",
76  "cd_end_object" => "2",
77  "cd_popup_object" => "2",
78  "chain" => "2",
79  "character" => "2",
80  "class" => "2",
81  "clear" => "2",
82  "clear_option" => "2",
83  "clearform" => "2",
84  "clearscreen" => "2",
85  "clearwarning" => "2",
86  "clearxy" => "2",
87  "close" => "2",
88  "close_input" => "2",
89  "close_output" => "2",
90  "cmdline" => "2",
91  "constrain" => "2",
92  "contrained_clear" => "2",
93  "constrained_find" => "2",
94  "constraint_set" => "2",
95  "constraint_validate" => "2",
96  "copy_db" => "2",
97  "copy_records" => "2",
98  "copyfile" => "2",
99  "create_field" => "2",
100  "create_index" => "2",
101  "date" => "2",
102  "debug" => "2",
103  "declare_datafile" => "2",
104  "decrement" => "2",
105  "deferred_view" => "2",
106  "define" => "2",
107  "delegate" => "2",
108  "delete" => "2",
109  "delete_db" => "2",
110  "delete_field" => "2",
111  "delete_index" => "2",
112  "dependent_item" => "2",
113  "despool" => "2",
114  "direct_input" => "2",
115  "direct_output" => "2",
116  "directory" => "2",
117  "diskfree" => "2",
118  "display" => "2",
119  "else" => "2",
120  "end" => "2",
121  "end_class" => "2",
122  "end_constraints" => "2",
123  "end_function" => "2",
124  "end_enumeration_list" => "2",
125  "end_item_group" => "2",
126  "end_item_list" => "2",
127  "end_object" => "2",
128  "end_procedure" => "2",
129  "end_transaction" => "2",
130  "end_type" => "2",
131  "endgroup" => "2",
132  "entagain" => "2",
133  "entdisplay" => "2",
134  "enter" => "2",
135  "enterend" => "2",
136  "entergroup" => "2",
137  "entermode" => "2",
138  "entry" => "2",
139  "entry_item" => "2",
140  "entry_name_item" => "2",
141  "enumeration_list" => "2",
142  "erase_file" => "2",
143  "error" => "2",
144  "error_report" => "2",
145  "export_files" => "2",
146  "field" => "2",
147  "field_def" => "2",
148  "field_map" => "2",
149  "file_mode" => "2",
150  "file_size" => "2",
151  "filelist" => "2",
152  "fill_field" => "2",
153  "find" => "2",
154  "for" => "2",
155  "format" => "2",
156  "formfeed" => "2",
157  "forward" => "2",
158  "forward_begin_construct" => "2",
159  "forward_end_construct" => "2",
160  "from" => "2",
161  "function" => "2",
162  "function_return" => "2",
163  "get" => "2",
164  "get_argument_size" => "2",
165  "get_attribute" => "2",
166  "get_channel_position" => "2",
167  "get_channel_size" => "2",
168  "get_current_colors" => "2",
169  "get_current_directory" => "2",
170  "get_current_input_channel" => "2",
171  "get_current_lockcount" => "2",
172  "get_current_output_channel" => "2",
173  "get_current_user_count" => "2",
174  "get_date_format" => "2",
175  "get_environment" => "2",
176  "get_field_value" => "2",
177  "get_filelist" => "2",
178  "get_licensed_max_users" => "2",
179  "get_number_format" => "2",
180  "get_resource_name" => "2",
181  "get_resource_type" => "2",
182  "get_transaction_retry" => "2",
183  "get_video_mode" => "2",
184  "gosub" => "2",
185  "goto" => "2",
186  "gotoxy" => "2",
187  "group" => "2",
188  "header" => "2",
189  "help" => "2",
190  "if" => "2",
191  "ifchange" => "2",
192  "import_class_protocol" => "2",
193  "inactivate" => "2",
194  "include_resource" => "2",
195  "increment" => "2",
196  "ind" => "2",
197  "index_def" => "2",
198  "indicate" => "2",
199  "inherit_screen" => "2",
200  "inkey" => "2",
201  "inkey$" => "2",
202  "input" => "2",
203  "insert" => "2",
204  "is_file_included" => "2",
205  "item_group" => "2",
206  "item_list" => "2",
207  "keycheck" => "2",
208  "keyproc" => "2",
209  "left" => "2",
210  "length" => "2",
211  "load_def" => "2",
212  "local_driver" => "2",
213  "local" => "2",
214  "lock" => "2",
215  "login" => "2",
216  "logout" => "2",
217  "loop" => "2",
218  "make_file" => "2",
219  "memory" => "2",
220  "mid" => "2",
221  "move" => "2",
222  "movedate" => "2",
223  "moveint" => "2",
224  "movenum" => "2",
225  "movereal" => "2",
226  "movestr" => "2",
227  "move_sub_page" => "2",
228  "name" => "2",
229  "name_item" => "2",
230  "name_items" => "2",
231  "name_object" => "2",
232  "next" => "2",
233  "not" => "2",
234  "object" => "2",
235  "on" => "2",
236  "on_item" => "2",
237  "on_key" => "2",
238  "on_name_item" => "2",
239  "open" => "2",
240  "output" => "2",
241  "output_aux_file" => "2",
242  "output_wrap" => "2",
243  "pad" => "2",
244  "page" => "2",
245  "pagecheck" => "2",
246  "pathname" => "2",
247  "pos" => "2",
248  "print" => "2",
249  "print_wrap" => "2",
250  "procedure" => "2",
251  "procedure_return" => "2",
252  "property" => "2",
253  "read" => "2",
254  "read_block" => "2",
255  "read_dfini" => "2",
256  "read_hex" => "2",
257  "readln" => "2",
258  "register_function" => "2",
259  "register_object" => "2",
260  "register_procedure" => "2",
261  "register_resource" => "2",
262  "registration" => "2",
263  "relate" => "2",
264  "renamefile" => "2",
265  "repeat" => "2",
266  "repeat_item" => "2",
267  "replace" => "2",
268  "report" => "2",
269  "reportend" => "2",
270  "reread" => "2",
271  "return" => "2",
272  "right" => "2",
273  "runprogram" => "2",
274  "save" => "2",
275  "saverecord" => "2",
276  "screenmode" => "2",
277  "screen_optimize" => "2",
278  "section" => "2",
279  "send" => "2",
280  "set" => "2",
281  "set_argument_size" => "2",
282  "set_attribute" => "2",
283  "set_channel_position" => "2",
284  "set_dfpath" => "2",
285  "set_field_value" => "2",
286  "set_filelist" => "2",
287  "set_option" => "2",
288  "set_relate" => "2",
289  "set_resource_library" => "2",
290  "set_transaction_retry" => "2",
291  "set_video_mode" => "2",
292  "setchange" => "2",
293  "show" => "2",
294  "showln" => "2",
295  "showxy" => "2",
296  "sleep" => "2",
297  "sort" => "2",
298  "start_ui" => "2",
299  "stop" => "2",
300  "structure_abort" => "2",
301  "structure_copy" => "2",
302  "structure_end" => "2",
303  "structure_start" => "2",
304  "sub" => "2",
305  "sub_page" => "2",
306  "subtotal" => "2",
307  "sysconf" => "2",
308  "sysdate" => "2",
309  "sysdate4" => "2",
310  "system" => "2",
311  "to" => "2",
312  "trim" => "2",
313  "type" => "2",
314  "ui_accept" => "2",
315  "unload_driver" => "2",
316  "unlock" => "2",
317  "until" => "2",
318  "uppercase" => "2",
319  "use" => "2",
320  "vconstrain" => "2",
321  "vfind" => "2",
322  "while" => "2",
323  "write" => "2",
324  "write_hex" => "2",
325  "writeln" => "2",
326  "zerofile" => "2",
327  "abs" => "3",
328  "acos" => "3",
329  "asin" => "3",
330  "atan" => "3",
331  "callback" => "3",
332  "center" => "3",
333  "cos" => "3",
334  "eval" => "3",
335  "exp" => "3",
336  "hi" => "3",
337  "log" => "3",
338  "low" => "3",
339  "lowercase" => "3",
340  "ltrim" => "3",
341  "mod" => "3",
342  "overstrike" => "3",
343  "random" => "3",
344  "remove" => "3",
345  "replaces" => "3",
346  "round" => "3",
347  "rtrim" => "3",
348  "sin" => "3",
349  "sqrt" => "3",
350  "status" => "3",
351  "tan" => "3",
352  "an" => "4",
353  "and" => "4",
354  "as" => "4",
355  "contains" => "4",
356  "eq" => "4",
357  "ge" => "4",
358  "gt" => "4",
359  "iand" => "4",
360  "in" => "4",
361  "ior" => "4",
362  "is" => "4",
363  "le" => "4",
364  "lt" => "4",
365  "match" => "4",
366  "matches" => "4",
367  "max" => "4",
368  "min" => "4",
369  "ne" => "4",
370  "or" => "4",
371  "autoback" => "5",
372  "autoclear" => "5",
373  "autofind" => "5",
374  "autofind_ge" => "5",
375  "autoreturn" => "5",
376  "capslock" => "5",
377  "channel" => "5",
378  "check" => "5",
379  "displayonly" => "5",
380  "fill" => "5",
381  "findreq" => "5",
382  "float$" => "5",
383  "forceput" => "5",
384  "modal_insert" => "5",
385  "no_calc" => "5",
386  "noenter" => "5",
387  "noput" => "5",
388  "points" => "5",
389  "range" => "5",
390  "required" => "5",
391  "resident" => "5",
392  "resource" => "5",
393  "retain" => "5",
394  "retainall" => "5",
395  "signrt" => "5",
396  "skipfound" => "5",
397  "suppress" => "5",
398  "thousands" => "5",
399  "wait" => "5",
400  "zero_suppress" => "5",
401  "constrain_found_count" => "6",
402  "constrain_tests_count" => "6",
403  "current_image" => "6",
404  "current_window" => "6",
405  "indicator" => "7",
406  "integer" => "7",
407  "number" => "7",
408  "real" => "7",
409  "string" => "7");
410 
411  // Special extensions
412 
413  // Each category can specify a PHP function that returns an altered
414  // version of the keyword.
415 
416 
417 
418  $this->linkscripts = array(
419  "1" => "donothing",
420  "2" => "donothing",
421  "3" => "donothing",
422  "4" => "donothing",
423  "5" => "donothing",
424  "6" => "donothing",
425  "7" => "donothing");
426  }
427 
428 
429  public function donothing($keywordin)
430  {
431  return $keywordin;
432  }
433  }
donothing($keywordin)
$BEAUT_PATH
Create styles array
The data for the language used.
Definition: HFile.php:21