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