ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_wil.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_wil extends HFile{
6  function HFile_wil(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 //
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");
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(")");
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  "/L10" => "",
46  "\"WIL\"" => "",
47  "Line" => "",
48  "Comment" => "",
49  "=" => "",
50  ";" => "",
51  "String" => "",
52  "Chars" => "",
53  "\"'" => "",
54  "File" => "",
55  "Extensions" => "",
56  "WBT" => "",
57  "WIL" => "",
58  "About" => "1",
59  "Abs" => "1",
60  "Acos" => "1",
61  "AddExtender" => "1",
62  "AppExist" => "1",
63  "AppWaitClose" => "1",
64  "Asin" => "1",
65  "AskDirectory" => "1",
66  "AskFileName" => "1",
67  "AskFileText" => "1",
68  "AskItemList" => "1",
69  "AskLine" => "1",
70  "AskPassword" => "1",
71  "AskYesNo" => "1",
72  "Atan" => "1",
73  "Average" => "1",
74  "Beep" => "1",
75  "BinaryAlloc" => "1",
76  "BinaryAnd" => "1",
77  "BinaryClipGet" => "1",
78  "BinaryClipPut" => "1",
79  "BinaryCompare" => "1",
80  "BinaryConvert" => "1",
81  "BinaryCopy" => "1",
82  "BinaryEodGet" => "1",
83  "BinaryEodSet" => "1",
84  "BinaryFree" => "1",
85  "BinaryHashRec" => "1",
86  "BinaryIncr" => "1",
87  "BinaryIncr2" => "1",
88  "BinaryIncr4" => "1",
89  "BinaryIncrFlt" => "1",
90  "BinaryIndex" => "1",
91  "BinaryIndexEx" => "1",
92  "BinaryOleType" => "1",
93  "BinaryOr" => "1",
94  "BinaryPeek" => "1",
95  "BinaryPeek2" => "1",
96  "BinaryPeek4" => "1",
97  "BinaryPeekFlt" => "1",
98  "BinaryPeekStr" => "1",
99  "BinaryPoke" => "1",
100  "BinaryPoke2" => "1",
101  "BinaryPoke4" => "1",
102  "BinaryPokeFlt" => "1",
103  "BinaryPokeStr" => "1",
104  "BinaryRead" => "1",
105  "BinaryReadEx" => "1",
106  "BinarySort" => "1",
107  "BinaryStrCnt" => "1",
108  "BinaryTagExtr" => "1",
109  "BinaryTagFind" => "1",
110  "BinaryTagInit" => "1",
111  "BinaryTagRepl" => "1",
112  "BinaryWrite" => "1",
113  "BinaryWriteEx" => "1",
114  "BinaryXor" => "1",
115  "Break" => "1",
116  "ButtonNames" => "1",
117  "Call" => "1",
118  "Ceiling" => "1",
119  "Char2Num" => "1",
120  "ClipAppend" => "1",
121  "ClipGet" => "1",
122  "ClipGetEx" => "1",
123  "ClipPut" => "1",
124  "Continue" => "1",
125  "Cos" => "1",
126  "Cosh" => "1",
127  "CurrentFile" => "1",
128  "CurrFilePath" => "1",
129  "CurrentPath" => "1",
130  "DDEExecute" => "1",
131  "DDEInitiate" => "1",
132  "DDEPoke" => "1",
133  "DDERequest" => "1",
134  "DDETerminate" => "1",
135  "DDETimeout" => "1",
136  "Debug" => "1",
137  "DebugData" => "1",
138  "DebugTrace" => "1",
139  "Decimals" => "1",
140  "Dialog" => "1",
141  "DirAttrGet" => "1",
142  "DirAttrSet" => "1",
143  "DirChange" => "1",
144  "DirExist" => "1",
145  "DirGet" => "1",
146  "DirHome" => "1",
147  "DirItemize" => "1",
148  "DirMake" => "1",
149  "DirRemove" => "1",
150  "DirRename" => "1",
151  "DirSize" => "1",
152  "DirWindows" => "1",
153  "DiskExist" => "1",
154  "DiskFree" => "1",
155  "DiskInfo" => "1",
156  "DiskScan" => "1",
157  "DiskSize" => "1",
158  "DiskVolInfo" => "1",
159  "Display" => "1",
160  "DllCall" => "1",
161  "DllFree" => "1",
162  "DllHinst" => "1",
163  "DllHwnd" => "1",
164  "DllLoad" => "1",
165  "DOSVersion" => "1",
166  "Drop" => "1",
167  "DropWild" => "1",
168  "Else" => "1",
169  "Endif" => "1",
170  "EndSession" => "1",
171  "Environment" => "1",
172  "EnvironSet" => "1",
173  "EnvItemize" => "1",
174  "ErrorMode" => "1",
175  "Exclusive" => "1",
176  "Executestatement" => "1",
177  "ExeTypeInfo" => "1",
178  "Exit" => "1",
179  "Exp" => "1",
180  "Fabs" => "1",
181  "FileAppend" => "1",
182  "FileAttrGet" => "1",
183  "FileAttrSet" => "1",
184  "FileClose" => "1",
185  "FileCompare" => "1",
186  "FileCopy" => "1",
187  "FileCopyAttr" => "1",
188  "FileDelete" => "1",
189  "FileExist" => "1",
190  "FileExtension" => "1",
191  "FileFullName" => "1",
192  "FileItemize" => "1",
193  "FileLocate" => "1",
194  "FileMapName" => "1",
195  "FileMove" => "1",
196  "FileMoveAttr" => "1",
197  "FileNameLong" => "1",
198  "FileNameShort" => "1",
199  "FileOpen" => "1",
200  "FilePath" => "1",
201  "FileRead" => "1",
202  "FileRename" => "1",
203  "FileRoot" => "1",
204  "FileSize" => "1",
205  "FileTimeCode" => "1",
206  "FileTimeGet" => "1",
207  "FileTimeGetEx" => "1",
208  "FileTimeSet" => "1",
209  "FileTimeSetEx" => "1",
210  "FileTimeTouch" => "1",
211  "FileVerInfo" => "1",
212  "FileWrite" => "1",
213  "FileYmdHms" => "1",
214  "FindWindow" => "1",
215  "Floor" => "1",
216  "For" => "1",
217  "GetExactTime" => "1",
218  "GetTickCount" => "1",
219  "GoSub" => "1",
220  "Gotolabel" => "1",
221  "IconReplace" => "1",
222  "If" => "1",
223  "IniDelete" => "1",
224  "IniDeletePvt" => "1",
225  "IniItemize" => "1",
226  "IniItemizePvt" => "1",
227  "IniRead" => "1",
228  "IniReadPvt" => "1",
229  "IniWrite" => "1",
230  "IniWritePvt" => "1",
231  "InstallFile" => "1",
232  "Int" => "1",
233  "IntControl" => "1",
234  "IsDefined" => "1",
235  "IsFloat" => "1",
236  "IsInt" => "1",
237  "IsKeyDown" => "1",
238  "IsLicensed" => "1",
239  "IsMenuChecked" => "1",
240  "IsMenuEnabled" => "1",
241  "IsNumber" => "1",
242  "ItemCount" => "1",
243  "ItemExtract" => "1",
244  "ItemInsert" => "1",
245  "ItemLocate" => "1",
246  "ItemRemove" => "1",
247  "ItemSort" => "1",
248  "KeyToggleGet" => "1",
249  "KeyToggleSet" => "1",
250  "LastError" => "1",
251  "Log10" => "1",
252  "LogDisk" => "1",
253  "LogE" => "1",
254  "Max" => "1",
255  "MenuChange" => "1",
256  "Message" => "1",
257  "Min" => "1",
258  "MouseClick" => "1",
259  "MouseClickBtn" => "1",
260  "MouseCoords" => "1",
261  "MouseInfo" => "1",
262  "MouseMove" => "1",
263  "MsgTextGet" => "1",
264  "NetInfo" => "1",
265  "Num2Char" => "1",
266  "ParseData" => "1",
267  "Pause" => "1",
268  "PlayMedia" => "1",
269  "PlayMidi" => "1",
270  "PlayWaveForm" => "1",
271  "Print" => "1",
272  "Random" => "1",
273  "RegApp" => "1",
274  "RegCloseKey" => "1",
275  "RegConnect" => "1",
276  "RegCreateKey" => "1",
277  "RegDeleteKey" => "1",
278  "RegDelValue" => "1",
279  "RegEntryType" => "1",
280  "RegExistKey" => "1",
281  "RegExistValue" => "1",
282  "RegLoadHive" => "1",
283  "RegOpenKey" => "1",
284  "RegQueryBin" => "1",
285  "RegQueryDword" => "1",
286  "RegQueryEx" => "1",
287  "RegQueryExpSz" => "1",
288  "RegQueryItem" => "1",
289  "RegQueryKey" => "1",
290  "RegQueryKeys" => "1",
291  "RegQueryMulSz" => "1",
292  "RegQueryValue" => "1",
293  "RegSetBin" => "1",
294  "RegSetDword" => "1",
295  "RegSetEx" => "1",
296  "RegSetExpSz" => "1",
297  "RegSetMulSz" => "1",
298  "RegSetValue" => "1",
299  "RegUnloadHive" => "1",
300  "Reload" => "1",
301  "Return" => "1",
302  "Run" => "1",
303  "RunEnviron" => "1",
304  "RunHide" => "1",
305  "RunHideWait" => "1",
306  "RunIcon" => "1",
307  "RunIconWait" => "1",
308  "RunShell" => "1",
309  "RunWait" => "1",
310  "RunZoom" => "1",
311  "RunZoomWait" => "1",
312  "Selectvarname" => "1",
313  "SendKey" => "1",
314  "SendKeysChild" => "1",
315  "SendKeysTo" => "1",
316  "SendMenusTo" => "1",
317  "ShellExecute" => "1",
318  "ShortcutDir" => "1",
319  "ShortcutEdit" => "1",
320  "ShortcutExtra" => "1",
321  "ShortcutInfo" => "1",
322  "ShortcutMake" => "1",
323  "Sin" => "1",
324  "Sinh" => "1",
325  "SnapShot" => "1",
326  "Sounds" => "1",
327  "Sqrt" => "1",
328  "StrCat" => "1",
329  "StrCharCount" => "1",
330  "StrCmp" => "1",
331  "StrFill" => "1",
332  "StrFix" => "1",
333  "StrFixChars" => "1",
334  "StrFixCharsL" => "1",
335  "StrFixLeft" => "1",
336  "StriCmp" => "1",
337  "StrIndex" => "1",
338  "StrIndexNc" => "1",
339  "StrIndexWild" => "1",
340  "StrLen" => "1",
341  "StrLenWild" => "1",
342  "StrLower" => "1",
343  "StrReplace" => "1",
344  "StrScan" => "1",
345  "StrSub" => "1",
346  "StrSubWild" => "1",
347  "StrTrim" => "1",
348  "StrUpper" => "1",
349  "Switchvarname" => "1",
350  "Tan" => "1",
351  "Tanh" => "1",
352  "Terminate" => "1",
353  "TimeAdd" => "1",
354  "TimeDate" => "1",
355  "TimeDayofWeek" => "1",
356  "TimeDayofYear" => "1",
357  "TimeDelay" => "1",
358  "TimeDiff" => "1",
359  "TimeDiffDays" => "1",
360  "TimeDiffSecs" => "1",
361  "TimeJulianDay" => "1",
362  "TimeJulToYmd" => "1",
363  "TimeSubtract" => "1",
364  "TimeWait" => "1",
365  "TimeYmdHms" => "1",
366  "to" => "1",
367  "Version" => "1",
368  "VersionDLL" => "1",
369  "WaitForKey" => "1",
370  "WallPaper" => "1",
371  "While" => "1",
372  "WinActivate" => "1",
373  "WinActivChild" => "1",
374  "WinArrange" => "1",
375  "WinClose" => "1",
376  "WinExeName" => "1",
377  "WinExist" => "1",
378  "WinExistChild" => "1",
379  "WinGetActive" => "1",
380  "WinHelp" => "1",
381  "WinHide" => "1",
382  "WinIconize" => "1",
383  "WinIdGet" => "1",
384  "WinIsDOS" => "1",
385  "WinItemChild" => "1",
386  "WinItemize" => "1",
387  "WinItemizeEx" => "1",
388  "WinItemNameId" => "1",
389  "WinItemProcID" => "1",
390  "WinMetrics" => "1",
391  "WinName" => "1",
392  "WinParmGet" => "1",
393  "WinParmSet" => "1",
394  "WinPlace" => "1",
395  "WinPlaceGet" => "1",
396  "WinPlaceSet" => "1",
397  "WinPosition" => "1",
398  "WinResources" => "1",
399  "WinShow" => "1",
400  "WinState" => "1",
401  "WinSysInfo" => "1",
402  "WinTitle" => "1",
403  "WinVersion" => "1",
404  "WinWaitChild" => "1",
405  "WinWaitClose" => "1",
406  "WinWaitExist" => "1",
407  "WinZoom" => "1",
408  "Yield" => "1",
409  "Yields" => "1");
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  "" => "donothing",
420  "1" => "donothing");
421 }
422 
423 
424 function donothing($keywordin)
425 {
426  return $keywordin;
427 }
428 
429 }?>