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