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