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