ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_uniface71.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_uniface71 extends HFile{
6  function HFile_uniface71(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // Uniface V7.1
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", "blue");
21 $this->quotecolour = "blue";
22 $this->blockcommentcolour = "green";
23 $this->linecommentcolour = "green";
24 
25 // Indent Strings
26 
27 $this->indent = array(")", "params");
28 $this->unindent = array("else", "end", "endif", "endparams", "endwhile");
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  "/Marker" => "",
46  "Characters" => "",
47  "\"$$<>\"" => "",
48  "activate" => "1",
49  "addmonths" => "1",
50  "apexit" => "1",
51  "apstart" => "1",
52  "askmess" => "1",
53  "blockdata" => "1",
54  "break" => "1",
55  "by" => "1",
56  "call" => "1",
57  "clear" => "1",
58  "close" => "1",
59  "clrmess" => "1",
60  "commit" => "1",
61  "compare" => "1",
62  "compute" => "1",
63  "creocc" => "1",
64  "curocc_video" => "1",
65  "debug" => "1",
66  "delete" => "1",
67  "delete_instance" => "1",
68  "delitem" => "1",
69  "discard" => "1",
70  "display" => "1",
71  "done" => "1",
72  "edit" => "1",
73  "eject" => "1",
74  "else" => "1",
75  "end" => "1",
76  "endif" => "1",
77  "endparams" => "1",
78  "endwhile" => "1",
79  "entry" => "1",
80  "erase" => "1",
81  "exit" => "1",
82  "field_syntax" => "1",
83  "field_video" => "1",
84  "filebox" => "1",
85  "filedump" => "1",
86  "file_dump" => "1",
87  "fileload" => "1",
88  "file_load" => "1",
89  "from" => "1",
90  "getitem" => "1",
91  "getlistitems" => "1",
92  "goto" => "1",
93  "help" => "1",
94  "if" => "1",
95  "length" => "1",
96  "lock" => "1",
97  "lookup" => "1",
98  "lowercase" => "1",
99  "macro" => "1",
100  "message" => "1",
101  "new_instance" => "1",
102  "nodebug" => "1",
103  "numgen" => "1",
104  "numset" => "1",
105  "open" => "1",
106  "operation" => "1",
107  "order" => "1",
108  "params" => "1",
109  "perform" => "1",
110  "postmessage" => "1",
111  "pragma" => "1",
112  "previous" => "1",
113  "print" => "1",
114  "print_break" => "1",
115  "pulldown" => "1",
116  "putitem" => "1",
117  "putlistitems" => "1",
118  "putmess" => "1",
119  "read" => "1",
120  "refresh" => "1",
121  "release" => "1",
122  "reload" => "1",
123  "remocc" => "1",
124  "repeat" => "1",
125  "reset" => "1",
126  "retrieve" => "1",
127  "return" => "1",
128  "rollback" => "1",
129  "run" => "1",
130  "scan" => "1",
131  "selectdb" => "1",
132  "sendmessage" => "1",
133  "set" => "1",
134  "setformfocus" => "1",
135  "setocc" => "1",
136  "skip" => "1",
137  "sort" => "1",
138  "spawn" => "1",
139  "sql" => "1",
140  "store" => "1",
141  "to" => "1",
142  "u_where" => "1",
143  "until" => "1",
144  "uppercase" => "1",
145  "using" => "1",
146  "webgen" => "1",
147  "webget" => "1",
148  "where" => "1",
149  "while" => "1",
150  "write" => "1",
151  "append" => "2",
152  "ask" => "2",
153  "async" => "2",
154  "attached" => "2",
155  "case" => "2",
156  "complete" => "2",
157  "desc" => "2",
158  "dump" => "2",
159  "e" => "2",
160  "error" => "2",
161  "field" => "2",
162  "global" => "2",
163  "hint" => "2",
164  "id" => "2",
165  "image" => "2",
166  "info" => "2",
167  "init" => "2",
168  "keyword" => "2",
169  "list" => "2",
170  "load" => "2",
171  "local" => "2",
172  "menu" => "2",
173  "mod" => "2",
174  "net" => "2",
175  "next" => "2",
176  "nobeep" => "2",
177  "noborder" => "2",
178  "nolock" => "2",
179  "noterm" => "2",
180  "nowander" => "2",
181  "o" => "2",
182  "occ" => "2",
183  "query" => "2",
184  "raw" => "2",
185  "save" => "2",
186  "sync" => "2",
187  "topic" => "2",
188  "truncate" => "2",
189  "v5profile" => "2",
190  "v6profile" => "2",
191  "warning" => "2",
192  "x" => "2",
193  ":a" => "2",
194  ":ascending" => "2",
195  ":d" => "2",
196  ":descending" => "2",
197  "$acterror" => "3",
198  "$applname" => "3",
199  "$batch" => "3",
200  "$char" => "3",
201  "$check" => "3",
202  "$clock" => "3",
203  "$componentname" => "3",
204  "$componenttype" => "3",
205  "$curline" => "3",
206  "$curocc" => "3",
207  "$currhits" => "3",
208  "$curword" => "3",
209  "$date" => "3",
210  "$datim" => "3",
211  "$dberror" => "3",
212  "$dbocc" => "3",
213  "$detachedinstances" => "3",
214  "$direction" => "3",
215  "$disable" => "3",
216  "$display" => "3",
217  "$empty" => "3",
218  "$entname" => "3",
219  "$error" => "3",
220  "$fieldcheck" => "3",
221  "$fieldendmod" => "3",
222  "$fieldindb" => "3",
223  "$fieldmod" => "3",
224  "$fieldname" => "3",
225  "$fieldprofile" => "3",
226  "$fieldproperties" => "3",
227  "$fieldvalrep" => "3",
228  "$foreign" => "3",
229  "$format" => "3",
230  "$formdb" => "3",
231  "$formdbmod" => "3",
232  "$formfocus" => "3",
233  "$formmod" => "3",
234  "$formmodality" => "3",
235  "$formname" => "3",
236  "$formtitle" => "3",
237  "$framedepth" => "3",
238  "$gui" => "3",
239  "$hide" => "3",
240  "$hits" => "3",
241  "$instancechildren" => "3",
242  "$instancedb" => "3",
243  "$instancedbmod" => "3",
244  "$instancemod" => "3",
245  "$instancename" => "3",
246  "$instanceparent" => "3",
247  "$ioprint" => "3",
248  "$keyboard" => "3",
249  "$language" => "3",
250  "$lines" => "3",
251  "$logical" => "3",
252  "$msgdata" => "3",
253  "$msgdst" => "3",
254  "$msgid" => "3",
255  "$msgsrc" => "3",
256  "$next" => "3",
257  "$nmforms" => "3",
258  "$number" => "3",
259  "$occcheck" => "3",
260  "$occdel" => "3",
261  "$occdepth" => "3",
262  "$occmod" => "3",
263  "$oprsys" => "3",
264  "$outer" => "3",
265  "$page" => "3",
266  "$paintedocc" => "3",
267  "$password" => "3",
268  "$previous" => "3",
269  "$printing" => "3",
270  "$prompt" => "3",
271  "$properties" => "3",
272  "$putmess" => "3",
273  "$relation" => "3",
274  "$result" => "3",
275  "$rettype" => "3",
276  "$runmode" => "3",
277  "$selblk" => "3",
278  "$status" => "3",
279  "$storetype" => "3",
280  "$syntax" => "3",
281  "$text" => "3",
282  "$time" => "3",
283  "$totdbocc" => "3",
284  "$totlines" => "3",
285  "$totocc" => "3",
286  "$user" => "3",
287  "$valrep" => "3",
288  "$variation" => "3",
289  "$web" => "3",
290  "(" => "5",
291  ")" => "5",
292  "[" => "5",
293  "]" => "5",
294  "+" => "5",
295  "-" => "5",
296  "*" => "5",
297  "/" => "5",
298  "=" => "5",
299  ";" => "5",
300  "%" => "5",
301  "&" => "5",
302  ">" => "5",
303  "<" => "5",
304  "^" => "5",
305  "!" => "5",
306  "|" => "5",
307  "\\" => "5",
308  "." => "5",
309  "," => "5",
310  "$" => "5",
311  "$$" => "5",
312  "<>" => "5");
313 
314 // Special extensions
315 
316 // Each category can specify a PHP function that returns an altered
317 // version of the keyword.
318 
319 
320 
321 $this->linkscripts = array(
322  "" => "donothing",
323  "1" => "donothing",
324  "2" => "donothing",
325  "3" => "donothing",
326  "5" => "donothing");
327 }
328 
329 
330 function donothing($keywordin)
331 {
332  return $keywordin;
333 }
334 
335 }?>