ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_uniface6.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_uniface6 extends HFile{
6  function HFile_uniface6(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // Uniface V6
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(")");
28 $this->unindent = array("else", "end", "endif", "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  "addmonths" => "1",
49  "apexit" => "1",
50  "askmess" => "1",
51  "blockdata" => "1",
52  "break" => "1",
53  "by" => "1",
54  "call" => "1",
55  "clear" => "1",
56  "close" => "1",
57  "clrmess" => "1",
58  "commit" => "1",
59  "compare" => "1",
60  "compute" => "1",
61  "creocc" => "1",
62  "debug" => "1",
63  "delete" => "1",
64  "delitem" => "1",
65  "discard" => "1",
66  "display" => "1",
67  "done" => "1",
68  "edit" => "1",
69  "eject" => "1",
70  "else" => "1",
71  "end" => "1",
72  "endif" => "1",
73  "endwhile" => "1",
74  "entry" => "1",
75  "erase" => "1",
76  "exit" => "1",
77  "field_syntax" => "1",
78  "field_video" => "1",
79  "filebox" => "1",
80  "filedump" => "1",
81  "file_dump" => "1",
82  "fileload" => "1",
83  "file_load" => "1",
84  "from" => "1",
85  "getitem" => "1",
86  "getlistitems" => "1",
87  "goto" => "1",
88  "help" => "1",
89  "if" => "1",
90  "length" => "1",
91  "lock" => "1",
92  "lookup" => "1",
93  "lowercase" => "1",
94  "macro" => "1",
95  "message" => "1",
96  "nodebug" => "1",
97  "numgen" => "1",
98  "numset" => "1",
99  "open" => "1",
100  "order" => "1",
101  "perform" => "1",
102  "pragma" => "1",
103  "previous" => "1",
104  "print" => "1",
105  "print_break" => "1",
106  "pulldown" => "1",
107  "putitem" => "1",
108  "putlistitems" => "1",
109  "putmess" => "1",
110  "read" => "1",
111  "refresh" => "1",
112  "release" => "1",
113  "reload" => "1",
114  "remocc" => "1",
115  "repeat" => "1",
116  "reset" => "1",
117  "retrieve" => "1",
118  "return" => "1",
119  "rollback" => "1",
120  "run" => "1",
121  "scan" => "1",
122  "selectdb" => "1",
123  "set" => "1",
124  "setocc" => "1",
125  "skip" => "1",
126  "sort" => "1",
127  "spawn" => "1",
128  "sql" => "1",
129  "store" => "1",
130  "to" => "1",
131  "u_where" => "1",
132  "until" => "1",
133  "uppercase" => "1",
134  "using" => "1",
135  "where" => "1",
136  "while" => "1",
137  "write" => "1",
138  "append" => "2",
139  "ask" => "2",
140  "complete" => "2",
141  "desc" => "2",
142  "dump" => "2",
143  "e" => "2",
144  "error" => "2",
145  "field" => "2",
146  "global" => "2",
147  "hint" => "2",
148  "id" => "2",
149  "image" => "2",
150  "info" => "2",
151  "init" => "2",
152  "list" => "2",
153  "load" => "2",
154  "local" => "2",
155  "menu" => "2",
156  "mod" => "2",
157  "net" => "2",
158  "next" => "2",
159  "nobeep" => "2",
160  "noborder" => "2",
161  "nolock" => "2",
162  "noterm" => "2",
163  "nowander" => "2",
164  "o" => "2",
165  "occ" => "2",
166  "query" => "2",
167  "raw" => "2",
168  "save" => "2",
169  "truncate" => "2",
170  "warning" => "2",
171  "x" => "2",
172  ":a" => "2",
173  ":ascending" => "2",
174  ":d" => "2",
175  ":descending" => "2",
176  "$applname" => "3",
177  "$batch" => "3",
178  "$char" => "3",
179  "$check" => "3",
180  "$clock" => "3",
181  "$curline" => "3",
182  "$curocc" => "3",
183  "$currhits" => "3",
184  "$curword" => "3",
185  "$date" => "3",
186  "$datim" => "3",
187  "$dberror" => "3",
188  "$dbocc" => "3",
189  "$direction" => "3",
190  "$disable" => "3",
191  "$display" => "3",
192  "$empty" => "3",
193  "$entname" => "3",
194  "$error" => "3",
195  "$fieldcheck" => "3",
196  "$fieldendmod" => "3",
197  "$fieldmod" => "3",
198  "$fieldname" => "3",
199  "$fieldprofile" => "3",
200  "$fieldproperties" => "3",
201  "$fieldvalrep" => "3",
202  "$format" => "3",
203  "$formdb" => "3",
204  "$formdbmod" => "3",
205  "$formmod" => "3",
206  "$formname" => "3",
207  "$formtitle" => "3",
208  "$framedepth" => "3",
209  "$gui" => "3",
210  "$hide" => "3",
211  "$hits" => "3",
212  "$ioprint" => "3",
213  "$keyboard" => "3",
214  "$language" => "3",
215  "$lines" => "3",
216  "$next" => "3",
217  "$number" => "3",
218  "$occcheck" => "3",
219  "$occdel" => "3",
220  "$occdepth" => "3",
221  "$occmod" => "3",
222  "$oprsys" => "3",
223  "$page" => "3",
224  "$password" => "3",
225  "$previous" => "3",
226  "$printing" => "3",
227  "$prompt" => "3",
228  "$properties" => "3",
229  "$putmess" => "3",
230  "$relation" => "3",
231  "$result" => "3",
232  "$rettype" => "3",
233  "$selblk" => "3",
234  "$status" => "3",
235  "$storetype" => "3",
236  "$syntax" => "3",
237  "$text" => "3",
238  "$time" => "3",
239  "$totdbocc" => "3",
240  "$totlines" => "3",
241  "$totocc" => "3",
242  "$user" => "3",
243  "$valrep" => "3",
244  "$variation" => "3",
245  "!" => "5",
246  "$" => "5",
247  "%" => "5",
248  "&" => "5",
249  "(" => "5",
250  ")" => "5",
251  "*" => "5",
252  "+" => "5",
253  "," => "5",
254  "-" => "5",
255  "." => "5",
256  "/" => "5",
257  ":" => "5",
258  ";" => "5",
259  "<" => "5",
260  "=" => "5",
261  ">" => "5",
262  "[" => "5",
263  "\\" => "5",
264  "]" => "5",
265  "^" => "5",
266  "|" => "5",
267  "$$" => "5");
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  "2" => "donothing",
280  "3" => "donothing",
281  "5" => "donothing");
282 }
283 
284 
285 function donothing($keywordin)
286 {
287  return $keywordin;
288 }
289 
290 }?>