ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_lingo.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_lingo extends HFile
8  {
9  public function HFile_lingo()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // Lingo
15  /*************************************/
16  // Flags
17 
18  $this->nocase = "1";
19  $this->notrim = "0";
20  $this->perl = "0";
21 
22  // Colours
23 
24  $this->colours = array("blue", "purple");
25  $this->quotecolour = "blue";
26  $this->blockcommentcolour = "green";
27  $this->linecommentcolour = "green";
28 
29  // Indent Strings
30 
31  $this->indent = array("then", "else");
32  $this->unindent = array("end", "end if", "end repeat");
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  "abort" => "1",
50  "after" => "1",
51  "and" => "1",
52  "before" => "1",
53  "case" => "1",
54  "do" => "1",
55  "else" => "1",
56  "end" => "1",
57  "FALSE" => "1",
58  "global" => "1",
59  "halt" => "1",
60  "if" => "1",
61  "ilk" => "1",
62  "into" => "1",
63  "me" => "1",
64  "new" => "1",
65  "of" => "1",
66  "on" => "1",
67  "or" => "1",
68  "otherwise" => "1",
69  "pass" => "1",
70  "property" => "1",
71  "put" => "1",
72  "repeat" => "1",
73  "result" => "1",
74  "RETURN" => "1",
75  "set" => "1",
76  "tell" => "1",
77  "the" => "1",
78  "then" => "1",
79  "to" => "1",
80  "TRUE" => "1",
81  "while" => "1",
82  "with" => "1",
83  "#" => "2",
84  "abbr" => "2",
85  "abbrev" => "2",
86  "abbreviated" => "2",
87  "abs" => "2",
88  "activateWindow" => "2",
89  "activeCastLib" => "2",
90  "activeWindow" => "2",
91  "actorList" => "2",
92  "add" => "2",
93  "addAt" => "2",
94  "addProp" => "2",
95  "alert" => "2",
96  "alertHook" => "2",
97  "alignment" => "2",
98  "allowCustomCaching" => "2",
99  "allowGraphicMenu" => "2",
100  "allowSaveLocal" => "2",
101  "allowTransportControl" => "2",
102  "allowVolumeControl" => "2",
103  "allowZooming" => "2",
104  "alphaThreshold" => "2",
105  "ancestor" => "2",
106  "antiAlias" => "2",
107  "append" => "2",
108  "applicationPath" => "2",
109  "atan" => "2",
110  "autoTab" => "2",
111  "backColor" => "2",
112  "BACKSPACE" => "2",
113  "beep" => "2",
114  "beepOn" => "2",
115  "beginRecording" => "2",
116  "beginSprite" => "2",
117  "bgColor" => "2",
118  "blend" => "2",
119  "blendLevel" => "2",
120  "border" => "2",
121  "bottom" => "2",
122  "boxDropShadow" => "2",
123  "boxType" => "2",
124  "buttonStyle" => "2",
125  "buttonType" => "2",
126  "call" => "2",
127  "callAncestor" => "2",
128  "cancelIdleLoad" => "2",
129  "castLib" => "2",
130  "castLibNum" => "2",
131  "center" => "2",
132  "centerRegPoint" => "2",
133  "centerStage" => "2",
134  "changeArea" => "2",
135  "channelCount" => "2",
136  "char" => "2",
137  "charPosToLoc" => "2",
138  "chars" => "2",
139  "charToNum" => "2",
140  "checkBoxAccess" => "2",
141  "checkBoxType" => "2",
142  "checkMark" => "2",
143  "chunkSize" => "2",
144  "clearFrame" => "2",
145  "clearGlobals" => "2",
146  "clickLoc" => "2",
147  "clickOn" => "2",
148  "close" => "2",
149  "closeWindow" => "2",
150  "closeXlib" => "2",
151  "color" => "2",
152  "colorDepth" => "2",
153  "commandDown" => "2",
154  "constrainH" => "2",
155  "constraint" => "2",
156  "constrainV" => "2",
157  "continue" => "2",
158  "controlDown" => "2",
159  "controller" => "2",
160  "copyToClipBoard" => "2",
161  "cos" => "2",
162  "count" => "2",
163  "cpuHogTicks" => "2",
164  "crop" => "2",
165  "cuePassed" => "2",
166  "cuePointNames" => "2",
167  "cuePointTimes" => "2",
168  "currentSpriteNum" => "2",
169  "currentTime" => "2",
170  "cursor" => "2",
171  "date" => "2",
172  "deactivateWindow" => "2",
173  "delay" => "2",
174  "delete" => "2",
175  "deleteAll" => "2",
176  "deleteAt" => "2",
177  "deleteFrame" => "2",
178  "deleteOne" => "2",
179  "deleteProp" => "2",
180  "depth" => "2",
181  "deskTopRectList" => "2",
182  "digitalVideoTimeScale" => "2",
183  "digitalVideoType" => "2",
184  "directToStage" => "2",
185  "dither" => "2",
186  "done" => "2",
187  "doubleClick" => "2",
188  "drawRect" => "2",
189  "dropShadow" => "2",
190  "duplicate" => "2",
191  "member" => "2",
192  "duplicateFrame" => "2",
193  "duration" => "2",
194  "editable" => "2",
195  "EMPTY" => "2",
196  "emulateMultiButtonMouse" => "2",
197  "enabled" => "2",
198  "endFrame" => "2",
199  "endRecording" => "2",
200  "endSprite" => "2",
201  "ENTER" => "2",
202  "enterFrame" => "2",
203  "environment" => "2",
204  "erase" => "2",
205  "exit" => "2",
206  "exitFrame" => "2",
207  "exitLock" => "2",
208  "exp" => "2",
209  "externalParamCount" => "2",
210  "externalParamName" => "2",
211  "externalParamValue" => "2",
212  "fadeIn" => "2",
213  "fadeOut" => "2",
214  "field" => "2",
215  "fileName" => "2",
216  "filled" => "2",
217  "findEmpty" => "2",
218  "findPos" => "2",
219  "findPosNear" => "2",
220  "finishIdleLoad" => "2",
221  "fixStageSize" => "2",
222  "flipH" => "2",
223  "flipV" => "2",
224  "float" => "2",
225  "floatP" => "2",
226  "floatPrecision" => "2",
227  "font" => "2",
228  "fontSize" => "2",
229  "fontStyle" => "2",
230  "foreColor" => "2",
231  "forget" => "2",
232  "frame" => "2",
233  "frameLabel" => "2",
234  "framePalette" => "2",
235  "frameRate" => "2",
236  "frameReady" => "2",
237  "frameScript" => "2",
238  "frameSound1" => "2",
239  "frameSound2" => "2",
240  "framesToHMS" => "2",
241  "frameTempo" => "2",
242  "frameTransition" => "2",
243  "freeBlock" => "2",
244  "freeBytes" => "2",
245  "frontWindow" => "2",
246  "getaProp" => "2",
247  "getAt" => "2",
248  "getBehaviorDescription" => "2",
249  "getBehaviorTooltip" => "2",
250  "getLast" => "2",
251  "getNthFileNameInFolder" => "2",
252  "getOne" => "2",
253  "getPos" => "2",
254  "getPref" => "2",
255  "getProp" => "2",
256  "getPropAt" => "2",
257  "getPropertyDescriptionList" => "2",
258  "globals" => "2",
259  "go" => "2",
260  "height" => "2",
261  "hilite" => "2",
262  "hitTest" => "2",
263  "HMStoFrames" => "2",
264  "idle" => "2",
265  "idleHandlerPeriod" => "2",
266  "idleLoadDone" => "2",
267  "idleLoadMode" => "2",
268  "idleLoadPeriod" => "2",
269  "idleLoadTag" => "2",
270  "idleReadChunkSize" => "2",
271  "importFileInto" => "2",
272  "in" => "2",
273  "inflate" => "2",
274  "ink" => "2",
275  "insertFrame" => "2",
276  "inside" => "2",
277  "installMenu" => "2",
278  "integer" => "2",
279  "integerP" => "2",
280  "interface" => "2",
281  "intersect" => "2",
282  "intersects" => "2",
283  "isPastCuePoint" => "2",
284  "item" => "2",
285  "itemDelimiter" => "2",
286  "key" => "2",
287  "keyboardFocusSprite" => "2",
288  "keyCode" => "2",
289  "keyDown" => "2",
290  "keyDownScript" => "2",
291  "keyPressed" => "2",
292  "keyUp" => "2",
293  "keyUpScript" => "2",
294  "label" => "2",
295  "labelList" => "2",
296  "last" => "2",
297  "lastChannel" => "2",
298  "lastClick" => "2",
299  "lastEvent" => "2",
300  "lastFrame" => "2",
301  "lastKey" => "2",
302  "lastRoll" => "2",
303  "left" => "2",
304  "length" => "2",
305  "line" => "2",
306  "lineCount" => "2",
307  "lineDirection" => "2",
308  "lineHeight" => "2",
309  "linePosToLocV" => "2",
310  "lines" => "2",
311  "lineSize" => "2",
312  "list" => "2",
313  "listP" => "2",
314  "loaded" => "2",
315  "loc" => "2",
316  "locH" => "2",
317  "locToCharPos" => "2",
318  "locV" => "2",
319  "locVToLinePos" => "2",
320  "locZ" => "2",
321  "log" => "2",
322  "long" => "2",
323  "loop" => "2",
324  "map" => "2",
325  "mapMemberToStage" => "2",
326  "mapStageToMember" => "2",
327  "margin" => "2",
328  "marker" => "2",
329  "max" => "2",
330  "maxInteger" => "2",
331  "mci" => "2",
332  "media" => "2",
333  "mediaReady" => "2",
334  "memberNum" => "2",
335  "members" => "2",
336  "memorySize" => "2",
337  "menu" => "2",
338  "milliseconds" => "2",
339  "min" => "2",
340  "modal" => "2",
341  "modified" => "2",
342  "mostRecentCuePoint" => "2",
343  "mouseChar" => "2",
344  "mouseDown" => "2",
345  "mouseDownScript" => "2",
346  "mouseItem" => "2",
347  "mouseLeave" => "2",
348  "mouseLine" => "2",
349  "mouseLoc" => "2",
350  "mouseMember" => "2",
351  "mouseUp" => "2",
352  "mouseUpOutside" => "2",
353  "mouseUpScript" => "2",
354  "mouseV" => "2",
355  "mouseWithin" => "2",
356  "mouseWord" => "2",
357  "move" => "2",
358  "moveableSprite" => "2",
359  "moveToBack" => "2",
360  "moveToFront" => "2",
361  "moveWindow" => "2",
362  "movie" => "2",
363  "movieAboutInfo" => "2",
364  "movieCopyrightInfo" => "2",
365  "movieFileFreeSize" => "2",
366  "movieFileSize" => "2",
367  "movieName" => "2",
368  "moviePath" => "2",
369  "movieRate" => "2",
370  "movieTime" => "2",
371  "movieXtraList" => "2",
372  "multiSound" => "2",
373  "name" => "2",
374  "netPresent" => "2",
375  "netThrottleTicks" => "2",
376  "next" => "2",
377  "nothing" => "2",
378  "number" => "2",
379  "numToChar" => "2",
380  "objectP" => "2",
381  "offset" => "2",
382  "open" => "2",
383  "openResFile" => "2",
384  "openWindow" => "2",
385  "openXlib" => "2",
386  "optionDown" => "2",
387  "organizationName" => "2",
388  "pageHeight" => "2",
389  "palette" => "2",
390  "paletteMapping" => "2",
391  "paletteRef" => "2",
392  "paragraph" => "2",
393  "param" => "2",
394  "paramCount" => "2",
395  "pasteClipBoardInto" => "2",
396  "pathName" => "2",
397  "pattern" => "2",
398  "pause" => "2",
399  "pausedAtStart" => "2",
400  "pauseState" => "2",
401  "PI" => "2",
402  "picture" => "2",
403  "pictureP" => "2",
404  "platform" => "2",
405  "play" => "2",
406  "playFile" => "2",
407  "playing" => "2",
408  "point" => "2",
409  "power" => "2",
410  "preLoad" => "2",
411  "preLoadEventAbort" => "2",
412  "preLoadMember" => "2",
413  "preLoadMode" => "2",
414  "preLoadMovie" => "2",
415  "preLoadRAM" => "2",
416  "prepareFrame" => "2",
417  "prepareMovie" => "2",
418  "previous" => "2",
419  "printFrom" => "2",
420  "puppet" => "2",
421  "puppetPalette" => "2",
422  "puppetSound" => "2",
423  "puppetSprite" => "2",
424  "puppetTempo" => "2",
425  "puppetTransition" => "2",
426  "purgePriority" => "2",
427  "quad" => "2",
428  "quit" => "2",
429  "QUOTE" => "2",
430  "ramNeeded" => "2",
431  "random" => "2",
432  "randomSeed" => "2",
433  "rect" => "2",
434  "regPoint" => "2",
435  "resizeWindow" => "2",
436  "restart" => "2",
437  "right" => "2",
438  "rightMouseDown" => "2",
439  "rightMouseUp" => "2",
440  "rollOver" => "2",
441  "romanLingo" => "2",
442  "rotation" => "2",
443  "runMode" => "2",
444  "runPropertyDialog" => "2",
445  "safePlayer" => "2",
446  "sampleRate" => "2",
447  "sampleSize" => "2",
448  "save" => "2",
449  "saveMovie" => "2",
450  "score" => "2",
451  "scoreColor" => "2",
452  "scoreSelection" => "2",
453  "script" => "2",
454  "scriptInstanceList" => "2",
455  "scriptNum" => "2",
456  "scriptsEnabled" => "2",
457  "scriptText" => "2",
458  "scriptType" => "2",
459  "scrollByLine" => "2",
460  "scrollByPage" => "2",
461  "scrollTop" => "2",
462  "searchCurrentFolder" => "2",
463  "searchPath" => "2",
464  "searchPaths" => "2",
465  "selection" => "2",
466  "selEnd" => "2",
467  "selStart" => "2",
468  "sendAllSprites" => "2",
469  "sendSprite" => "2",
470  "serialNumber" => "2",
471  "setaProp" => "2",
472  "setAt" => "2",
473  "setPref" => "2",
474  "setProp" => "2",
475  "setTrackEnabled" => "2",
476  "shapeType" => "2",
477  "shiftDown" => "2",
478  "short" => "2",
479  "showGlobals" => "2",
480  "showLocals" => "2",
481  "showResFile" => "2",
482  "showXlib" => "2",
483  "shutDown" => "2",
484  "sin" => "2",
485  "size" => "2",
486  "skew" => "2",
487  "sort" => "2",
488  "sound" => "2",
489  "soundBusy" => "2",
490  "soundDevice" => "2",
491  "soundDeviceList" => "2",
492  "soundEnabled" => "2",
493  "soundKeepDevice" => "2",
494  "soundLevel" => "2",
495  "sourceRect" => "2",
496  "SPACE" => "2",
497  "sprite" => "2",
498  "spriteNum" => "2",
499  "sqrt" => "2",
500  "stage" => "2",
501  "stageBottom" => "2",
502  "stageColor" => "2",
503  "stageLeft" => "2",
504  "stageRight" => "2",
505  "stageTop" => "2",
506  "startFrame" => "2",
507  "startMovie" => "2",
508  "startTime" => "2",
509  "startTimer" => "2",
510  "stepFrame" => "2",
511  "stillDown" => "2",
512  "stop" => "2",
513  "stopEvent" => "2",
514  "stopMovie" => "2",
515  "stopTime" => "2",
516  "string" => "2",
517  "stringP" => "2",
518  "switchColorDepth" => "2",
519  "symbol" => "2",
520  "symbolP" => "2",
521  "systemDate" => "2",
522  "TAB" => "2",
523  "tan" => "2",
524  "text" => "2",
525  "thumbnail" => "2",
526  "ticks" => "2",
527  "time" => "2",
528  "timeOut" => "2",
529  "timeoutKeyDown" => "2",
530  "timeoutLapsed" => "2",
531  "timeoutLength" => "2",
532  "timeoutMouse" => "2",
533  "timeoutPlay" => "2",
534  "timeoutScript" => "2",
535  "timer" => "2",
536  "timeScale" => "2",
537  "title" => "2",
538  "titleVisible" => "2",
539  "top" => "2",
540  "trace" => "2",
541  "traceLoad" => "2",
542  "traceLogFile" => "2",
543  "trackCount" => "2",
544  "trackEnabled" => "2",
545  "trackNextKeyTime" => "2",
546  "trackNextSampleTime" => "2",
547  "trackPreviousKeyTime" => "2",
548  "trackPreviousSampleTime" => "2",
549  "trackStartTime" => "2",
550  "trackStopTime" => "2",
551  "trackText" => "2",
552  "trails" => "2",
553  "transitionType" => "2",
554  "tweened" => "2",
555  "type" => "2",
556  "union" => "2",
557  "unLoad" => "2",
558  "unLoadMember" => "2",
559  "unloadMovie" => "2",
560  "updateFrame" => "2",
561  "updateLock" => "2",
562  "updateMovieEnabled" => "2",
563  "updateStage" => "2",
564  "useAlpha" => "2",
565  "userName" => "2",
566  "value" => "2",
567  "version" => "2",
568  "video" => "2",
569  "videoForWindowsPresent" => "2",
570  "visible" => "2",
571  "VOID" => "2",
572  "voidP" => "2",
573  "volume" => "2",
574  "width" => "2",
575  "window" => "2",
576  "windowList" => "2",
577  "windowPresent" => "2",
578  "windowType" => "2",
579  "word" => "2",
580  "wordWrap" => "2",
581  "xtra" => "2",
582  "xtraList" => "2",
583  "xtras" => "2",
584  "zoomBox" => "2",
585  "zoomWindow" => "2");
586 
587  // Special extensions
588 
589  // Each category can specify a PHP function that returns an altered
590  // version of the keyword.
591 
592 
593 
594  $this->linkscripts = array(
595  "1" => "donothing",
596  "2" => "donothing");
597  }
598 
599 
600  public function donothing($keywordin)
601  {
602  return $keywordin;
603  }
604  }
$BEAUT_PATH
Definition: HFile_lingo.php:2
donothing($keywordin)
Create styles array
The data for the language used.
Definition: HFile.php:21