Lingo Syntax Highlighter


/ Published in: PHP
Save to your folder(s)

Lingo Syntax Highlighter for GeSHi


Copy this code and paste it in your HTML
  1. /*************************************************************************************
  2.  * lingo.php
  3.  * ------
  4.  * Author: Jesús A. Álvarez ([email protected])
  5.  * Copyright: (c) 2008 Jesús A. Álvarez (http://namedfork.net)
  6.  * Release Version: 1.0
  7.  * Date Started: 2008/04/23
  8.  *
  9.  * Lingo language file for GeSHi.
  10.  *
  11.  * CHANGES
  12.  * -------
  13.  * 2008/04/23 (1.0)
  14.  * - First Release
  15.  *
  16.  * TODO
  17.  * -------------------------
  18.  *
  19.  *************************************************************************************
  20.  *
  21.  * This file is part of GeSHi.
  22.  *
  23.  * GeSHi is free software; you can redistribute it and/or modify
  24.  * it under the terms of the GNU General Public License as published by
  25.  * the Free Software Foundation; either version 2 of the License, or
  26.  * (at your option) any later version.
  27.  *
  28.  * GeSHi is distributed in the hope that it will be useful,
  29.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  30.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  31.  * GNU General Public License for more details.
  32.  *
  33.  * You should have received a copy of the GNU General Public License
  34.  * along with GeSHi; if not, write to the Free Software
  35.  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  36.  *
  37.  ************************************************************************************/
  38. $language_data = array (
  39. 'LANG_NAME' => 'Lingo',
  40. 'COMMENT_SINGLE' => array(1 => '--'),
  41. 'COMMENT_MULTI' => array(),
  42. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  43. 'QUOTEMARKS' => array('"'),
  44. 'ESCAPE_CHAR' => '',
  45. 'KEYWORDS' => array(
  46. 1 => array(
  47. 'abort', 'after', 'and', 'before', 'case', 'do', 'else', 'end',
  48. 'FALSE', 'global', 'halt', 'if', 'ilk', 'into', 'me', 'new', 'of',
  49. 'on', 'or', 'otherwise', 'pass', 'property', 'put', 'repeat',
  50. 'result', 'RETURN', 'set', 'tell', 'the', 'then', 'to', 'TRUE',
  51. 'while', 'with'
  52. ),
  53. 2 => array(
  54. 'abbr', 'abbrev', 'abbreviated', 'abs', 'activateWindow',
  55. 'activeCastLib', 'activeWindow', 'actorList', 'add', 'addAt',
  56. 'addProp', 'alert', 'alertHook', 'alignment',
  57. 'allowCustomCaching', 'allowGraphicMenu', 'allowSaveLocal',
  58. 'allowTransportControl', 'allowVolumeControl', 'allowZooming',
  59. 'alphaThreshold', 'ancestor', 'antiAlias', 'append',
  60. 'applicationPath', 'atan', 'autoTab', 'backColor', 'BACKSPACE',
  61. 'beep', 'beepOn', 'beginRecording', 'beginSprite', 'bgColor',
  62. 'blend', 'blendLevel', 'border', 'bottom', 'boxDropShadow',
  63. 'boxType', 'buttonStyle', 'buttonType', 'call', 'callAncestor',
  64. 'cancelIdleLoad', 'castLib', 'castLibNum', 'center',
  65. 'centerRegPoint', 'centerStage', 'changeArea', 'channelCount',
  66. 'char', 'charPosToLoc', 'chars', 'charToNum', 'checkBoxAccess',
  67. 'checkBoxType', 'checkMark', 'chunkSize', 'clearFrame',
  68. 'clearGlobals', 'clickLoc', 'clickOn', 'close', 'closeWindow',
  69. 'closeXlib', 'color', 'colorDepth', 'commandDown', 'constrainH',
  70. 'constraint', 'constrainV', 'continue', 'controlDown',
  71. 'controller', 'copyToClipBoard', 'cos', 'count', 'cpuHogTicks',
  72. 'crop', 'cuePassed', 'cuePointNames', 'cuePointTimes',
  73. 'currentSpriteNum', 'currentTime', 'cursor', 'date',
  74. 'deactivateWindow', 'delay', 'delete', 'deleteAll', 'deleteAt',
  75. 'deleteFrame', 'deleteOne', 'deleteProp', 'depth',
  76. 'deskTopRectList', 'digitalVideoTimeScale', 'digitalVideoType',
  77. 'directToStage', 'dither', 'done', 'doubleClick', 'drawRect',
  78. 'dropShadow', 'duplicate', 'member', 'duplicateFrame', 'duration',
  79. 'editable', 'EMPTY', 'emulateMultiButtonMouse', 'enabled',
  80. 'endFrame', 'endRecording', 'endSprite', 'ENTER', 'enterFrame',
  81. 'environment', 'erase', 'exit', 'exitFrame', 'exitLock', 'exp',
  82. 'externalParamCount', 'externalParamName', 'externalParamValue',
  83. 'fadeIn', 'fadeOut', 'field', 'fileName', 'filled', 'findEmpty',
  84. 'findPos', 'findPosNear', 'finishIdleLoad', 'fixStageSize',
  85. 'flipH', 'flipV', 'float', 'floatP', 'floatPrecision', 'font',
  86. 'fontSize', 'fontStyle', 'foreColor', 'forget', 'frame',
  87. 'frameLabel', 'framePalette', 'frameRate', 'frameReady',
  88. 'frameScript', 'frameSound1', 'frameSound2', 'framesToHMS',
  89. 'frameTempo', 'frameTransition', 'freeBlock', 'freeBytes',
  90. 'frontWindow', 'getaProp', 'getAt', 'getBehaviorDescription',
  91. 'getBehaviorTooltip', 'getLast', 'getNthFileNameInFolder',
  92. 'getOne', 'getPos', 'getPref', 'getProp', 'getPropAt',
  93. 'getPropertyDescriptionList', 'globals', 'go', 'height', 'hilite',
  94. 'hitTest', 'HMStoFrames', 'idle', 'idleHandlerPeriod',
  95. 'idleLoadDone', 'idleLoadMode', 'idleLoadPeriod', 'idleLoadTag',
  96. 'idleReadChunkSize', 'importFileInto', 'in', 'inflate', 'ink',
  97. 'insertFrame', 'inside', 'installMenu', 'integer', 'integerP',
  98. 'interface', 'intersect', 'intersects', 'isPastCuePoint', 'item',
  99. 'itemDelimiter', 'key', 'keyboardFocusSprite', 'keyCode',
  100. 'keyDown', 'keyDownScript', 'keyPressed', 'keyUp', 'keyUpScript',
  101. 'label', 'labelList', 'last', 'lastChannel', 'lastClick',
  102. 'lastEvent', 'lastFrame', 'lastKey', 'lastRoll', 'left', 'length',
  103. 'line', 'lineCount', 'lineDirection', 'lineHeight',
  104. 'linePosToLocV', 'lines', 'lineSize', 'list', 'listP', 'loaded',
  105. 'loc', 'locH', 'locToCharPos', 'locV', 'locVToLinePos', 'locZ',
  106. 'log', 'long', 'loop', 'map', 'mapMemberToStage',
  107. 'mapStageToMember', 'margin', 'marker', 'max', 'maxInteger',
  108. 'mci', 'media', 'mediaReady', 'memberNum', 'members',
  109. 'memorySize', 'menu', 'milliseconds', 'min', 'modal', 'modified',
  110. 'mostRecentCuePoint', 'mouseChar', 'mouseDown', 'mouseDownScript',
  111. 'mouseItem', 'mouseLeave', 'mouseLine', 'mouseLoc', 'mouseMember',
  112. 'mouseUp', 'mouseUpOutside', 'mouseUpScript', 'mouseV',
  113. 'mouseWithin', 'mouseWord', 'move', 'moveableSprite',
  114. 'moveToBack', 'moveToFront', 'moveWindow', 'movie',
  115. 'movieAboutInfo', 'movieCopyrightInfo', 'movieFileFreeSize',
  116. 'movieFileSize', 'movieName', 'moviePath', 'movieRate',
  117. 'movieTime', 'movieXtraList', 'multiSound', 'name', 'netPresent',
  118. 'netThrottleTicks', 'next', 'nothing', 'number', 'numToChar',
  119. 'objectP', 'offset', 'open', 'openResFile', 'openWindow',
  120. 'openXlib', 'optionDown', 'organizationName', 'pageHeight',
  121. 'palette', 'paletteMapping', 'paletteRef', 'paragraph', 'param',
  122. 'paramCount', 'pasteClipBoardInto', 'pathName', 'pattern',
  123. 'pause', 'pausedAtStart', 'pauseState', 'PI', 'picture',
  124. 'pictureP', 'platform', 'play', 'playFile', 'playing', 'point',
  125. 'power', 'preLoad', 'preLoadEventAbort', 'preLoadMember',
  126. 'preLoadMode', 'preLoadMovie', 'preLoadRAM', 'prepareFrame',
  127. 'prepareMovie', 'previous', 'printFrom', 'puppet',
  128. 'puppetPalette', 'puppetSound', 'puppetSprite', 'puppetTempo',
  129. 'puppetTransition', 'purgePriority', 'quad', 'quit', 'QUOTE',
  130. 'ramNeeded', 'random', 'randomSeed', 'rect', 'regPoint',
  131. 'resizeWindow', 'restart', 'right', 'rightMouseDown',
  132. 'rightMouseUp', 'rollOver', 'romanLingo', 'rotation', 'runMode',
  133. 'runPropertyDialog', 'safePlayer', 'sampleRate', 'sampleSize',
  134. 'save', 'saveMovie', 'score', 'scoreColor', 'scoreSelection',
  135. 'script', 'scriptInstanceList', 'scriptNum', 'scriptsEnabled',
  136. 'scriptText', 'scriptType', 'scrollByLine', 'scrollByPage',
  137. 'scrollTop', 'searchCurrentFolder', 'searchPath', 'searchPaths',
  138. 'selection', 'selEnd', 'selStart', 'sendAllSprites', 'sendSprite',
  139. 'serialNumber', 'setaProp', 'setAt', 'setPref', 'setProp',
  140. 'setTrackEnabled', 'shapeType', 'shiftDown', 'short',
  141. 'showGlobals', 'showLocals', 'showResFile', 'showXlib',
  142. 'shutDown', 'sin', 'size', 'skew', 'sort', 'sound', 'soundBusy',
  143. 'soundDevice', 'soundDeviceList', 'soundEnabled',
  144. 'soundKeepDevice', 'soundLevel', 'sourceRect', 'SPACE', 'sprite',
  145. 'spriteNum', 'sqrt', 'stage', 'stageBottom', 'stageColor',
  146. 'stageLeft', 'stageRight', 'stageTop', 'startFrame', 'startMovie',
  147. 'startTime', 'startTimer', 'stepFrame', 'stillDown', 'stop',
  148. 'stopEvent', 'stopMovie', 'stopTime', 'string', 'stringP',
  149. 'switchColorDepth', 'symbol', 'symbolP', 'systemDate', 'TAB',
  150. 'tan', 'text', 'thumbnail', 'ticks', 'time', 'timeOut',
  151. 'timeoutKeyDown', 'timeoutLapsed', 'timeoutLength',
  152. 'timeoutMouse', 'timeoutPlay', 'timeoutScript', 'timer',
  153. 'timeScale', 'title', 'titleVisible', 'top', 'trace', 'traceLoad',
  154. 'traceLogFile', 'trackCount', 'trackEnabled', 'trackNextKeyTime',
  155. 'trackNextSampleTime', 'trackPreviousKeyTime',
  156. 'trackPreviousSampleTime', 'trackStartTime', 'trackStopTime',
  157. 'trackText', 'trails', 'transitionType', 'tweened', 'type',
  158. 'union', 'unLoad', 'unLoadMember', 'unloadMovie', 'updateFrame',
  159. 'updateLock', 'updateMovieEnabled', 'updateStage', 'useAlpha',
  160. 'userName', 'value', 'version', 'video', 'videoForWindowsPresent',
  161. 'visible', 'VOID', 'voidP', 'volume', 'width', 'window',
  162. 'windowList', 'windowPresent', 'windowType', 'word', 'wordWrap',
  163. 'xtra', 'xtraList', 'xtras', 'zoomBox', 'zoomWindow'
  164. )
  165. ),
  166. 'SYMBOLS' => array(
  167. '#'
  168. ),
  169. 'CASE_SENSITIVE' => array(
  170. GESHI_COMMENTS => false,
  171. 1 => false
  172. ),
  173. 'STYLES' => array(
  174. 'KEYWORDS' => array(
  175. 1 => 'color: #0000C3;',
  176. 2 => 'color: #004000;'
  177. ),
  178. 'COMMENTS' => array(
  179. 1 => 'color: #BA0000;'
  180. ),
  181. 'BRACKETS' => array(
  182. 0 => 'color: #000000;'
  183. ),
  184. 'STRINGS' => array(
  185. 0 => 'color: #404040;'
  186. ),
  187. 'NUMBERS' => array(
  188. 0 => 'color: #404040;'
  189. ),
  190. 'METHODS' => array(
  191. 1 => 'color: #000000;'
  192. ),
  193. 'SYMBOLS' => array(
  194. 0 => 'color: #004000;'
  195. ),
  196. 'ESCAPE_CHAR' => array(
  197. 0 => 'color: #000000;'
  198. ),
  199. 'SCRIPT' => array(
  200. ),
  201. 'REGEXPS' => array(
  202. )
  203. ),
  204. 'OOLANG' => true,
  205. 'OBJECT_SPLITTERS' => array(
  206. 1 => '.'
  207. ),
  208. 'REGEXPS' => array(
  209. ),
  210. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  211. 'SCRIPT_DELIMITERS' => array(
  212. ),
  213. 'HIGHLIGHT_STRICT_BLOCK' => array(
  214. )
  215. );

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.