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