ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_lotusscript.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_lotusscript extends HFile{
6  function HFile_lotusscript(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // LotusScript
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", "gray", "brown");
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("%REM");
40 $this->blockcommentoff = array("%END REM");
41 
42 // Keywords (keyword mapping to colour number)
43 
44 $this->keywords = array(
45  "Abs" => "1",
46  "Access" => "1",
47  "ACos" => "1",
48  "ActivateApp" => "1",
49  "Alias" => "1",
50  "And" => "1",
51  "Any" => "1",
52  "Append" => "1",
53  "As" => "1",
54  "Asc" => "1",
55  "ASin" => "1",
56  "Atn" => "1",
57  "Atn2" => "1",
58  "Base" => "1",
59  "Beep" => "1",
60  "Bin" => "1",
61  "Bin$" => "1",
62  "Binary" => "1",
63  "Bind" => "1",
64  "ByVal" => "1",
65  "Call" => "1",
66  "CCur" => "1",
67  "CDat" => "1",
68  "CDbl" => "1",
69  "ChDir" => "1",
70  "ChDrive" => "1",
71  "Chr" => "1",
72  "Chr$" => "1",
73  "CInt" => "1",
74  "Class" => "1",
75  "CLng" => "1",
76  "Close" => "1",
77  "Command" => "1",
78  "Command$" => "1",
79  "Compare" => "1",
80  "Const" => "1",
81  "Cos" => "1",
82  "CSng" => "1",
83  "CStr" => "1",
84  "CurDir" => "1",
85  "CurDir$" => "1",
86  "CurDrive" => "1",
87  "CurDrive$" => "1",
88  "CVar" => "1",
89  "DataType" => "1",
90  "Date" => "1",
91  "Date$" => "1",
92  "DateNumber" => "1",
93  "DateValue" => "1",
94  "Day" => "1",
95  "Declare" => "1",
96  "DefCur" => "1",
97  "DefDbl" => "1",
98  "DefInt" => "1",
99  "DefLng" => "1",
100  "DefSng" => "1",
101  "DefStr" => "1",
102  "DefVar" => "1",
103  "Delete" => "1",
104  "Dim" => "1",
105  "Dir" => "1",
106  "Dir$" => "1",
107  "Environ" => "1",
108  "Environ$" => "1",
109  "EOF" => "1",
110  "Eqv" => "1",
111  "Erase" => "1",
112  "Erl" => "1",
113  "Err" => "1",
114  "Error" => "1",
115  "Error$" => "1",
116  "Evaluate" => "1",
117  "Event" => "1",
118  "Execute" => "1",
119  "Exit" => "1",
120  "Exp" => "1",
121  "FALSE" => "1",
122  "FileAttr" => "1",
123  "FileCopy" => "1",
124  "FileDateTime" => "1",
125  "FileLen" => "1",
126  "Fix" => "1",
127  "Format" => "1",
128  "Format$" => "1",
129  "Fraction" => "1",
130  "FreeFile" => "1",
131  "FromFunction" => "1",
132  "Get" => "1",
133  "GetFileAttr" => "1",
134  "Hex" => "1",
135  "Hex$" => "1",
136  "Hour" => "1",
137  "IMEStatus" => "1",
138  "Imp" => "1",
139  "In" => "1",
140  "Input" => "1",
141  "Input$" => "1",
142  "InputB" => "1",
143  "InputB$" => "1",
144  "InputBox" => "1",
145  "InputBox$" => "1",
146  "InputBP" => "1",
147  "InputBP$" => "1",
148  "InStr" => "1",
149  "InStrB" => "1",
150  "InStrBP" => "1",
151  "Int" => "1",
152  "Is" => "1",
153  "IsArray" => "1",
154  "IsDate" => "1",
155  "IsElement" => "1",
156  "IsEmpty" => "1",
157  "IsList" => "1",
158  "IsNull" => "1",
159  "IsNumeric" => "1",
160  "IsObject" => "1",
161  "IsScalar" => "1",
162  "IsUnknown" => "1",
163  "Kill" => "1",
164  "LBound" => "1",
165  "LCase" => "1",
166  "LCase$" => "1",
167  "Left" => "1",
168  "Left$" => "1",
169  "LeftB" => "1",
170  "LeftB$" => "1",
171  "LeftBP" => "1",
172  "LeftBP$" => "1",
173  "Len" => "1",
174  "LenB" => "1",
175  "LenBP" => "1",
176  "Let" => "1",
177  "Lib" => "1",
178  "Like" => "1",
179  "Line" => "1",
180  "List" => "1",
181  "ListTag" => "1",
182  "LMBCS" => "1",
183  "Loc" => "1",
184  "Lock" => "1",
185  "LOF" => "1",
186  "Log" => "1",
187  "Loop" => "1",
188  "LSet" => "1",
189  "LTrim" => "1",
190  "LTrim$" => "1",
191  "Me" => "1",
192  "MessageBox" => "1",
193  "Mid" => "1",
194  "Mid$" => "1",
195  "MidB" => "1",
196  "MidB$" => "1",
197  "Minute" => "1",
198  "MkDir" => "1",
199  "Mod" => "1",
200  "Month" => "1",
201  "Name" => "1",
202  "New" => "1",
203  "NoCase" => "1",
204  "NoPitch" => "1",
205  "Not" => "1",
206  "NOTHING" => "1",
207  "Now" => "1",
208  "NULL" => "1",
209  "Oct" => "1",
210  "Oct$" => "1",
211  "On" => "1",
212  "Open" => "1",
213  "Option" => "1",
214  "Or" => "1",
215  "Output" => "1",
216  "PI" => "1",
217  "Pitch" => "1",
218  "Preserve" => "1",
219  "Print" => "1",
220  "Private" => "1",
221  "Property" => "1",
222  "Public" => "1",
223  "Put" => "1",
224  "Random" => "1",
225  "Randomize" => "1",
226  "Read" => "1",
227  "ReDim" => "1",
228  "Rem" => "1",
229  "Remove" => "1",
230  "Reset" => "1",
231  "Resume" => "1",
232  "Return" => "1",
233  "Right" => "1",
234  "Right$" => "1",
235  "RightB" => "1",
236  "RightB$" => "1",
237  "RightBP" => "1",
238  "RightBP$" => "1",
239  "RmDir" => "1",
240  "Rnd" => "1",
241  "Round" => "1",
242  "RSet" => "1",
243  "RTrim" => "1",
244  "RTrim$" => "1",
245  "Second" => "1",
246  "Seek" => "1",
247  "SendKeys" => "1",
248  "Set" => "1",
249  "SetFileAttr" => "1",
250  "Sgn" => "1",
251  "Shared" => "1",
252  "Shell" => "1",
253  "Sin" => "1",
254  "Space" => "1",
255  "Space$" => "1",
256  "Spc" => "1",
257  "Sqr" => "1",
258  "Static" => "1",
259  "Step" => "1",
260  "Stop" => "1",
261  "Str" => "1",
262  "Str$" => "1",
263  "StrCompare" => "1",
264  "String$" => "1",
265  "Sub" => "1",
266  "Tab" => "1",
267  "Tan" => "1",
268  "Time" => "1",
269  "Time$" => "1",
270  "TimeNumber" => "1",
271  "Timer" => "1",
272  "TimeValue" => "1",
273  "To" => "1",
274  "Today" => "1",
275  "Trim" => "1",
276  "Trim$" => "1",
277  "TRUE" => "1",
278  "Type" => "1",
279  "TypeName" => "1",
280  "UBound" => "1",
281  "UCase" => "1",
282  "UCase$" => "1",
283  "UChr" => "1",
284  "UChr$" => "1",
285  "Uni" => "1",
286  "Unicode" => "1",
287  "Unlock" => "1",
288  "Use" => "1",
289  "UseLSX" => "1",
290  "UString" => "1",
291  "UString$" => "1",
292  "Val" => "1",
293  "With" => "1",
294  "Write" => "1",
295  "Xor" => "1",
296  "Year" => "1",
297  "Yield" => "1",
298  "Currency" => "2",
299  "Double" => "2",
300  "Integer" => "2",
301  "Long" => "2",
302  "Single" => "2",
303  "String" => "2",
304  "Variant" => "2",
305  "Case" => "3",
306  "Do" => "3",
307  "Else" => "3",
308  "End" => "3",
309  "ElseIf" => "3",
310  "For" => "3",
311  "Forall" => "3",
312  "If" => "3",
313  "Next" => "3",
314  "Select" => "3",
315  "Then" => "3",
316  "Until" => "3",
317  "Wend" => "3",
318  "While" => "3",
319  "GoSub" => "3",
320  "GoTo" => "3",
321  "NotesACLNotesACLEntry" => "4",
322  "NotesAgent" => "4",
323  "NotesDatabase" => "4",
324  "NotesDateRange" => "4",
325  "NotesDateTime" => "4",
326  "NotesDbDirectory" => "4",
327  "NotesDocument" => "4",
328  "NotesDocumentCollection" => "4",
329  "NotesEmbeddedObject" => "4",
330  "NotesForm" => "4",
331  "NotesInternational" => "4",
332  "NotesItem" => "4",
333  "NotesLog" => "4",
334  "NotesName" => "4",
335  "NotesNewsLetter" => "4",
336  "NotesRegistration" => "4",
337  "NotesRichTextItem" => "4",
338  "NotesRichTextStyle" => "4",
339  "NotesSession" => "4",
340  "NotesTimer" => "4",
341  "NotesView" => "4",
342  "NotesViewColumn" => "4",
343  "NotesUIDatabase" => "4",
344  "NotesUIDocument" => "4",
345  "NotesUIView" => "4",
346  "NotesUIWorkspace" => "4",
347  "Navigator" => "4",
348  "notesaclnotesaclentry" => "4",
349  "notesagent" => "4",
350  "notesdatabase" => "4",
351  "notesdaterange" => "4",
352  "notesdatetime" => "4",
353  "notesdbdirectory" => "4",
354  "notesdocument" => "4",
355  "notesdocumentcollection" => "4",
356  "notesembeddedobject" => "4",
357  "notesform" => "4",
358  "notesinternational" => "4",
359  "notesitem" => "4",
360  "noteslog" => "4",
361  "notesname" => "4",
362  "notesnewsletter" => "4",
363  "notesregistration" => "4",
364  "notesrichtextitem" => "4",
365  "notesrichtextstyle" => "4",
366  "notessession" => "4",
367  "notestimer" => "4",
368  "notesview" => "4",
369  "notesviewcolumn" => "4",
370  "notesuidatabase" => "4",
371  "notesuidocument" => "4",
372  "notesuiview" => "4",
373  "notesuiworkspace" => "4",
374  "navigator" => "4");
375 
376 // Special extensions
377 
378 // Each category can specify a PHP function that returns an altered
379 // version of the keyword.
380 
381 
382 
383 $this->linkscripts = array(
384  "1" => "donothing",
385  "2" => "donothing",
386  "3" => "donothing",
387  "4" => "donothing");
388 }
389 
390 
391 function donothing($keywordin)
392 {
393  return $keywordin;
394 }
395 
396 }?>