ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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)) {
4  return;
5 }
6 require_once("$BEAUT_PATH/Beautifier/HFile.php");
7  class HFile_uniface6 extends HFile
8  {
9  public function HFile_uniface6()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // Uniface V6
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", "blue");
25  $this->quotecolour = "blue";
26  $this->blockcommentcolour = "green";
27  $this->linecommentcolour = "green";
28 
29  // Indent Strings
30 
31  $this->indent = array(")");
32  $this->unindent = array("else", "end", "endif", "endwhile");
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  "/Marker" => "",
50  "Characters" => "",
51  "\"$$\"" => "",
52  "addmonths" => "1",
53  "apexit" => "1",
54  "askmess" => "1",
55  "blockdata" => "1",
56  "break" => "1",
57  "by" => "1",
58  "call" => "1",
59  "clear" => "1",
60  "close" => "1",
61  "clrmess" => "1",
62  "commit" => "1",
63  "compare" => "1",
64  "compute" => "1",
65  "creocc" => "1",
66  "debug" => "1",
67  "delete" => "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  "endwhile" => "1",
78  "entry" => "1",
79  "erase" => "1",
80  "exit" => "1",
81  "field_syntax" => "1",
82  "field_video" => "1",
83  "filebox" => "1",
84  "filedump" => "1",
85  "file_dump" => "1",
86  "fileload" => "1",
87  "file_load" => "1",
88  "from" => "1",
89  "getitem" => "1",
90  "getlistitems" => "1",
91  "goto" => "1",
92  "help" => "1",
93  "if" => "1",
94  "length" => "1",
95  "lock" => "1",
96  "lookup" => "1",
97  "lowercase" => "1",
98  "macro" => "1",
99  "message" => "1",
100  "nodebug" => "1",
101  "numgen" => "1",
102  "numset" => "1",
103  "open" => "1",
104  "order" => "1",
105  "perform" => "1",
106  "pragma" => "1",
107  "previous" => "1",
108  "print" => "1",
109  "print_break" => "1",
110  "pulldown" => "1",
111  "putitem" => "1",
112  "putlistitems" => "1",
113  "putmess" => "1",
114  "read" => "1",
115  "refresh" => "1",
116  "release" => "1",
117  "reload" => "1",
118  "remocc" => "1",
119  "repeat" => "1",
120  "reset" => "1",
121  "retrieve" => "1",
122  "return" => "1",
123  "rollback" => "1",
124  "run" => "1",
125  "scan" => "1",
126  "selectdb" => "1",
127  "set" => "1",
128  "setocc" => "1",
129  "skip" => "1",
130  "sort" => "1",
131  "spawn" => "1",
132  "sql" => "1",
133  "store" => "1",
134  "to" => "1",
135  "u_where" => "1",
136  "until" => "1",
137  "uppercase" => "1",
138  "using" => "1",
139  "where" => "1",
140  "while" => "1",
141  "write" => "1",
142  "append" => "2",
143  "ask" => "2",
144  "complete" => "2",
145  "desc" => "2",
146  "dump" => "2",
147  "e" => "2",
148  "error" => "2",
149  "field" => "2",
150  "global" => "2",
151  "hint" => "2",
152  "id" => "2",
153  "image" => "2",
154  "info" => "2",
155  "init" => "2",
156  "list" => "2",
157  "load" => "2",
158  "local" => "2",
159  "menu" => "2",
160  "mod" => "2",
161  "net" => "2",
162  "next" => "2",
163  "nobeep" => "2",
164  "noborder" => "2",
165  "nolock" => "2",
166  "noterm" => "2",
167  "nowander" => "2",
168  "o" => "2",
169  "occ" => "2",
170  "query" => "2",
171  "raw" => "2",
172  "save" => "2",
173  "truncate" => "2",
174  "warning" => "2",
175  "x" => "2",
176  ":a" => "2",
177  ":ascending" => "2",
178  ":d" => "2",
179  ":descending" => "2",
180  "$applname" => "3",
181  "$batch" => "3",
182  "$char" => "3",
183  "$check" => "3",
184  "$clock" => "3",
185  "$curline" => "3",
186  "$curocc" => "3",
187  "$currhits" => "3",
188  "$curword" => "3",
189  "$date" => "3",
190  "$datim" => "3",
191  "$dberror" => "3",
192  "$dbocc" => "3",
193  "$direction" => "3",
194  "$disable" => "3",
195  "$display" => "3",
196  "$empty" => "3",
197  "$entname" => "3",
198  "$error" => "3",
199  "$fieldcheck" => "3",
200  "$fieldendmod" => "3",
201  "$fieldmod" => "3",
202  "$fieldname" => "3",
203  "$fieldprofile" => "3",
204  "$fieldproperties" => "3",
205  "$fieldvalrep" => "3",
206  "$format" => "3",
207  "$formdb" => "3",
208  "$formdbmod" => "3",
209  "$formmod" => "3",
210  "$formname" => "3",
211  "$formtitle" => "3",
212  "$framedepth" => "3",
213  "$gui" => "3",
214  "$hide" => "3",
215  "$hits" => "3",
216  "$ioprint" => "3",
217  "$keyboard" => "3",
218  "$language" => "3",
219  "$lines" => "3",
220  "$next" => "3",
221  "$number" => "3",
222  "$occcheck" => "3",
223  "$occdel" => "3",
224  "$occdepth" => "3",
225  "$occmod" => "3",
226  "$oprsys" => "3",
227  "$page" => "3",
228  "$password" => "3",
229  "$previous" => "3",
230  "$printing" => "3",
231  "$prompt" => "3",
232  "$properties" => "3",
233  "$putmess" => "3",
234  "$relation" => "3",
235  "$result" => "3",
236  "$rettype" => "3",
237  "$selblk" => "3",
238  "$status" => "3",
239  "$storetype" => "3",
240  "$syntax" => "3",
241  "$text" => "3",
242  "$time" => "3",
243  "$totdbocc" => "3",
244  "$totlines" => "3",
245  "$totocc" => "3",
246  "$user" => "3",
247  "$valrep" => "3",
248  "$variation" => "3",
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  "]" => "5",
269  "^" => "5",
270  "|" => "5",
271  "$$" => "5");
272 
273  // Special extensions
274 
275  // Each category can specify a PHP function that returns an altered
276  // version of the keyword.
277 
278 
279 
280  $this->linkscripts = array(
281  "" => "donothing",
282  "1" => "donothing",
283  "2" => "donothing",
284  "3" => "donothing",
285  "5" => "donothing");
286  }
287 
288 
289  public function donothing($keywordin)
290  {
291  return $keywordin;
292  }
293  }
donothing($keywordin)
$BEAUT_PATH
Create styles array
The data for the language used.
Definition: HFile.php:21