ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_dbc.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_dbc extends HFile
8  {
9  public function HFile_dbc()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // DB/C
15  /*************************************/
16  // Flags
17 
18  $this->nocase = "0";
19  $this->notrim = "0";
20  $this->perl = "0";
21 
22  // Colours
23 
24  $this->colours = array("blue", "purple", "brown", "purple");
25  $this->quotecolour = "blue";
26  $this->blockcommentcolour = "green";
27  $this->linecommentcolour = "green";
28 
29  // Indent Strings
30 
31  $this->indent = array("Then");
32  $this->unindent = array("End", "Next", "End If", "End Select");
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  "Abs" => "1",
50  "Add" => "1",
51  "Aimdex" => "1",
52  "Append" => "1",
53  "Arccos" => "1",
54  "Arcsin" => "1",
55  "Arctan" => "1",
56  "Beep" => "1",
57  "Build" => "1",
58  "Bump" => "1",
59  "Change" => "1",
60  "Charrestore" => "1",
61  "Charsave" => "1",
62  "Check10" => "1",
63  "Check11" => "1",
64  "Chop" => "1",
65  "Clear" => "1",
66  "Clearadr" => "1",
67  "Clearendkey" => "1",
68  "Clearlabel" => "1",
69  "Clock" => "1",
70  "Close" => "1",
71  "Closeall" => "1",
72  "Cmatch" => "1",
73  "Cmove" => "1",
74  "Comclose" => "1",
75  "Comclr" => "1",
76  "Comctl" => "1",
77  "Comopen" => "1",
78  "Compare" => "1",
79  "Compareadr" => "1",
80  "Comtst" => "1",
81  "Comwait" => "1",
82  "Console" => "1",
83  "Copy" => "1",
84  "Cos" => "1",
85  "Count" => "1",
86  "Create" => "1",
87  "Debug" => "1",
88  "Default" => "1",
89  "Delete" => "1",
90  "Deletek" => "1",
91  "Destroy" => "1",
92  "Disable" => "1",
93  "Display" => "1",
94  "Divide" => "1",
95  "Draw" => "1",
96  "Edit" => "1",
97  "Empty" => "1",
98  "Enable" => "1",
99  "Encode" => "1",
100  "Endroutine" => "1",
101  "Endset" => "1",
102  "Erase" => "1",
103  "Execute" => "1",
104  "Exist" => "1",
105  "Exp" => "1",
106  "Extend" => "1",
107  "Filepi" => "1",
108  "Fill" => "1",
109  "Flagrestore" => "1",
110  "Flagsave" => "1",
111  "Flusheof" => "1",
112  "Format" => "1",
113  "Fposit" => "1",
114  "Get" => "1",
115  "Getcolor" => "1",
116  "Getcursor" => "1",
117  "Getendkey" => "1",
118  "Getglobal" => "1",
119  "GetLabel" => "1",
120  "Getmodules" => "1",
121  "Getname" => "1",
122  "Getparm" => "1",
123  "Getpostion" => "1",
124  "Getwindow" => "1",
125  "Hide" => "1",
126  "Index" => "1",
127  "Insert" => "1",
128  "Keyin" => "1",
129  "Label" => "1",
130  "Lcmove" => "1",
131  "Lenset" => "1",
132  "Link" => "1",
133  "List" => "1",
134  "Listend" => "1",
135  "Load" => "1",
136  "Loadadr" => "1",
137  "Loadlabel" => "1",
138  "Loadmod" => "1",
139  "Loadparm" => "1",
140  "Log" => "1",
141  "Log10" => "1",
142  "Lroutine" => "1",
143  "Make" => "1",
144  "Makeglobal" => "1",
145  "Makevar" => "1",
146  "Match" => "1",
147  "Mod" => "1",
148  "Move" => "1",
149  "Moveadr" => "1",
150  "Movefptr" => "1",
151  "Movelength" => "1",
152  "Movelptr" => "1",
153  "Movesize" => "1",
154  "Moveevl" => "1",
155  "Mult" => "1",
156  "Multiply" => "1",
157  "Nformat" => "1",
158  "Noeject" => "1",
159  "Noreturn" => "1",
160  "Open" => "1",
161  "Pack" => "1",
162  "Pause" => "1",
163  "Perform" => "1",
164  "Ploadmod" => "1",
165  "Popreturn" => "1",
166  "Power" => "1",
167  "Prep" => "1",
168  "Prepare" => "1",
169  "Print" => "1",
170  "Pushreturn" => "1",
171  "Put" => "1",
172  "Putfirst" => "1",
173  "Query" => "1",
174  "Read" => "1",
175  "Readgplk" => "1",
176  "Readkg" => "1",
177  "Readglk" => "1",
178  "Readkgp" => "1",
179  "Readkp" => "1",
180  "Readkplk" => "1",
181  "Readks" => "1",
182  "Readkslk" => "1",
183  "Readlk" => "1",
184  "Recv" => "1",
185  "Recvclr" => "1",
186  "Reformat" => "1",
187  "Release" => "1",
188  "Rename" => "1",
189  "Replace" => "1",
190  "Reposit" => "1",
191  "Reset" => "1",
192  "Resetparm" => "1",
193  "Restore" => "1",
194  "Retcount" => "1",
195  "Rollout" => "1",
196  "Routine" => "1",
197  "Save" => "1",
198  "Scan" => "1",
199  "Scrnrestore" => "1",
200  "Scrnsave" => "1",
201  "Scrnsize" => "1",
202  "Search" => "1",
203  "Send" => "1",
204  "Sendclr" => "1",
205  "Set" => "1",
206  "Setendkey" => "1",
207  "Setflag" => "1",
208  "Setlptr" => "1",
209  "Setnull" => "1",
210  "Sformat" => "1",
211  "Show" => "1",
212  "Shutdown" => "1",
213  "Sin" => "1",
214  "Sort" => "1",
215  "Sound" => "1",
216  "Splclose" => "1",
217  "Splopen" => "1",
218  "Splopt" => "1",
219  "Splcode" => "1",
220  "Splexec" => "1",
221  "Sqlmsg" => "1",
222  "Sqrt" => "1",
223  "Squeeze" => "1",
224  "Staterestore" => "1",
225  "Statesave" => "1",
226  "Statesize" => "1",
227  "Store" => "1",
228  "Storeadr" => "1",
229  "Storelabel" => "1",
230  "Sub" => "1",
231  "Subtract" => "1",
232  "Tabpage" => "1",
233  "Tan" => "1",
234  "Test" => "1",
235  "Testadr" => "1",
236  "Testlabel" => "1",
237  "Trapclr" => "1",
238  "Traprestore" => "1",
239  "Trapsave" => "1",
240  "Trapsize" => "1",
241  "Type" => "1",
242  "Unlink" => "1",
243  "Unload" => "1",
244  "Unlock" => "1",
245  "Unpack" => "1",
246  "Unpacklist" => "1",
247  "Updatab" => "1",
248  "Update" => "1",
249  "Wait" => "1",
250  "Weof" => "1",
251  "Winrest" => "1",
252  "Winrestore" => "1",
253  "Winsave" => "1",
254  "Winsize" => "1",
255  "Write" => "1",
256  "Writeab" => "1",
257  "Xor" => "1",
258  "@" => "1",
259  "Break" => "2",
260  "Branch" => "2",
261  "Call" => "2",
262  "Case" => "2",
263  "CCall" => "2",
264  "Chain" => "2",
265  "Continue" => "2",
266  "Else" => "2",
267  "Endif" => "2",
268  "Endswitch" => "2",
269  "External" => "2",
270  "For" => "2",
271  "Goto" => "2",
272  "If" => "2",
273  "IFNDEF" => "2",
274  "Inc" => "2",
275  "Loop" => "2",
276  "Movelabel" => "2",
277  "Movelv" => "2",
278  "Movevl" => "2",
279  "Return" => "2",
280  "Repeat" => "2",
281  "Stop" => "2",
282  "Switch" => "2",
283  "Trap" => "2",
284  "Until" => "2",
285  "While" => "2",
286  "\"" => "4",
287  "Binary" => "4",
288  "Cobol" => "4",
289  "Colorbits" => "4",
290  "Comp" => "4",
291  "Compressed" => "4",
292  "Data" => "4",
293  "Dup" => "4",
294  "Duplicates" => "4",
295  "Dynamic" => "4",
296  "Entries" => "4",
297  "Fix" => "4",
298  "Fixed" => "4",
299  "H" => "4",
300  "Increment" => "4",
301  "Initial" => "4",
302  "KeyLen" => "4",
303  "Keylength" => "4",
304  "Native" => "4",
305  "NoDup" => "4",
306  "NoDuplicates" => "4",
307  "Overlap" => "4",
308  "Parent" => "4",
309  "Size" => "4",
310  "Standard" => "4",
311  "Static" => "4",
312  "Text" => "4",
313  "Transient" => "4",
314  "UnComp" => "4",
315  "UnCompressed" => "4",
316  "V" => "4",
317  "Var" => "4",
318  "Variable" => "4",
319  "AFile" => "6",
320  "And" => "6",
321  "BKSPC" => "6",
322  "BKTAB" => "6",
323  "By" => "6",
324  "Char" => "6",
325  "Character" => "6",
326  "Class" => "6",
327  "ComFile" => "6",
328  "Cverb" => "6",
329  "Date" => "6",
330  "Definition" => "6",
331  "Device" => "6",
332  "Dim" => "6",
333  "DOWN" => "6",
334  "DEFINE" => "6",
335  "END" => "6",
336  "Endcalss" => "6",
337  "EOS" => "6",
338  "Equal" => "6",
339  "Equ" => "6",
340  "Equate" => "6",
341  "ESC" => "6",
342  "File" => "6",
343  "Float" => "6",
344  "Form" => "6",
345  "From" => "6",
346  "Gchar" => "6",
347  "Giving" => "6",
348  "Gnumber" => "6",
349  "Ginteger" => "6",
350  "Gfloat" => "6",
351  "Gobject" => "6",
352  "GDevice" => "6",
353  "Greater" => "6",
354  "Gresource" => "6",
355  "Gimage" => "6",
356  "Gqueue" => "6",
357  "Gpfile" => "6",
358  "GNum" => "6",
359  "GForm" => "6",
360  "GCharacter" => "6",
361  "GDim" => "6",
362  "HOME" => "6",
363  "IFile" => "6",
364  "Image" => "6",
365  "In" => "6",
366  "Into" => "6",
367  "Init" => "6",
368  "Integer" => "6",
369  "Int" => "6",
370  "LEFT" => "6",
371  "Less" => "6",
372  "Like" => "6",
373  "Method" => "6",
374  "Module" => "6",
375  "Names" => "6",
376  "Nocase" => "6",
377  "Noreset" => "6",
378  "Not" => "6",
379  "Num" => "6",
380  "Number" => "6",
381  "Object" => "6",
382  "Over" => "6",
383  "Or" => "6",
384  "PFile" => "6",
385  "Prior" => "6",
386  "Queue" => "6",
387  "Record" => "6",
388  "Recordend" => "6",
389  "Resource" => "6",
390  "RIGHT" => "6",
391  "TAB" => "6",
392  "Time" => "6",
393  "To" => "6",
394  "Timestamp" => "6",
395  "UP" => "6",
396  "Using" => "6",
397  "Varlist" => "6",
398  "Verb" => "6",
399  "With" => "6",
400  "+" => "6",
401  "-" => "6",
402  "=" => "6",
403  "//" => "6",
404  "/" => "6",
405  "%" => "6",
406  "&" => "6",
407  ">" => "6",
408  "<" => "6",
409  "^" => "6",
410  "!" => "6",
411  "|" => "6",
412  "(" => "6",
413  ")" => "6");
414 
415  // Special extensions
416 
417  // Each category can specify a PHP function that returns an altered
418  // version of the keyword.
419 
420 
421 
422  $this->linkscripts = array(
423  "1" => "donothing",
424  "2" => "donothing",
425  "4" => "donothing",
426  "6" => "donothing");
427  }
428 
429 
430  public function donothing($keywordin)
431  {
432  return $keywordin;
433  }
434  }
donothing($keywordin)
Definition: HFile_dbc.php:430
$BEAUT_PATH
Definition: HFile_dbc.php:2
Create styles array
The data for the language used.
Definition: HFile.php:21
HFile_dbc()
Definition: HFile_dbc.php:9