No changes

This commit is contained in:
Frank Harris 2025-09-11 13:29:15 -04:00
parent 8680a02b13
commit b6b398f5bf
17374 changed files with 2475441 additions and 0 deletions

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,136 @@
<?php
/*************************************************************************************
* abap.php
* --------
* Author: Andres Picazo (andres@andrespicazo.com)
* Copyright: (c) 2007 Andres Picazo
* Release Version: 1.0.7.21
* Date Started: 2004/06/04
*
* ABAP language file for GeSHi.
*
* CHANGES
* -------
* 2007/06/27 (1.0.0)
* - First Release
*
* TODO
* ----
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'ABAP',
'COMMENT_SINGLE' => array(1 => '"', 2 => '*'),
'CASE_KEYWORDS' => 0,
'QUOTEMARKS' => array("'"),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
'if', 'return', 'while', 'case', 'default',
'do', 'else', 'for', 'endif', 'elseif', 'eq',
'not', 'and'
),
2 => array(
'data', 'types', 'seletion-screen', 'parameters', 'field-symbols', 'extern', 'inline'
),
3 => array(
'report', 'write', 'append', 'select', 'endselect', 'call method', 'call function',
'loop', 'endloop', 'raise', 'read table', 'concatenate', 'split', 'shift',
'condense', 'describe', 'clear', 'endfunction', 'assign', 'create data', 'translate',
'continue', 'start-of-selection', 'at selection-screen', 'modify', 'call screen',
'create object', 'perform', 'form', 'endform',
'reuse_alv_block_list_init', 'zbcialv', 'include'
),
4 => array(
'type ref to', 'type', 'begin of', 'end of', 'like', 'into',
'from', 'where', 'order by', 'with key', 'into', 'string', 'separated by',
'exporting', 'importing', 'to upper case', 'to', 'exceptions', 'tables',
'using', 'changing'
),
),
'SYMBOLS' => array(
'(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => false,
2 => false,
3 => false,
4 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #000066;',
4 => 'color: #993333;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
2 => 'color: #339933;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
1 => 'color: #202020;',
2 => 'color: #202020;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => 'http://sap4.com/wiki/index.php?title={FNAME}',
4 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.',
2 => '::'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,197 @@
<?php
/*************************************************************************************
* actionscript.php
* ----------------
* Author: Steffen Krause (Steffen.krause@muse.de)
* Copyright: (c) 2004 Steffen Krause, Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.7.21
* Date Started: 2004/06/20
*
* Actionscript language file for GeSHi.
*
* CHANGES
* -------
* 2004/11/27 (1.0.1)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'ActionScript',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'#include', 'for', 'foreach', 'if', 'elseif', 'else', 'while', 'do', 'dowhile',
'endwhile', 'endif', 'switch', 'case', 'endswitch', 'return', 'break', 'continue', 'in'
),
2 => array(
'null', 'false', 'true', 'var',
'default', 'function', 'class',
'new', '_global'
),
3 => array(
'#endinitclip', '#initclip', '__proto__', '_accProps', '_alpha', '_currentframe',
'_droptarget', '_focusrect', '_framesloaded', '_height', '_highquality', '_lockroot',
'_name', '_parent', '_quality', '_root', '_rotation', '_soundbuftime', '_target', '_totalframes',
'_url', '_visible', '_width', '_x', '_xmouse', '_xscale', '_y', '_ymouse', '_yscale', 'abs',
'Accessibility', 'acos', 'activityLevel', 'add', 'addListener', 'addPage', 'addProperty',
'addRequestHeader', 'align', 'allowDomain', 'allowInsecureDomain', 'and', 'appendChild',
'apply', 'Arguments', 'Array', 'asfunction', 'asin', 'atan', 'atan2', 'attachAudio', 'attachMovie',
'attachSound', 'attachVideo', 'attributes', 'autosize', 'avHardwareDisable', 'background',
'backgroundColor', 'BACKSPACE', 'bandwidth', 'beginFill', 'beginGradientFill', 'blockIndent',
'bold', 'Boolean', 'border', 'borderColor', 'bottomScroll', 'bufferLength', 'bufferTime',
'builtInItems', 'bullet', 'Button', 'bytesLoaded', 'bytesTotal', 'call', 'callee', 'caller',
'Camera', 'capabilities', 'CAPSLOCK', 'caption', 'catch', 'ceil', 'charAt', 'charCodeAt',
'childNodes', 'chr', 'clear', 'clearInterval', 'cloneNode', 'close', 'Color', 'concat',
'connect', 'condenseWhite', 'constructor', 'contentType', 'ContextMenu', 'ContextMenuItem',
'CONTROL', 'copy', 'cos', 'createElement', 'createEmptyMovieClip', 'createTextField',
'createTextNode', 'currentFps', 'curveTo', 'CustomActions', 'customItems', 'data', 'Date',
'deblocking', 'delete', 'DELETEKEY', 'docTypeDecl', 'domain', 'DOWN',
'duplicateMovieClip', 'duration', 'dynamic', 'E', 'embedFonts', 'enabled',
'END', 'endFill', 'ENTER', 'eq', 'Error', 'ESCAPE(Konstante)', 'escape(Funktion)', 'eval',
'exactSettings', 'exp', 'extends', 'finally', 'findText', 'firstChild', 'floor',
'flush', 'focusEnabled', 'font', 'fps', 'fromCharCode', 'fscommand',
'gain', 'ge', 'get', 'getAscii', 'getBeginIndex', 'getBounds', 'getBytesLoaded', 'getBytesTotal',
'getCaretIndex', 'getCode', 'getCount', 'getDate', 'getDay', 'getDepth', 'getEndIndex', 'getFocus',
'getFontList', 'getFullYear', 'getHours', 'getInstanceAtDepth', 'getLocal', 'getMilliseconds',
'getMinutes', 'getMonth', 'getNewTextFormat', 'getNextHighestDepth', 'getPan', 'getProgress',
'getProperty', 'getRGB', 'getSeconds', 'getSelected', 'getSelectedText', 'getSize', 'getStyle',
'getStyleNames', 'getSWFVersion', 'getText', 'getTextExtent', 'getTextFormat', 'getTextSnapshot',
'getTime', 'getTimer', 'getTimezoneOffset', 'getTransform', 'getURL', 'getUTCDate', 'getUTCDay',
'getUTCFullYear', 'getUTCHours', 'getUTCMilliseconds', 'getUTCMinutes', 'getUTCMonth', 'getUTCSeconds',
'getVersion', 'getVolume', 'getYear', 'globalToLocal', 'goto', 'gotoAndPlay', 'gotoAndStop',
'hasAccessibility', 'hasAudio', 'hasAudioEncoder', 'hasChildNodes', 'hasEmbeddedVideo', 'hasMP3',
'hasPrinting', 'hasScreenBroadcast', 'hasScreenPlayback', 'hasStreamingAudio', 'hasStreamingVideo',
'hasVideoEncoder', 'height', 'hide', 'hideBuiltInItems', 'hitArea', 'hitTest', 'hitTestTextNearPos',
'HOME', 'hscroll', 'html', 'htmlText', 'ID3', 'ifFrameLoaded', 'ignoreWhite', 'implements',
'import', 'indent', 'index', 'indexOf', 'Infinity', '-Infinity', 'INSERT', 'insertBefore', 'install',
'instanceof', 'int', 'interface', 'isActive', 'isDebugger', 'isDown', 'isFinite', 'isNaN', 'isToggled',
'italic', 'join', 'Key', 'language', 'lastChild', 'lastIndexOf', 'le', 'leading', 'LEFT', 'leftMargin',
'length', 'level', 'lineStyle', 'lineTo', 'list', 'LN10', 'LN2', 'load', 'loadClip', 'loaded', 'loadMovie',
'loadMovieNum', 'loadSound', 'loadVariables', 'loadVariablesNum', 'LoadVars', 'LocalConnection',
'localFileReadDisable', 'localToGlobal', 'log', 'LOG10E', 'LOG2E', 'manufacturer', 'Math', 'max',
'MAX_VALUE', 'maxChars', 'maxhscroll', 'maxscroll', 'mbchr', 'mblength', 'mbord', 'mbsubstring', 'menu',
'message', 'Microphone', 'min', 'MIN_VALUE', 'MMExecute', 'motionLevel', 'motionTimeOut', 'Mouse',
'mouseWheelEnabled', 'moveTo', 'Movieclip', 'MovieClipLoader', 'multiline', 'muted', 'name', 'names', 'NaN',
'ne', 'NEGATIVE_INFINITY', 'NetConnection', 'NetStream', 'newline', 'nextFrame',
'nextScene', 'nextSibling', 'nodeName', 'nodeType', 'nodeValue', 'not', 'Number', 'Object',
'on', 'onActivity', 'onChanged', 'onClipEvent', 'onClose', 'onConnect', 'onData', 'onDragOut',
'onDragOver', 'onEnterFrame', 'onID3', 'onKeyDown', 'onKeyUp', 'onKillFocus', 'onLoad', 'onLoadComplete',
'onLoadError', 'onLoadInit', 'onLoadProgress', 'onLoadStart', 'onMouseDown', 'onMouseMove', 'onMouseUp',
'onMouseWheel', 'onPress', 'onRelease', 'onReleaseOutside', 'onResize', 'onRollOut', 'onRollOver',
'onScroller', 'onSelect', 'onSetFocus', 'onSoundComplete', 'onStatus', 'onUnload', 'onUpdate', 'onXML',
'or(logischesOR)', 'ord', 'os', 'parentNode', 'parseCSS', 'parseFloat', 'parseInt', 'parseXML', 'password',
'pause', 'PGDN', 'PGUP', 'PI', 'pixelAspectRatio', 'play', 'playerType', 'pop', 'position',
'POSITIVE_INFINITY', 'pow', 'prevFrame', 'previousSibling', 'prevScene', 'print', 'printAsBitmap',
'printAsBitmapNum', 'PrintJob', 'printNum', 'private', 'prototype', 'public', 'push', 'quality',
'random', 'rate', 'registerClass', 'removeListener', 'removeMovieClip', 'removeNode', 'removeTextField',
'replaceSel', 'replaceText', 'resolutionX', 'resolutionY', 'restrict', 'reverse', 'RIGHT',
'rightMargin', 'round', 'scaleMode', 'screenColor', 'screenDPI', 'screenResolutionX', 'screenResolutionY',
'scroll', 'seek', 'selectable', 'Selection', 'send', 'sendAndLoad', 'separatorBefore', 'serverString',
'set', 'setvariable', 'setBufferTime', 'setClipboard', 'setDate', 'setFocus', 'setFullYear', 'setGain',
'setHours', 'setInterval', 'setMask', 'setMilliseconds', 'setMinutes', 'setMode', 'setMonth',
'setMotionLevel', 'setNewTextFormat', 'setPan', 'setProperty', 'setQuality', 'setRate', 'setRGB',
'setSeconds', 'setSelectColor', 'setSelected', 'setSelection', 'setSilenceLevel', 'setStyle',
'setTextFormat', 'setTime', 'setTransform', 'setUseEchoSuppression', 'setUTCDate', 'setUTCFullYear',
'setUTCHours', 'setUTCMilliseconds', 'setUTCMinutes', 'setUTCMonth', 'setUTCSeconds', 'setVolume',
'setYear', 'SharedObject', 'SHIFT(Konstante)', 'shift(Methode)', 'show', 'showMenu', 'showSettings',
'silenceLevel', 'silenceTimeout', 'sin', 'size', 'slice', 'smoothing', 'sort', 'sortOn', 'Sound', 'SPACE',
'splice', 'split', 'sqrt', 'SQRT1_2', 'SQRT2', 'Stage', 'start', 'startDrag', 'static', 'status', 'stop',
'stopAllSounds', 'stopDrag', 'String', 'StyleSheet(Klasse)', 'styleSheet(Eigenschaft)', 'substr',
'substring', 'super', 'swapDepths', 'System', 'TAB', 'tabChildren', 'tabEnabled', 'tabIndex',
'tabStops', 'tan', 'target', 'targetPath', 'tellTarget', 'text', 'textColor', 'TextField', 'TextFormat',
'textHeight', 'TextSnapshot', 'textWidth', 'this', 'throw', 'time', 'toggleHighQuality', 'toLowerCase',
'toString', 'toUpperCase', 'trace', 'trackAsMenu', 'try', 'type', 'typeof', 'undefined',
'underline', 'unescape', 'uninstall', 'unloadClip', 'unloadMovie', 'unLoadMovieNum', 'unshift', 'unwatch',
'UP', 'updateAfterEvent', 'updateProperties', 'url', 'useCodePage', 'useEchoSuppression', 'useHandCursor',
'UTC', 'valueOf', 'variable', 'version', 'Video', 'visible', 'void', 'watch', 'width',
'with', 'wordwrap', 'XML', 'xmlDecl', 'XMLNode', 'XMLSocket'
)
),
'SYMBOLS' => array(
'(', ')', '[', ']', '{', '}', '!', '@', '%', '&', '*', '|', '/', '<', '>'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #0066CC;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
2 => 'color: #808080; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
1 => 'color: #006600;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(),
'HIGHLIGHT_STRICT_BLOCK' => array()
);
?>

View file

@ -0,0 +1,467 @@
<?php
/*************************************************************************************
* actionscript3.php
* ----------------
* Author: Jordi Boggiano (j.boggiano@seld.be)
* Copyright: (c) 2007 Jordi Boggiano (http://www.seld.be/), Benny Baumann (http://qbnz.com/highlighter)
* Release Version: 1.0.8.2
* Date Started: 2007/11/26
*
* ActionScript3 language file for GeSHi.
*
* All keywords scraped from the Flex 2.0.1 Documentation
*
* The default style is based on FlexBuilder2 coloring, with the addition of class, package, method and
* constant names that are highlighted to help identifying problem when used on public pastebins.
*
* For styling, keywords data from 0 to 1 (accessible through .kw1, etc.) are described here :
*
* 1 : operators
* 2 : 'var' keyword
* 3 : 'function' keyword
* 4 : 'class' and 'package' keywords
* 5 : all flash.* class names plus Top Level classes, mx are excluded
* 6 : all flash.* package names, mx are excluded
* 7 : valid flash method names and properties (there is no type checks sadly, for example String().x will be highlighted as 'x' is valid, but obviously strings don't have a x property)
* 8 : valid flash constant names (again, no type check)
*
*
* CHANGES
* -------
* 2007/12/06 (1.0.7.22)
* - Added the 'this' keyword (oops)
*
* TODO (updated 2007/11/30)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'ActionScript 3',
'COMMENT_SINGLE' => array(1 => '//'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'with', 'while', 'void', 'undefined', 'typeof', 'try', 'true',
'throw', 'this', 'switch', 'super', 'set', 'return', 'public', 'protected',
'private', 'null', 'new', 'is', 'internal', 'instanceof', 'in',
'import', 'if', 'get', 'for', 'false', 'else', 'each', 'do',
'delete', 'default', 'continue', 'catch', 'case', 'break', 'as'
),
2 => array(
'var'
),
3 => array(
'function'
),
4 => array(
'class', 'package'
),
6 => array(
'flash.xml', 'flash.utils', 'flash.ui', 'flash.text',
'flash.system', 'flash.profiler', 'flash.printing', 'flash.net',
'flash.media', 'flash.geom', 'flash.filters', 'flash.external',
'flash.events', 'flash.errors', 'flash.display',
'flash.accessibility'
),
7 => array(
'zoom', 'year', 'y', 'xmlDecl', 'x', 'writeUnsignedInt',
'writeUTFBytes', 'writeUTF', 'writeShort', 'writeObject',
'writeMultiByte', 'writeInt', 'writeFloat', 'writeExternal',
'writeDynamicProperty', 'writeDynamicProperties', 'writeDouble',
'writeBytes', 'writeByte', 'writeBoolean', 'wordWrap',
'willTrigger', 'width', 'volume', 'visible', 'videoWidth',
'videoHeight', 'version', 'valueOf', 'value', 'usingTLS',
'useRichTextClipboard', 'useHandCursor', 'useEchoSuppression',
'useCodePage', 'url', 'uri', 'uploadCompleteData', 'upload',
'updateProperties', 'updateAfterEvent', 'upState', 'unshift',
'unlock', 'unload', 'union', 'unescapeMultiByte', 'unescape',
'underline', 'uncompress', 'type', 'ty', 'tx', 'transparent',
'translate', 'transformPoint', 'transform', 'trackAsMenu', 'track',
'trace', 'totalMemory', 'totalFrames', 'topLeft', 'top',
'togglePause', 'toXMLString', 'toUpperCase', 'toUTCString',
'toTimeString', 'toString', 'toPrecision', 'toLowerCase',
'toLocaleUpperCase', 'toLocaleTimeString', 'toLocaleString',
'toLocaleLowerCase', 'toLocaleDateString', 'toFixed',
'toExponential', 'toDateString', 'timezoneOffset', 'timerComplete',
'timer', 'time', 'threshold', 'thickness', 'textWidth',
'textSnapshot', 'textInput', 'textHeight', 'textColor', 'text',
'test', 'target', 'tan', 'tabStops', 'tabIndexChange', 'tabIndex',
'tabEnabledChange', 'tabEnabled', 'tabChildrenChange',
'tabChildren', 'sync', 'swfVersion', 'swapChildrenAt',
'swapChildren', 'subtract', 'substring', 'substr', 'styleSheet',
'styleNames', 'strength', 'stopPropagation',
'stopImmediatePropagation', 'stopDrag', 'stopAll', 'stop', 'status',
'startDrag', 'start', 'stageY', 'stageX', 'stageWidth',
'stageHeight', 'stageFocusRect', 'stage', 'sqrt', 'split', 'splice',
'source', 'soundTransform', 'soundComplete', 'sortOn', 'sort',
'songName', 'some', 'socketData', 'smoothing', 'slice', 'size',
'sin', 'silent', 'silenceTimeout', 'silenceLevel', 'showSettings',
'showRedrawRegions', 'showDefaultContextMenu', 'show', 'shortcut',
'shiftKey', 'shift', 'sharpness', 'sharedEvents', 'shadowColor',
'shadowAlpha', 'settings', 'setUseEchoSuppression', 'setUTCSeconds',
'setUTCMonth', 'setUTCMinutes', 'setUTCMilliseconds', 'setUTCHours',
'setUTCFullYear', 'setUTCDate', 'setTimeout', 'setTime',
'setTextFormat', 'setStyle', 'setSilenceLevel', 'setSettings',
'setSelection', 'setSelected', 'setSelectColor', 'setSeconds',
'setQuality', 'setPropertyIsEnumerable', 'setProperty', 'setPixels',
'setPixel32', 'setPixel', 'setNamespace', 'setName',
'setMotionLevel', 'setMonth', 'setMode', 'setMinutes',
'setMilliseconds', 'setLoopback', 'setLoopBack', 'setLocalName',
'setKeyFrameInterval', 'setInterval', 'setHours', 'setFullYear',
'setEmpty', 'setDirty', 'setDate', 'setCompositionString',
'setClipboard', 'setChildren', 'setChildIndex',
'setAdvancedAntiAliasingTable', 'serverString', 'separatorBefore',
'sendToURL', 'send', 'selectionEndIndex', 'selectionBeginIndex',
'selectable', 'select', 'seek', 'securityError', 'securityDomain',
'secondsUTC', 'seconds', 'search', 'scrollV', 'scrollRect',
'scrollH', 'scroll', 'screenResolutionY', 'screenResolutionX',
'screenDPI', 'screenColor', 'scenes', 'scaleY', 'scaleX',
'scaleMode', 'scale9Grid', 'scale', 'save', 'sandboxType',
'sameDomain', 'running', 'round', 'rotation', 'rotate', 'root',
'rollOver', 'rollOut', 'rightToRight', 'rightToLeft', 'rightPeak',
'rightMargin', 'right', 'rewind', 'reverse', 'resume', 'restrict',
'resize', 'reset', 'requestHeaders', 'replaceText',
'replaceSelectedText', 'replace', 'repeatCount', 'render',
'removedFromStage', 'removed', 'removeNode', 'removeNamespace',
'removeEventListener', 'removeChildAt', 'removeChild',
'relatedObject', 'registerFont', 'registerClassAlias', 'redOffset',
'redMultiplier', 'rect', 'receiveVideo', 'receiveAudio',
'readUnsignedShort', 'readUnsignedInt', 'readUnsignedByte',
'readUTFBytes', 'readUTF', 'readShort', 'readObject',
'readMultiByte', 'readInt', 'readFloat', 'readExternal',
'readDouble', 'readBytes', 'readByte', 'readBoolean', 'ratios',
'rate', 'random', 'quality', 'push', 'publish', 'proxyType',
'prototype', 'propertyIsEnumerable', 'progress',
'processingInstructions', 'printAsBitmap', 'print',
'previousSibling', 'preventDefault', 'prevScene', 'prevFrame',
'prettyPrinting', 'prettyIndent', 'preserveAlpha', 'prependChild',
'prefix', 'pow', 'position', 'pop', 'polar', 'playerType', 'play',
'pixelSnapping', 'pixelDissolve', 'pixelBounds', 'pixelAspectRatio',
'perlinNoise', 'pause', 'parseXML', 'parseInt', 'parseFloat',
'parseCSS', 'parse', 'parentNode', 'parentDomain',
'parentAllowsChild', 'parent', 'parameters', 'paperWidth',
'paperHeight', 'pan', 'paletteMap', 'pageWidth', 'pageHeight',
'overState', 'outsideCutoff', 'os', 'orientation', 'open',
'opaqueBackground', 'onPlayStatus', 'onMetaData', 'onCuePoint',
'offsetPoint', 'offset', 'objectID', 'objectEncoding', 'numLock',
'numLines', 'numFrames', 'numChildren', 'normalize', 'noise',
'nodeValue', 'nodeType', 'nodeName', 'nodeKind', 'noAutoLabeling',
'nextValue', 'nextSibling', 'nextScene', 'nextNameIndex',
'nextName', 'nextFrame', 'netStatus', 'navigateToURL',
'namespaceURI', 'namespaceDeclarations', 'namespace', 'names',
'name', 'muted', 'multiline', 'moveTo', 'mouseY', 'mouseX',
'mouseWheelEnabled', 'mouseWheel', 'mouseUp', 'mouseTarget',
'mouseOver', 'mouseOut', 'mouseMove', 'mouseLeave',
'mouseFocusChange', 'mouseEnabled', 'mouseDown', 'mouseChildren',
'motionTimeout', 'motionLevel', 'monthUTC', 'month',
'modificationDate', 'mode', 'minutesUTC', 'minutes', 'min',
'millisecondsUTC', 'milliseconds', 'method', 'message', 'merge',
'menuSelect', 'menuItemSelect', 'maxScrollV', 'maxScrollH',
'maxLevel', 'maxChars', 'max', 'matrixY', 'matrixX', 'matrix',
'match', 'mask', 'mapPoint', 'mapBitmap', 'map', 'manufacturer',
'macType', 'loopback', 'loop', 'log', 'lock', 'localeCompare',
'localY', 'localX', 'localToGlobal', 'localName',
'localFileReadDisable', 'loaderURL', 'loaderInfo', 'loader',
'loadPolicyFile', 'loadBytes', 'load', 'liveDelay', 'link',
'lineTo', 'lineStyle', 'lineGradientStyle', 'level',
'letterSpacing', 'length', 'leftToRight', 'leftToLeft', 'leftPeak',
'leftMargin', 'left', 'leading', 'lastIndexOf', 'lastIndex',
'lastChild', 'language', 'labels', 'knockout', 'keyUp',
'keyLocation', 'keyFrameInterval', 'keyFocusChange', 'keyDown',
'keyCode', 'kerning', 'join', 'italic', 'isXMLName',
'isPrototypeOf', 'isNaN', 'isFocusInaccessible', 'isFinite',
'isEmpty', 'isDefaultPrevented', 'isDebugger', 'isBuffering',
'isAttribute', 'isAccessible', 'ioError', 'invert', 'invalidate',
'intersects', 'intersection', 'interpolate', 'insideCutoff',
'insertChildBefore', 'insertChildAfter', 'insertBefore', 'inner',
'init', 'info', 'inflatePoint', 'inflate', 'indexOf', 'index',
'indent', 'inScopeNamespaces', 'imeComposition', 'ime',
'ignoreWhitespace', 'ignoreWhite', 'ignoreProcessingInstructions',
'ignoreComments', 'ignoreCase', 'identity', 'idMap', 'id3',
'httpStatus', 'htmlText', 'hoursUTC', 'hours', 'hitTestTextNearPos',
'hitTestState', 'hitTestPoint', 'hitTestObject', 'hitTest',
'hitArea', 'highlightColor', 'highlightAlpha', 'hideObject',
'hideBuiltInItems', 'hide', 'height', 'hasVideoEncoder', 'hasTLS',
'hasStreamingVideo', 'hasStreamingAudio', 'hasSimpleContent',
'hasScreenPlayback', 'hasScreenBroadcast', 'hasProperty',
'hasPrinting', 'hasOwnProperty', 'hasMP3', 'hasIME', 'hasGlyphs',
'hasEventListener', 'hasEmbeddedVideo', 'hasDefinition',
'hasComplexContent', 'hasChildNodes', 'hasAudioEncoder', 'hasAudio',
'hasAccessibility', 'gridFitType', 'greenOffset', 'greenMultiplier',
'graphics', 'gotoAndStop', 'gotoAndPlay', 'globalToLocal', 'global',
'getUTCSeconds', 'getUTCMonth', 'getUTCMinutes',
'getUTCMilliseconds', 'getUTCHours', 'getUTCFullYear', 'getUTCDay',
'getUTCDate', 'getTimezoneOffset', 'getTimer', 'getTime',
'getTextRunInfo', 'getTextFormat', 'getText', 'getStyle',
'getStackTrace', 'getSelectedText', 'getSelected', 'getSeconds',
'getRemote', 'getRect', 'getQualifiedSuperclassName',
'getQualifiedClassName', 'getProperty', 'getPrefixForNamespace',
'getPixels', 'getPixel32', 'getPixel', 'getParagraphLength',
'getObjectsUnderPoint', 'getNamespaceForPrefix', 'getMonth',
'getMinutes', 'getMilliseconds', 'getMicrophone', 'getLocal',
'getLineText', 'getLineOffset', 'getLineMetrics', 'getLineLength',
'getLineIndexOfChar', 'getLineIndexAtPoint', 'getImageReference',
'getHours', 'getFullYear', 'getFirstCharInParagraph',
'getDescendants', 'getDefinitionByName', 'getDefinition', 'getDay',
'getDate', 'getColorBoundsRect', 'getClassByAlias', 'getChildIndex',
'getChildByName', 'getChildAt', 'getCharIndexAtPoint',
'getCharBoundaries', 'getCamera', 'getBounds', 'genre',
'generateFilterRect', 'gain', 'fullYearUTC', 'fullYear',
'fullScreen', 'fscommand', 'fromCharCode', 'framesLoaded',
'frameRate', 'frame', 'fps', 'forwardAndBack', 'formatToString',
'forceSimple', 'forEach', 'fontType', 'fontStyle', 'fontSize',
'fontName', 'font', 'focusRect', 'focusOut', 'focusIn', 'focus',
'flush', 'floor', 'floodFill', 'firstChild', 'findText', 'filters',
'filter', 'fillRect', 'fileList', 'extension', 'extended', 'exp',
'exec', 'exactSettings', 'every', 'eventPhase', 'escapeMultiByte',
'escape', 'errorID', 'error', 'equals', 'enumerateFonts',
'enterFrame', 'endian', 'endFill', 'encodeURIComponent',
'encodeURI', 'enabled', 'embedFonts', 'elements',
'dynamicPropertyWriter', 'dropTarget', 'drawRoundRect', 'drawRect',
'drawEllipse', 'drawCircle', 'draw', 'download', 'downState',
'doubleClickEnabled', 'doubleClick', 'dotall', 'domain',
'docTypeDecl', 'doConversion', 'divisor', 'distance', 'dispose',
'displayState', 'displayMode', 'displayAsPassword', 'dispatchEvent',
'description', 'describeType', 'descent', 'descendants',
'deltaTransformPoint', 'delta', 'deleteProperty', 'delay',
'defaultTextFormat', 'defaultSettings', 'defaultObjectEncoding',
'decodeURIComponent', 'decodeURI', 'decode', 'deblocking',
'deactivate', 'dayUTC', 'day', 'dateUTC', 'date', 'dataFormat',
'data', 'd', 'customItems', 'curveTo', 'currentTarget',
'currentScene', 'currentLabels', 'currentLabel', 'currentFrame',
'currentFPS', 'currentDomain', 'currentCount', 'ctrlKey', 'creator',
'creationDate', 'createTextNode', 'createGradientBox',
'createElement', 'createBox', 'cos', 'copyPixels', 'copyChannel',
'copy', 'conversionMode', 'contextMenuOwner', 'contextMenu',
'contentType', 'contentLoaderInfo', 'content', 'containsRect',
'containsPoint', 'contains', 'constructor', 'connectedProxyType',
'connected', 'connect', 'condenseWhite', 'concatenatedMatrix',
'concatenatedColorTransform', 'concat', 'computeSpectrum',
'compress', 'componentY', 'componentX', 'complete', 'compare',
'comments', 'comment', 'colors', 'colorTransform', 'color', 'code',
'close', 'cloneNode', 'clone', 'client', 'click', 'clearTimeout',
'clearInterval', 'clear', 'clamp', 'children', 'childNodes',
'childIndex', 'childAllowsParent', 'child', 'checkPolicyFile',
'charCount', 'charCodeAt', 'charCode', 'charAt', 'changeList',
'change', 'ceil', 'caretIndex', 'caption', 'capsLock', 'cancelable',
'cancel', 'callee', 'callProperty', 'call', 'cacheAsBitmap', 'c',
'bytesTotal', 'bytesLoaded', 'bytesAvailable', 'buttonMode',
'buttonDown', 'bullet', 'builtInItems', 'bufferTime',
'bufferLength', 'bubbles', 'browse', 'bottomScrollV', 'bottomRight',
'bottom', 'borderColor', 'border', 'bold', 'blurY', 'blurX',
'blueOffset', 'blueMultiplier', 'blockIndent', 'blendMode',
'bitmapData', 'bias', 'beginGradientFill', 'beginFill',
'beginBitmapFill', 'bandwidth', 'backgroundColor', 'background',
'b', 'available', 'avHardwareDisable', 'autoSize', 'attributes',
'attribute', 'attachNetStream', 'attachCamera', 'attachAudio',
'atan2', 'atan', 'asyncError', 'asin', 'ascent', 'artist',
'areSoundsInaccessible', 'areInaccessibleObjectsUnderPoint',
'applyFilter', 'apply', 'applicationDomain', 'appendText',
'appendChild', 'antiAliasType', 'angle', 'alwaysShowSelection',
'altKey', 'alphas', 'alphaOffset', 'alphaMultiplier', 'alpha',
'allowInsecureDomain', 'allowDomain', 'align', 'album',
'addedToStage', 'added', 'addPage', 'addNamespace', 'addHeader',
'addEventListener', 'addChildAt', 'addChild', 'addCallback', 'add',
'activityLevel', 'activity', 'active', 'activating', 'activate',
'actionScriptVersion', 'acos', 'accessibilityProperties', 'abs'
),
8 => array(
'WRAP', 'VERTICAL', 'VARIABLES',
'UTC', 'UPLOAD_COMPLETE_DATA', 'UP', 'UNLOAD', 'UNKNOWN',
'UNIQUESORT', 'TOP_RIGHT', 'TOP_LEFT', 'TOP', 'TIMER_COMPLETE',
'TIMER', 'TEXT_NODE', 'TEXT_INPUT', 'TEXT', 'TAB_INDEX_CHANGE',
'TAB_ENABLED_CHANGE', 'TAB_CHILDREN_CHANGE', 'TAB', 'SYNC',
'SUBTRACT', 'SUBPIXEL', 'STATUS', 'STANDARD', 'SQUARE', 'SQRT2',
'SQRT1_2', 'SPACE', 'SOUND_COMPLETE', 'SOCKET_DATA', 'SHOW_ALL',
'SHIFT', 'SETTINGS_MANAGER', 'SELECT', 'SECURITY_ERROR', 'SCROLL',
'SCREEN', 'ROUND', 'ROLL_OVER', 'ROLL_OUT', 'RIGHT', 'RGB',
'RETURNINDEXEDARRAY', 'RESIZE', 'REPEAT', 'RENDER',
'REMOVED_FROM_STAGE', 'REMOVED', 'REMOTE', 'REGULAR', 'REFLECT',
'RED', 'RADIAL', 'PROGRESS', 'PRIVACY', 'POST', 'POSITIVE_INFINITY',
'PORTRAIT', 'PIXEL', 'PI', 'PENDING', 'PAGE_UP', 'PAGE_DOWN', 'PAD',
'OVERLAY', 'OUTER', 'OPEN', 'NaN', 'NUM_PAD', 'NUMPAD_SUBTRACT',
'NUMPAD_MULTIPLY', 'NUMPAD_ENTER', 'NUMPAD_DIVIDE',
'NUMPAD_DECIMAL', 'NUMPAD_ADD', 'NUMPAD_9', 'NUMPAD_8', 'NUMPAD_7',
'NUMPAD_6', 'NUMPAD_5', 'NUMPAD_4', 'NUMPAD_3', 'NUMPAD_2',
'NUMPAD_1', 'NUMPAD_0', 'NUMERIC', 'NO_SCALE', 'NO_BORDER',
'NORMAL', 'NONE', 'NEVER', 'NET_STATUS', 'NEGATIVE_INFINITY',
'MULTIPLY', 'MOUSE_WHEEL', 'MOUSE_UP', 'MOUSE_OVER', 'MOUSE_OUT',
'MOUSE_MOVE', 'MOUSE_LEAVE', 'MOUSE_FOCUS_CHANGE', 'MOUSE_DOWN',
'MITER', 'MIN_VALUE', 'MICROPHONE', 'MENU_SELECT',
'MENU_ITEM_SELECT', 'MEDIUM', 'MAX_VALUE', 'LOW', 'LOG2E', 'LOG10E',
'LOCAL_WITH_NETWORK', 'LOCAL_WITH_FILE', 'LOCAL_TRUSTED',
'LOCAL_STORAGE', 'LN2', 'LN10', 'LITTLE_ENDIAN', 'LINK',
'LINEAR_RGB', 'LINEAR', 'LIGHT_COLOR', 'LIGHTEN', 'LEFT', 'LCD',
'LAYER', 'LANDSCAPE', 'KOREAN', 'KEY_UP', 'KEY_FOCUS_CHANGE',
'KEY_DOWN', 'JUSTIFY', 'JAPANESE_KATAKANA_HALF',
'JAPANESE_KATAKANA_FULL', 'JAPANESE_HIRAGANA', 'Infinity', 'ITALIC',
'IO_ERROR', 'INVERT', 'INSERT', 'INPUT', 'INNER', 'INIT',
'IME_COMPOSITION', 'IGNORE', 'ID3', 'HTTP_STATUS', 'HORIZONTAL',
'HOME', 'HIGH', 'HARDLIGHT', 'GREEN', 'GET', 'FULLSCREEN', 'FULL',
'FOCUS_OUT', 'FOCUS_IN', 'FLUSHED', 'FLASH9', 'FLASH8', 'FLASH7',
'FLASH6', 'FLASH5', 'FLASH4', 'FLASH3', 'FLASH2', 'FLASH1', 'F9',
'F8', 'F7', 'F6', 'F5', 'F4', 'F3', 'F2', 'F15', 'F14', 'F13',
'F12', 'F11', 'F10', 'F1', 'EXACT_FIT', 'ESCAPE', 'ERROR', 'ERASE',
'ENTER_FRAME', 'ENTER', 'END', 'EMBEDDED', 'ELEMENT_NODE', 'E',
'DYNAMIC', 'DOWN', 'DOUBLE_CLICK', 'DIFFERENCE', 'DEVICE',
'DESCENDING', 'DELETE', 'DEFAULT', 'DEACTIVATE', 'DATA',
'DARK_COLOR', 'DARKEN', 'CRT', 'CONTROL', 'CONNECT', 'COMPLETE',
'COLOR', 'CLOSE', 'CLICK', 'CLAMP', 'CHINESE', 'CHANGE', 'CENTER',
'CASEINSENSITIVE', 'CAPTURING_PHASE', 'CAPS_LOCK', 'CANCEL',
'CAMERA', 'BUBBLING_PHASE', 'BOTTOM_RIGHT', 'BOTTOM_LEFT', 'BOTTOM',
'BOLD_ITALIC', 'BOLD', 'BLUE', 'BINARY', 'BIG_ENDIAN', 'BEVEL',
'BEST', 'BACKSPACE', 'AUTO', 'AT_TARGET', 'ASYNC_ERROR', 'AMF3',
'AMF0', 'ALWAYS', 'ALPHANUMERIC_HALF', 'ALPHANUMERIC_FULL', 'ALPHA',
'ADVANCED', 'ADDED_TO_STAGE', 'ADDED', 'ADD', 'ACTIVITY',
'ACTIONSCRIPT3', 'ACTIONSCRIPT2'
),
//FIX: Must be last in order to avoid conflicts with keywords present
//in other keyword groups, that might get highlighted as part of the URL.
//I know this is not a proper work-around, but should do just fine.
5 => array(
'uint', 'int', 'arguments', 'XMLSocket', 'XMLNodeType', 'XMLNode',
'XMLList', 'XMLDocument', 'XML', 'Video', 'VerifyError',
'URLVariables', 'URLStream', 'URLRequestMethod', 'URLRequestHeader',
'URLRequest', 'URLLoaderDataFormat', 'URLLoader', 'URIError',
'TypeError', 'Transform', 'TimerEvent', 'Timer', 'TextSnapshot',
'TextRenderer', 'TextLineMetrics', 'TextFormatAlign', 'TextFormat',
'TextFieldType', 'TextFieldAutoSize', 'TextField', 'TextEvent',
'TextDisplayMode', 'TextColorType', 'System', 'SyntaxError',
'SyncEvent', 'StyleSheet', 'String', 'StatusEvent', 'StaticText',
'StageScaleMode', 'StageQuality', 'StageAlign', 'Stage',
'StackOverflowError', 'Sprite', 'SpreadMethod', 'SoundTransform',
'SoundMixer', 'SoundLoaderContext', 'SoundChannel', 'Sound',
'Socket', 'SimpleButton', 'SharedObjectFlushStatus', 'SharedObject',
'Shape', 'SecurityPanel', 'SecurityErrorEvent', 'SecurityError',
'SecurityDomain', 'Security', 'ScriptTimeoutError', 'Scene',
'SWFVersion', 'Responder', 'RegExp', 'ReferenceError', 'Rectangle',
'RangeError', 'QName', 'Proxy', 'ProgressEvent',
'PrintJobOrientation', 'PrintJobOptions', 'PrintJob', 'Point',
'PixelSnapping', 'ObjectEncoding', 'Object', 'Number', 'NetStream',
'NetStatusEvent', 'NetConnection', 'Namespace', 'MovieClip',
'MouseEvent', 'Mouse', 'MorphShape', 'Microphone', 'MemoryError',
'Matrix', 'Math', 'LocalConnection', 'LoaderInfo', 'LoaderContext',
'Loader', 'LineScaleMode', 'KeyboardEvent', 'Keyboard',
'KeyLocation', 'JointStyle', 'InvalidSWFError',
'InterpolationMethod', 'InteractiveObject', 'IllegalOperationError',
'IOErrorEvent', 'IOError', 'IMEEvent', 'IMEConversionMode', 'IME',
'IExternalizable', 'IEventDispatcher', 'IDynamicPropertyWriter',
'IDynamicPropertyOutput', 'IDataOutput', 'IDataInput', 'ID3Info',
'IBitmapDrawable', 'HTTPStatusEvent', 'GridFitType', 'Graphics',
'GradientType', 'GradientGlowFilter', 'GradientBevelFilter',
'GlowFilter', 'Function', 'FrameLabel', 'FontType', 'FontStyle',
'Font', 'FocusEvent', 'FileReferenceList', 'FileReference',
'FileFilter', 'ExternalInterface', 'EventPhase', 'EventDispatcher',
'Event', 'EvalError', 'ErrorEvent', 'Error', 'Endian', 'EOFError',
'DropShadowFilter', 'DisplayObjectContainer', 'DisplayObject',
'DisplacementMapFilterMode', 'DisplacementMapFilter', 'Dictionary',
'DefinitionError', 'Date', 'DataEvent', 'ConvolutionFilter',
'ContextMenuItem', 'ContextMenuEvent', 'ContextMenuBuiltInItems',
'ContextMenu', 'ColorTransform', 'ColorMatrixFilter', 'Class',
'CapsStyle', 'Capabilities', 'Camera', 'CSMSettings', 'ByteArray',
'Boolean', 'BlurFilter', 'BlendMode', 'BitmapFilterType',
'BitmapFilterQuality', 'BitmapFilter', 'BitmapDataChannel',
'BitmapData', 'Bitmap', 'BevelFilter', 'AsyncErrorEvent', 'Array',
'ArgumentError', 'ApplicationDomain', 'AntiAliasType',
'ActivityEvent', 'ActionScriptVersion', 'AccessibilityProperties',
'Accessibility', 'AVM1Movie'
)
),
'SYMBOLS' => array(
'(', ')', '[', ']', '{', '}', '!', '%', '&', '*', '|', '/', '<', '>', '^', '-', '+', '~', '?', ':'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
4 => true,
5 => true,
6 => true,
7 => true,
8 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0033ff; font-weight: bold;',
2 => 'color: #6699cc; font-weight: bold;',
3 => 'color: #339966; font-weight: bold;',
4 => 'color: #9900cc; font-weight: bold;',
5 => 'color: #004993;',
6 => 'color: #004993;',
7 => 'color: #004993;',
8 => 'color: #004993;'
),
'COMMENTS' => array(
1 => 'color: #009900;',
'MULTI' => 'color: #3f5fbf;'
),
'ESCAPE_CHAR' => array(
0 => ''
),
'BRACKETS' => array(
0 => 'color: #000000;'
),
'STRINGS' => array(
0 => 'color: #990000;'
),
'NUMBERS' => array(
0 => 'color: #000000; font-weight:bold;'
),
'METHODS' => array(
0 => 'color: #000000;',
),
'SYMBOLS' => array(
0 => 'color: #000000; font-weight: bold;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
5 => 'http://www.google.com/search?q={FNAMEL}%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:{FNAMEL}.html&amp;filter=0&amp;num=100&amp;btnI=lucky',
6 => '',
7 => '',
8 => ''
),
'OOLANG' => false,//Save some time as OO identifiers aren't used
'OBJECT_SPLITTERS' => array(
// commented out because it's not very relevant for AS, as all properties, methods and constants are dot-accessed.
// I believe it's preferable to have package highlighting for example, which is not possible with this enabled.
// 0 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(),
'HIGHLIGHT_STRICT_BLOCK' => array()
);
?>

View file

@ -0,0 +1,133 @@
<?php
/*************************************************************************************
* ada.php
* -------
* Author: Tux (tux@inmail.cz)
* Copyright: (c) 2004 Tux (http://tux.a4.cz/), Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.7.21
* Date Started: 2004/07/29
*
* Ada language file for GeSHi.
* Words are from SciTe configuration file
*
* CHANGES
* -------
* 2004/11/27 (1.0.2)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.1)
* - Removed apostrophe as string delimiter
* - Added URL support
* 2004/08/05 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Ada',
'COMMENT_SINGLE' => array(1 => '--'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'begin', 'declare', 'do', 'else', 'elsif', 'exception', 'for', 'if',
'is', 'loop', 'while', 'then', 'is', 'end', 'select', 'case', 'while', 'until',
'goto', 'return'
),
2 => array(
'abs', 'and', 'mod', 'not', 'or', 'rem', 'xor'
),
3 => array(
'abort', 'abstract', 'accept', 'access', 'aliased', 'all', 'array', 'at', 'body',
'constant', 'delay', 'delta', 'digits', 'entry', 'exit',
'function', 'generic', 'in', 'limited', 'new', 'null', 'of', 'others', 'out', 'package', 'pragma',
'private', 'procedure', 'protected', 'raise', 'range', 'record', 'renames', 'requeue', 'reverse',
'separate', 'subtype', 'tagged', 'task', 'terminate', 'type', 'use', 'when', 'with'
)
),
'SYMBOLS' => array(
'(', ')'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => false,
2 => false,
3 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #00007f;',
2 => 'color: #0000ff;',
3 => 'color: #46aa03; font-weight:bold;',
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'COMMENTS' => array(
1 => 'color: #adadad; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #7f007f;'
),
'NUMBERS' => array(
0 => 'color: #ff0000;'
),
'METHODS' => array(
1 => 'color: #202020;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,171 @@
<?php
/*************************************************************************************
* apache.php
* ----------
* Author: Tux (tux@inmail.cz)
* Copyright: (c) 2004 Tux (http://tux.a4.cz/), Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.7.21
* Date Started: 2004/29/07
*
* Apache language file for GeSHi.
* Words are from SciTe configuration file
*
* CHANGES
* -------
* 2004/11/27 (1.0.2)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.1)
* - Added support for URLs
* 2004/08/05 (1.0.0)
* - First Release
*
* TODO (updated 2004/07/29)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Apache Log',
'COMMENT_SINGLE' => array(1 => '#'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
/*keywords*/
1 => array(
'accessconfig','accessfilename','action','addalt',
'addaltbyencoding','addaltbytype','addcharset',
'adddefaultcharset','adddescription',
'addencoding','addhandler','addicon','addiconbyencoding',
'addiconbytype','addlanguage','addmodule','addmoduleinfo',
'addtype','agentlog','alias','aliasmatch',
'allow','allowconnect','allowoverride','anonymous',
'anonymous_authoritative','anonymous_logemail','anonymous_mustgiveemail',
'anonymous_nouserid','anonymous_verifyemail','authauthoritative',
'authdbauthoritative','authdbgroupfile','authdbmauthoritative',
'authdbmgroupfile','authdbmgroupfile','authdbuserfile','authdbmuserfile',
'authdigestfile','authgroupfile','authname','authtype',
'authuserfile','bindaddress','browsermatch','browsermatchnocase',
'bs2000account','cachedefaultexpire','cachedirlength','cachedirlevels',
'cacheforcecompletion','cachegcinterval','cachelastmodifiedfactor','cachemaxexpire',
'cachenegotiateddocs','cacheroot','cachesize','checkspelling',
'clearmodulelist','contentdigest','cookieexpires','cookielog',
'cookielog','cookietracking','coredumpdirectory','customlog',
'defaulticon','defaultlanguage','defaulttype','define',
'deny','directory','directorymatch','directoryindex',
'documentroot','errordocument','errorlog','example',
'expiresactive','expiresbytype','expiresdefault','extendedstatus',
'fancyindexing','files','filesmatch','forcetype',
'group','header','headername','hostnamelookups',
'identitycheck','ifdefine','ifmodule','imapbase',
'imapdefault','imapmenu','include','indexignore',
'indexoptions','keepalive','keepalivetimeout','languagepriority',
'limit','limitexcept','limitrequestbody','limitrequestfields',
'limitrequestfieldsize','limitrequestline','listen','listenbacklog',
'loadfile','loadmodule','location','locationmatch',
'lockfile','logformat','loglevel','maxclients',
'maxkeepaliverequests','maxrequestsperchild','maxspareservers','metadir',
'metafiles','metasuffix','mimemagicfile','minspareservers',
'mmapfile','namevirtualhost','nocache','options','order',
'passenv','pidfile','port','proxyblock','proxydomain',
'proxypass','proxypassreverse','proxyreceivebuffersize','proxyremote',
'proxyrequests','proxyvia','qsc','readmename',
'redirect','redirectmatch','redirectpermanent','redirecttemp',
'refererignore','refererlog','removehandler','require',
'resourceconfig','rewritebase','rewritecond','rewriteengine',
'rewritelock','rewritelog','rewriteloglevel','rewritemap',
'rewriteoptions','rewriterule','rlimitcpu','rlimitmem',
'rlimitnproc','satisfy','scoreboardfile','script',
'scriptalias','scriptaliasmatch','scriptinterpretersource','scriptlog',
'scriptlogbuffer','scriptloglength','sendbuffersize',
'serveradmin','serveralias','servername','serverpath',
'serverroot','serversignature','servertokens','servertype',
'setenv','setenvif','setenvifnocase','sethandler',
'singlelisten','startservers','threadsperchild','timeout',
'transferlog','typesconfig','unsetenv','usecanonicalname',
'user','userdir','virtualhost','virtualdocumentroot',
'virtualdocumentrootip','virtualscriptalias','virtualscriptaliasip',
'xbithack','from','all'
),
/*keyords 2*/
2 => array(
'on','off','standalone','inetd',
'force-response-1.0','downgrade-1.0','nokeepalive',
'ndexes','includes','followsymlinks','none',
'x-compress','x-gzip'
)
),
'SYMBOLS' => array(
'(', ')'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => false,
2 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #00007f;',
2 => 'color: #0000ff;',
),
'COMMENTS' => array(
1 => 'color: #adadad; font-style: italic;',
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #7f007f;'
),
'NUMBERS' => array(
0 => 'color: #ff0000;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,134 @@
<?php
/*************************************************************************************
* applescript.php
* --------
* Author: Stephan Klimek (http://www.initware.org)
* Copyright: Stephan Klimek (http://www.initware.org)
* Release Version: 1.0.7.21
* Date Started: 2005/07/20
*
* AppleScript language file for GeSHi.
*
* CHANGES
* -------
*
* TODO
* -------------------------
* URL settings to references
*
**************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'AppleScript',
'COMMENT_SINGLE' => array(1 => '--'),
'COMMENT_MULTI' => array( '(*' => '*)'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"',"'"),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'script','property','prop','end','copy','to','set','global','local','on','to','of',
'in','given','with','without','return','continue','tell','if','then','else','repeat',
'times','while','until','from','exit','try','error','considering','ignoring','timeout',
'transaction','my','get','put','into','is'
),
2 => array(
'each','some','every','whose','where','id','index','first','second','third','fourth',
'fifth','sixth','seventh','eighth','ninth','tenth','last','front','back','st','nd',
'rd','th','middle','named','through','thru','before','after','beginning','the'
),
3 => array(
'close','copy','count','delete','duplicate','exists','launch','make','move','open',
'print','quit','reopen','run','save','saving',
'it','me','version','pi','result','space','tab','anything','case','diacriticals','expansion',
'hyphens','punctuation','bold','condensed','expanded','hidden','italic','outline','plain',
'shadow','strikethrough','subscript','superscript','underline','ask','no','yes','false',
'true','weekday','monday','mon','tuesday','tue','wednesday','wed','thursday','thu','friday',
'fri','saturday','sat','sunday','sun','month','january','jan','february','feb','march',
'mar','april','apr','may','june','jun','july','jul','august','aug','september',
'sep','october','oct','november','nov','december','dec','minutes','hours',
'days','weeks','div','mod','and','not','or','as','contains','equal','equals','isnt'
)
),
'SYMBOLS' => array(
')','+','-','^','*','/','&','<','>=','<','<=','=','<27>'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => false,
2 => false,
3 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #000066;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
1 => 'color: #006600;',
2 => 'color: #006600;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
0 => 'color: #0000ff;',
4 => 'color: #009999;',
),
'SCRIPT' => array(
)
),
'URLS' => array(
3 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => ',+-=&lt;&gt;/?^&amp;*'
),
'REGEXPS' => array(
0 => '[\\$%@]+[a-zA-Z_][a-zA-Z0-9_]*',
4 => '&lt;[a-zA-Z_][a-zA-Z0-9_]*&gt;',
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,144 @@
<?php
/*************************************************************************************
* apt_sources.php
* ----------
* Author: Milian Wolff (mail@milianw.de)
* Copyright: (c) 2008 Milian Wolff (http://milianw.de)
* Release Version: 1.0.8.2
* Date Started: 2008/06/17
*
* Apt sources.list language file for GeSHi.
*
* CHANGES
* -------
* 2008/06/17 (1.0.8)
* - Initial import
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Apt sources',
'COMMENT_SINGLE' => array(1 => '#'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array(),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
/*keywords*/
1 => array(
'deb-src', 'deb'
),
2 => array(
//Generic
'stable', 'old-stable', 'testing', 'testing-proposed-updates',
'unstable', 'unstable-proposed-updates', 'experimental',
'non-US', 'security', 'volatile', 'volatile-sloppy',
'apt-build',
'stable/updates',
//Debian
'buzz', 'rex', 'bo', 'hamm', 'slink', 'potato', 'woody', 'sarge',
'etch', 'lenny', 'sid',
//Ubuntu
'warty', 'warty-updates', 'warty-security', 'warty-proposed', 'warty-backports',
'hoary', 'hoary-updates', 'hoary-security', 'hoary-proposed', 'hoary-backports',
'breezy', 'breezy-updates', 'breezy-security', 'breezy-proposed', 'breezy-backports',
'dapper', 'dapper-updates', 'dapper-security', 'dapper-proposed', 'dapper-backports',
'edgy', 'edgy-updates', 'edgy-security', 'edgy-proposed', 'edgy-backports',
'feisty', 'feisty-updates', 'feisty-security', 'feisty-proposed', 'feisty-backports',
'gutsy', 'gutsy-updates', 'gutsy-security', 'gutsy-proposed', 'gutsy-backports',
'hardy', 'hardy-updates', 'hardy-security', 'hardy-proposed', 'hardy-backports',
'intrepid', 'intrepid-updates', 'intrepid-security', 'intrepid-proposed', 'intrepid-backports'
),
3 => array(
'main', 'restricted', 'preview', 'contrib', 'non-free',
'commercial', 'universe', 'multiverse'
)
),
'REGEXPS' => array(
0 => "(((http|ftp):\/\/|file:\/)[^\s]+)|(cdrom:\[[^\]]*\][^\s]*)",
),
'SYMBOLS' => array(
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => true,
3 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #00007f;',
2 => 'color: #b1b100;',
3 => 'color: #b16000;'
),
'COMMENTS' => array(
1 => 'color: #adadad; font-style: italic;',
),
'ESCAPE_CHAR' => array(
),
'BRACKETS' => array(
),
'STRINGS' => array(
),
'NUMBERS' => array(
),
'METHODS' => array(
),
'SYMBOLS' => array(
),
'REGEXPS' => array(
0 => 'color: #009900;',
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'PARSER_CONTROL' => array(
'ENABLE_FLAGS' => array(
'NUMBERS' => GESHI_NEVER,
'METHODS' => GESHI_NEVER,
'SCRIPT' => GESHI_NEVER,
'SYMBOLS' => GESHI_NEVER,
'ESCAPE_CHAR' => GESHI_NEVER,
'BRACKETS' => GESHI_NEVER,
'STRINGS' => GESHI_NEVER,
),
'KEYWORDS' => array(
'DISALLOWED_BEFORE' => '(?<![a-zA-Z0-9\$_\|\#;>|^\/])',
'DISALLOWED_AFTER' => '(?![a-zA-Z0-9_\|%\\-&\.])'
)
),
'TAB_WIDTH' => 4
);
?>

View file

@ -0,0 +1,199 @@
<?php
/*************************************************************************************
* asm.php
* -------
* Author: Tux (tux@inmail.cz)
* Copyright: (c) 2004 Tux (http://tux.a4.cz/), Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.7.21
* Date Started: 2004/07/27
*
* x86 Assembler language file for GeSHi.
* Words are from SciTe configuration file (based on NASM syntax)
*
* CHANGES
* -------
* 2004/11/27 (1.0.2)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.1)
* - Added support for URLs
* - Added binary and hexadecimal regexps
* 2004/08/05 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'ASM',
'COMMENT_SINGLE' => array(1 => ';'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
/*CPU*/
1 => array(
'aaa','aad','aam','aas','adc','add','and','call','cbw','clc','cld','cli','cmc','cmp',
'cmps','cmpsb','cmpsw','cwd','daa','das','dec','div','esc','hlt','idiv','imul','in','inc',
'int','into','iret','ja','jae','jb','jbe','jc','jcxz','je','jg','jge','jl','jle','jmp',
'jna','jnae','jnb','jnbe','jnc','jne','jng','jnge','jnl','jnle','jno','jnp','jns','jnz',
'jo','jp','jpe','jpo','js','jz','lahf','lds','lea','les','lods','lodsb','lodsw','loop',
'loope','loopew','loopne','loopnew','loopnz','loopnzw','loopw','loopz','loopzw','mov',
'movs','movsb','movsw','mul','neg','nop','not','or','out','pop','popf','push','pushf',
'rcl','rcr','ret','retf','retn','rol','ror','sahf','sal','sar','sbb','scas','scasb','scasw',
'shl','shr','stc','std','sti','stos','stosb','stosw','sub','test','wait','xchg','xlat',
'xlatb','xor','bound','enter','ins','insb','insw','leave','outs','outsb','outsw','popa','pusha','pushw',
'arpl','lar','lsl','sgdt','sidt','sldt','smsw','str','verr','verw','clts','lgdt','lidt','lldt','lmsw','ltr',
'bsf','bsr','bt','btc','btr','bts','cdq','cmpsd','cwde','insd','iretd','iretdf','iretf',
'jecxz','lfs','lgs','lodsd','loopd','looped','loopned','loopnzd','loopzd','lss','movsd',
'movsx','movzx','outsd','popad','popfd','pushad','pushd','pushfd','scasd','seta','setae',
'setb','setbe','setc','sete','setg','setge','setl','setle','setna','setnae','setnb','setnbe',
'setnc','setne','setng','setnge','setnl','setnle','setno','setnp','setns','setnz','seto','setp',
'setpe','setpo','sets','setz','shld','shrd','stosd','bswap','cmpxchg','invd','invlpg','wbinvd','xadd','lock',
'rep','repe','repne','repnz','repz'
),
/*FPU*/
2 => array(
'f2xm1','fabs','fadd','faddp','fbld','fbstp','fchs','fclex','fcom','fcomp','fcompp','fdecstp',
'fdisi','fdiv','fdivp','fdivr','fdivrp','feni','ffree','fiadd','ficom','ficomp','fidiv',
'fidivr','fild','fimul','fincstp','finit','fist','fistp','fisub','fisubr','fld','fld1',
'fldcw','fldenv','fldenvw','fldl2e','fldl2t','fldlg2','fldln2','fldpi','fldz','fmul',
'fmulp','fnclex','fndisi','fneni','fninit','fnop','fnsave','fnsavew','fnstcw','fnstenv',
'fnstenvw','fnstsw','fpatan','fprem','fptan','frndint','frstor','frstorw','fsave',
'fsavew','fscale','fsqrt','fst','fstcw','fstenv','fstenvw','fstp','fstsw','fsub','fsubp',
'fsubr','fsubrp','ftst','fwait','fxam','fxch','fxtract','fyl2x','fyl2xp1',
'fsetpm','fcos','fldenvd','fnsaved','fnstenvd','fprem1','frstord','fsaved','fsin','fsincos',
'fstenvd','fucom','fucomp','fucompp'
),
/*registers*/
3 => array(
'ah','al','ax','bh','bl','bp','bx','ch','cl','cr0','cr2','cr3','cs','cx','dh','di','dl',
'dr0','dr1','dr2','dr3','dr6','dr7','ds','dx','eax','ebp','ebx','ecx','edi','edx',
'es','esi','esp','fs','gs','si','sp','ss','st','tr3','tr4','tr5','tr6','tr7', 'ah', 'bh', 'ch', 'dh'
),
/*Directive*/
4 => array(
'186','286','286c','286p','287','386','386c','386p','387','486','486p',
'8086','8087','alpha','break','code','const','continue','cref','data','data?',
'dosseg','else','elseif','endif','endw','err','err1','err2','errb',
'errdef','errdif','errdifi','erre','erridn','erridni','errnb','errndef',
'errnz','exit','fardata','fardata?','if','lall','lfcond','list','listall',
'listif','listmacro','listmacroall',' model','no87','nocref','nolist',
'nolistif','nolistmacro','radix','repeat','sall','seq','sfcond','stack',
'startup','tfcond','type','until','untilcxz','while','xall','xcref',
'xlist','alias','align','assume','catstr','comm','comment','db','dd','df','dosseg','dq',
'dt','dup','dw','echo','else','elseif','elseif1','elseif2','elseifb','elseifdef','elseifdif',
'elseifdifi','elseife','elseifidn','elseifidni','elseifnb','elseifndef','end',
'endif','endm','endp','ends','eq',' equ','even','exitm','extern','externdef','extrn','for',
'forc','ge','goto','group','high','highword','if','if1','if2','ifb','ifdef','ifdif',
'ifdifi','ife',' ifidn','ifidni','ifnb','ifndef','include','includelib','instr','invoke',
'irp','irpc','label','le','length','lengthof','local','low','lowword','lroffset',
'macro','mask','mod','msfloat','name','ne','offset','opattr','option','org','%out',
'page','popcontext','proc','proto','ptr','public','purge','pushcontext','record',
'repeat','rept','seg','segment','short','size','sizeof','sizestr','struc','struct',
'substr','subtitle','subttl','textequ','this','title','type','typedef','union','while','width',
'.model', '.stack', '.code', '.data'
),
/*Operands*/
5 => array(
'@b','@f','addr','basic','byte','c','carry?','dword',
'far','far16','fortran','fword','near','near16','overflow?','parity?','pascal','qword',
'real4',' real8','real10','sbyte','sdword','sign?','stdcall','sword','syscall','tbyte',
'vararg','word','zero?','flat','near32','far32',
'abs','all','assumes','at','casemap','common','compact',
'cpu','dotname','emulator','epilogue','error','export','expr16','expr32','farstack','flat',
'forceframe','huge','language','large','listing','ljmp','loadds','m510','medium','memory',
'nearstack','nodotname','noemulator','nokeyword','noljmp','nom510','none','nonunique',
'nooldmacros','nooldstructs','noreadonly','noscoped','nosignextend','nothing',
'notpublic','oldmacros','oldstructs','os_dos','para','private','prologue','radix',
'readonly','req','scoped','setif2','smallstack','tiny','use16','use32','uses'
)
),
'SYMBOLS' => array(
'[', ']', '(', ')'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => false,
2 => false,
3 => false,
4 => false,
5 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #00007f;',
2 => 'color: #0000ff;',
3 => 'color: #46aa03; font-weight:bold;',
4 => 'color: #0000ff;',
5 => 'color: #0000ff;'
),
'COMMENTS' => array(
1 => 'color: #adadad; font-style: italic;',
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #7f007f;'
),
'NUMBERS' => array(
0 => 'color: #ff0000;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
0 => 'color: #ff0000;',
1 => 'color: #ff0000;'
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
0 => '0[0-9a-fA-F]{1,32}[hH]',
1 => '[01]{1,64}[bB]'
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 8
);
?>

View file

@ -0,0 +1,153 @@
<?php
/*************************************************************************************
* asp.php
* --------
* Author: Amit Gupta (http://blog.igeek.info/)
* Copyright: (c) 2004 Amit Gupta (http://blog.igeek.info/), Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.7.21
* Date Started: 2004/08/13
*
* ASP language file for GeSHi.
*
* CHANGES
* -------
* 2005/12/30 (1.0.3)
* - Strings only delimited by ", comments by '
* 2004/11/27 (1.0.2)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.1)
* - Added support for URLs
* 2004/08/13 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
* * Include all the functions, keywords etc that I have missed
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'ASP',
'COMMENT_SINGLE' => array(1 => "'", 2 => '//'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => 0,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
'include', 'file', 'Dim', 'Option', 'Explicit', 'Implicit', 'Set', 'Select', 'ReDim', 'Preserve',
'ByVal', 'ByRef', 'End', 'Private', 'Public', 'If', 'Then', 'Else', 'ElseIf', 'Case', 'With', 'NOT',
'While', 'Wend', 'For', 'Loop', 'Do', 'Request', 'Response', 'Server', 'ADODB', 'Session', 'Application',
'Each', 'In', 'Get', 'Next', 'INT', 'CINT', 'CBOOL', 'CDATE', 'CBYTE', 'CCUR', 'CDBL', 'CLNG', 'CSNG',
'CSTR', 'Fix', 'Is', 'Sgn', 'String', 'Boolean', 'Currency', 'Me', 'Single', 'Long', 'Integer', 'Byte',
'Variant', 'Double', 'To', 'Let', 'Xor', 'Resume', 'On', 'Error', 'Imp', 'GoTo', 'Call', 'Global'
),
2 => array(
'Null', 'Nothing', 'And',
'False', '&lt;%', '%&gt;',
'&lt;script language=', '&lt;/script&gt;',
'True', 'var', 'Or', 'BOF', 'EOF',
'Function', 'Class', 'New', 'Sub'
),
3 => array(
'CreateObject', 'Write', 'Redirect', 'Cookies', 'BinaryRead', 'ClientCertificate', 'Form', 'QueryString',
'ServerVariables', 'TotalBytes', 'AddHeader', 'AppendToLog', 'BinaryWrite', 'Buffer', 'CacheControl',
'Charset', 'Clear', 'ContentType', 'End()', 'Expires', 'ExpiresAbsolute', 'Flush()', 'IsClientConnected',
'PICS', 'Status', 'Connection', 'Recordset', 'Execute', 'Abandon', 'Lock', 'UnLock', 'Command', 'Fields',
'Properties', 'Property', 'Send', 'Replace', 'InStr', 'TRIM', 'NOW', 'Day', 'Month', 'Hour', 'Minute', 'Second',
'Year', 'MonthName', 'LCase', 'UCase', 'Abs', 'Array', 'As', 'LEN', 'MoveFirst', 'MoveLast', 'MovePrevious',
'MoveNext', 'LBound', 'UBound', 'Transfer', 'Open', 'Close', 'MapPath', 'FileExists', 'OpenTextFile', 'ReadAll'
)
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #990099; font-weight: bold;',
2 => 'color: #0000ff; font-weight: bold;',
3 => 'color: #330066;'
),
'COMMENTS' => array(
1 => 'color: #008000;',
2 => 'color: #ff6600;',
'MULTI' => 'color: #008000;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #006600; font-weight:bold'
),
'STRINGS' => array(
0 => 'color: #cc0000;'
),
'NUMBERS' => array(
0 => 'color: #800000;'
),
'METHODS' => array(
1 => 'color: #9900cc;'
),
'SYMBOLS' => array(
0 => 'color: #006600; font-weight: bold'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
0 => '',
1 => '',
2 => '',
)
),
'URLS' => array(
1 => '',
2 => '',
3 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_MAYBE,
'SCRIPT_DELIMITERS' => array(
0 => array(
'<%' => '%>'
),
1 => array(
'<script language="vbscript" runat="server">' => '</script>'
),
2 => array(
'<script language="javascript" runat="server">' => '</script>'
)
),
'HIGHLIGHT_STRICT_BLOCK' => array(
0 => true,
1 => true,
2 => true,
)
);
?>

View file

@ -0,0 +1,453 @@
<?php
/*************************************************************************************
* autoit.php
* --------
* Author: big_daddy (robert.i.anthony@gmail.com)
* Copyright: (c) 2006 and to GESHi ;)
* Release Version: 1.0.7.21
* Date Started: 2006/01/26
*
* Current bugs & todo:
* ----------
* - dosn't highlight symbols (Please note that in 1.0.X these are not used. Hopefully they will be used in 1.2.X.)
* - not sure how to get sendkeys to work " {!}, {SPACE} etc... "
* - jut copyied the regexp for variable from php so this HAVE to be checked and fixed to a better one ;)
*
* Reference: http://www.autoitscript.com/autoit3/docs/
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'AutoIt',
'COMMENT_SINGLE' => array(';'),
'COMMENT_MULTI' => array('#comments-start' => '#comments-end', '#cs' => '#ce'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
'false', 'and', 'byref', 'case', 'const',
'continuecase', 'continueloop', 'default', 'dim', 'do',
'else', 'elseif', 'endfunc', 'endif', 'endselect',
'endswitch', 'endwith', 'enum', 'exit', 'exitloop',
'for', 'func', 'global', 'if', 'in',
'local', 'next', 'not', 'or', 'redim',
'return', 'select', 'step', 'switch', 'then',
'to', 'true', 'until', 'wend', 'while',
'with'
),
2 => array(
'@appdatacommondir', '@appdatadir', '@autoitexe', '@autoitpid',
'@autoitversion', '@com_eventobj', '@commonfilesdir', '@compiled',
'@computername', '@comspec', '@cr', '@crlf', '@desktopcommondir',
'@desktopdepth', '@desktopdir', '@desktopheight',
'@desktoprefresh', '@desktopwidth', '@documentscommondir',
'@error', '@exitcode', '@exitmethod', '@extended',
'@favoritescommondir', '@favoritesdir', '@gui_ctrlhandle',
'@gui_ctrlid', '@gui_dragfile', '@gui_dragid', '@gui_dropid',
'@gui_winhandle', '@homedrive', '@homepath', '@homeshare',
'@hotkeypressed', '@hour', '@inetgetactive', '@inetgetbytesread',
'@ipaddress1', '@ipaddress2', '@ipaddress3', '@ipaddress4',
'@kblayout', '@lf', '@logondnsdomain', '@logondomain',
'@logonserver', '@mday', '@min', '@mon', '@mydocumentsdir',
'@numparams', '@osbuild', '@oslang', '@osservicepack', '@ostype',
'@osversion', '@processorarch', '@programfilesdir',
'@programscommondir', '@programsdir', '@scriptdir',
'@scriptfullpath', '@scriptlinenumber', '@scriptname', '@sec',
'@startmenucommondir', '@startmenudir', '@startupcommondir',
'@startupdir', '@sw_disable', '@sw_enable', '@sw_hide', '@sw_lock',
'@sw_maximize', '@sw_minimize', '@sw_restore', '@sw_show',
'@sw_showdefault', '@sw_showmaximized', '@sw_showminimized',
'@sw_showminnoactive', '@sw_showna', '@sw_shownoactivate',
'@sw_shownormal', '@sw_unlock', '@systemdir', '@tab', '@tempdir',
'@tray_id', '@trayiconflashing', '@trayiconvisible', '@username',
'@userprofiledir', '@wday', '@windowsdir', '@workingdir', '@yday',
'@year'
),
3 => array(
'abs', 'acos', 'adlibdisable', 'adlibenable', 'asc', 'asin',
'assign', 'atan', 'autoitsetoption', 'autoitwingettitle',
'autoitwinsettitle', 'beep', 'binarystring', 'bitand', 'bitnot',
'bitor', 'bitrotate', 'bitshift', 'bitxor', 'blockinput', 'break',
'call', 'cdtray', 'ceiling', 'chr', 'clipget', 'clipput',
'consoleread', 'consolewrite', 'consolewriteerror', 'controlclick',
'controlcommand', 'controldisable', 'controlenable',
'controlfocus', 'controlgetfocus', 'controlgethandle',
'controlgetpos', 'controlgettext', 'controlhide',
'controllistview', 'controlmove', 'controlsend', 'controlsettext',
'controlshow', 'cos', 'dec', 'dircopy', 'dircreate', 'dirgetsize',
'dirmove', 'dirremove', 'dllcall', 'dllclose', 'dllopen',
'dllstructcreate', 'dllstructgetdata', 'dllstructgetptr',
'dllstructgetsize', 'dllstructsetdata', 'drivegetdrive',
'drivegetfilesystem', 'drivegetlabel', 'drivegetserial',
'drivegettype', 'drivemapadd', 'drivemapdel', 'drivemapget',
'drivesetlabel', 'drivespacefree', 'drivespacetotal',
'drivestatus', 'envget', 'envset', 'envupdate', 'eval', 'execute',
'exp', 'filechangedir', 'fileclose', 'filecopy',
'filecreatentfslink', 'filecreateshortcut', 'filedelete',
'fileexists', 'filefindfirstfile', 'filefindnextfile',
'filegetattrib', 'filegetlongname', 'filegetshortcut',
'filegetshortname', 'filegetsize', 'filegettime', 'filegetversion',
'fileinstall', 'filemove', 'fileopen', 'fileopendialog',
'fileread', 'filereadline', 'filerecycle', 'filerecycleempty',
'filesavedialog', 'fileselectfolder', 'filesetattrib',
'filesettime', 'filewrite', 'filewriteline', 'floor',
'ftpsetproxy', 'guicreate', 'guictrlcreateavi',
'guictrlcreatebutton', 'guictrlcreatecheckbox',
'guictrlcreatecombo', 'guictrlcreatecontextmenu',
'guictrlcreatedate', 'guictrlcreatedummy', 'guictrlcreateedit',
'guictrlcreategraphic', 'guictrlcreategroup', 'guictrlcreateicon',
'guictrlcreateinput', 'guictrlcreatelabel', 'guictrlcreatelist',
'guictrlcreatelistview', 'guictrlcreatelistviewitem',
'guictrlcreatemenu', 'guictrlcreatemenuitem',
'guictrlcreatemonthcal', 'guictrlcreateobj', 'guictrlcreatepic',
'guictrlcreateprogress', 'guictrlcreateradio',
'guictrlcreateslider', 'guictrlcreatetab', 'guictrlcreatetabitem',
'guictrlcreatetreeview', 'guictrlcreatetreeviewitem',
'guictrlcreateupdown', 'guictrldelete', 'guictrlgethandle',
'guictrlgetstate', 'guictrlread', 'guictrlrecvmsg',
'guictrlregisterlistviewsort', 'guictrlsendmsg',
'guictrlsendtodummy', 'guictrlsetbkcolor', 'guictrlsetcolor',
'guictrlsetcursor', 'guictrlsetdata', 'guictrlsetfont',
'guictrlsetgraphic', 'guictrlsetimage', 'guictrlsetlimit',
'guictrlsetonevent', 'guictrlsetpos', 'guictrlsetresizing',
'guictrlsetstate', 'guictrlsetstyle', 'guictrlsettip', 'guidelete',
'guigetcursorinfo', 'guigetmsg', 'guiregistermsg', 'guisetbkcolor',
'guisetcoord', 'guisetcursor', 'guisetfont', 'guisethelp',
'guiseticon', 'guisetonevent', 'guisetstate', 'guistartgroup',
'guiswitch', 'hex', 'hotkeyset', 'httpsetproxy', 'hwnd', 'inetget',
'inetgetsize', 'inidelete', 'iniread', 'inireadsection',
'inireadsectionnames', 'inirenamesection', 'iniwrite',
'iniwritesection', 'inputbox', 'int', 'isadmin', 'isarray',
'isbinarystring', 'isbool', 'isdeclared', 'isdllstruct', 'isfloat',
'ishwnd', 'isint', 'iskeyword', 'isnumber', 'isobj', 'isstring',
'log', 'memgetstats', 'mod', 'mouseclick', 'mouseclickdrag',
'mousedown', 'mousegetcursor', 'mousegetpos', 'mousemove',
'mouseup', 'mousewheel', 'msgbox', 'number', 'objcreate',
'objevent', 'objget', 'objname', 'opt', 'ping', 'pixelchecksum',
'pixelgetcolor', 'pixelsearch', 'pluginclose', 'pluginopen',
'processclose', 'processexists', 'processlist',
'processsetpriority', 'processwait', 'processwaitclose',
'progressoff', 'progresson', 'progressset', 'random', 'regdelete',
'regenumkey', 'regenumval', 'regread', 'regwrite', 'round', 'run',
'runasset', 'runwait', 'send', 'seterror', 'setextended',
'shellexecute', 'shellexecutewait', 'shutdown', 'sin', 'sleep',
'soundplay', 'soundsetwavevolume', 'splashimageon', 'splashoff',
'splashtexton', 'sqrt', 'srandom', 'statusbargettext',
'stderrread', 'stdinwrite', 'stdoutread', 'string', 'stringaddcr',
'stringformat', 'stringinstr', 'stringisalnum', 'stringisalpha',
'stringisascii', 'stringisdigit', 'stringisfloat', 'stringisint',
'stringislower', 'stringisspace', 'stringisupper',
'stringisxdigit', 'stringleft', 'stringlen', 'stringlower',
'stringmid', 'stringregexp', 'stringregexpreplace',
'stringreplace', 'stringright', 'stringsplit', 'stringstripcr',
'stringstripws', 'stringtrimleft', 'stringtrimright',
'stringupper', 'tan', 'tcpaccept', 'tcpclosesocket', 'tcpconnect',
'tcplisten', 'tcpnametoip', 'tcprecv', 'tcpsend', 'tcpshutdown',
'tcpstartup', 'timerdiff', 'timerinit', 'timerstart', 'timerstop',
'tooltip', 'traycreateitem', 'traycreatemenu', 'traygetmsg',
'trayitemdelete', 'trayitemgethandle', 'trayitemgetstate',
'trayitemgettext', 'trayitemsetonevent', 'trayitemsetstate',
'trayitemsettext', 'traysetclick', 'trayseticon', 'traysetonevent',
'traysetpauseicon', 'traysetstate', 'traysettooltip', 'traytip',
'ubound', 'udpbind', 'udpclosesocket', 'udpopen', 'udprecv',
'udpsend', 'winactivate', 'winactive', 'winclose', 'winexists',
'winflash', 'wingetcaretpos', 'wingetclasslist',
'wingetclientsize', 'wingethandle', 'wingetpos', 'wingetprocess',
'wingetstate', 'wingettext', 'wingettitle', 'winkill', 'winlist',
'winmenuselectitem', 'winminimizeall', 'winminimizeallundo',
'winmove', 'winsetontop', 'winsetstate', 'winsettitle',
'winsettrans', 'winshow', 'winwait', 'winwaitactive',
'winwaitclose', 'winwaitnotactive'
),
4 => array(
'_arrayadd', '_arraybinarysearch', '_arraycreate', '_arraydelete',
'_arraydisplay', '_arrayinsert', '_arraymax', '_arraymaxindex',
'_arraymin', '_arrayminindex', '_arraypop', '_arraypush',
'_arrayreverse', '_arraysearch', '_arraysort', '_arrayswap',
'_arraytoclip', '_arraytostring', '_arraytrim', '_colorgetblue',
'_colorgetgreen', '_colorgetred', '_dateadd', '_datedayofweek',
'_datedaysinmonth', '_datediff', '_dateisleapyear', '_dateisvalid',
'_datetimeformat', '_datetimesplit', '_datetodayofweek',
'_datetodayofweekiso', '_datetodayvalue', '_dayvaluetodate',
'_now', '_nowcalc', '_nowcalcdate', '_nowdate', '_nowtime',
'_setdate', '_settime', '_tickstotime', '_timetoticks',
'_weeknumberiso', '_filecountlines', '_filecreate',
'_filelisttoarray', '_fileprint', '_filereadtoarray',
'_filewritefromarray', '_filewritelog', '_filewritetoline',
'_pathfull', '_pathmake', '_pathsplit', '_replacestringinfile',
'_tempfile', '_guictrlcomboadddir', '_guictrlcomboaddstring',
'_guictrlcomboautocomplete', '_guictrlcombodeletestring',
'_guictrlcombofindstring', '_guictrlcombogetcount',
'_guictrlcombogetcursel', '_guictrlcombogetdroppedcontrolrect',
'_guictrlcombogetdroppedstate', '_guictrlcombogetdroppedwidth',
'_guictrlcombogeteditsel', '_guictrlcombogetextendedui',
'_guictrlcombogethorizontalextent', '_guictrlcombogetitemheight',
'_guictrlcombogetlbtext', '_guictrlcombogetlbtextlen',
'_guictrlcombogetlist', '_guictrlcombogetlocale',
'_guictrlcombogetminvisible', '_guictrlcombogettopindex',
'_guictrlcomboinitstorage', '_guictrlcomboinsertstring',
'_guictrlcombolimittext', '_guictrlcomboresetcontent',
'_guictrlcomboselectstring', '_guictrlcombosetcursel',
'_guictrlcombosetdroppedwidth', '_guictrlcomboseteditsel',
'_guictrlcombosetextendedui', '_guictrlcombosethorizontalextent',
'_guictrlcombosetitemheight', '_guictrlcombosetminvisible',
'_guictrlcombosettopindex', '_guictrlcomboshowdropdown',
'_guictrleditcanundo', '_guictrleditemptyundobuffer',
'_guictrleditfind', '_guictrleditgetfirstvisibleline',
'_guictrleditgetline', '_guictrleditgetlinecount',
'_guictrleditgetmodify', '_guictrleditgetrect',
'_guictrleditgetsel', '_guictrleditlinefromchar',
'_guictrleditlineindex', '_guictrleditlinelength',
'_guictrleditlinescroll', '_guictrleditreplacesel',
'_guictrleditscroll', '_guictrleditsetmodify',
'_guictrleditsetrect', '_guictrleditsetsel', '_guictrleditundo',
'_guictrlipaddressclear', '_guictrlipaddresscreate',
'_guictrlipaddressdelete', '_guictrlipaddressget',
'_guictrlipaddressisblank', '_guictrlipaddressset',
'_guictrlipaddresssetfocus', '_guictrlipaddresssetfont',
'_guictrlipaddresssetrange', '_guictrlipaddressshowhide',
'_guictrllistadddir', '_guictrllistadditem', '_guictrllistclear',
'_guictrllistcount', '_guictrllistdeleteitem',
'_guictrllistfindstring', '_guictrllistgetanchorindex',
'_guictrllistgetcaretindex', '_guictrllistgethorizontalextent',
'_guictrllistgetinfo', '_guictrllistgetitemrect',
'_guictrllistgetlocale', '_guictrllistgetselcount',
'_guictrllistgetselitems', '_guictrllistgetselitemstext',
'_guictrllistgetselstate', '_guictrllistgettext',
'_guictrllistgettextlen', '_guictrllistgettopindex',
'_guictrllistinsertitem', '_guictrllistreplacestring',
'_guictrllistselectedindex', '_guictrllistselectindex',
'_guictrllistselectstring', '_guictrllistselitemrange',
'_guictrllistselitemrangeex', '_guictrllistsetanchorindex',
'_guictrllistsetcaretindex', '_guictrllistsethorizontalextent',
'_guictrllistsetlocale', '_guictrllistsetsel',
'_guictrllistsettopindex', '_guictrllistsort',
'_guictrllistswapstring', '_guictrllistviewcopyitems',
'_guictrllistviewdeleteallitems', '_guictrllistviewdeletecolumn',
'_guictrllistviewdeleteitem',
'_guictrllistviewdeleteitemsselected',
'_guictrllistviewensurevisible', '_guictrllistviewfinditem',
'_guictrllistviewgetbackcolor', '_guictrllistviewgetcallbackmask',
'_guictrllistviewgetcheckedstate',
'_guictrllistviewgetcolumnorder', '_guictrllistviewgetcolumnwidth',
'_guictrllistviewgetcounterpage', '_guictrllistviewgetcursel',
'_guictrllistviewgetextendedlistviewstyle',
'_guictrllistviewgetheader', '_guictrllistviewgethotcursor',
'_guictrllistviewgethotitem', '_guictrllistviewgethovertime',
'_guictrllistviewgetitemcount', '_guictrllistviewgetitemtext',
'_guictrllistviewgetitemtextarray', '_guictrllistviewgetnextitem',
'_guictrllistviewgetselectedcount',
'_guictrllistviewgetselectedindices',
'_guictrllistviewgetsubitemscount', '_guictrllistviewgettopindex',
'_guictrllistviewgetunicodeformat', '_guictrllistviewhidecolumn',
'_guictrllistviewinsertcolumn', '_guictrllistviewinsertitem',
'_guictrllistviewjustifycolumn', '_guictrllistviewscroll',
'_guictrllistviewsetcheckstate',
'_guictrllistviewsetcolumnheadertext',
'_guictrllistviewsetcolumnorder', '_guictrllistviewsetcolumnwidth',
'_guictrllistviewsethotitem', '_guictrllistviewsethovertime',
'_guictrllistviewsetitemcount', '_guictrllistviewsetitemselstate',
'_guictrllistviewsetitemtext', '_guictrllistviewsort',
'_guictrlmonthcalget1stdow', '_guictrlmonthcalgetcolor',
'_guictrlmonthcalgetdelta', '_guictrlmonthcalgetmaxselcount',
'_guictrlmonthcalgetmaxtodaywidth',
'_guictrlmonthcalgetminreqrect', '_guictrlmonthcalset1stdow',
'_guictrlmonthcalsetcolor', '_guictrlmonthcalsetdelta',
'_guictrlmonthcalsetmaxselcount', '_guictrlslidercleartics',
'_guictrlslidergetlinesize', '_guictrlslidergetnumtics',
'_guictrlslidergetpagesize', '_guictrlslidergetpos',
'_guictrlslidergetrangemax', '_guictrlslidergetrangemin',
'_guictrlslidersetlinesize', '_guictrlslidersetpagesize',
'_guictrlslidersetpos', '_guictrlslidersetticfreq',
'_guictrlstatusbarcreate', '_guictrlstatusbarcreateprogress',
'_guictrlstatusbardelete', '_guictrlstatusbargetborders',
'_guictrlstatusbargeticon', '_guictrlstatusbargetparts',
'_guictrlstatusbargetrect', '_guictrlstatusbargettext',
'_guictrlstatusbargettextlength', '_guictrlstatusbargettip',
'_guictrlstatusbargetunicode', '_guictrlstatusbarissimple',
'_guictrlstatusbarresize', '_guictrlstatusbarsetbkcolor',
'_guictrlstatusbarseticon', '_guictrlstatusbarsetminheight',
'_guictrlstatusbarsetparts', '_guictrlstatusbarsetsimple',
'_guictrlstatusbarsettext', '_guictrlstatusbarsettip',
'_guictrlstatusbarsetunicode', '_guictrlstatusbarshowhide',
'_guictrltabdeleteallitems', '_guictrltabdeleteitem',
'_guictrltabdeselectall', '_guictrltabgetcurfocus',
'_guictrltabgetcursel', '_guictrltabgetextendedstyle',
'_guictrltabgetitemcount', '_guictrltabgetitemrect',
'_guictrltabgetrowcount', '_guictrltabgetunicodeformat',
'_guictrltabhighlightitem', '_guictrltabsetcurfocus',
'_guictrltabsetcursel', '_guictrltabsetmintabwidth',
'_guictrltabsetunicodeformat', '_guictrltreeviewdeleteallitems',
'_guictrltreeviewdeleteitem', '_guictrltreeviewexpand',
'_guictrltreeviewgetbkcolor', '_guictrltreeviewgetcount',
'_guictrltreeviewgetindent', '_guictrltreeviewgetlinecolor',
'_guictrltreeviewgetparenthandle', '_guictrltreeviewgetparentid',
'_guictrltreeviewgetstate', '_guictrltreeviewgettext',
'_guictrltreeviewgettextcolor', '_guictrltreeviewgettree',
'_guictrltreeviewinsertitem', '_guictrltreeviewsetbkcolor',
'_guictrltreeviewseticon', '_guictrltreeviewsetindent',
'_guictrltreeviewsetlinecolor', '_guictrltreeviewsetstate',
'_guictrltreeviewsettext', '_guictrltreeviewsettextcolor',
'_guictrltreeviewsort', '_ie_example', '_ie_introduction',
'_ie_versioninfo', '_ieaction', '_ieattach', '_iebodyreadhtml',
'_iebodyreadtext', '_iebodywritehtml', '_iecreate',
'_iecreateembedded', '_iedocgetobj', '_iedocinserthtml',
'_iedocinserttext', '_iedocreadhtml', '_iedocwritehtml',
'_ieerrorhandlerderegister', '_ieerrorhandlerregister',
'_ieerrornotify', '_ieformelementcheckboxselect',
'_ieformelementgetcollection', '_ieformelementgetobjbyname',
'_ieformelementgetvalue', '_ieformelementoptionselect',
'_ieformelementradioselect', '_ieformelementsetvalue',
'_ieformgetcollection', '_ieformgetobjbyname', '_ieformimageclick',
'_ieformreset', '_ieformsubmit', '_ieframegetcollection',
'_ieframegetobjbyname', '_iegetobjbyname',
'_ieheadinserteventscript', '_ieimgclick', '_ieimggetcollection',
'_ieisframeset', '_ielinkclickbyindex', '_ielinkclickbytext',
'_ielinkgetcollection', '_ieloadwait', '_ieloadwaittimeout',
'_ienavigate', '_iepropertyget', '_iepropertyset', '_iequit',
'_ietablegetcollection', '_ietablewritetoarray',
'_ietagnameallgetcollection', '_ietagnamegetcollection', '_getip',
'_inetexplorercapable', '_inetgetsource', '_inetmail',
'_inetsmtpmail', '_tcpiptoname', '_degree', '_mathcheckdiv',
'_max', '_min', '_radian', '_choosecolor', '_choosefont',
'_clipputfile', '_iif', '_ispressed', '_mousetrap', '_singleton',
'_processgetname', '_processgetpriority', '_rundos',
'_sendmessage', '_soundclose', '_soundlength', '_soundopen',
'_soundpause', '_soundplay', '_soundpos', '_soundresume',
'_soundseek', '_soundstatus', '_soundstop', '_sqlite_changes',
'_sqlite_close', '_sqlite_display2dresult', '_sqlite_encode',
'_sqlite_errcode', '_sqlite_errmsg', '_sqlite_escape',
'_sqlite_exec', '_sqlite_fetchdata', '_sqlite_fetchnames',
'_sqlite_gettable', '_sqlite_gettable2d',
'_sqlite_lastinsertrowid', '_sqlite_libversion', '_sqlite_open',
'_sqlite_query', '_sqlite_queryfinalize', '_sqlite_queryreset',
'_sqlite_querysinglerow', '_sqlite_savemode', '_sqlite_settimeout',
'_sqlite_shutdown', '_sqlite_sqliteexe', '_sqlite_startup',
'_sqlite_totalchanges', '_hextostring', '_stringaddcomma',
'_stringbetween', '_stringencrypt', '_stringinsert',
'_stringproper', '_stringrepeat', '_stringreverse', '_stringtohex',
'_viclose', '_viexeccommand', '_vifindgpib', '_vigpibbusreset',
'_vigtl', '_viopen', '_visetattribute', '_visettimeout'
),
5 => array(
'#include', '#include-once', '#notrayicon'
),
6 => array(
'#forceref', '#compiler_allow_decompile', '#compiler_au3check_dat',
'#compiler_au3check_parameters',
'#compiler_au3check_stop_onwarning', '#compiler_aut2exe',
'#compiler_autoit3', '#compiler_compression', '#compiler_icon',
'#compiler_outfile', '#compiler_outfile_type',
'#compiler_passphrase', '#compiler_plugin_funcs',
'#compiler_prompt', '#compiler_res_comment',
'#compiler_res_description', '#compiler_res_field',
'#compiler_res_field1name', '#compiler_res_field1value',
'#compiler_res_field2name', '#compiler_res_field2value',
'#compiler_res_fileversion',
'#compiler_res_fileversion_autoincrement',
'#compiler_res_legalcopyright', '#compiler_run_after',
'#compiler_run_au3check', '#compiler_run_before',
'#compiler_run_cvswrapper', '#compiler_run_tidy',
'#compiler_tidy_stop_onerror', '#compiler_useupx', '#endregion',
'#region', '#run_debug_mode', '#tidy_parameters'
)
),
'SYMBOLS' => array(
'(', ')', '[', ']', '&', '*', '/', '<', '>', '+', '-', '^', '=', '.'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false,
5 => false,
6 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0000FF; font-weight: bold;',
2 => 'color: #800000; font-weight: bold;',
3 => 'color: #000080; font-style: italic; font-weight: bold;',
4 => 'color: #0080FF; font-style: italic; font-weight: bold;',
5 => 'color: #F000FF; font-style: italic;',
6 => 'color: #A00FF0; font-style: italic;'
),
'COMMENTS' => array(
0 => 'font-style: italic; color: #009933;',
'MULTI' => 'font-style: italic; color: #669900;'
),
'ESCAPE_CHAR' => array(
0 => ''
),
'BRACKETS' => array(
0 => 'color: #FF0000; font-weight: bold;'
),
'STRINGS' => array(
0 => 'font-weight: bold; color: #008080;'
),
'NUMBERS' => array(
0 => 'color: #AC00A9; font-style: italic; font-weight: bold;'
),
'METHODS' => array(
1 => 'color: #0000FF; font-style: italic; font-weight: bold;'
),
'SYMBOLS' => array(
0 => 'color: #FF0000; font-weight: bold;'
),
'REGEXPS' => array(
0 => 'font-weight: bold; color: #AA0000;'
),
'SCRIPT' => array(
0 => '',
1 => '',
2 => '',
3 => '',
4 => '',
5 => '',
6 => ''
)
),
'URLS' => array(
1 => 'http://www.autoitscript.com/autoit3/docs/keywords.htm',
2 => 'http://www.autoitscript.com/autoit3/docs/macros.htm',
3 => 'http://www.autoitscript.com/autoit3/docs/functions/{FNAME}.htm',
4 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
0 => '[\\$%@]+[a-zA-Z_][a-zA-Z0-9_]*'
),
'STRICT_MODE_APPLIES' => GESHI_MAYBE,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
0 => true,
1 => true,
2 => true,
3 => true
)
);
?>

View file

@ -0,0 +1,194 @@
<?php
/*************************************************************************************
* avisynth.php
* --------
* Author: Ryan Jones (sciguyryan@gmail.com)
* Copyright: (c) 2008 Ryan Jones
* Release Version: 1.0.8.2
* Date Started: 2008/10/08
*
* AviSynth language file for GeSHi.
*
* CHANGES
* -------
* 2008/10/08 (1.0.8.1)
* - First Release
*
* TODO (updated 2008/10/08)
* -------------------------
* * There are also some special words that can't currently be specified directly in GeSHi as they may
* also be used as variables which would really mess things up.
* * Also there is an issue with the escape character as this language uses a muti-character escape system. Escape char should be """ but has been left
* as empty due to this restiction.
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'AviSynth',
'COMMENT_SINGLE' => array(1 => '#'),
'COMMENT_MULTI' => array('/*' => '*/', '[*' => '*]'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
// Reserved words.
1 => array(
'try', 'cache', 'function', 'global', 'return'
),
// Constants / special variables.
2 => array(
'true', 'yes', 'false', 'no', '__END__'
),
// Internal Filters.
3 => array(
'AviSource', 'AviFileSource', 'AddBorders', 'AlignedSplice', 'AssumeFPS', 'AssumeScaledFPS',
'AssumeFrameBased', 'AssumeFieldBased', 'AssumeBFF', 'AssumeTFF', 'Amplify', 'AmplifydB',
'AssumeSampleRate', 'AudioDub', 'AudioDubEx', 'Animate', 'ApplyRange',
'BicubicResize', 'BilinearResize', 'BlackmanResize', 'Blur', 'Bob', 'BlankClip', 'Blackness',
'ColorYUV', 'ConvertBackToYUY2', 'ConvertToRGB', 'ConvertToRGB24', 'ConvertToRGB32',
'ConvertToYUY2', 'ConvertToY8', 'ConvertToYV411', 'ConvertToYV12', 'ConvertToYV16', 'ConvertToYV24',
'ColorKeyMask', 'Crop', 'CropBottom', 'ChangeFPS', 'ConvertFPS', 'ComplementParity', 'ConvertAudioTo8bit',
'ConvertAudioTo16bit', 'ConvertAudioTo24bit', 'ConvertAudioTo32bit', 'ConvertAudioToFloat', 'ConvertToMono',
'ConditionalFilter', 'ConditionalReader', 'ColorBars', 'Compare',
'DirectShowSource', 'DeleteFrame', 'Dissolve', 'DuplicateFrame', 'DoubleWeave', 'DelayAudio',
'EnsureVBRMP3Sync',
'FixLuminance', 'FlipHorizontal', 'FlipVertical', 'FixBrokenChromaUpsampling', 'FadeIn0', 'FadeIn',
'FadeIn2', 'FadeOut0', 'FadeOut', 'FadeOut2', 'FadeIO0', 'FadeIO', 'FadeIO2', 'FreezeFrame', 'FrameEvaluate',
'GreyScale', 'GaussResize', 'GeneralConvolution', 'GetChannel', 'GetLeftChannel', 'GetRightChannel',
'HorizontalReduceBy2', 'Histogram',
'ImageReader', 'ImageSource', 'ImageWriter', 'Invert', 'Interleave', 'Info',
'KillAudio', 'KillVideo',
'Levels', 'Limiter', 'Layer', 'Letterbox', 'LanczosResize', 'Lanczos4Resize', 'Loop',
'MergeARGB', 'MergeRGB', 'MergeChroma', 'MergeLuma', 'Merge', 'Mask', 'MaskHS', 'MergeChannels', 'MixAudio',
'MonoToStereo', 'MessageClip',
'Normalize',
'OpenDMLSource', 'Overlay',
'PointResize', 'PeculiarBlend', 'Pulldown',
'RGBAdjust', 'ResetMask', 'Reverse', 'ResampleAudio', 'ReduceBy2',
'SegmentedAviSource', 'SegmentedDirectShowSource', 'SoundOut', 'ShowAlpha', 'ShowRed', 'ShowGreen',
'ShowBlue', 'SwapUV', 'Subtract', 'SincResize', 'Spline16Resize', 'Spline36Resize', 'Spline64Resize',
'SelectEven', 'SelectOdd', 'SelectEvery', 'SelectRangeEvery', 'Sharpen', 'SpatialSoften', 'SeparateFields',
'ShowFiveVersions', 'ShowFrameNumber', 'ShowSMPTE', 'ShowTime', 'StackHorizontal', 'StackVertical', 'Subtitle',
'SwapFields', 'SuperEQ', 'SSRC', 'ScriptClip',
'Tweak', 'TurnLeft', 'TurnRight', 'Turn180', 'TemporalSoften', 'TimeStretch', 'TCPServer', 'TCPSource', 'Trim',
'Tone',
'UToY', 'UToY8', 'UnalignedSplice',
'VToY', 'VToY8', 'VerticalReduceBy2', 'Version',
'WavSource', 'Weave', 'WriteFile', 'WriteFileIf', 'WriteFileStart', 'WriteFileEnd',
'YToUV'
),
// Internal functions.
4 => array(
'Abs', 'Apply', 'Assert', 'AverageLuma', 'AverageChromaU', 'AverageChromaV',
'Ceil', 'Cos', 'Chr', 'ChromaUDifference', 'ChromaVDifference',
'Defined', 'Default',
'Exp', 'Exist', 'Eval',
'Floor', 'Frac', 'Float', 'Findstr', 'GetMTMode',
'HexValue',
'Int', 'IsBool', 'IsClip', 'IsFloat', 'IsInt', 'IsString', 'Import',
'LoadPlugin', 'Log', 'LCase', 'LeftStr', 'LumaDifference', 'LoadVirtualDubPlugin', 'LoadVFAPIPlugin',
'LoadCPlugin', 'Load_Stdcall_Plugin',
'Max', 'MulDiv', 'MidStr',
'NOP',
'OPT_AllowFloatAudio', 'OPT_UseWaveExtensible',
'Pi', 'Pow',
'Round', 'Rand', 'RevStr', 'RightStr', 'RGBDifference', 'RGBDifferenceFromPrevious', 'RGBDifferenceToNext',
'Sin', 'Sqrt', 'Sign', 'Spline', 'StrLen', 'String', 'Select', 'SetMemoryMax', 'SetWorkingDir', 'SetMTMode',
'SetPlanarLegacyAlignment',
'Time',
'UCase', 'UDifferenceFromPrevious', 'UDifferenceToNext', 'UPlaneMax', 'UPlaneMin', 'UPlaneMedian',
'UPlaneMinMaxDifference',
'Value', 'VersionNumber', 'VersionString', 'VDifferenceFromPrevious', 'VDifferenceToNext', 'VPlaneMax',
'VPlaneMin', 'VPlaneMedian', 'VPlaneMinMaxDifference',
'YDifferenceFromPrevious', 'YDifferenceToNext', 'YPlaneMax', 'YPlaneMin', 'YPlaneMedian',
'YPlaneMinMaxDifference'
)
),
'SYMBOLS' => array(
'+', '++', '-', '--', '/', '*', '%',
'=', '==', '<', '<=', '>', '>=', '<>', '!=',
'!', '?', ':',
'|', '||', '&&',
'\\',
'(', ')', '{', '}',
'.', ','
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => true,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color:#9966CC; font-weight:bold;',
2 => 'color:#0000FF; font-weight:bold;',
3 => 'color:#CC3300; font-weight:bold;',
4 => 'color:#660000; font-weight:bold;'
),
'COMMENTS' => array(
1 => 'color:#008000; font-style:italic;',
'MULTI' => 'color:#000080; font-style:italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color:#000099;'
),
'BRACKETS' => array(
0 => 'color:#006600; font-weight:bold;'
),
'STRINGS' => array(
0 => 'color:#996600;'
),
'NUMBERS' => array(
0 => 'color:#006666;'
),
'METHODS' => array(
1 => 'color:#9900CC;'
),
'SYMBOLS' => array(
0 => 'color:#006600; font-weight:bold;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => 'http://avisynth.org/mediawiki/{FNAME}',
4 => ''
),
'REGEXPS' => array(
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'STRICT_MODE_APPLIES' => GESHI_MAYBE,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4
);
?>

View file

@ -0,0 +1,205 @@
<?php
/*************************************************************************************
* bash.php
* --------
* Author: Andreas Gohr (andi@splitbrain.org)
* Copyright: (c) 2004 Andreas Gohr, Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.7.21
* Date Started: 2004/08/20
*
* BASH language file for GeSHi.
*
* CHANGES
* -------
* 2007/09/05 (1.0.7.21)
* - PARSER_CONTROL patch using SF #1788408 (BenBE)
* 2007/06/11 (1.0.7.20)
* - Added a lot of keywords (BenBE / Jan G)
* 2004/11/27 (1.0.2)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.1)
* - Added support for URLs
* 2004/08/20 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
* * Get symbols working
* * Highlight builtin vars
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Bash',
// Bash DOES have single line comments with # markers. But bash also has
// the $# variable, so comments need special handling (see sf.net
// 1564839)
'COMMENT_SINGLE' => array('#'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'case', 'do', 'done', 'elif', 'else', 'esac', 'fi', 'for', 'function',
'if', 'in', 'select', 'set', 'then', 'until', 'while', 'time'
),
2 => array(
'aclocal', 'aconnect', 'aplay', 'apm', 'apmsleep', 'apropos',
'ar', 'arch', 'arecord', 'as', 'as86', 'autoconf', 'autoheader',
'automake', 'awk',
'basename', 'bc', 'bison', 'bunzip2', 'bzip2', 'bzcat',
'bzcmp', 'bzdiff', 'bzegrep', 'bzegrep', 'bzfgrep', 'bzgrep',
'bzip2', 'bzip2recover', 'bzless', 'bzmore',
'c++', 'cal', 'cat', 'chattr', 'cc', 'cdda2wav', 'cdparanoia',
'cdrdao', 'cd-read', 'cdrecord', 'chfn', 'chgrp', 'chmod',
'chown', 'chroot', 'chsh', 'chvt', 'clear', 'cmp', 'comm', 'co',
'col', 'cp', 'cpio', 'cpp', 'cut',
'date', 'dd', 'dc', 'dcop', 'deallocvt', 'df', 'diff', 'diff3', 'dir',
'dircolors', 'directomatic', 'dirname', 'dmesg',
'dnsdomainname', 'domainname', 'du', 'dumpkeys',
'ed', 'egrep', 'env', 'expr',
'false', 'fbset', 'fgconsole','fgrep', 'find', 'file', 'flex', 'flex++',
'fmt', 'free', 'ftp', 'funzip', 'fuser',
'g++', 'gawk', 'gc','gcc', 'gdb', 'getent', 'getkeycodes',
'getopt', 'gettext', 'gettextize', 'gimp', 'gimp-remote',
'gimptool', 'gmake', 'gocr', 'grep', 'groups', 'gs', 'gunzip',
'gzexe', 'gzip',
'head', 'hexdump', 'hostname',
'id', 'igawk', 'install',
'join',
'kbd_mode','kbdrate', 'kdialog', 'kfile', 'kill', 'killall',
'last', 'lastb', 'ld', 'ld86', 'ldd', 'less', 'lex', 'link', 'ln', 'loadkeys',
'loadunimap', 'locate', 'lockfile', 'login', 'logname',
'lp', 'lpr', 'ls', 'lsattr', 'lsmod', 'lsmod.old', 'lynx',
'm4', 'make', 'man', 'mapscrn', 'mesg', 'mkdir', 'mkfifo',
'mknod', 'mktemp', 'more', 'mount', 'msgfmt', 'mv',
'namei', 'nano', 'nasm', 'nawk', 'netstat', 'nice',
'nisdomainname', 'nl', 'nm', 'nm86', 'nmap', 'nohup', 'nop',
'od', 'openvt',
'passwd', 'patch', 'pcregrep', 'pcretest', 'perl', 'perror',
'pgawk', 'pidof', 'ping', 'pr', 'procmail', 'prune', 'ps', 'pstree',
'ps2ascii', 'ps2epsi', 'ps2frag', 'ps2pdf', 'ps2ps', 'psbook',
'psmerge', 'psnup', 'psresize', 'psselect', 'pstops',
'rbash', 'rcs', 'read', 'readlink', 'red', 'resizecons', 'rev', 'rm',
'rmdir', 'run-parts',
'sash', 'sed', 'setfont', 'setkeycodes', 'setleds',
'setmetamode', 'setserial', 'scp', 'seq', 'setterm', 'sh',
'showkey', 'shred', 'size', 'size86', 'skill', 'sleep', 'slogin',
'snice', 'sort', 'sox', 'split', 'ssed', 'ssh', 'ssh-add',
'ssh-agent', 'ssh-keygen', 'ssh-keyscan', 'stat', 'strings',
'strip', 'stty', 'su', 'sudo', 'suidperl', 'sum', 'sync',
'tac', 'tail', 'tar', 'tee', 'tempfile', 'touch', 'tr', 'true',
'umount', 'uname', 'unicode_start', 'unicode_stop', 'uniq',
'unlink', 'unzip', 'updatedb', 'updmap', 'uptime', 'users',
'utmpdump', 'uuidgen',
'vdir', 'vmstat',
'w', 'wall', 'wc', 'wget', 'whatis', 'whereis', 'which', 'who',
'whoami', 'write',
'xargs', 'xhost', 'xmodmap', 'xset',
'yacc', 'yes', 'ypdomainname',
'zcat', 'zcmp', 'zdiff', 'zegrep', 'zfgrep', 'zforce', 'zgrep',
'zip', 'zless', 'zmore', 'znew', 'zsh', ' zsoelim'
),
3 => array(
'alias', 'bg', 'bind', 'break', 'builtin', 'cd', 'command',
'compgen', 'complete', 'continue', 'declare', 'dirs', 'disown',
'echo', 'enable', 'eval', 'exec', 'exit', 'export', 'fc',
'fg', 'getopts', 'hash', 'help', 'history', 'jobs', 'kill', 'let',
'local', 'logout', 'popd', 'printf', 'pushd', 'pwd', 'readonly',
'return', 'shift', 'shopt', 'source', 'suspend', 'test', 'times',
'trap', 'type', 'typeset', 'ulimit', 'umask', 'unalias', 'unset',
'wait'
)
),
'SYMBOLS' => array(
'(', ')', '[', ']', '!', '@', '%', '&', '*', '|', '/', '<', '>', ';;'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000000; font-weight: bold;',
2 => 'color: #c20cb9; font-weight: bold;',
3 => 'color: #7a0874; font-weight: bold;'
),
'COMMENTS' => array(
0 => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #7a0874; font-weight: bold;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #000000;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #000000; font-weight: bold;'
),
'REGEXPS' => array(
0 => 'color: #007800;',
1 => 'color: #007800;',
2 => 'color: #007800;',
// 3 => 'color: #808080; font-style: italic;',
4 => 'color: #007800;'
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
0 => "\\$\\{[a-zA-Z_][a-zA-Z0-9_]*?\\}",
1 => "\\$[a-zA-Z_][a-zA-Z0-9_]*",
2 => "([a-zA-Z_][a-zA-Z0-9_]*)=",
// 3 => "(?<!\\$)#[^\n]*",
4 => "\\$[*#\$\\-\\?!]"
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'PARSER_CONTROL' => array(
'COMMENTS' => array(
'DISALLOWED_BEFORE' => '$'
)
)
);
?>

View file

@ -0,0 +1,336 @@
<?php
/*************************************************************************************
* basic4gl.php
* ---------------------------------
* Author: Matthew Webb (bmatthew1@blueyonder.co.uk)
* Copyright: (c) 2004 Matthew Webb (http://matthew-4gl.wikispaces.com)
* Release Version: 1.0.7.21
* Date Started: 2007/09/15
*
* Basic4GL language file for GeSHi.
*
* You can find the Basic4GL Website at (http://www.basic4gl.net/)
*
* CHANGES
* -------
* 2007/09/17 (1.0.0)
* - First Release
*
* TODO (updated 2007/09/17)
* -------------------------
* Make sure all the OpenGL and Basic4GL commands have been added and are complete.
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Basic4GL',
'COMMENT_SINGLE' => array(1 => "'"),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
// Navy Blue Bold Keywords
'true','rnd_max','m_pi','m_e','false','VK_ZOOM','VK_UP','VK_TAB','VK_SUBTRACT','VK_SPACE','VK_SNAPSHOT',
'VK_SHIFT','VK_SEPARATOR','VK_SELECT','VK_SCROLL','VK_RWIN','VK_RSHIFT','VK_RMENU','VK_RIGHT','VK_RETURN',
'VK_RCONTROL','VK_RBUTTON','VK_PROCESSKEY','VK_PRIOR','VK_PRINT','VK_PLAY','VK_PAUSE','VK_NUMPAD9','VK_NUMPAD8',
'VK_NUMPAD7','VK_NUMPAD6','VK_NUMPAD5','VK_NUMPAD4','VK_NUMPAD3','VK_NUMPAD2','VK_NUMPAD1','VK_NUMPAD0',
'VK_NUMLOCK','VK_NONCONVERT','VK_NEXT','VK_MULTIPLY','VK_MODECHANGE','VK_MENU','VK_MBUTTON','VK_LWIN',
'VK_LSHIFT','VK_LMENU','VK_LEFT','VK_LCONTROL','VK_LBUTTON','VK_KANJI','VK_KANA','VK_JUNJA','VK_INSERT',
'VK_HOME','VK_HELP','VK_HANJA','VK_HANGUL','VK_HANGEUL','VK_FINAL','VK_F9','VK_F8','VK_F7','VK_F6','VK_F5',
'VK_F4','VK_F3','VK_F24','VK_F23','VK_F22','VK_F21','VK_F20','VK_F2','VK_F19','VK_F18','VK_F17','VK_F16',
'VK_F15','VK_F14','VK_F13','VK_F12','VK_F11','VK_F10','VK_F1','VK_EXSEL','VK_EXECUTE','VK_ESCAPE','VK_EREOF',
'VK_END','VK_DOWN','VK_DIVIDE','VK_DELETE','VK_DECIMAL','VK_CRSEL','VK_CONVERT','VK_CONTROL','VK_CLEAR',
'VK_CAPITAL','VK_CANCEL','VK_BACK','VK_ATTN','VK_APPS','VK_ADD','VK_ACCEPT','TEXT_SIMPLE','TEXT_OVERLAID',
'TEXT_BUFFERED','SPR_TILEMAP','SPR_SPRITE','SPR_INVALID','MOUSE_RBUTTON','MOUSE_MBUTTON','MOUSE_LBUTTON',
'GL_ZOOM_Y','GL_ZOOM_X','GL_ZERO','GL_XOR','GL_WIN_swap_hint','GL_WIN_draw_range_elements','GL_VIEWPORT_BIT',
'GL_VIEWPORT','GL_VERTEX_ARRAY_TYPE_EXT','GL_VERTEX_ARRAY_TYPE','GL_VERTEX_ARRAY_STRIDE_EXT','GL_VERTEX_ARRAY_STRIDE',
'GL_VERTEX_ARRAY_SIZE_EXT','GL_VERTEX_ARRAY_SIZE','GL_VERTEX_ARRAY_POINTER_EXT','GL_VERTEX_ARRAY_POINTER',
'GL_VERTEX_ARRAY_EXT','GL_VERTEX_ARRAY_COUNT_EXT','GL_VERTEX_ARRAY','GL_VERSION_1_1','GL_VERSION','GL_VENDOR',
'GL_V3F','GL_V2F','GL_UNSIGNED_SHORT','GL_UNSIGNED_INT','GL_UNSIGNED_BYTE','GL_UNPACK_SWAP_BYTES','GL_UNPACK_SKIP_ROWS',
'GL_UNPACK_SKIP_PIXELS','GL_UNPACK_ROW_LENGTH','GL_UNPACK_LSB_FIRST','GL_UNPACK_ALIGNMENT','GL_TRUE','GL_TRIANGLE_STRIP',
'GL_TRIANGLE_FAN','GL_TRIANGLES','GL_TRANSFORM_BIT','GL_TEXTURE_WRAP_T','GL_TEXTURE_WRAP_S','GL_TEXTURE_WIDTH',
'GL_TEXTURE_STACK_DEPTH','GL_TEXTURE_RESIDENT','GL_TEXTURE_RED_SIZE','GL_TEXTURE_PRIORITY','GL_TEXTURE_MIN_FILTER',
'GL_TEXTURE_MATRIX','GL_TEXTURE_MAG_FILTER','GL_TEXTURE_LUMINANCE_SIZE','GL_TEXTURE_INTERNAL_FORMAT','GL_TEXTURE_INTENSITY_SIZE',
'GL_TEXTURE_HEIGHT','GL_TEXTURE_GREEN_SIZE','GL_TEXTURE_GEN_T','GL_TEXTURE_GEN_S','GL_TEXTURE_GEN_R','GL_TEXTURE_GEN_Q',
'GL_TEXTURE_GEN_MODE','GL_TEXTURE_ENV_MODE','GL_TEXTURE_ENV_COLOR','GL_TEXTURE_ENV','GL_TEXTURE_COORD_ARRAY_TYPE_EXT',
'GL_TEXTURE_COORD_ARRAY_TYPE','GL_TEXTURE_COORD_ARRAY_STRIDE_EXT','GL_TEXTURE_COORD_ARRAY_STRIDE','GL_TEXTURE_COORD_ARRAY_SIZE_EXT',
'GL_TEXTURE_COORD_ARRAY_SIZE','GL_TEXTURE_COORD_ARRAY_POINTER_EXT','GL_TEXTURE_COORD_ARRAY_POINTER','GL_TEXTURE_COORD_ARRAY_EXT',
'GL_TEXTURE_COORD_ARRAY_COUNT_EXT','GL_TEXTURE_COORD_ARRAY','GL_TEXTURE_COMPONENTS','GL_TEXTURE_BORDER_COLOR','GL_TEXTURE_BORDER',
'GL_TEXTURE_BLUE_SIZE','GL_TEXTURE_BIT','GL_TEXTURE_BINDING_2D','GL_TEXTURE_BINDING_1D','GL_TEXTURE_ALPHA_SIZE',
'GL_TEXTURE_2D','GL_TEXTURE_1D','GL_TEXTURE9_ARB','GL_TEXTURE9','GL_TEXTURE8_ARB','GL_TEXTURE8','GL_TEXTURE7_ARB',
'GL_TEXTURE7','GL_TEXTURE6_ARB','GL_TEXTURE6','GL_TEXTURE5_ARB','GL_TEXTURE5','GL_TEXTURE4_ARB','GL_TEXTURE4',
'GL_TEXTURE3_ARB','GL_TEXTURE31_ARB','GL_TEXTURE31','GL_TEXTURE30_ARB','GL_TEXTURE30','GL_TEXTURE3','GL_TEXTURE2_ARB',
'GL_TEXTURE29_ARB','GL_TEXTURE29','GL_TEXTURE28_ARB','GL_TEXTURE28','GL_TEXTURE27_ARB','GL_TEXTURE27','GL_TEXTURE26_ARB',
'GL_TEXTURE26','GL_TEXTURE25_ARB','GL_TEXTURE25','GL_TEXTURE24_ARB','GL_TEXTURE24','GL_TEXTURE23_ARB','GL_TEXTURE23',
'GL_TEXTURE22_ARB','GL_TEXTURE22','GL_TEXTURE21_ARB','GL_TEXTURE21','GL_TEXTURE20_ARB','GL_TEXTURE20','GL_TEXTURE2',
'GL_TEXTURE1_ARB','GL_TEXTURE19_ARB','GL_TEXTURE19','GL_TEXTURE18_ARB','GL_TEXTURE18','GL_TEXTURE17_ARB',
'GL_TEXTURE17','GL_TEXTURE16_ARB','GL_TEXTURE16','GL_TEXTURE15_ARB','GL_TEXTURE15','GL_TEXTURE14_ARB','GL_TEXTURE14',
'GL_TEXTURE13_ARB','GL_TEXTURE13','GL_TEXTURE12_ARB','GL_TEXTURE12','GL_TEXTURE11_ARB','GL_TEXTURE11','GL_TEXTURE10_ARB',
'GL_TEXTURE10','GL_TEXTURE1','GL_TEXTURE0_ARB','GL_TEXTURE0','GL_TEXTURE','GL_T4F_V4F','GL_T4F_C4F_N3F_V4F','GL_T2F_V3F',
'GL_T2F_N3F_V3F','GL_T2F_C4UB_V3F','GL_T2F_C4F_N3F_V3F','GL_T2F_C3F_V3F','GL_T','GL_SUBPIXEL_BITS','GL_STEREO',
'GL_STENCIL_WRITEMASK','GL_STENCIL_VALUE_MASK','GL_STENCIL_TEST','GL_STENCIL_REF','GL_STENCIL_PASS_DEPTH_PASS',
'GL_STENCIL_PASS_DEPTH_FAIL','GL_STENCIL_INDEX','GL_STENCIL_FUNC','GL_STENCIL_FAIL','GL_STENCIL_CLEAR_VALUE',
'GL_STENCIL_BUFFER_BIT','GL_STENCIL_BITS','GL_STENCIL','GL_STACK_UNDERFLOW','GL_STACK_OVERFLOW','GL_SRC_COLOR',
'GL_SRC_ALPHA_SATURATE','GL_SRC_ALPHA','GL_SPOT_EXPONENT','GL_SPOT_DIRECTION','GL_SPOT_CUTOFF','GL_SPHERE_MAP',
'GL_SPECULAR','GL_SOURCE2_RGB_EXT','GL_SOURCE2_RGB','GL_SOURCE2_ALPHA_EXT','GL_SOURCE2_ALPHA','GL_SOURCE1_RGB_EXT',
'GL_SOURCE1_RGB','GL_SOURCE1_ALPHA_EXT','GL_SOURCE1_ALPHA','GL_SOURCE0_RGB_EXT','GL_SOURCE0_RGB','GL_SOURCE0_ALPHA_EXT',
'GL_SOURCE0_ALPHA','GL_SMOOTH','GL_SHORT','GL_SHININESS','GL_SHADE_MODEL','GL_SET','GL_SELECTION_BUFFER_SIZE',
'GL_SELECTION_BUFFER_POINTER','GL_SELECT','GL_SCISSOR_TEST','GL_SCISSOR_BOX','GL_SCISSOR_BIT','GL_S','GL_RIGHT',
'GL_RGB_SCALE_EXT','GL_RGB_SCALE','GL_RGBA_MODE','GL_RGBA8','GL_RGBA4','GL_RGBA2','GL_RGBA16','GL_RGBA12','GL_RGBA',
'GL_RGB8','GL_RGB5_A1','GL_RGB5','GL_RGB4','GL_RGB16','GL_RGB12','GL_RGB10_A2','GL_RGB10','GL_RGB','GL_RETURN',
'GL_REPLACE','GL_REPEAT','GL_RENDER_MODE','GL_RENDERER','GL_RENDER','GL_RED_SCALE','GL_RED_BITS','GL_RED_BIAS',
'GL_RED','GL_READ_BUFFER','GL_R3_G3_B2','GL_R','GL_QUAD_STRIP','GL_QUADS','GL_QUADRATIC_ATTENUATION','GL_Q',
'GL_PROXY_TEXTURE_2D','GL_PROXY_TEXTURE_1D','GL_PROJECTION_STACK_DEPTH','GL_PROJECTION_MATRIX','GL_PROJECTION',
'GL_PRIMARY_COLOR_EXT','GL_PRIMARY_COLOR','GL_PREVIOUS_EXT','GL_PREVIOUS','GL_POSITION','GL_POLYGON_TOKEN',
'GL_POLYGON_STIPPLE_BIT','GL_POLYGON_STIPPLE','GL_POLYGON_SMOOTH_HINT','GL_POLYGON_SMOOTH','GL_POLYGON_OFFSET_UNITS',
'GL_POLYGON_OFFSET_POINT','GL_POLYGON_OFFSET_LINE','GL_POLYGON_OFFSET_FILL','GL_POLYGON_OFFSET_FACTOR','GL_POLYGON_MODE',
'GL_POLYGON_BIT','GL_POLYGON','GL_POINT_TOKEN','GL_POINT_SMOOTH_HINT','GL_POINT_SMOOTH','GL_POINT_SIZE_RANGE',
'GL_POINT_SIZE_GRANULARITY','GL_POINT_SIZE','GL_POINT_BIT','GL_POINTS','GL_POINT','GL_PIXEL_MODE_BIT',
'GL_PIXEL_MAP_S_TO_S_SIZE','GL_PIXEL_MAP_S_TO_S','GL_PIXEL_MAP_R_TO_R_SIZE','GL_PIXEL_MAP_R_TO_R','GL_PIXEL_MAP_I_TO_R_SIZE',
'GL_PIXEL_MAP_I_TO_R','GL_PIXEL_MAP_I_TO_I_SIZE','GL_PIXEL_MAP_I_TO_I','GL_PIXEL_MAP_I_TO_G_SIZE','GL_PIXEL_MAP_I_TO_G',
'GL_PIXEL_MAP_I_TO_B_SIZE','GL_PIXEL_MAP_I_TO_B','GL_PIXEL_MAP_I_TO_A_SIZE','GL_PIXEL_MAP_I_TO_A','GL_PIXEL_MAP_G_TO_G_SIZE',
'GL_PIXEL_MAP_G_TO_G','GL_PIXEL_MAP_B_TO_B_SIZE','GL_PIXEL_MAP_B_TO_B','GL_PIXEL_MAP_A_TO_A_SIZE','GL_PIXEL_MAP_A_TO_A',
'GL_PHONG_WIN','GL_PHONG_HINT_WIN','GL_PERSPECTIVE_CORRECTION_HINT','GL_PASS_THROUGH_TOKEN','GL_PACK_SWAP_BYTES',
'GL_PACK_SKIP_ROWS','GL_PACK_SKIP_PIXELS','GL_PACK_ROW_LENGTH','GL_PACK_LSB_FIRST','GL_PACK_ALIGNMENT','GL_OUT_OF_MEMORY',
'GL_OR_REVERSE','GL_OR_INVERTED','GL_ORDER','GL_OR','GL_OPERAND2_RGB_EXT','GL_OPERAND2_RGB','GL_OPERAND2_ALPHA_EXT',
'GL_OPERAND2_ALPHA','GL_OPERAND1_RGB_EXT','GL_OPERAND1_RGB','GL_OPERAND1_ALPHA_EXT','GL_OPERAND1_ALPHA','GL_OPERAND0_RGB_EXT',
'GL_OPERAND0_RGB','GL_OPERAND0_ALPHA_EXT','GL_OPERAND0_ALPHA','GL_ONE_MINUS_SRC_COLOR','GL_ONE_MINUS_SRC_ALPHA',
'GL_ONE_MINUS_DST_COLOR','GL_ONE_MINUS_DST_ALPHA','GL_ONE','GL_OBJECT_PLANE','GL_OBJECT_LINEAR','GL_NO_ERROR',
'GL_NOTEQUAL','GL_NORMAL_ARRAY_TYPE_EXT','GL_NORMAL_ARRAY_TYPE','GL_NORMAL_ARRAY_STRIDE_EXT','GL_NORMAL_ARRAY_STRIDE',
'GL_NORMAL_ARRAY_POINTER_EXT','GL_NORMAL_ARRAY_POINTER','GL_NORMAL_ARRAY_EXT','GL_NORMAL_ARRAY_COUNT_EXT',
'GL_NORMAL_ARRAY','GL_NORMALIZE','GL_NOR','GL_NOOP','GL_NONE','GL_NICEST','GL_NEVER','GL_NEAREST_MIPMAP_NEAREST','GL_NEAREST_MIPMAP_LINEAR',
'GL_NEAREST','GL_NAND','GL_NAME_STACK_DEPTH','GL_N3F_V3F','GL_MULT','GL_MODULATE','GL_MODELVIEW_STACK_DEPTH','GL_MODELVIEW_MATRIX',
'GL_MODELVIEW','GL_MAX_VIEWPORT_DIMS','GL_MAX_TEXTURE_UNITS_ARB','GL_MAX_TEXTURE_UNITS','GL_MAX_TEXTURE_STACK_DEPTH',
'GL_MAX_TEXTURE_SIZE','GL_MAX_PROJECTION_STACK_DEPTH','GL_MAX_PIXEL_MAP_TABLE','GL_MAX_NAME_STACK_DEPTH','GL_MAX_MODELVIEW_STACK_DEPTH',
'GL_MAX_LIST_NESTING','GL_MAX_LIGHTS','GL_MAX_EVAL_ORDER','GL_MAX_ELEMENTS_VERTICES_WIN','GL_MAX_ELEMENTS_INDICES_WIN',
'GL_MAX_CLIP_PLANES','GL_MAX_CLIENT_ATTRIB_STACK_DEPTH','GL_MAX_ATTRIB_STACK_DEPTH','GL_MATRIX_MODE','GL_MAP_STENCIL',
'GL_MAP_COLOR','GL_MAP2_VERTEX_4','GL_MAP2_VERTEX_3','GL_MAP2_TEXTURE_COORD_4','GL_MAP2_TEXTURE_COORD_3','GL_MAP2_TEXTURE_COORD_2',
'GL_MAP2_TEXTURE_COORD_1','GL_MAP2_NORMAL','GL_MAP2_INDEX','GL_MAP2_GRID_SEGMENTS','GL_MAP2_GRID_DOMAIN','GL_MAP2_COLOR_4',
'GL_MAP1_VERTEX_4','GL_MAP1_VERTEX_3','GL_MAP1_TEXTURE_COORD_4','GL_MAP1_TEXTURE_COORD_3','GL_MAP1_TEXTURE_COORD_2',
'GL_MAP1_TEXTURE_COORD_1','GL_MAP1_NORMAL','GL_MAP1_INDEX','GL_MAP1_GRID_SEGMENTS','GL_MAP1_GRID_DOMAIN',
'GL_MAP1_COLOR_4','GL_LUMINANCE_ALPHA','GL_LUMINANCE8_ALPHA8','GL_LUMINANCE8','GL_LUMINANCE6_ALPHA2','GL_LUMINANCE4_ALPHA4',
'GL_LUMINANCE4','GL_LUMINANCE16_ALPHA16','GL_LUMINANCE16','GL_LUMINANCE12_ALPHA4','GL_LUMINANCE12_ALPHA12','GL_LUMINANCE12',
'GL_LUMINANCE','GL_LOGIC_OP_MODE','GL_LOGIC_OP','GL_LOAD','GL_LIST_MODE','GL_LIST_INDEX','GL_LIST_BIT',
'GL_LIST_BASE','GL_LINE_WIDTH_RANGE','GL_LINE_WIDTH_GRANULARITY','GL_LINE_WIDTH','GL_LINE_TOKEN','GL_LINE_STRIP','GL_LINE_STIPPLE_REPEAT',
'GL_LINE_STIPPLE_PATTERN','GL_LINE_STIPPLE','GL_LINE_SMOOTH_HINT','GL_LINE_SMOOTH','GL_LINE_RESET_TOKEN','GL_LINE_LOOP',
'GL_LINE_BIT','GL_LINES','GL_LINEAR_MIPMAP_NEAREST','GL_LINEAR_MIPMAP_LINEAR','GL_LINEAR_ATTENUATION','GL_LINEAR',
'GL_LINE','GL_LIGHT_MODEL_TWO_SIDE','GL_LIGHT_MODEL_LOCAL_VIEWER','GL_LIGHT_MODEL_AMBIENT','GL_LIGHTING_BIT',
'GL_LIGHTING','GL_LIGHT7','GL_LIGHT6','GL_LIGHT5','GL_LIGHT4','GL_LIGHT3','GL_LIGHT2','GL_LIGHT1','GL_LIGHT0',
'GL_LESS','GL_LEQUAL','GL_LEFT','GL_KEEP','GL_INVERT','GL_INVALID_VALUE','GL_INVALID_OPERATION','GL_INVALID_ENUM','GL_INTERPOLATE_EXT',
'GL_INTERPOLATE','GL_INTENSITY8','GL_INTENSITY4','GL_INTENSITY16','GL_INTENSITY12','GL_INTENSITY','GL_INT',
'GL_INDEX_WRITEMASK','GL_INDEX_SHIFT','GL_INDEX_OFFSET','GL_INDEX_MODE','GL_INDEX_LOGIC_OP','GL_INDEX_CLEAR_VALUE','GL_INDEX_BITS',
'GL_INDEX_ARRAY_TYPE_EXT','GL_INDEX_ARRAY_TYPE','GL_INDEX_ARRAY_STRIDE_EXT','GL_INDEX_ARRAY_STRIDE','GL_INDEX_ARRAY_POINTER_EXT',
'GL_INDEX_ARRAY_POINTER','GL_INDEX_ARRAY_EXT','GL_INDEX_ARRAY_COUNT_EXT','GL_INDEX_ARRAY','GL_INCR','GL_HINT_BIT',
'GL_GREEN_SCALE','GL_GREEN_BITS','GL_GREEN_BIAS','GL_GREEN','GL_GREATER','GL_GEQUAL','GL_FRONT_RIGHT','GL_FRONT_LEFT',
'GL_FRONT_FACE','GL_FRONT_AND_BACK','GL_FRONT','GL_FOG_START','GL_FOG_SPECULAR_TEXTURE_WIN','GL_FOG_MODE','GL_FOG_INDEX',
'GL_FOG_HINT','GL_FOG_END','GL_FOG_DENSITY','GL_FOG_COLOR','GL_FOG_BIT','GL_FOG','GL_FLOAT','GL_FLAT','GL_FILL',
'GL_FEEDBACK_BUFFER_TYPE','GL_FEEDBACK_BUFFER_SIZE','GL_FEEDBACK_BUFFER_POINTER','GL_FEEDBACK','GL_FASTEST','GL_FALSE',
'GL_EYE_PLANE','GL_EYE_LINEAR','GL_EXT_vertex_array','GL_EXT_paletted_texture','GL_EXT_bgra','GL_EXTENSIONS','GL_EXP2',
'GL_EXP','GL_EVAL_BIT','GL_EQUIV','GL_EQUAL','GL_ENABLE_BIT','GL_EMISSION','GL_EDGE_FLAG_ARRAY_STRIDE_EXT','GL_EDGE_FLAG_ARRAY_STRIDE',
'GL_EDGE_FLAG_ARRAY_POINTER_EXT','GL_EDGE_FLAG_ARRAY_POINTER','GL_EDGE_FLAG_ARRAY_EXT','GL_EDGE_FLAG_ARRAY_COUNT_EXT','GL_EDGE_FLAG_ARRAY',
'GL_EDGE_FLAG','GL_DST_COLOR','GL_DST_ALPHA','GL_DRAW_PIXEL_TOKEN','GL_DRAW_BUFFER','GL_DOUBLE_EXT','GL_DOUBLEBUFFER',
'GL_DOUBLE','GL_DONT_CARE','GL_DOMAIN','GL_DITHER','GL_DIFFUSE','GL_DEPTH_WRITEMASK','GL_DEPTH_TEST','GL_DEPTH_SCALE',
'GL_DEPTH_RANGE','GL_DEPTH_FUNC','GL_DEPTH_COMPONENT','GL_DEPTH_CLEAR_VALUE','GL_DEPTH_BUFFER_BIT','GL_DEPTH_BITS',
'GL_DEPTH_BIAS','GL_DEPTH','GL_DECR','GL_DECAL','GL_CW','GL_CURRENT_TEXTURE_COORDS','GL_CURRENT_RASTER_TEXTURE_COORDS','GL_CURRENT_RASTER_POSITION_VALID',
'GL_CURRENT_RASTER_POSITION','GL_CURRENT_RASTER_INDEX','GL_CURRENT_RASTER_DISTANCE','GL_CURRENT_RASTER_COLOR','GL_CURRENT_NORMAL',
'GL_CURRENT_INDEX','GL_CURRENT_COLOR','GL_CURRENT_BIT','GL_CULL_FACE_MODE','GL_CULL_FACE','GL_COPY_PIXEL_TOKEN',
'GL_COPY_INVERTED','GL_COPY','GL_CONSTANT_EXT','GL_CONSTANT_ATTENUATION','GL_CONSTANT','GL_COMPILE_AND_EXECUTE','GL_COMPILE','GL_COMBINE_RGB_EXT',
'GL_COMBINE_RGB','GL_COMBINE_EXT','GL_COMBINE_ALPHA_EXT','GL_COMBINE_ALPHA','GL_COMBINE','GL_COLOR_WRITEMASK',
'GL_COLOR_TABLE_WIDTH_EXT','GL_COLOR_TABLE_RED_SIZE_EXT','GL_COLOR_TABLE_LUMINANCE_SIZE_EXT','GL_COLOR_TABLE_INTENSITY_SIZE_EXT',
'GL_COLOR_TABLE_GREEN_SIZE_EXT','GL_COLOR_TABLE_FORMAT_EXT','GL_COLOR_TABLE_BLUE_SIZE_EXT','GL_COLOR_TABLE_ALPHA_SIZE_EXT',
'GL_COLOR_MATERIAL_PARAMETER','GL_COLOR_MATERIAL_FACE','GL_COLOR_MATERIAL','GL_COLOR_LOGIC_OP','GL_COLOR_INDEXES',
'GL_COLOR_INDEX8_EXT','GL_COLOR_INDEX4_EXT','GL_COLOR_INDEX2_EXT','GL_COLOR_INDEX1_EXT','GL_COLOR_INDEX16_EXT',
'GL_COLOR_INDEX12_EXT','GL_COLOR_INDEX','GL_COLOR_CLEAR_VALUE','GL_COLOR_BUFFER_BIT','GL_COLOR_ARRAY_TYPE_EXT',
'GL_COLOR_ARRAY_TYPE','GL_COLOR_ARRAY_STRIDE_EXT','GL_COLOR_ARRAY_STRIDE','GL_COLOR_ARRAY_SIZE_EXT','GL_COLOR_ARRAY_SIZE',
'GL_COLOR_ARRAY_POINTER_EXT','GL_COLOR_ARRAY_POINTER','GL_COLOR_ARRAY_EXT','GL_COLOR_ARRAY_COUNT_EXT','GL_COLOR_ARRAY',
'GL_COLOR','GL_COEFF','GL_CLIP_PLANE5','GL_CLIP_PLANE4','GL_CLIP_PLANE3','GL_CLIP_PLANE2','GL_CLIP_PLANE1','GL_CLIP_PLANE0',
'GL_CLIENT_VERTEX_ARRAY_BIT','GL_CLIENT_PIXEL_STORE_BIT','GL_CLIENT_ATTRIB_STACK_DEPTH','GL_CLIENT_ALL_ATTRIB_BITS',
'GL_CLIENT_ACTIVE_TEXTURE_ARB','GL_CLIENT_ACTIVE_TEXTURE','GL_CLEAR','GL_CLAMP','GL_CCW','GL_C4UB_V3F','GL_C4UB_V2F',
'GL_C4F_N3F_V3F','GL_C3F_V3F','GL_BYTE','GL_BLUE_SCALE','GL_BLUE_BITS','GL_BLUE_BIAS','GL_BLUE','GL_BLEND_SRC','GL_BLEND_DST',
'GL_BLEND','GL_BITMAP_TOKEN','GL_BITMAP','GL_BGR_EXT','GL_BGRA_EXT','GL_BACK_RIGHT','GL_BACK_LEFT','GL_BACK',
'GL_AUX_BUFFERS','GL_AUX3','GL_AUX2','GL_AUX1','GL_AUX0','GL_AUTO_NORMAL','GL_ATTRIB_STACK_DEPTH','GL_AND_REVERSE',
'GL_AND_INVERTED','GL_AND','GL_AMBIENT_AND_DIFFUSE','GL_AMBIENT','GL_ALWAYS','GL_ALPHA_TEST_REF','GL_ALPHA_TEST_FUNC',
'GL_ALPHA_TEST','GL_ALPHA_SCALE','GL_ALPHA_BITS','GL_ALPHA_BIAS','GL_ALPHA8','GL_ALPHA4','GL_ALPHA16','GL_ALPHA12',
'GL_ALPHA','GL_ALL_ATTRIB_BITS','GL_ADD_SIGNED_EXT','GL_ADD_SIGNED','GL_ADD','GL_ACTIVE_TEXTURE_ARB','GL_ACTIVE_TEXTURE',
'GL_ACCUM_RED_BITS','GL_ACCUM_GREEN_BITS','GL_ACCUM_CLEAR_VALUE','GL_ACCUM_BUFFER_BIT','GL_ACCUM_BLUE_BITS','GL_ACCUM_ALPHA_BITS',
'GL_ACCUM','GL_4_BYTES','GL_4D_COLOR_TEXTURE','GL_3_BYTES','GL_3D_COLOR_TEXTURE','GL_3D_COLOR','GL_3D','GL_2_BYTES',
'GL_2D','GLU_V_STEP','GLU_VERTEX','GLU_VERSION_1_2','GLU_VERSION_1_1','GLU_VERSION','GLU_U_STEP','GLU_UNKNOWN','GLU_TRUE',
'GLU_TESS_WINDING_RULE','GLU_TESS_WINDING_POSITIVE','GLU_TESS_WINDING_ODD','GLU_TESS_WINDING_NONZERO','GLU_TESS_WINDING_NEGATIVE',
'GLU_TESS_WINDING_ABS_GEQ_TWO','GLU_TESS_VERTEX_DATA','GLU_TESS_VERTEX','GLU_TESS_TOLERANCE','GLU_TESS_NEED_COMBINE_CALLBACK','GLU_TESS_MISSING_END_POLYGON',
'GLU_TESS_MISSING_END_CONTOUR','GLU_TESS_MISSING_BEGIN_POLYGON','GLU_TESS_MISSING_BEGIN_CONTOUR','GLU_TESS_ERROR_DATA',
'GLU_TESS_ERROR8','GLU_TESS_ERROR7','GLU_TESS_ERROR6','GLU_TESS_ERROR5','GLU_TESS_ERROR4','GLU_TESS_ERROR3','GLU_TESS_ERROR2',
'GLU_TESS_ERROR1','GLU_TESS_ERROR','GLU_TESS_END_DATA','GLU_TESS_END','GLU_TESS_EDGE_FLAG_DATA','GLU_TESS_EDGE_FLAG',
'GLU_TESS_COORD_TOO_LARGE','GLU_TESS_COMBINE_DATA','GLU_TESS_COMBINE','GLU_TESS_BOUNDARY_ONLY','GLU_TESS_BEGIN_DATA',
'GLU_TESS_BEGIN','GLU_SMOOTH','GLU_SILHOUETTE','GLU_SAMPLING_TOLERANCE','GLU_SAMPLING_METHOD','GLU_POINT','GLU_PATH_LENGTH',
'GLU_PARAMETRIC_TOLERANCE','GLU_PARAMETRIC_ERROR','GLU_OUT_OF_MEMORY','GLU_OUTSIDE','GLU_OUTLINE_POLYGON','GLU_OUTLINE_PATCH',
'GLU_NURBS_ERROR9','GLU_NURBS_ERROR8','GLU_NURBS_ERROR7','GLU_NURBS_ERROR6','GLU_NURBS_ERROR5','GLU_NURBS_ERROR4',
'GLU_NURBS_ERROR37','GLU_NURBS_ERROR36','GLU_NURBS_ERROR35','GLU_NURBS_ERROR34','GLU_NURBS_ERROR33','GLU_NURBS_ERROR32',
'GLU_NURBS_ERROR31','GLU_NURBS_ERROR30','GLU_NURBS_ERROR3','GLU_NURBS_ERROR29','GLU_NURBS_ERROR28','GLU_NURBS_ERROR27','GLU_NURBS_ERROR26',
'GLU_NURBS_ERROR25','GLU_NURBS_ERROR24','GLU_NURBS_ERROR23','GLU_NURBS_ERROR22','GLU_NURBS_ERROR21','GLU_NURBS_ERROR20',
'GLU_NURBS_ERROR2','GLU_NURBS_ERROR19','GLU_NURBS_ERROR18','GLU_NURBS_ERROR17','GLU_NURBS_ERROR16','GLU_NURBS_ERROR15','GLU_NURBS_ERROR14',
'GLU_NURBS_ERROR13','GLU_NURBS_ERROR12','GLU_NURBS_ERROR11','GLU_NURBS_ERROR10','GLU_NURBS_ERROR1','GLU_NONE',
'GLU_MAP1_TRIM_3','GLU_MAP1_TRIM_2','GLU_LINE','GLU_INVALID_VALUE','GLU_INVALID_ENUM','GLU_INTERIOR','GLU_INSIDE','GLU_INCOMPATIBLE_GL_VERSION',
'GLU_FLAT','GLU_FILL','GLU_FALSE','GLU_EXTERIOR','GLU_EXTENSIONS','GLU_ERROR','GLU_END','GLU_EDGE_FLAG','GLU_DOMAIN_DISTANCE',
'GLU_DISPLAY_MODE','GLU_CW','GLU_CULLING','GLU_CCW','GLU_BEGIN','GLU_AUTO_LOAD_MATRIX','CHANNEL_UNORDERED','CHANNEL_ORDERED',
'CHANNEL_MAX'
),
2 => array(
// Red Lowercase Keywords
'WriteWord','WriteString','WriteReal','WriteLine','WriteInt','WriteFloat','WriteDouble','WriteChar','WriteByte',
'windowwidth','windowheight','waittimer','Vec4','Vec3','Vec2','val','UpdateJoystick','ucase$','Transpose','tickcount',
'textscroll','textrows','textmode','textcols','tanh','tand','tan','synctimercatchup','synctimer','swapbuffers',
'str$','stopsoundvoice','stopsounds','stopmusic','sqrt','sqr','sprzorder','spryvel','sprytiles','sprysize','spryrepeat',
'spryflip','sprycentre','spry','sprxvel','sprxtiles','sprxsize','sprxrepeat','sprxflip','sprxcentre','sprx',
'sprvisible','sprvel','sprtype','sprtop','sprspin','sprsolid','sprsetzorder','sprsetyvel','sprsetysize','sprsetyrepeat',
'sprsetyflip','sprsetycentre','sprsety','sprsetxvel','sprsetxsize','sprsetxrepeat','sprsetxflip','sprsetxcentre',
'sprsetx','sprsetvisible','sprsetvel','sprsettiles','sprsettextures','sprsettexture','sprsetspin','sprsetsolid',
'sprsetsize','sprsetscale','sprsetpos','sprsetparallax','sprsetframe','sprsetcolor','sprsetanimspeed','sprsetanimloop',
'sprsetangle','sprsetalpha','sprscale','sprright','sprpos','sprparallax','sprleft','spriteareawidth','spriteareaheight',
'sprframe','sprcolor','sprcameraz','sprcameray','sprcamerax','sprcamerasetz','sprcamerasety','sprcamerasetx',
'sprcamerasetpos','sprcamerasetfov','sprcamerasetangle','sprcamerapos','sprcamerafov','sprcameraangle',
'sprbottom','spranimspeed','spranimloop','spranimdone','sprangle','spralpha','spraddtextures','spraddtexture',
'sounderror','sleep','sind','sin','showcursor','sgn','settextscroll','setmusicvolume','SendMessage','Seek',
'scankeydown','RTInvert','rnd','right$','resizetext','resizespritearea','RejectConnection','ReceiveMessage','ReadWord',
'ReadText','ReadReal','ReadLine','ReadInt','ReadFloat','ReadDouble','ReadChar','ReadByte','randomize','printr',
'print','pow','playsound','playmusic','performancecounter','Orthonormalize','OpenFileWrite','OpenFileRead','Normalize',
'newtilemap','newsprite','NewServer','NewConnection','musicplaying','mouse_yd','mouse_y','mouse_xd','mouse_x',
'mouse_wheel','mouse_button','mid$','MessageSmoothed','MessageReliable','MessagePending','MessageChannel','maxtextureunits',
'MatrixZero','MatrixTranslate','MatrixScale','MatrixRotateZ','MatrixRotateY','MatrixRotateX','MatrixRotate','MatrixIdentity',
'MatrixCrossProduct','MatrixBasis','log','locate','loadtexture','loadsound','loadmipmaptexture','loadmipmapimagestrip',
'loadimagestrip','loadimage','Length','len','left$','lcase$','keydown','Joy_Y','Joy_X','Joy_Up','Joy_Right','Joy_Left',
'Joy_Keys','Joy_Down','Joy_Button','Joy_3','Joy_2','Joy_1','Joy_0','int','inscankey','input$','inkey$','inittimer',
'imagewidth','imagestripframes','imageheight','imageformat','imagedatatype','hidecursor','glViewport','glVertex4sv',
'glVertex4s','glVertex4iv','glVertex4i','glVertex4fv','glVertex4f','glVertex4dv','glVertex4d','glVertex3sv','glVertex3s',
'glVertex3iv','glVertex3i','glVertex3fv','glVertex3f','glVertex3dv','glVertex3d','glVertex2sv','glVertex2s','glVertex2iv',
'glVertex2i','glVertex2fv','glVertex2f','glVertex2dv','glVertex2d','gluPerspective','gluOrtho2D','gluLookAt',
'glubuild2dmipmaps','glTranslatef','glTranslated','gltexsubimage2d','glTexParameteriv','glTexParameteri',
'glTexParameterfv','glTexParameterf','glteximage2d','glTexGeniv','glTexGeni','glTexGenfv','glTexGenf','glTexGendv',
'glTexGend','glTexEnviv','glTexEnvi','glTexEnvfv','glTexEnvf','glTexCoord4sv','glTexCoord4s','glTexCoord4iv','glTexCoord4i',
'glTexCoord4fv','glTexCoord4f','glTexCoord4dv','glTexCoord4d','glTexCoord3sv','glTexCoord3s','glTexCoord3iv','glTexCoord3i',
'glTexCoord3fv','glTexCoord3f','glTexCoord3dv','glTexCoord3d','glTexCoord2sv','glTexCoord2s','glTexCoord2iv','glTexCoord2i',
'glTexCoord2fv','glTexCoord2f','glTexCoord2dv','glTexCoord2d','glTexCoord1sv','glTexCoord1s','glTexCoord1iv','glTexCoord1i','glTexCoord1fv',
'glTexCoord1f','glTexCoord1dv','glTexCoord1d','glStencilOp','glStencilMask','glStencilFunc','glShadeModel','glSelectBuffer',
'glScissor','glScalef','glScaled','glRotatef','glRotated','glRenderMode','glRectsv','glRects','glRectiv','glRecti',
'glRectfv','glRectf','glRectdv','glRectd','glReadBuffer','glRasterPos4sv','glRasterPos4s','glRasterPos4iv',
'glRasterPos4i','glRasterPos4fv','glRasterPos4f','glRasterPos4dv','glRasterPos4d','glRasterPos3sv','glRasterPos3s',
'glRasterPos3iv','glRasterPos3i','glRasterPos3fv','glRasterPos3f','glRasterPos3dv','glRasterPos3d','glRasterPos2sv',
'glRasterPos2s','glRasterPos2iv','glRasterPos2i','glRasterPos2fv','glRasterPos2f','glRasterPos2dv','glRasterPos2d',
'glPushName','glPushMatrix','glPushClientAttrib','glPushAttrib','glPrioritizeTextures','glPopName','glPopMatrix',
'glPopClientAttrib','glPopAttrib','glpolygonstipple','glPolygonOffset','glPolygonMode','glPointSize','glPixelZoom',
'glPixelTransferi','glPixelTransferf','glPixelStorei','glPixelStoref','glPassThrough','glOrtho','glNormal3sv','glNormal3s',
'glNormal3iv','glNormal3i','glNormal3fv','glNormal3f','glNormal3dv','glNormal3d','glNormal3bv','glNormal3b','glNewList',
'glMultMatrixf','glMultMatrixd','glmultitexcoord2f','glmultitexcoord2d','glMatrixMode','glMaterialiv','glMateriali',
'glMaterialfv','glMaterialf','glMapGrid2f','glMapGrid2d','glMapGrid1f','glMapGrid1d','glLogicOp','glLoadName','glLoadMatrixf',
'glLoadMatrixd','glLoadIdentity','glListBase','glLineWidth','glLineStipple','glLightModeliv','glLightModeli','glLightModelfv',
'glLightModelf','glLightiv','glLighti','glLightfv','glLightf','glIsTexture','glIsList','glIsEnabled','glInitNames',
'glIndexubv','glIndexub','glIndexsv','glIndexs','glIndexMask','glIndexiv','glIndexi','glIndexfv','glIndexf','glIndexdv',
'glIndexd','glHint','glGetTexParameteriv','glGetTexParameterfv','glGetTexLevelParameteriv','glGetTexLevelParameterfv',
'glGetTexGeniv','glGetTexGenfv','glGetTexGendv','glGetTexEnviv','glGetTexEnvfv','glgetstring','glgetpolygonstipple','glGetPixelMapuiv',
'glGetMaterialiv','glGetMaterialfv','glGetLightiv','glGetLightfv','glGetIntegerv','glGetIntegerv','glGetFloatv','glGetFloatv',
'glGetError','glGetDoublev','glGetDoublev','glGetClipPlane','glGetBooleanv','glGetBooleanv','glgentextures','glgentexture',
'glgenlists','glFrustum','glFrontFace','glFogiv','glFogi','glFogfv','glFogf','glFlush','glFinish','glFeedbackBuffer',
'glEvalPoint2','glEvalPoint1','glEvalMesh2','glEvalMesh1','glEvalCoord2fv','glEvalCoord2f','glEvalCoord2dv','glEvalCoord2d',
'glEvalCoord1fv','glEvalCoord1f','glEvalCoord1dv','glEvalCoord1d','glEndList','glEnd','glEnableClientState','glEnable',
'glEdgeFlagv','glEdgeFlag','glDrawBuffer','glDrawArrays','glDisableClientState','glDisable','glDepthRange','glDepthMask',
'glDepthFunc','gldeletetextures','gldeletetexture','gldeletelists','glCullFace','glCopyTexSubImage2D','glCopyTexSubImage1D',
'glCopyTexImage2D','glCopyTexImage1D','glColorMaterial','glColorMask','glColor4usv','glColor4us','glColor4uiv','glColor4ui',
'glColor4ubv','glColor4ub','glColor4sv','glColor4s','glColor4iv','glColor4i','glColor4fv','glColor4f','glColor4dv',
'glColor4d','glColor4bv','glColor4b','glColor3usv','glColor3us','glColor3uiv','glColor3ui','glColor3ubv','glColor3ub',
'glColor3sv','glColor3s','glColor3iv','glColor3i','glColor3fv','glColor3f','glColor3dv','glColor3d','glColor3bv',
'glColor3b','glClipPlane','glClearStencil','glClearIndex','glClearDepth','glClearColor','glClearAccum','glClear',
'glcalllists','glCallList','glBlendFunc','glBindTexture','glBegin','glArrayElement','glAreTexturesResident',
'glAlphaFunc','glactivetexture','glAccum','font','FindNextFile','FindFirstFile','FindClose','FileError',
'extensionsupported','exp','execute','EndOfFile','drawtext','divbyzero','Determinant','deletesprite','deletesound',
'DeleteServer','deleteimage','DeleteConnection','defaultfont','CrossProduct','cosd','cos','copysprite','ConnectionPending',
'ConnectionHandShaking','ConnectionConnected','ConnectionAddress','compilererrorline','compilererrorcol','compilererror',
'compilefile','compile','color','cls','CloseFile','clearregion','clearline','clearkeys','chr$','charat$','bindsprite',
'beep','atnd','atn2d','atn2','atn','atand','asc','argcount','arg','animatesprites','AcceptConnection','abs'
),
3 => array(
// Blue Lowercase Keywords
'xor','while','wend','until','type','traditional_print','traditional','to','then','struc','string','step','single',
'run','return','reset','read','or','null','not','next','lor','loop','language','land','integer','input','if',
'goto','gosub','for','endstruc','endif','end','elseif','else','double','do','dim','data','const','basic4gl','as',
'and','alloc'
)
),
'SYMBOLS' => array(
'=', '<', '>', '>=', '<=', '+', '-', '*', '/', '%', '(', ')', '{', '}', '[', ']', '&', ';', ':', '$'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000080; font-weight: bold;',
2 => 'color: #FF0000;',
3 => 'color: #0000FF;'
),
'COMMENTS' => array(
1 => 'color: #657CC4; font-style: italic;'
),
'BRACKETS' => array(
0 => 'color: #000080;'
),
'STRINGS' => array(
0 => 'color: #008000;'
),
'NUMBERS' => array(
0 => 'color: #000080; font-weight: bold;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #0000FF;'
),
'ESCAPE_CHAR' => array(
),
'SCRIPT' => array(
),
'REGEXPS' => array(
)
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4
);
?>

View file

@ -0,0 +1,114 @@
<?php
/*************************************************************************************
* bf.php
* ----------
* Author: Benny Baumann (BenBE@geshi.org)
* Copyright: (c) 2008 Benny Baumann (http://qbnz.com/highlighter/)
* Release Version: 1.0.8.2
* Date Started: 2009/10/31
*
* Brainfuck language file for GeSHi.
*
* CHANGES
* -------
* 2008/10/31 (1.0.8.1)
* - First Release
*
* TODO
* ----
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Brainfuck',
'COMMENT_SINGLE' => array(),
'COMMENT_MULTI' => array(),
'COMMENT_REGEXP' => array(1 => '/[^\n+\-<>\[\]\.\,Y]+/s'),
'CASE_KEYWORDS' => GESHI_CAPS_UPPER,
'QUOTEMARKS' => array(),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
),
'SYMBOLS' => array(
0 => array('+', '-'),
1 => array('[', ']'),
2 => array('<', '>'),
3 => array('.', ','),
4 => array('Y') //Brainfork Extension ;-)
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
),
'STYLES' => array(
'KEYWORDS' => array(
),
'COMMENTS' => array(
1 => 'color: #666666; font-style: italic;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #006600;',
1 => 'color: #660000;',
2 => 'color: #000066;',
3 => 'color: #660066;',
4 => 'color: #666600;'
),
'ESCAPE_CHAR' => array(
),
'SCRIPT' => array(
),
'REGEXPS' => array(
)
),
'URLS' => array(
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'ENABLE_FLAGS' => array(
'STRINGS' => GESHI_NEVER,
'NUMBERS' => GESHI_NEVER
),
'KEYWORDS' => array(
'DISALLOW_BEFORE' => '',
'DISALLOW_AFTER' => ''
)
)
);
?>

View file

@ -0,0 +1,185 @@
<?php
/*************************************************************************************
* blitzbasic.php
* --------------
* Author: P<EFBFBD>draig O`Connel (info@moonsword.info)
* Copyright: (c) 2005 P<EFBFBD>draig O`Connel (http://moonsword.info)
* Release Version: 1.0.7.21
* Date Started: 16.10.2005
*
* BlitzBasic language file for GeSHi.
*
* It is a simple Basic dialect. Released for Games and Network Connections.
* In this Language File are all functions included (2D BB and 3D BB)
*
*
* CHANGES
* -------
* 2005/12/28 (1.0.1)
* - Remove unnecessary style index for regexps
* 2005/10/22 (1.0.0)
* - First Release
*
* TODO (updated 2005/10/22)
* -------------------------
* * Sort out the Basic commands for splitting up.
* * To set up the right colors.
* (the colors are ok, but not the correct ones)
* * Split to BlitzBasic 2D and BlitzBasic 3D.
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'BlitzBasic',
'COMMENT_SINGLE' => array(1 => ';'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
'If','EndIf','ElseIf','Else If','Else','While','Wend','Return','Next','Include','End Type','End Select','End If','End Function','End','Select',
'Type','Forever','For','Or','And','AppTitle','Case','Goto','Gosub','Step','Stop','Int','Last','False','Then','To','True','Until','Float',
'String','Before','Not'
),
2 => array(
// All Functions - 2D BB and 3D BB
'Xor','WriteString','WriteShort','WritePixelFast','WritePixel','WriteLine','WriteInt','WriteFloat','WriteFile','WriteBytes',
'WriteByte','Write','WaitTimer','WaitMouse','WaitKey','WaitJoy','VWait','Viewport',
'Upper','UpdateGamma','UnlockBuffer','UDPTimeouts','UDPStreamPort','UDPStreamIP','UDPMsgPort','UDPMsgIP',
'Trim','TotalVidMem','TileImage','TileBlock','TFormImage','TFormFilter','Text',
'TCPTimeouts','TCPStreamPort','TCPStreamIP','Tan','SystemProperty','StringWidth','StringHeight','Str','StopNetGame',
'StopChannel','StartNetGame','Sqr','SoundVolume','SoundPitch','SoundPan','Sin','Shr',
'ShowPointer','Shl','Sgn','SetGfxDriver','SetGamma','SetFont','SetEnv','SetBuffer','SendUDPMsg','SendNetMsg',
'SeekFile','SeedRnd','ScanLine','ScaleImage','SaveImage','SaveBuffer','Sar','RuntimeError','RSet',
'RotateImage','RndSeed','Rnd','Right','ResumeChannel','Restore','ResizeImage','ResizeBank','Replace',
'Repeat','RecvUDPMsg','RecvNetMsg','RectsOverlap','Rect','ReadString','ReadShort','ReadPixelFast','ReadPixel','ReadLine',
'ReadInt','ReadFloat','ReadFile','ReadDir','ReadBytes','ReadByte','ReadAvail','Read','Rand','Print',
'PokeShort','PokeInt','PokeFloat','PokeByte','Plot','PlaySound','PlayMusic','PlayCDTrack','Pi','PeekShort',
'PeekInt','PeekFloat','PeekByte','PauseChannel','Oval','Origin','OpenTCPStream','OpenMovie','OpenFile',
'Null','NextFile','New','NetPlayerName','NetPlayerLocal','NetMsgType','NetMsgTo','NetMsgFrom',
'NetMsgData','MovieWidth','MoviePlaying','MovieHeight','MoveMouse','MouseZSpeed','MouseZ','MouseYSpeed','MouseY','MouseXSpeed',
'MouseX','MouseHit','MouseDown','Mod','Millisecs','MidHandle','Mid','MaskImage','LSet','Lower',
'LoopSound','Log10','Log','LockBuffer','Locate','Local','LoadSound','LoadImage','LoadFont','LoadBuffer',
'LoadAnimImage','Line','Len','Left','KeyHit','KeyDown','JoyZDir','JoyZ','JoyYDir',
'JoyYaw','JoyY','JoyXDir','JoyX','JoyVDir','JoyV','JoyUDir','JoyU','JoyType','JoyRoll',
'JoyPitch','JoyHit','JoyHat','JoyDown','JoinNetGame','Instr','Insert','Input',
'ImageYHandle','ImageXHandle','ImageWidth','ImagesOverlap','ImagesCollide','ImageRectOverlap','ImageRectCollide','ImageHeight','ImageBuffer','If',
'HostNetGame','HostIP','HidePointer','Hex','HandleImage','GraphicsWidth','GraphicsHeight','GraphicsDepth','GraphicsBuffer','Graphics',
'GrabImage','Global','GFXModeWidth','GFXModeHeight','GfxModeExists','GFXModeDepth','GfxDriverName','GetMouse',
'GetKey','GetJoy','GetEnv','GetColor','GammaRed','GammaGreen','GammaBlue','Function','FrontBuffer','FreeTimer',
'FreeSound','FreeImage','FreeFont','FreeBank','FontWidth','FontHeight','FlushMouse','FlushKeys',
'FlushJoy','Floor','Flip','First','FileType','FileSize','FilePos','Field',
'Exp','Exit','ExecFile','Eof','EndGraphics','Each','DrawMovie','DrawImageRect','DrawImage','DrawBlockRect','DrawBlock',
'DottedIP','Dim','DeleteNetPlayer','DeleteFile','DeleteDir','Delete','Delay','Default','DebugLog','Data',
'CurrentTime','CurrentDir','CurrentDate','CreateUDPStream','CreateTimer','CreateTCPServer','CreateNetPlayer','CreateImage','CreateDir','CreateBank',
'CountHostIPs','CountGFXModes','CountGfxDrivers','Cos','CopyStream','CopyRect','CopyPixelFast','CopyPixel','CopyImage','CopyFile',
'CopyBank','Const','CommandLine','ColorRed','ColorGreen','ColorBlue','Color','ClsColor','Cls','CloseUDPStream',
'CloseTCPStream','CloseTCPServer','CloseMovie','CloseFile','CloseDir','Chr','ChannelVolume','ChannelPlaying','ChannelPitch','ChannelPan',
'ChangeDir','Ceil','CallDLL','Bin','BankSize','BackBuffer','AvailVidMem','AutoMidHandle',
'ATan2','ATan','ASin','Asc','After','ACos','AcceptTCPStream','Abs',
// 3D Commands
'Wireframe','Windowed3D','WBuffer','VertexZ','VertexY',
'VertexX','VertexW','VertexV','VertexU','VertexTexCoords','VertexRed','VertexNZ','VertexNY','VertexNX','VertexNormal',
'VertexGreen','VertexCoords','VertexColor','VertexBlue','VertexAlpha','VectorYaw','VectorPitch','UpdateWorld','UpdateNormals','TurnEntity',
'TrisRendered','TriangleVertex','TranslateEntity','TFormVector','TFormPoint','TFormNormal','TFormedZ','TFormedY','TFormedX','TextureWidth',
'TextureName','TextureHeight','TextureFilter','TextureCoords','TextureBuffer','TextureBlend','TerrainZ','TerrainY','TerrainX','TerrainSize',
'TerrainShading','TerrainHeight','TerrainDetail','SpriteViewMode','ShowEntity','SetCubeFace','SetAnimTime','SetAnimKey','ScaleTexture','ScaleSprite',
'ScaleMesh','ScaleEntity','RotateTexture','RotateSprite','RotateMesh','RotateEntity','ResetEntity','RenderWorld','ProjectedZ','ProjectedY',
'ProjectedX','PositionTexture','PositionMesh','PositionEntity','PointEntity','PickedZ','PickedY','PickedX','PickedTriangle','PickedTime',
'PickedSurface','PickedNZ','PickedNY','PickedNX','PickedEntity','PaintSurface','PaintMesh','PaintEntity','NameEntity','MoveEntity',
'ModifyTerrain','MeshWidth','MeshHeight','MeshesIntersect','MeshDepth','MD2AnimTime','MD2AnimLength','MD2Animating','LoadTexture','LoadTerrain',
'LoadSprite','LoadMesh','LoadMD2','LoaderMatrix','LoadBSP','LoadBrush','LoadAnimTexture','LoadAnimSeq','LoadAnimMesh','Load3DSound',
'LinePick','LightRange','LightMesh','LightConeAngles','LightColor','HWMultiTex','HideEntity','HandleSprite','Graphics3D','GfxMode3DExists',
'GfxMode3D','GfxDriverCaps3D','GfxDriver3D','GetSurfaceBrush','GetSurface','GetParent','GetMatElement','GetEntityType','GetEntityBrush','GetChild',
'GetBrushTexture','FreeTexture','FreeEntity','FreeBrush','FlipMesh','FitMesh','FindSurface','FindChild','ExtractAnimSeq','EntityZ',
'EntityYaw','EntityY','EntityX','EntityVisible','EntityType','EntityTexture','EntityShininess','EntityRoll','EntityRadius','EntityPitch',
'EntityPickMode','EntityPick','EntityParent','EntityOrder','EntityName','EntityInView','EntityFX','EntityDistance','EntityColor','EntityCollided',
'EntityBox','EntityBlend','EntityAutoFade','EntityAlpha','EmitSound','Dither','DeltaYaw','DeltaPitch','CreateTexture','CreateTerrain',
'CreateSurface','CreateSprite','CreateSphere','CreatePlane','CreatePivot','CreateMirror','CreateMesh','CreateListener','CreateLight','CreateCylinder',
'CreateCube','CreateCone','CreateCamera','CreateBrush','CountVertices','CountTriangles','CountSurfaces','CountGfxModes3D','CountCollisions','CountChildren',
'CopyMesh','CopyEntity','CollisionZ','CollisionY','CollisionX','CollisionTriangle','CollisionTime','CollisionSurface','Collisions','CollisionNZ',
'CollisionNY','CollisionNX','CollisionEntity','ClearWorld','ClearTextureFilters','ClearSurface','ClearCollisions','CaptureWorld','CameraZoom','CameraViewport',
'CameraRange','CameraProjMode','CameraProject','CameraPick','CameraFogRange','CameraFogMode','CameraFogColor','CameraClsMode','CameraClsColor','BSPLighting',
'BSPAmbientLight','BrushTexture','BrushShininess','BrushFX','BrushColor','BrushBlend','BrushAlpha','AntiAlias','AnimTime','AnimSeq',
'AnimLength','Animating','AnimateMD2','Animate','AmbientLight','AlignToVector','AddVertex','AddTriangle','AddMesh','AddAnimSeq',
)
),
'SYMBOLS' => array(
'(',')'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000066; font-weight: bold;',
2 => 'color: #0000ff;'
),
'COMMENTS' => array(
1 => 'color: #D9D100; font-style: italic;',
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #000066;'
),
'STRINGS' => array(
0 => 'color: #009900;'
),
'NUMBERS' => array(
0 => 'color: #CC0000;'
),
'METHODS' => array(
1 => 'color: #006600;'
),
'SYMBOLS' => array(
0 => 'color: #000066;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
0 => '',
1 => '',
)
),
'URLS' => array(
1 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
1 => '\\'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(),
'HIGHLIGHT_STRICT_BLOCK' => array(
0 => false,
1 => false
)
);
?>

View file

@ -0,0 +1,130 @@
<?php
/*************************************************************************************
* bnf.php
* --------
* Author: Rowan Rodrik van der Molen (rowan@bigsmoke.us)
* Copyright: (c) 2006 Rowan Rodrik van der Molen (http://www.bigsmoke.us/)
* Release Version: 1.0.7.21
* Date Started: 2006/09/28
*
* BNF (Backus-Naur form) language file for GeSHi.
*
* See http://en.wikipedia.org/wiki/Backus-Naur_form for more info on BNF.
*
* CHANGES
* -------
* 2006/09/18 (1.0.0)
* - First Release
*
* TODO (updated 2006/09/18)
* -------------------------
* * Nothing I can think of
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'bnf',
'COMMENT_SINGLE' => array(),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"', "'"),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(),
'SYMBOLS' => array(
'<', '>', '::=', '|'
),
'CASE_SENSITIVE' => array(
//GESHI_COMMENTS => false
),
'STYLES' => array(
'KEYWORDS' => array(),
'COMMENTS' => array(
),
'ESCAPE_CHAR' => array(
0 => ''
),
'BRACKETS' => array(
0 => ''
),
'STRINGS' => array(
0 => 'color: #a00;',
1 => 'color: #a00;'
),
'NUMBERS' => array(
0 => ''
),
'METHODS' => array(
0 => ''
),
'SYMBOLS' => array(
0 => 'color: #000066; font-weight: bold;', // Unused
),
'REGEXPS' => array(
0 => 'color: #007;',
1 => 'color: #099;',
2 => 'color: #060;',
3 => 'color: #909;'
),
'SCRIPT' => array(
0 => ''
)
),
'URLS' => array(),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(),
'REGEXPS' => array(
0 => array(
GESHI_SEARCH => '(&lt;)([^&]+?)(&gt;)',
GESHI_REPLACE => '\\2',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '\\1',
GESHI_AFTER => '\\3'
),
1 => array(
GESHI_SEARCH => '(&lt;|&gt;)',
GESHI_REPLACE => '\\1',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
2 => array(
GESHI_SEARCH => '(::=)',
GESHI_REPLACE => '\\1',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
3 => array(
GESHI_SEARCH => '([()])',
GESHI_REPLACE => '\\1',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,217 @@
<?php
/*************************************************************************************
* boo.php
* --------
* Author: Marcus Griep (neoeinstein+GeSHi@gmail.com)
* Copyright: (c) 2007 Marcus Griep (http://www.xpdm.us)
* Release Version: 1.0.8.2
* Date Started: 2007/09/10
*
* Boo language file for GeSHi.
*
* CHANGES
* -------
* 2004/09/10 (1.0.8)
* - First Release
*
* TODO (updated 2007/09/10)
* -------------------------
* Regular Expression Literal matching
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Boo',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'''", "'", '"""', '"'),
'HARDQUOTE' => array('"""', '"""'),
'HARDESCAPE' => array('\"""'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(//Namespace
'namespace', 'import', 'from'
),
2 => array(//Jump
'yield', 'return', 'goto', 'continue', 'break'
),
3 => array(//Conditional
'while', 'unless', 'then', 'in', 'if', 'for', 'else', 'elif'
),
4 => array(//Property
'set', 'get'
),
5 => array(//Exception
'try', 'raise', 'failure', 'except', 'ensure'
),
6 => array(//Visibility
'public', 'private', 'protected', 'internal'
),
7 => array(//Define
'struct', 'ref', 'of', 'interface', 'event', 'enum', 'do', 'destructor', 'def', 'constructor', 'class'
),
8 => array(//Cast
'typeof', 'cast', 'as'
),
9 => array(//BiMacro
'yieldAll', 'using', 'unchecked', 'rawArayIndexing', 'print', 'normalArrayIndexing', 'lock',
'debug', 'checked', 'assert'
),
10 => array(//BiAttr
'required', 'property', 'meta', 'getter', 'default'
),
11 => array(//BiFunc
'zip', 'shellp', 'shellm', 'shell', 'reversed', 'range', 'prompt',
'matrix', 'map', 'len', 'join', 'iterator', 'gets', 'enumerate', 'cat', 'array'
),
12 => array(//HiFunc
'__switch__', '__initobj__', '__eval__', '__addressof__', 'quack'
),
13 => array(//Primitive
'void', 'ushort', 'ulong', 'uint', 'true', 'timespan', 'string', 'single',
'short', 'sbyte', 'regex', 'object', 'null', 'long', 'int', 'false', 'duck',
'double', 'decimal', 'date', 'char', 'callable', 'byte', 'bool'
),
14 => array(//Operator
'not', 'or', 'and', 'is', 'isa',
),
15 => array(//Modifier
'virtual', 'transient', 'static', 'partial', 'override', 'final', 'abstract'
),
16 => array(//Access
'super', 'self'
),
17 => array(//Pass
'pass'
)
),
'SYMBOLS' => array(
'[|', '|]', '${', '(', ')', '[', ']', '{', '}', '!', '@', '%', '&', '*', '|', '/', '<', '>', '+', '-', ';'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
4 => true,
5 => true,
6 => true,
7 => true,
8 => true,
9 => true,
10 => true,
11 => true,
12 => true,
13 => true,
14 => true,
15 => true,
16 => true,
17 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color:green;font-weight:bold;',
2 => 'color:navy;',
3 => 'color:blue;font-weight:bold;',
4 => 'color:#8B4513;',
5 => 'color:teal;font-weight:bold;',
6 => 'color:blue;font-weight:bold;',
7 => 'color:blue;font-weight:bold;',
8 => 'color:blue;font-weight:bold;',
9 => 'color:maroon;',
10 => 'color:maroon;',
11 => 'color:purple;',
12 => 'color:#4B0082;',
13 => 'color:purple;font-weight:bold;',
14 => 'color:#008B8B;font-weight:bold;',
15 => 'color:brown;',
16 => 'color:black;font-weight:bold;',
17 => 'color:gray;'
),
'COMMENTS' => array(
1 => 'color: #999999; font-style: italic;',
2 => 'color: #999999; font-style: italic;',
'MULTI' => 'color: #008000; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #0000FF; font-weight: bold;',
'HARD' => 'color: #0000FF; font-weight: bold;',
),
'BRACKETS' => array(
0 => 'color: #006400;'
),
'STRINGS' => array(
0 => 'color: #008000;',
'HARD' => 'color: #008000;'
),
'NUMBERS' => array(
0 => 'color: #00008B;'
),
'METHODS' => array(
0 => 'color: 000000;',
1 => 'color: 000000;'
),
'SYMBOLS' => array(
0 => 'color: #006400;'
),
'REGEXPS' => array(
#0 => 'color: #0066ff;'
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
5 => '',
6 => '',
7 => '',
8 => '',
9 => '',
10 => '',
11 => '',
12 => '',
13 => '',
14 => '',
15 => '',
16 => '',
17 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
0 => '.',
1 => '::'
),
'REGEXPS' => array(
#0 => '%(@)?\/(?:(?(1)[^\/\\\\\r\n]+|[^\/\\\\\r\n \t]+)|\\\\[\/\\\\\w+()|.*?$^[\]{}\d])+\/%'
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4
);
?>

View file

@ -0,0 +1,143 @@
<?php
/*************************************************************************************
* c.php
* -----
* Author: Nigel McNie (nigel@geshi.org)
* Contributors:
* - Jack Lloyd (lloyd@randombit.net)
* Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
* Release Version: 1.0.7.21
* Date Started: 2004/06/04
*
* C language file for GeSHi.
*
* CHANGES
* -------
* 2004/XX/XX (1.0.4)
* - Added a couple of new keywords (Jack Lloyd)
* 2004/11/27 (1.0.3)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.2)
* - Added support for URLs
* 2004/08/05 (1.0.1)
* - Added support for symbols
* 2004/07/14 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
* - Get a list of inbuilt functions to add (and explore C more
* to complete this rather bare language file
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'C',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'if', 'return', 'while', 'case', 'continue', 'default',
'do', 'else', 'for', 'switch', 'goto'
),
2 => array(
'null', 'false', 'break', 'true', 'function', 'enum', 'extern', 'inline'
),
3 => array(
'printf', 'cout'
),
4 => array(
'auto', 'char', 'const', 'double', 'float', 'int', 'long',
'register', 'short', 'signed', 'sizeof', 'static', 'string', 'struct',
'typedef', 'union', 'unsigned', 'void', 'volatile', 'wchar_t'
),
),
'SYMBOLS' => array(
'(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => false,
2 => false,
3 => false,
4 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #000066;',
4 => 'color: #993333;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
2 => 'color: #339933;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
1 => 'color: #202020;',
2 => 'color: #202020;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => 'http://www.opengroup.org/onlinepubs/009695399/functions/{FNAME}.html',
4 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.',
2 => '::'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4
);
?>

View file

@ -0,0 +1,175 @@
<?php
/*************************************************************************************
* c_mac.php
* ---------
* Author: M. Uli Kusterer (witness.of.teachtext@gmx.net)
* Copyright: (c) 2004 M. Uli Kusterer, Nigel McNie (http://qbnz.com/highlighter/)
* Release Version: 1.0.7.21
* Date Started: 2004/06/04
*
* C for Macs language file for GeSHi.
*
* CHANGES
* -------
* 2004/11/27
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'C (Mac)',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'if', 'return', 'while', 'case', 'continue', 'default',
'do', 'else', 'for', 'switch', 'goto'
),
2 => array(
'NULL', 'false', 'break', 'true', 'enum', 'errno', 'EDOM',
'ERANGE', 'FLT_RADIX', 'FLT_ROUNDS', 'FLT_DIG', 'DBL_DIG', 'LDBL_DIG',
'FLT_EPSILON', 'DBL_EPSILON', 'LDBL_EPSILON', 'FLT_MANT_DIG', 'DBL_MANT_DIG',
'LDBL_MANT_DIG', 'FLT_MAX', 'DBL_MAX', 'LDBL_MAX', 'FLT_MAX_EXP', 'DBL_MAX_EXP',
'LDBL_MAX_EXP', 'FLT_MIN', 'DBL_MIN', 'LDBL_MIN', 'FLT_MIN_EXP', 'DBL_MIN_EXP',
'LDBL_MIN_EXP', 'CHAR_BIT', 'CHAR_MAX', 'CHAR_MIN', 'SCHAR_MAX', 'SCHAR_MIN',
'UCHAR_MAX', 'SHRT_MAX', 'SHRT_MIN', 'USHRT_MAX', 'INT_MAX', 'INT_MIN',
'UINT_MAX', 'LONG_MAX', 'LONG_MIN', 'ULONG_MAX', 'HUGE_VAL', 'SIGABRT',
'SIGFPE', 'SIGILL', 'SIGINT', 'SIGSEGV', 'SIGTERM', 'SIG_DFL', 'SIG_ERR',
'SIG_IGN', 'BUFSIZ', 'EOF', 'FILENAME_MAX', 'FOPEN_MAX', 'L_tmpnam', 'NULL',
'SEEK_CUR', 'SEEK_END', 'SEEK_SET', 'TMP_MAX', 'stdin', 'stdout', 'stderr',
'EXIT_FAILURE', 'EXIT_SUCCESS', 'RAND_MAX', 'CLOCKS_PER_SEC',
// Mac-specific constants:
'kCFAllocatorDefault'
),
3 => array(
'printf', 'fprintf', 'snprintf', 'sprintf', 'assert',
'isalnum', 'isalpha', 'isdigit', 'iscntrl', 'isgraph', 'islower', 'isprint',
'ispunct', 'isspace', 'ispunct', 'isupper', 'isxdigit', 'tolower', 'toupper',
'exp', 'log', 'log10', 'pow', 'sqrt', 'ceil', 'floor', 'fabs', 'ldexp',
'frexp', 'modf', 'fmod', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'atan2',
'sinh', 'cosh', 'tanh', 'setjmp', 'longjmp', 'asin', 'acos', 'atan', 'atan2',
'va_start', 'va_arg', 'va_end', 'offsetof', 'sizeof', 'fopen', 'freopen',
'fflush', 'fclose', 'remove', 'rename', 'tmpfile', 'tmpname', 'setvbuf',
'setbuf', 'vfprintf', 'vprintf', 'vsprintf', 'fscanf', 'scanf', 'sscanf',
'fgetc', 'fgets', 'fputc', 'fputs', 'getc', 'getchar', 'gets', 'putc',
'putchar', 'puts', 'ungetc', 'fread', 'fwrite', 'fseek', 'ftell', 'rewind',
'fgetpos', 'fsetpos', 'clearerr', 'feof', 'ferror', 'perror', 'abs', 'labs',
'div', 'ldiv', 'atof', 'atoi', 'atol', 'strtod', 'strtol', 'strtoul', 'calloc',
'malloc', 'realloc', 'free', 'abort', 'exit', 'atexit', 'system', 'getenv',
'bsearch', 'qsort', 'rand', 'srand', 'strcpy', 'strncpy', 'strcat', 'strncat',
'strcmp', 'strncmp', 'strcoll', 'strchr', 'strrchr', 'strspn', 'strcspn',
'strpbrk', 'strstr', 'strlen', 'strerror', 'strtok', 'strxfrm', 'memcpy',
'memmove', 'memcmp', 'memchr', 'memset', 'clock', 'time', 'difftime', 'mktime',
'asctime', 'ctime', 'gmtime', 'localtime', 'strftime'
),
4 => array(
'auto', 'char', 'const', 'double', 'float', 'int', 'long',
'register', 'short', 'signed', 'sizeof', 'static', 'string', 'struct',
'typedef', 'union', 'unsigned', 'void', 'volatile', 'extern', 'jmp_buf',
'signal', 'raise', 'va_list', 'ptrdiff_t', 'size_t', 'FILE', 'fpos_t',
'div_t', 'ldiv_t', 'clock_t', 'time_t', 'tm',
// Mac-specific types:
'CFArrayRef', 'CFDictionaryRef', 'CFMutableDictionaryRef', 'CFBundleRef', 'CFSetRef', 'CFStringRef',
'CFURLRef', 'CFLocaleRef', 'CFDateFormatterRef', 'CFNumberFormatterRef', 'CFPropertyListRef',
'CFTreeRef', 'CFWriteStreamRef', 'CFCharacterSetRef', 'CFMutableStringRef', 'CFNotificationRef',
'CFNotificationRef', 'CFReadStreamRef', 'CFNull', 'CFAllocatorRef', 'CFBagRef', 'CFBinaryHeapRef',
'CFBitVectorRef', 'CFBooleanRef', 'CFDataRef', 'CFDateRef', 'CFMachPortRef', 'CFMessagePortRef',
'CFMutableArrayRef', 'CFMutableBagRef', 'CFMutableBitVectorRef', 'CFMutableCharacterSetRef',
'CFMutableDataRef', 'CFMutableSetRef', 'CFNumberRef', 'CFPlugInRef', 'CFPlugInInstanceRef',
'CFRunLoopRef', 'CFRunLoopObserverRef', 'CFRunLoopSourceRef', 'CFRunLoopTimerRef', 'CFSocketRef',
'CFTimeZoneRef', 'CFTypeRef', 'CFUserNotificationRef', 'CFUUIDRef', 'CFXMLNodeRef', 'CFXMLParserRef',
'CFXMLTreeRef'
),
),
'SYMBOLS' => array(
'(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => false,
2 => false,
3 => false,
4 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0000ff;',
2 => 'color: #0000ff;',
3 => 'color: #0000dd;',
4 => 'color: #0000ff;'
),
'COMMENTS' => array(
1 => 'color: #ff0000;',
2 => 'color: #339900;',
'MULTI' => 'color: #ff0000; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #666666; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #000000;'
),
'STRINGS' => array(
0 => 'color: #666666;'
),
'NUMBERS' => array(
0 => 'color: #0000dd;'
),
'METHODS' => array(
1 => 'color: #00eeff;',
2 => 'color: #00eeff;'
),
'SYMBOLS' => array(
0 => 'color: #000000;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => 'http://www.opengroup.org/onlinepubs/009695399/functions/{FNAME}.html',
4 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.',
2 => '::'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4
);
?>

View file

@ -0,0 +1,125 @@
<?php
/*************************************************************************************
* caddcl.php
* ----------
* Author: Roberto Rossi (rsoftware@altervista.org)
* Copyright: (c) 2004 Roberto Rossi (http://rsoftware.altervista.org), Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.7.21
* Date Started: 2004/08/30
*
* CAD DCL (Dialog Control Language) file for GeSHi.
*
* DCL for AutoCAD 12 or later and IntelliCAD all versions.
*
* CHANGES
* -------
* 2004/11/27 (1.0.1)
* - Added support for multiple object splitters
* 2004/1!/27 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'CAD DCL',
'COMMENT_SINGLE' => array(1 => '//'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'boxed_column','boxed_radio_column','boxed_radio_row','boxed_row',
'column','concatenation','button','dialog','edit_box','image','image_button',
'errtile','list_box','ok_cancel','ok_cancel_help','ok_cancel_help_errtile',
'ok_cancel_help_info','ok_only','paragraph','popup_list','radio_button',
'radio_column','radio_row','row','slider','spacer','spacer_0','spacer_1','text',
'text_part','toggle',
'action','alignment','allow_accept','aspect_ratio','big_increment',
'children_alignment','children_fixed_height',
'children_fixed_width','color',
'edit_limit','edit_width','fixed_height','fixed_width',
'height','initial_focus','is_cancel','is_default',
'is_enabled','is_tab_stop','is-bold','key','label','layout','list',
'max_value','min_value','mnemonic','multiple_select','password_char',
'small_increment','tabs','tab_truncate','value','width',
'false','true','left','right','centered','top','bottom',
'dialog_line','dialog_foreground','dialog_background',
'graphics_background','black','red','yellow','green','cyan',
'blue','magenta','whitegraphics_foreground',
'horizontal','vertical'
)
),
'SYMBOLS' => array(
'(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,185 @@
<?php
/*************************************************************************************
* cadlisp.php
* -----------
* Author: Roberto Rossi (rsoftware@altervista.org)
* Copyright: (c) 2004 Roberto Rossi (http://rsoftware.altervista.org), Nigel McNie (http://qbnz.com/blog)
* Release Version: 1.0.7.21
* Date Started: 2004/08/30
*
* AutoCAD/IntelliCAD Lisp language file for GeSHi.
*
* For AutoCAD V.12..2005 and IntelliCAD all versions.
*
* CHANGES
* -------
* 2004/11/27 (1.0.1)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'CAD Lisp',
'COMMENT_SINGLE' => array(1 => ";"),
'COMMENT_MULTI' => array(";|" => "|;"),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'abs','acad_colordlg','acad_helpdlg','acad_strlsort','action_tile',
'add_list','alert','alloc','and','angle','angtof','angtos','append','apply',
'arx','arxload','arxunload','ascii','assoc','atan','atof','atoi','atom',
'atoms-family','autoarxload','autoload','Boole','boundp','caddr',
'cadr','car','cdr','chr','client_data_tile','close','command','cond',
'cons','cos','cvunit','defun','defun-q','defun-q-list-ref',
'defun-q-list-set','dictadd','dictnext','dictremove','dictrename',
'dictsearch','dimx_tile','dimy_tile','distance','distof','done_dialog',
'end_image','end_list','entdel','entget','entlast','entmake',
'entmakex','entmod','entnext','entsel','entupd','eq','equal','eval','exit',
'exp','expand','expt','fill_image','findfile','fix','float','foreach','function',
'gc','gcd','get_attr','get_tile','getangle','getcfg','getcname','getcorner',
'getdist','getenv','getfiled','getint','getkword','getorient','getpoint',
'getreal','getstring','getvar','graphscr','grclear','grdraw','grread','grtext',
'grvecs','handent','help','if','initdia','initget','inters','itoa','lambda','last',
'layoutlist','length','list','listp','load','load_dialog','log','logand','logior',
'lsh','mapcar','max','mem','member','menucmd','menugroup','min','minusp','mode_tile',
'namedobjdict','nentsel','nentselp','new_dialog','nil','not','nth','null',
'numberp','open','or','osnap','polar','prin1','princ','print','progn','prompt',
'quit','quote','read','read-char','read-line','redraw','regapp','rem','repeat',
'reverse','rtos','set','set_tile','setcfg','setenv','setfunhelp','setq','setvar',
'setview','sin','slide_image','snvalid','sqrt','ssadd','ssdel','ssget','ssgetfirst',
'sslength','ssmemb','ssname','ssnamex','sssetfirst','start_dialog','start_image',
'start_list','startapp','strcase','strcat','strlen','subst','substr','t','tablet',
'tblnext','tblobjname','tblsearch','term_dialog','terpri','textbox','textpage',
'textscr','trace','trans','type','unload_dialog','untrace','vector_image','ver',
'vports','wcmatch','while','write-char','write-line','xdroom','xdsize','zerop',
'vl-acad-defun','vl-acad-undefun','vl-arx-import','vlax-3D-point',
'vlax-add-cmd','vlax-create-object','vlax-curve-getArea',
'vlax-curve-getClosestPointTo','vlax-curve-getClosestPointToProjection',
'vlax-curve-getDistAtParam','vlax-curve-getDistAtPoint',
'vlax-curve-getEndParam','vlax-curve-getEndPoint',
'vlax-curve-getFirstDeriv','vlax-curve-getParamAtDist',
'vlax-curve-getParamAtPoint','vlax-curve-getPointAtDist',
'vlax-curve-getPointAtParam','vlax-curve-getSecondDeriv',
'vlax-curve-getStartParam','vlax-curve-getStartPoint',
'vlax-curve-isClosed','vlax-curve-isPeriodic','vlax-curve-isPlanar',
'vlax-dump-object','vlax-erased-p','vlax-for','vlax-get-acad-object',
'vlax-get-object','vlax-get-or-create-object','vlax-get-property',
'vlax-import-type-library','vlax-invoke-method','vlax-ldata-delete',
'vlax-ldata-get','vlax-ldata-list','vlax-ldata-put','vlax-ldata-test',
'vlax-make-safearray','vlax-make-variant','vlax-map-collection',
'vlax-method-applicable-p','vlax-object-released-p','vlax-product-key',
'vlax-property-available-p','vlax-put-property','vlax-read-enabled-p',
'vlax-release-object','vlax-remove-cmd','vlax-safearray-fill',
'vlax-safearray-get-dim','vlax-safearray-get-element',
'vlax-safearray-get-l-bound','vlax-safearray-get-u-bound',
'vlax-safearray-put-element','vlax-safearray-type','vlax-tmatrix',
'vlax-typeinfo-available-p','vlax-variant-change-type',
'vlax-variant-type','vlax-variant-value','vlax-write-enabled-p',
'vl-bb-ref','vl-bb-set','vl-catch-all-apply','vl-catch-all-error-message',
'vl-catch-all-error-p','vl-cmdf','vl-consp','vl-directory-files','vl-doc-export',
'vl-doc-import','vl-doc-ref','vl-doc-set','vl-every','vl-exit-with-error',
'vl-exit-with-value','vl-file-copy','vl-file-delete','vl-file-directory-p',
'vl-filename-base','vl-filename-directory','vl-filename-extension',
'vl-filename-mktemp','vl-file-rename','vl-file-size','vl-file-systime',
'vl-get-resource','vlisp-compile','vl-list-exported-functions',
'vl-list-length','vl-list-loaded-vlx','vl-load-all','vl-load-com',
'vl-load-reactors','vl-member-if','vl-member-if-not','vl-position',
'vl-prin1-to-string','vl-princ-to-string','vl-propagate','vlr-acdb-reactor',
'vlr-add','vlr-added-p','vlr-beep-reaction','vlr-command-reactor',
'vlr-current-reaction-name','vlr-data','vlr-data-set',
'vlr-deepclone-reactor','vlr-docmanager-reactor','vlr-dwg-reactor',
'vlr-dxf-reactor','vlr-editor-reactor','vl-registry-delete',
'vl-registry-descendents','vl-registry-read','vl-registry-write',
'vl-remove','vl-remove-if','vl-remove-if-not','vlr-insert-reactor',
'vlr-linker-reactor','vlr-lisp-reactor','vlr-miscellaneous-reactor',
'vlr-mouse-reactor','vlr-notification','vlr-object-reactor',
'vlr-owner-add','vlr-owner-remove','vlr-owners','vlr-pers','vlr-pers-list',
'vlr-pers-p','vlr-pers-release','vlr-reaction-names','vlr-reactions',
'vlr-reaction-set','vlr-reactors','vlr-remove','vlr-remove-all',
'vlr-set-notification','vlr-sysvar-reactor','vlr-toolbar-reactor',
'vlr-trace-reaction','vlr-type','vlr-types','vlr-undo-reactor',
'vlr-wblock-reactor','vlr-window-reactor','vlr-xref-reactor',
'vl-some','vl-sort','vl-sort-i','vl-string-elt','vl-string-left-trim',
'vl-string-mismatch','vl-string-position','vl-string-right-trim',
'vl-string-search','vl-string-subst','vl-string-translate','vl-string-trim',
'vl-symbol-name','vl-symbolp','vl-symbol-value','vl-unload-vlx','vl-vbaload',
'vl-vbarun','vl-vlx-loaded-p'
)
),
'SYMBOLS' => array(
'(', ')', '{', '}', '[', ']', '!', '%', '^', '&', '/','+','-','*','=','<','>'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,125 @@
<?php
/*************************************************************************************
* cfdg.php
* --------
* Author: John Horigan <john@glyphic.com>
* Copyright: (c) 2006 John Horigan http://www.ozonehouse.com/john/
* Release Version: 1.0.7.21
* Date Started: 2006/03/11
*
* CFDG language file for GeSHi.
*
* CHANGES
* -------
* 2006/03/11 (1.0.0)
* - First Release
*
* TODO (updated 2006/03/11)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'CFDG',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
'include', 'startshape', 'rule', 'background'
),
2 => array(
'SQUARE', 'CIRCLE', 'TRIANGLE',
),
3 => array(
'b','brightness','h','hue','sat','saturation',
'a','alpha','x','y','z','s','size',
'r','rotate','f','flip','skew','xml_set_object'
)
),
'SYMBOLS' => array(
'[', ']', '{', '}', '*', '|'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #717100;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #006666;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
2 => 'color: #808080; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
1 => 'color: #006600;',
2 => 'color: #006600;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
0 => '',
1 => '',
2 => '',
3 => ''
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => '',
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,325 @@
<?php
/*************************************************************************************
* cfm.php
* -------
* Author: Diego
* Copyright: (c) 2006 Diego
* Release Version: 1.0.7.21
* Date Started: 2006/02/25
*
* ColdFusion language file for GeSHi.
*
* CHANGES
* -------
* 2006/02/25 (1.0.0)
* - First Release
*
* TODO (updated 2006/02/25)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'ColdFusion',
'COMMENT_SINGLE' => array(1 => '//'),
'COMMENT_MULTI' => array('<!--' => '-->','&lt;!---' => '---&gt;', '/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
/* CFM Tags */
1 => array(
'&lt;cfabort', '&lt;cfapplet', '&lt;cfapplication', '&lt;cfargument', '&lt;cfassociate', '&lt;&lt;cfbreak&gt;',
'&lt;cfcache', '&lt;cfcase', '&lt;cfcatch', '&lt;/cfcatch&gt;', '&lt;cfchart', '&lt;/cfchart&gt;', '&lt;cfchartdata',
'&lt;cfchartseries', '&lt;/cfchartseries&gt;', '&lt;cfcol', '&lt;cfcollection', '&lt;cfcomponent', '&lt;/cfcomponent&gt;',
'&lt;cfcontent', '&lt;cfcookie', '&lt;/cfdefaultcase&gt;', '&lt;cfdirectory', '&lt;cfdocument', '&lt;/cfdocument&gt;',
'&lt;cfdocumentitem', '&lt;/cfdocumentitem&gt;', '&lt;cfdocumentsection', '&lt;/cfdocumentsection&gt;', '&lt;cfdump',
'&lt;cfelse', '&lt;cfelseif', '&lt;cferror', '&lt;cfexecute', '&lt;/cfexecute&gt;', '&lt;cfexit', '&lt;cffile',
'&lt;cfflush', '&lt;cfform', '&lt;/cfform&gt;', '&lt;cfformgroup', '&lt;/cfformgroup', '&lt;cfformitem',
'&lt;/cfformitem&gt;', '&lt;cfftp', '&lt;cffunction', '&lt;/cffunction&gt;', '&lt;cfgrid', '&lt;/cfgrid&gt;',
'&lt;cfgridcolumn', '&lt;cfgridrow', '&lt;cfgridupdate', '&lt;cfheader', '&lt;cfhtmlhead', '&lt;cfhttp',
'&lt;/cfhttp&gt;', '&lt;cfhttpparam', '&lt;cfif', '&lt;/cfif&gt;', '&lt;cfimport', '&lt;cfinclude', '&lt;cfindex',
'&lt;cfinput', '&lt;cfinsert', '&lt;cfinvoke', '&lt;cfinvokeargument', '&lt;cfldap', '&lt;cflocation', '&lt;cflock',
'&lt;/cflock&gt;', '&lt;cflog', '&lt;cflogin', '&lt;/cflogin&gt;', '&lt;cfloginuser', '&lt;cflogout', '&lt;cfloop',
'&lt;/cfloop&gt;', '&lt;cfmail', '&lt;/cfmail&gt;', '&lt;cfmailparam', '&lt;cfmailpart', '&lt;/cfmailpart&gt;',
'&lt;cfmodule', '&lt;cfNTauthenticate', '&lt;cfobject', '&lt;cfobjectcache', '&lt;cfoutput&gt;', '&lt;cfoutput', '&lt;/cfoutput&gt;',
'&lt;cfparam', '&lt;cfpop', '&lt;cfprocessingdirective', '&lt;/cfprocessingdirective&gt;', '&lt;cfprocparam',
'&lt;cfprocresult', '&lt;cfproperty', '&lt;cfquery', '&lt;/cfquery&gt;', '&lt;cfqueryparam', '&lt;cfregistry',
'&lt;/cfregistry&gt;', '&lt;cfreport', '&lt;/cfreport&gt;', '&lt;cfreportparam', '&lt;/cfreportparam&gt;',
'&lt;cfrethrow', '&lt;cfreturn', '&lt;cfsavecontent', '&lt;/cfsavecontent&gt;', '&lt;cfschedule', '&lt;cfscript', '&lt;cfscript&gt;',
'&lt;/cfscript&gt;', '&lt;cfsearch', '&lt;cfselect', '&lt;/cfselect&gt;', '&lt;cfset', '&lt;cfsetting', '&lt;cfsilent',
'&lt;/cfsilent&gt;', '&lt;cfstoredproc', '&lt;/cfstoredproc&gt;', '&lt;cfswitch', '&lt;/cfswitch&gt;', '&lt;cftable',
'&lt;/cftable&gt;', '&lt;cftextarea', '&lt;/cftextarea&gt;', '&lt;cfthrow', '&lt;cftimer', '&lt;/cftimer&gt;',
'&lt;cftrace', '&lt;/cftrace&gt;', '&lt;cftransaction', '&lt;/cftransaction&gt;', '&lt;cftree', '&lt;/cftree&gt;',
'&lt;cftreeitem', '&lt;cftry', '&lt;/cftry&gt;', '&lt;cfupdate', '&lt;cfwddx','&lt;','&gt;'
),
/* HTML Tags */
2 => array(
'&lt;a&gt;', '&lt;abbr&gt;', '&lt;acronym&gt;', '&lt;address&gt;', '&lt;applet&gt;',
'&lt;a', '&lt;abbr', '&lt;acronym', '&lt;address', '&lt;applet',
'&lt;/a&gt;', '&lt;/abbr&gt;', '&lt;/acronym&gt;', '&lt;/address&gt;', '&lt;/applet&gt;',
'&lt;/a', '&lt;/abbr', '&lt;/acronym', '&lt;/address', '&lt;/applet',
'&lt;base&gt;', '&lt;basefont&gt;', '&lt;bdo&gt;', '&lt;big&gt;', '&lt;blockquote&gt;', '&lt;body&gt;', '&lt;br&gt;', '&lt;button&gt;', '&lt;b&gt;',
'&lt;base', '&lt;basefont', '&lt;bdo', '&lt;big', '&lt;blockquote', '&lt;body', '&lt;br', '&lt;button', '&lt;b',
'&lt;/base&gt;', '&lt;/basefont&gt;', '&lt;/bdo&gt;', '&lt;/big&gt;', '&lt;/blockquote&gt;', '&lt;/body&gt;', '&lt;/br&gt;', '&lt;/button&gt;', '&lt;/b&gt;',
'&lt;/base', '&lt;/basefont', '&lt;/bdo', '&lt;/big', '&lt;/blockquote', '&lt;/body', '&lt;/br','&lt;br /&gt;', '&lt;/button', '&lt;/b',
'&lt;caption&gt;', '&lt;center&gt;', '&lt;cite&gt;', '&lt;code&gt;', '&lt;colgroup&gt;', '&lt;col&gt;',
'&lt;caption', '&lt;center', '&lt;cite', '&lt;code', '&lt;colgroup', '&lt;col',
'&lt;/caption&gt;', '&lt;/center&gt;', '&lt;/cite&gt;', '&lt;/code&gt;', '&lt;/colgroup&gt;', '&lt;/col&gt;',
'&lt;/caption', '&lt;/center', '&lt;/cite', '&lt;/code', '&lt;/colgroup', '&lt;/col',
'&lt;dd&gt;', '&lt;del&gt;', '&lt;dfn&gt;', '&lt;dir&gt;', '&lt;div&gt;', '&lt;dl&gt;', '&lt;dt&gt;',
'&lt;dd', '&lt;del', '&lt;dfn', '&lt;dir', '&lt;div', '&lt;dl', '&lt;dt',
'&lt;/dd&gt;', '&lt;/del&gt;', '&lt;/dfn&gt;', '&lt;/dir&gt;', '&lt;/div&gt;', '&lt;/dl&gt;', '&lt;/dt&gt;',
'&lt;/dd', '&lt;/del', '&lt;/dfn', '&lt;/dir', '&lt;/div', '&lt;/dl', '&lt;/dt',
'&lt;em&gt;',
'&lt;em',
'&lt;/em&gt;',
'&lt;/em',
'&lt;fieldset&gt;', '&lt;font&gt;', '&lt;form&gt;', '&lt;frame&gt;', '&lt;frameset&gt;',
'&lt;fieldset', '&lt;font', '&lt;form', '&lt;frame', '&lt;frameset',
'&lt;/fieldset&gt;', '&lt;/font&gt;', '&lt;/form&gt;', '&lt;/frame&gt;', '&lt;/frameset&gt;',
'&lt;/fieldset', '&lt;/font', '&lt;/form', '&lt;/frame', '&lt;/frameset',
'&lt;h1&gt;', '&lt;h2&gt;', '&lt;h3&gt;', '&lt;h4&gt;', '&lt;h5&gt;', '&lt;h6&gt;', '&lt;head&gt;', '&lt;hr&gt;', '&lt;html&gt;',
'&lt;h1', '&lt;h2', '&lt;h3', '&lt;h4', '&lt;h5', '&lt;h6', '&lt;head', '&lt;hr', '&lt;html',
'&lt;/h1&gt;', '&lt;/h2&gt;', '&lt;/h3&gt;', '&lt;/h4&gt;', '&lt;/h5&gt;', '&lt;/h6&gt;', '&lt;/head&gt;', '&lt;/hr&gt;', '&lt;/html&gt;',
'&lt;/h1', '&lt;/h2', '&lt;/h3', '&lt;/h4', '&lt;/h5', '&lt;/h6', '&lt;/head', '&lt;/hr', '&lt;/html',
'&lt;iframe&gt;', '&lt;ilayer&gt;', '&lt;img&gt;', '&lt;input&gt;', '&lt;ins&gt;', '&lt;isindex&gt;', '&lt;i&gt;',
'&lt;iframe', '&lt;ilayer', '&lt;img', '&lt;input', '&lt;ins', '&lt;isindex', '&lt;i',
'&lt;/iframe&gt;', '&lt;/ilayer&gt;', '&lt;/img&gt;', '&lt;/input&gt;', '&lt;/ins&gt;', '&lt;/isindex&gt;', '&lt;/i&gt;',
'&lt;/iframe', '&lt;/ilayer', '&lt;/img', '&lt;/input', '&lt;/ins', '&lt;/isindex', '&lt;/i',
'&lt;kbd&gt;',
'&lt;kbd',
'&t;/kbd&gt;',
'&lt;/kbd',
'&lt;label&gt;', '&lt;legend&gt;', '&lt;link&gt;', '&lt;li&gt;',
'&lt;label', '&lt;legend', '&lt;link', '&lt;li',
'&lt;/label&gt;', '&lt;/legend&gt;', '&lt;/link&gt;', '&lt;/li&gt;',
'&lt;/label', '&lt;/legend', '&lt;/link', '&lt;/li',
'&lt;map&gt;', '&lt;meta&gt;',
'&lt;map', '&lt;meta',
'&lt;/map&gt;', '&lt;/meta&gt;',
'&lt;/map', '&lt;/meta',
'&lt;noframes&gt;', '&lt;noscript&gt;',
'&lt;noframes', '&lt;noscript',
'&lt;/noframes&gt;', '&lt;/noscript&gt;',
'&lt;/noframes', '&lt;/noscript',
'&lt;object&gt;', '&lt;ol&gt;', '&lt;optgroup&gt;', '&lt;option&gt;',
'&lt;object', '&lt;ol', '&lt;optgroup', '&lt;option',
'&lt;/object&gt;', '&lt;/ol&gt;', '&lt;/optgroup&gt;', '&lt;/option&gt;',
'&lt;/object', '&lt;/ol', '&lt;/optgroup', '&lt;/option',
'&lt;param&gt;', '&lt;pre&gt;', '&lt;p&gt;',
'&lt;param', '&lt;pre', '&lt;p',
'&lt;/param&gt;', '&lt;/pre&gt;', '&lt;/p&gt;',
'&lt;/param', '&lt;/pre', '&lt;/p',
'&lt;q&gt;',
'&lt;q',
'&lt;/q&gt;',
'&lt;/q',
'&lt;samp&gt;', '&lt;script&gt;', '&lt;select&gt;', '&lt;small&gt;', '&lt;span&gt;', '&lt;strike&gt;', '&lt;strong&gt;', '&lt;style&gt;', '&lt;sub&gt;', '&lt;sup&gt;', '&lt;s&gt;',
'&lt;samp', '&lt;script', '&lt;select', '&lt;small', '&lt;span', '&lt;strike', '&lt;strong', '&lt;style', '&lt;sub', '&lt;sup', '&lt;s',
'&lt;/samp&gt;', '&lt;/script&gt;', '&lt;/select&gt;', '&lt;/small&gt;', '&lt;/span&gt;', '&lt;/strike&gt;', '&lt;/strong&gt;', '&lt;/style&gt;', '&lt;/sub&gt;', '&lt;/sup&gt;', '&lt;/s&gt;',
'&lt;/samp', '&lt;/script', '&lt;/select', '&lt;/small', '&lt;/span', '&lt;/strike', '&lt;/strong', '&lt;/style', '&lt;/sub', '&lt;/sup', '&lt;/s',
'&lt;table&gt;', '&lt;tbody&gt;', '&lt;td&gt;', '&lt;textarea&gt;', '&lt;text&gt;', '&lt;tfoot&gt;', '&lt;thead&gt;', '&lt;th&gt;', '&lt;title&gt;', '&lt;tr&gt;', '&lt;tt&gt;',
'&lt;table', '&lt;tbody', '&lt;td', '&lt;textarea', '&lt;text', '&lt;tfoot', '&lt;tfoot', '&lt;thead', '&lt;th', '&lt;title', '&lt;tr', '&lt;tt',
'&lt;/table&gt;', '&lt;/tbody&gt;', '&lt;/td&gt;', '&lt;/textarea&gt;', '&lt;/text&gt;', '&lt;/tfoot&gt;', '&lt;/thead', '&lt;/tfoot', '&lt;/th&gt;', '&lt;/title&gt;', '&lt;/tr&gt;', '&lt;/tt&gt;',
'&lt;/table', '&lt;/tbody', '&lt;/td', '&lt;/textarea', '&lt;/text', '&lt;/tfoot', '&lt;/tfoot', '&lt;/thead', '&lt;/th', '&lt;/title', '&lt;/tr', '&lt;/tt',
'&lt;ul&gt;', '&lt;u&gt;',
'&lt;ul', '&lt;u',
'&lt;/ul&gt;', '&lt;/ul&gt;',
'&lt;/ul', '&lt;/u',
'&lt;var&gt;',
'&lt;var',
'&lt;/var&gt;',
'&lt;/var',
'&gt;', '&lt;'
),
/* HTML attributes */
3 => array(
'abbr', 'accept-charset', 'accept', 'accesskey', 'action', 'align', 'alink', 'alt', 'archive', 'axis',
'background', 'bgcolor', 'border',
'cellpadding', 'cellspacing', 'char', 'char', 'charoff', 'charset', 'checked', 'cite', 'class', 'classid', 'clear', 'code', 'codebase', 'codetype', 'color', 'cols', 'colspan', 'compact', 'content', 'coords',
'data', 'datetime', 'declare', 'defer', 'dir', 'disabled',
'enctype',
'face', 'for', 'frame', 'frameborder',
'headers', 'height', 'href', 'hreflang', 'hspace', 'http-equiv',
'id', 'ismap',
'label', 'lang', 'language', 'link', 'longdesc',
'marginheight', 'marginwidth', 'maxlength', 'media', 'method', 'multiple',
'name', 'nohref', 'noresize', 'noshade', 'nowrap',
'object', 'onblur', 'onchange', 'onclick', 'ondblclick', 'onfocus', 'onkeydown', 'onkeypress', 'onkeyup', 'onload', 'onmousedown', 'onmousemove', 'onmouseout', 'onmouseover', 'onmouseup', 'onreset', 'onselect', 'onsubmit', 'onunload',
'profile', 'prompt',
'readonly', 'rel', 'rev', 'rowspan', 'rows', 'rules',
'scheme', 'scope', 'scrolling', 'selected', 'shape', 'size', 'span', 'src', 'standby', 'start', 'style', 'summary',
'tabindex', 'target', 'text', 'title', 'type',
'usemap',
'valign', 'value', 'valuetype', 'version', 'vlink', 'vspace',
'width'
),
/* CFM Script delimeters */
4 => array(
'var', 'function', 'while', 'if','else'
),
/* CFM Functions */
5 => array(
'Abs', 'GetFunctionList', 'LSTimeFormat','ACos','GetGatewayHelper','LTrim','AddSOAPRequestHeader','GetHttpRequestData',
'Max','AddSOAPResponseHeader','GetHttpTimeString','Mid','ArrayAppend','GetLocale','Min','ArrayAvg','GetLocaleDisplayName',
'Minute','ArrayClear','GetMetaData','Month','ArrayDeleteAt','GetMetricData','MonthAsString','ArrayInsertAt','GetPageContext',
'Now','ArrayIsEmpty','GetProfileSections','NumberFormat','ArrayLen','GetProfileString','ParagraphFormat','ArrayMax',
'GetLocalHostIP','ParseDateTime','ArrayMin','GetSOAPRequest','Pi','ArrayNew','GetSOAPRequestHeader','PreserveSingleQuotes',
'ArrayPrepend','GetSOAPResponse','Quarter','ArrayResize','GetSOAPResponseHeader','QueryAddColumn','ArraySet',
'GetTempDirectory','QueryAddRow','ArraySort','GetTempDirectory','QueryNew','ArraySum','GetTempFile','QuerySetCell',
'ArraySwap','GetTickCount','QuotedValueList','ArrayToList','GetTimeZoneInfo','Rand','Asc','GetToken','Randomize',
'ASin','Hash','RandRange','Atn','Hour','REFind','BinaryDecode','HTMLCodeFormat','REFindNoCase','BinaryEncode',
'HTMLEditFormat','ReleaseComObject','BitAnd','IIf','RemoveChars','BitMaskClear','IncrementValue','RepeatString',
'BitMaskRead','InputBaseN','Replace','BitMaskSet','Insert','ReplaceList','BitNot','Int','ReplaceNoCase','BitOr',
'IsArray','REReplace','BitSHLN','IsBinary','REReplaceNoCase','BitSHRN','IsBoolean','Reverse','BitXor','IsCustomFunction',
'Right','Ceiling','IsDate','RJustify','CharsetDecode','IsDebugMode','Round','CharsetEncode','IsDefined','RTrim',
'Chr','IsLeapYear','Second','CJustify','IsLocalHost','SendGatewayMessage','Compare','IsNumeric','SetEncoding',
'CompareNoCase','IsNumericDate','SetLocale','Cos','IsObject','SetProfileString','CreateDate','IsQuery','SetVariable',
'CreateDateTime','IsSimpleValue','Sgn','CreateObject','IsSOAPRequest','Sin','CreateODBCDate','IsStruct','SpanExcluding',
'CreateODBCDateTime','IsUserInRole','SpanIncluding','CreateODBCTime','IsValid','Sqr','CreateTime','IsWDDX','StripCR',
'CreateTimeSpan','IsXML','StructAppend','CreateUUID','IsXmlAttribute','StructClear','DateAdd','IsXmlDoc','StructCopy',
'DateCompare','IsXmlElem','StructCount','DateConvert','IsXmlNode','StructDelete','DateDiff','IsXmlRoot','StructFind',
'DateFormat','JavaCast','StructFindKey','DatePart','JSStringFormat','StructFindValue','Day','LCase','StructGet',
'DayOfWeek','Left','StructInsert','DayOfWeekAsString','Len','StructIsEmpty','DayOfYear','ListAppend','StructKeyArray',
'DaysInMonth','ListChangeDelims','StructKeyExists','DaysInYear','ListContains','StructKeyList','DE','ListContainsNoCase',
'StructNew','DecimalFormat','ListDeleteAt','StructSort','DecrementValue','ListFind','StructUpdate','Decrypt','ListFindNoCase',
'Tan','DecryptBinary','ListFirst','TimeFormat','DeleteClientVariable','ListGetAt','ToBase64','DirectoryExists',
'ListInsertAt','ToBinary','DollarFormat','ListLast','ToScript','Duplicate','ListLen','ToString','Encrypt','ListPrepend',
'Trim','EncryptBinary','ListQualify','UCase','Evaluate','ListRest','URLDecode','Exp','ListSetAt','URLEncodedFormat',
'ExpandPath','ListSort','URLSessionFormat','FileExists','ListToArray','Val','Find','ListValueCount','ValueList',
'FindNoCase','ListValueCountNoCase','Week','FindOneOf','LJustify','Wrap','FirstDayOfMonth','Log','WriteOutput',
'Fix','Log10','XmlChildPos','FormatBaseN','LSCurrencyFormat','XmlElemNew','GetAuthUser','LSDateFormat','XmlFormat',
'GetBaseTagData','LSEuroCurrencyFormat','XmlGetNodeType','GetBaseTagList','LSIsCurrency','XmlNew','GetBaseTemplatePath',
'LSIsDate','XmlParse','GetClientVariablesList','LSIsNumeric','XmlSearch','GetCurrentTemplatePath','LSNumberFormat',
'XmlTransform','GetDirectoryFromPath','LSParseCurrency','XmlValidate','GetEncoding','LSParseDateTime','Year',
'GetException','LSParseEuroCurrency','YesNoFormat','GetFileFromPath','LSParseNumber'
),
/* CFM Attributes */
6 => array(
'=','&amp;','name','dbtype','connectstring','datasource','username','password','query','delimeter','description','required','hint','default','access','from','to','list','index'
)
),
'SYMBOLS' => array(
'/', '=', 'EQ', 'GT', 'LT', 'GTE', 'LTE', 'IS', 'LIKE', '&', '{', '}', '(', ')', '[', ']','gt','lt'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false,
5 => false,
6 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #990000;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #0000FF;',
4 => 'color: #000000; font-weight: bold;',
5 => 'color: #0000FF;',
6 => 'color: #0000FF'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic; background-color:#FFFF99;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #0000FF;'
),
'STRINGS' => array(
0 => 'color: #009900;'
),
'NUMBERS' => array(
0 => 'color: #FF0000;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #0000FF;'
),
'SCRIPT' => array(
0 => 'color: #00bbdd;',
1 => 'color: #0000FF;',
2 => 'color: #000099;',
3 => 'color: #333333;'
),
'REGEXPS' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_ALWAYS,
'SCRIPT_DELIMITERS' => array(
0 => array(
'<!DOCTYPE' => '>'
),
1 => array(
'#' => '#'
),
2 => array(
'<cfscript>' => '</cfscript>;'
),
3 => array(
'<' => '>'
)
),
'HIGHLIGHT_STRICT_BLOCK' => array(
0 => false,
1 => true,
2 => true,
3 => true
)
);
?>

View file

@ -0,0 +1,196 @@
<?php
/*************************************************************************************
* cil.php
* --------
* Author: Marcus Griep (neoeinstein+GeSHi@gmail.com)
* Copyright: (c) 2007 Marcus Griep (http://www.xpdm.us)
* Release Version: 1.0.8.2
* Date Started: 2007/10/24
*
* CIL (Common Intermediate Language) language file for GeSHi.
*
* CHANGES
* -------
* 2004/10/24 (1.0.8)
* - First Release
*
* TODO (updated 2007/10/24)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'CIL',
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'COMMENT_SINGLE' => array('//'),
'COMMENT_MULTI' => array(),
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(//Dotted
'.zeroinit', '.vtfixup', '.vtentry', '.vtable', '.ver', '.try', '.subsystem', '.size', '.set', '.removeon',
'.publickeytoken', '.publickey', '.property', '.permissionset', '.permission', '.pdirect', '.param', '.pack',
'.override', '.other', '.namespace', '.mresource', '.module', '.method', '.maxstack', '.manifestres', '.locals',
'.localized', '.locale', '.line', '.language', '.import', '.imagebase', '.hash', '.get', '.fire', '.file', '.field',
'.export', '.event', '.entrypoint', '.emitbyte', '.data', '.custom', '.culture', '.ctor', '.corflags', '.class',
'.cctor', '.assembly', '.addon'
),
2 => array(//Attributes
'wrapper', 'with', 'winapi', 'virtual', 'vector', 'vararg', 'value', 'userdefined', 'unused', 'unmanagedexp',
'unmanaged', 'unicode', 'to', 'tls', 'thiscall', 'synchronized', 'struct', 'strict', 'storage', 'stdcall',
'static', 'specialname', 'special', 'serializable', 'sequential', 'sealed', 'runtime', 'rtspecialname', 'request',
'reqsecobj', 'reqrefuse', 'reqopt', 'reqmin', 'record', 'public', 'privatescope', 'private', 'preservesig',
'prejitgrant', 'prejitdeny', 'platformapi', 'pinvokeimpl', 'pinned', 'permitonly', 'out', 'optil', 'opt',
'notserialized', 'notremotable', 'not_in_gc_heap', 'noprocess', 'noncaslinkdemand', 'noncasinheritance',
'noncasdemand', 'nometadata', 'nomangle', 'nomachine', 'noinlining', 'noappdomain', 'newslot', 'nested', 'native',
'modreq', 'modopt', 'marshal', 'managed', 'literal', 'linkcheck', 'lcid', 'lasterr', 'internalcall', 'interface',
'instance', 'initonly', 'init', 'inheritcheck', 'in', 'import', 'implicitres', 'implicitcom', 'implements',
'illegal', 'il', 'hidebysig', 'handler', 'fromunmanaged', 'forwardref', 'fixed', 'finally', 'final', 'filter',
'filetime', 'field', 'fault', 'fastcall', 'famorassem', 'family', 'famandassem', 'extern', 'extends', 'explicit',
'error', 'enum', 'endmac', 'deny', 'demand', 'default', 'custom', 'compilercontrolled', 'clsid', 'class', 'cil',
'cf', 'cdecl', 'catch', 'beforefieldinit', 'autochar', 'auto', 'at', 'assert', 'assembly', 'as', 'any', 'ansi',
'alignment', 'algorithm', 'abstract'
),
3 => array(//Types
'wchar', 'void', 'variant', 'unsigned', 'valuetype', 'typedref', 'tbstr', 'sysstring', 'syschar', 'string',
'streamed_object', 'stream', 'stored_object', 'safearray', 'objectref', 'object', 'nullref', 'method', 'lpwstr',
'lpvoid', 'lptstr', 'lpstruct', 'lpstr', 'iunknown', 'int64', 'int32', 'int16', 'int8', 'int', 'idispatch',
'hresult', 'float64', 'float32', 'float', 'decimal', 'date', 'currency', 'char', 'carray', 'byvalstr',
'bytearray', 'boxed', 'bool', 'blob_object', 'blob', 'array'
),
4 => array(//Prefix
'volatile', 'unaligned', 'tail', 'readonly', 'no', 'constrained'
),
5 => array(//Suffix
'un', 'u8', 'u4', 'u2', 'u1', 'u', 's', 'ref', 'r8', 'r4', 'm1', 'i8', 'i4', 'i2', 'i1', 'i'#, '.8', '.7', '.6', '.5', '.4', '.3', '.2', '.1', '.0'
),
6 => array(//Base
'xor', 'switch', 'sub', 'stloc',
'stind', 'starg',
'shr', 'shl', 'ret', 'rem', 'pop', 'or', 'not', 'nop', 'neg', 'mul',
'localloc', 'leave', 'ldnull', 'ldloca',
'ldloc', 'ldind', 'ldftn', 'ldc', 'ldarga',
'ldarg', 'jmp', 'initblk', 'endfinally', 'endfilter',
'endfault', 'dup', 'div', 'cpblk', 'conv', 'clt', 'ckfinite', 'cgt', 'ceq', 'calli',
'call', 'brzero', 'brtrue', 'brnull', 'brinst',
'brfalse', 'break', 'br', 'bne', 'blt', 'ble', 'bgt', 'bge', 'beq', 'arglist',
'and', 'add'
),
7 => array(//Object
'unbox.any', 'unbox', 'throw', 'stsfld', 'stobj', 'stfld', 'stelem', 'sizeof', 'rethrow', 'refanyval', 'refanytype', 'newobj',
'newarr', 'mkrefany', 'ldvirtftn', 'ldtoken', 'ldstr', 'ldsflda', 'ldsfld', 'ldobj', 'ldlen', 'ldflda', 'ldfld',
'ldelema', 'ldelem', 'isinst', 'initobj', 'cpobj', 'castclass',
'callvirt', 'callmostderived', 'box'
),
8 => array(//Other
'prefixref', 'prefix7', 'prefix6', 'prefix5', 'prefix4', 'prefix3', 'prefix2', 'prefix1', 'prefix0'
),
9 => array(//Literal
'true', 'null', 'false'
),
10 => array(//Comment-like
'#line', '^THE_END^'
)
),
'SYMBOLS' => array(
'(', ')', '[', ']', '{', '}', '!', '!!'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
4 => true,
5 => true,
6 => true,
7 => true,
8 => true,
9 => true,
10 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color:maroon;font-weight:bold;',
2 => 'color:blue;font-weight:bold;',
3 => 'color:purple;font-weight:bold;',
4 => 'color:teal;',
5 => 'color:blue;',
6 => 'color:blue;',
7 => 'color:blue;',
8 => 'color:blue;',
9 => 'color:00008B',
10 => 'color:gray'
),
'COMMENTS' => array(
0 => 'color:gray;font-style:italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #008000; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #006400;'
),
'STRINGS' => array(
0 => 'color: #008000;'
),
'NUMBERS' => array(
0 => 'color: #00008B;'
),
'METHODS' => array(
1 => 'color: #000033;'
),
'SYMBOLS' => array(
0 => 'color: #006400;'
),
'REGEXPS' => array(
0 => 'color:blue;'
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
5 => '',
6 => '',
7 => '',
8 => '',
9 => '',
10 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '::'
),
'REGEXPS' => array(
0 => '(?<=ldc\\.i4\\.)[0-8]|(?<=(?:ldarg|ldloc|stloc)\\.)[0-3]' # Pickup the opcodes that end with integers
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4
);
?>

View file

@ -0,0 +1,244 @@
<?php
/*************************************************************************************
* cobol.php
* ----------
* Author: BenBE (BenBE@omorphia.org)
* Copyright: (c) 2007-2008 BenBE (http://www.omorphia.de/)
* Release Version: 1.0.8.2
* Date Started: 2007/07/02
*
* COBOL language file for GeSHi.
*
* CHANGES
* -------
*
* TODO (updated 2007/07/02)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'COBOL',
'COMMENT_SINGLE' => array(),
'COMMENT_MULTI' => array(),
'COMMENT_REGEXP' => array(1 => '/^\*.*?$/m'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"', "'"),
'ESCAPE_CHAR' => '\\',
'NUMBERS' =>
GESHI_NUMBER_INT_BASIC |
GESHI_NUMBER_FLT_NONSCI |
GESHI_NUMBER_FLT_SCI_SHORT |
GESHI_NUMBER_FLT_SCI_ZERO,
'KEYWORDS' => array(
1 => array( //Compiler Directives
'ANSI', 'BLANK', 'NOBLANK', 'CALL-SHARED', 'CANCEL', 'NOCANCEL',
'CHECK', 'CODE', 'NOCODE', 'COLUMNS', 'COMPACT', 'NOCOMPACT',
'COMPILE', 'CONSULT', 'NOCONSULT', 'CROSSREF', 'NOCROSSREF',
'DIAGNOSE-74', 'NODIAGNOSE-74', 'DIAGNOSE-85', 'NODIAGNOSE-85',
'DIAGNOSEALL', 'NODIAGNOSEALL', 'ENDIF', 'ENDUNIT', 'ENV',
'ERRORFILE', 'ERRORS', 'FIPS', 'NOFIPS', 'FMAP', 'HEADING', 'HEAP',
'HIGHPIN', 'HIGHREQUESTERS', 'ICODE', 'NOICODE', 'IF', 'IFNOT',
'INNERLIST', 'NOINNERLIST', 'INSPECT', 'NOINSPECT', 'LARGEDATA',
'LD', 'LESS-CODE', 'LIBRARY', 'LINES', 'LIST', 'NOLIST', 'LMAP',
'NOLMAP', 'MAIN', 'MAP', 'NOMAP', 'NLD', 'NONSTOP', 'NON-SHARED',
'OPTIMIZE', 'PERFORM-TRACE', 'PORT', 'NOPORT', 'RESETTOG',
'RUNNABLE', 'RUNNAMED', 'SAVE', 'SAVEABEND', 'NOSAVEABEND',
'SEARCH', 'NOSEARCH', 'SECTION', 'SETTOG', 'SHARED', 'SHOWCOPY',
'NOSHOWCOPY', 'SHOWFILE', 'NOSHOWFILE', 'SOURCE', 'SQL', 'NOSQL',
'SQLMEM', 'SUBSET', 'SUBTYPE', 'SUPPRESS', 'NOSUPPRESS', 'SYMBOLS',
'NOSYMBOLS', 'SYNTAX', 'TANDEM', 'TRAP2', 'NOTRAP2', 'TRAP2-74',
'NOTRAP2-74', 'UL', 'WARN', 'NOWARN'
),
2 => array( //Statement Keywords
'ACCEPT', 'ADD', 'TO', 'GIVING', 'CORRESPONDING', 'ALTER', 'CALL',
'CHECKPOINT', 'CLOSE', 'COMPUTE', 'CONTINUE', 'COPY',
'DELETE', 'DISPLAY', 'DIVIDE', 'INTO', 'REMAINDER', 'ENTER',
'COBOL', 'EVALUATE', 'EXIT', 'GO', 'INITIALIZE',
'TALLYING', 'REPLACING', 'CONVERTING', 'LOCKFILE', 'MERGE', 'MOVE',
'MULTIPLY', 'OPEN', 'PERFORM', 'TIMES',
'UNTIL', 'VARYING', 'RETURN',
),
3 => array( //Reserved in some contexts
'ACCESS', 'ADDRESS', 'ADVANCING', 'AFTER', 'ALL',
'ALPHABET', 'ALPHABETIC', 'ALPHABETIC-LOWER', 'ALPHABETIC-UPPER',
'ALPHANUMERIC', 'ALPHANUMERIC-EDITED', 'ALSO', 'ALTERNATE',
'AND', 'ANY', 'APPROXIMATE', 'AREA', 'AREAS', 'ASCENDING', 'ASSIGN',
'AT', 'AUTHOR', 'BEFORE', 'BINARY', 'BLOCK', 'BOTTOM', 'BY',
'CD', 'CF', 'CH', 'CHARACTER', 'CHARACTERS',
'CHARACTER-SET', 'CLASS', 'CLOCK-UNITS',
'CODE-SET', 'COLLATING', 'COLUMN', 'COMMA',
'COMMON', 'COMMUNICATION', 'COMP', 'COMP-3', 'COMP-5',
'COMPUTATIONAL', 'COMPUTATIONAL-3', 'COMPUTATIONAL-5',
'CONFIGURATION', 'CONTAINS', 'CONTENT', 'CONTROL',
'CONTROLS', 'CORR', 'COUNT',
'CURRENCY', 'DATA', 'DATE', 'DATE-COMPILED', 'DATE-WRITTEN', 'DAY',
'DAY-OF-WEEK', 'DE', 'DEBUG-CONTENTS', 'DEBUG-ITEM', 'DEBUG-LINE',
'DEBUG-SUB-2', 'DEBUG-SUB-3', 'DEBUGGING', 'DECIMAL-POINT',
'DECLARATIVES', 'DEBUG-NAME', 'DEBUG-SUB-1', 'DELIMITED',
'DELIMITER', 'DEPENDING', 'DESCENDING', 'DESTINATION', 'DETAIL',
'DISABLE', 'DIVISION', 'DOWN', 'DUPLICATES',
'DYNAMIC', 'EGI', 'ELSE', 'EMI', 'ENABLE', 'END', 'END-ADD',
'END-COMPUTE', 'END-DELETE', 'END-DIVIDE', 'END-EVALUATE', 'END-IF',
'END-MULTIPLY', 'END-OF-PAGE', 'END-PERFORM', 'END-READ',
'END-RECEIVE', 'END-RETURN', 'END-REWRITE', 'END-SEARCH',
'END-START', 'END-STRING', 'END-SUBTRACT', 'END-UNSTRING',
'END-WRITE', 'EOP', 'EQUAL', 'ERROR', 'ESI',
'EVERY', 'EXCEPTION', 'EXCLUSIVE', 'EXTEND',
'EXTENDED-STORAGE', 'EXTERNAL', 'FALSE', 'FD', 'FILE',
'FILE-CONTROL', 'FILLER', 'FINAL', 'FIRST', 'FOOTING', 'FOR',
'FROM', 'FUNCTION', 'GENERATE', 'GENERIC', 'GLOBAL',
'GREATER', 'GROUP', 'GUARDIAN-ERR', 'HIGH-VALUE',
'HIGH-VALUES', 'I-O', 'I-O-CONTROL', 'IDENTIFICATION', 'IN',
'INDEX', 'INDEXED', 'INDICATE', 'INITIAL', 'INITIATE',
'INPUT', 'INPUT-OUTPUT', 'INSTALLATION',
'INVALID', 'IS', 'JUST', 'JUSTIFIED', 'KEY', 'LABEL', 'LAST',
'LEADING', 'LEFT', 'LESS', 'LIMIT', 'LIMITS', 'LINAGE',
'LINAGE-COUNTER', 'LINE', 'LINE-COUNTER', 'LINKAGE', 'LOCK',
'LOW-VALUE', 'LOW-VALUES', 'MEMORY', 'MESSAGE',
'MODE', 'MODULES', 'MULTIPLE', 'NATIVE',
'NEGATIVE', 'NEXT', 'NO', 'NOT', 'NULL', 'NULLS', 'NUMBER',
'NUMERIC', 'NUMERIC-EDITED', 'OBJECT-COMPUTER', 'OCCURS', 'OF',
'OFF', 'OMITTED', 'ON', 'OPTIONAL', 'OR', 'ORDER',
'ORGANIZATION', 'OTHER', 'OUTPUT', 'OVERFLOW', 'PACKED-DECIMAL',
'PADDING', 'PAGE', 'PAGE-COUNTER', 'PF', 'PH', 'PIC',
'PICTURE', 'PLUS', 'POINTER', 'POSITION', 'POSITIVE', 'PRINTING',
'PROCEDURE', 'PROCEDURES', 'PROCEED', 'PROGRAM', 'PROGRAM-ID',
'PROGRAM-STATUS', 'PROGRAM-STATUS-1', 'PROGRAM-STATUS-2', 'PROMPT',
'PROTECTED', 'PURGE', 'QUEUE', 'QUOTE', 'QUOTES', 'RD',
'RECEIVE', 'RECEIVE-CONTROL', 'RECORD', 'RECORDS',
'REDEFINES', 'REEL', 'REFERENCE', 'REFERENCES', 'RELATIVE',
'REMOVAL', 'RENAMES', 'REPLACE',
'REPLY', 'REPORT', 'REPORTING', 'REPORTS', 'RERUN',
'RESERVE', 'RESET', 'REVERSED', 'REWIND', 'REWRITE', 'RF',
'RH', 'RIGHT', 'ROUNDED', 'RUN', 'SAME', 'SD',
'SECURITY', 'SEGMENT', 'SEGMENT-LIMIT', 'SELECT', 'SEND',
'SENTENCE', 'SEPARATE', 'SEQUENCE', 'SEQUENTIAL', 'SET',
'SIGN', 'SIZE', 'SORT', 'SORT-MERGE', 'SOURCE-COMPUTER',
'SPACE', 'SPACES', 'SPECIAL-NAMES', 'STANDARD', 'STANDARD-1',
'STANDARD-2', 'START', 'STARTBACKUP', 'STATUS', 'STOP', 'STRING',
'SUB-QUEUE-1', 'SUB-QUEUE-2', 'SUB-QUEUE-3', 'SUBTRACT',
'SYMBOLIC', 'SYNC', 'SYNCDEPTH', 'SYNCHRONIZED',
'TABLE', 'TAL', 'TAPE', 'TERMINAL', 'TERMINATE', 'TEST',
'TEXT', 'THAN', 'THEN', 'THROUGH', 'THRU', 'TIME',
'TOP', 'TRAILING', 'TRUE', 'TYPE', 'UNIT', 'UNLOCK', 'UNLOCKFILE',
'UNLOCKRECORD', 'UNSTRING', 'UP', 'UPON', 'USAGE', 'USE',
'USING', 'VALUE', 'VALUES', 'WHEN', 'WITH', 'WORDS',
'WORKING-STORAGE', 'WRITE', 'ZERO', 'ZEROES'
),
4 => array( //Standard functions
'ACOS', 'ANNUITY', 'ASIN', 'ATAN', 'CHAR', 'COS', 'CURRENT-DATE',
'DATE-OF-INTEGER', 'DAY-OF-INTEGER', 'FACTORIAL', 'INTEGER',
'INTEGER-OF-DATE', 'INTEGER-OF-DAY', 'INTEGER-PART', 'LENGTH',
'LOG', 'LOG10', 'LOWER-CASE', 'MAX', 'MEAN', 'MEDIAN', 'MIDRANGE',
'MIN', 'MOD', 'NUMVAL', 'NUMVAL-C', 'ORD', 'ORD-MAX', 'ORD-MIN',
'PRESENT-VALUE', 'RANDOM', 'RANGE', 'REM', 'REVERSE', 'SIN', 'SQRT',
'STANDARD-DEVIATION', 'SUM', 'TAN', 'UPPER-CASE', 'VARIANCE',
'WHEN-COMPILED'
),
5 => array( //Privileged Built-in Functions
'#IN', '#OUT', '#TERM', '#TEMP', '#DYNAMIC', 'COBOL85^ARMTRAP',
'COBOL85^COMPLETION', 'COBOL_COMPLETION_', 'COBOL_CONTROL_',
'COBOL_GETENV_', 'COBOL_PUTENV_', 'COBOL85^RETURN^SORT^ERRORS',
'COBOL_RETURN_SORT_ERRORS_', 'COBOL85^REWIND^SEQUENTIAL',
'COBOL_REWIND_SEQUENTIAL_', 'COBOL85^SET^SORT^PARAM^TEXT',
'COBOL_SET_SORT_PARAM_TEXT_', 'COBOL85^SET^SORT^PARAM^VALUE',
'COBOL_SET_SORT_PARAM_VALUE_', 'COBOL_SET_MAX_RECORD_',
'COBOL_SETMODE_', 'COBOL85^SPECIAL^OPEN', 'COBOL_SPECIAL_OPEN_',
'COBOLASSIGN', 'COBOL_ASSIGN_', 'COBOLFILEINFO', 'COBOL_FILE_INFO_',
'COBOLSPOOLOPEN', 'CREATEPROCESS', 'ALTERPARAMTEXT',
'CHECKLOGICALNAME', 'CHECKMESSAGE', 'DELETEASSIGN', 'DELETEPARAM',
'DELETESTARTUP', 'GETASSIGNTEXT', 'GETASSIGNVALUE', 'GETBACKUPCPU',
'GETPARAMTEXT', 'GETSTARTUPTEXT', 'PUTASSIGNTEXT', 'PUTASSIGNVALUE',
'PUTPARAMTEXT', 'PUTSTARTUPTEXT'
)
),
'SYMBOLS' => array(
//Avoid having - in identifiers marked as symbols
' + ', ' - ', ' * ', ' / ', ' ** ',
'.', ',',
'=',
'(', ')', '[', ']'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false,
5 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000080; font-weight: bold;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #008000; font-weight: bold;',
4 => 'color: #000080;',
5 => 'color: #008000;',
),
'COMMENTS' => array(
1 => 'color: #a0a0a0; font-style: italic;',
'MULTI' => 'color: #a0a0a0; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #339933;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #993399;'
),
'METHODS' => array(
1 => 'color: #202020;'
),
'SYMBOLS' => array(
0 => 'color: #000066;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
5 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4
);
?>

View file

@ -0,0 +1,267 @@
<?php
/*************************************************************************************
* cpp.php
* -------
* Author: Iulian M
* Copyright: (c) 2006 Iulian M
* Release Version: 1.0.7.21
* Date Started: 2004/09/27
*
* C++ language file for GeSHi, with QT extensions.
*
* CHANGES
* -------
*
* TODO
* ----
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'C++ (QT)',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'case', 'continue', 'default', 'do', 'else', 'for', 'goto', 'if', 'return',
'switch', 'while'
),
2 => array(
'NULL', 'false', 'break', 'true', 'enum', 'errno', 'EDOM',
'ERANGE', 'FLT_RADIX', 'FLT_ROUNDS', 'FLT_DIG', 'DBL_DIG', 'LDBL_DIG',
'FLT_EPSILON', 'DBL_EPSILON', 'LDBL_EPSILON', 'FLT_MANT_DIG', 'DBL_MANT_DIG',
'LDBL_MANT_DIG', 'FLT_MAX', 'DBL_MAX', 'LDBL_MAX', 'FLT_MAX_EXP', 'DBL_MAX_EXP',
'LDBL_MAX_EXP', 'FLT_MIN', 'DBL_MIN', 'LDBL_MIN', 'FLT_MIN_EXP', 'DBL_MIN_EXP',
'LDBL_MIN_EXP', 'CHAR_BIT', 'CHAR_MAX', 'CHAR_MIN', 'SCHAR_MAX', 'SCHAR_MIN',
'UCHAR_MAX', 'SHRT_MAX', 'SHRT_MIN', 'USHRT_MAX', 'INT_MAX', 'INT_MIN',
'UINT_MAX', 'LONG_MAX', 'LONG_MIN', 'ULONG_MAX', 'HUGE_VAL', 'SIGABRT',
'SIGFPE', 'SIGILL', 'SIGINT', 'SIGSEGV', 'SIGTERM', 'SIG_DFL', 'SIG_ERR',
'SIG_IGN', 'BUFSIZ', 'EOF', 'FILENAME_MAX', 'FOPEN_MAX', 'L_tmpnam', 'NULL',
'SEEK_CUR', 'SEEK_END', 'SEEK_SET', 'TMP_MAX', 'stdin', 'stdout', 'stderr',
'EXIT_FAILURE', 'EXIT_SUCCESS', 'RAND_MAX', 'CLOCKS_PER_SEC',
'virtual', 'public', 'private', 'protected', 'template', 'using', 'namespace',
'try', 'catch', 'inline', 'dynamic_cast', 'const_cast', 'reinterpret_cast',
'static_cast', 'explicit', 'friend', 'wchar_t', 'typename', 'typeid', 'class' ,
'foreach','connect', 'Q_OBJECT' , 'slots' , 'signals'
),
3 => array(
'cin', 'cerr', 'clog', 'cout', 'delete', 'new', 'this',
'printf', 'fprintf', 'snprintf', 'sprintf', 'assert',
'isalnum', 'isalpha', 'isdigit', 'iscntrl', 'isgraph', 'islower', 'isprint',
'ispunct', 'isspace', 'ispunct', 'isupper', 'isxdigit', 'tolower', 'toupper',
'exp', 'log', 'log10', 'pow', 'sqrt', 'ceil', 'floor', 'fabs', 'ldexp',
'frexp', 'modf', 'fmod', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'atan2',
'sinh', 'cosh', 'tanh', 'setjmp', 'longjmp', 'asin', 'acos', 'atan', 'atan2',
'va_start', 'va_arg', 'va_end', 'offsetof', 'sizeof', 'fopen', 'freopen',
'fflush', 'fclose', 'remove', 'rename', 'tmpfile', 'tmpname', 'setvbuf',
'setbuf', 'vfprintf', 'vprintf', 'vsprintf', 'fscanf', 'scanf', 'sscanf',
'fgetc', 'fgets', 'fputc', 'fputs', 'getc', 'getchar', 'gets', 'putc',
'putchar', 'puts', 'ungetc', 'fread', 'fwrite', 'fseek', 'ftell', 'rewind',
'fgetpos', 'fsetpos', 'clearerr', 'feof', 'ferror', 'perror', 'abs', 'labs',
'div', 'ldiv', 'atof', 'atoi', 'atol', 'strtod', 'strtol', 'strtoul', 'calloc',
'malloc', 'realloc', 'free', 'abort', 'exit', 'atexit', 'system', 'getenv',
'bsearch', 'qsort', 'rand', 'srand', 'strcpy', 'strncpy', 'strcat', 'strncat',
'strcmp', 'strncmp', 'strcoll', 'strchr', 'strrchr', 'strspn', 'strcspn',
'strpbrk', 'strstr', 'strlen', 'strerror', 'strtok', 'strxfrm', 'memcpy',
'memmove', 'memcmp', 'memchr', 'memset', 'clock', 'time', 'difftime', 'mktime',
'asctime', 'ctime', 'gmtime', 'localtime', 'strftime'
),
4 => array(
'auto', 'bool', 'char', 'const', 'double', 'float', 'int', 'long', 'longint',
'register', 'short', 'shortint', 'signed', 'static', 'struct',
'typedef', 'union', 'unsigned', 'void', 'volatile', 'extern', 'jmp_buf',
'signal', 'raise', 'va_list', 'ptrdiff_t', 'size_t', 'FILE', 'fpos_t',
'div_t', 'ldiv_t', 'clock_t', 'time_t', 'tm',
),
5 => array(
'QAbstractButton','QDir','QIntValidator','QRegExpValidator','QTabWidget','QAbstractEventDispatcher',
'QDirectPainter','QIODevice','QRegion','QTcpServer','QAbstractExtensionFactory','QDirModel',
'QItemDelegate','QResizeEvent','QTcpSocket','QAbstractExtensionManager','QDockWidget',
'QItemEditorCreatorBase','QResource','QTemporaryFile','QAbstractFileEngine','QDomAttr',
'QItemEditorFactory','QRubberBand','QTestEventList','QAbstractFileEngineHandler','QDomCDATASection',
'QItemSelection','QScreen','QTextBlock','QAbstractFormBuilder','QDomCharacterData','QItemSelectionModel',
'QScreenCursor','QTextBlockFormat','QAbstractGraphicsShapeItem','QDomComment','QItemSelectionRange',
'QScreenDriverFactory','QTextBlockGroup','QAbstractItemDelegate','QDomDocument','QKbdDriverFactory',
'QScreenDriverPlugin','QTextBlockUserData','QAbstractItemModel','QDomDocumentFragment','QKbdDriverPlugin',
'QScrollArea','QTextBrowser','QAbstractItemView','QDomDocumentType','QKeyEvent','QScrollBar',
'QTextCharFormat','QAbstractListModel','QDomElement','QKeySequence','QSemaphore','QTextCodec',
'QAbstractPrintDialog','QDomEntity','QLabel','QSessionManager','QTextCodecPlugin','QAbstractProxyModel',
'QDomEntityReference','QLatin1Char','QSet','QTextCursor','QAbstractScrollArea','QDomImplementation',
'QLatin1String','QSetIterator','QTextDecoder','QAbstractSlider','QDomNamedNodeMap','QLayout','QSettings',
'QTextDocument','QAbstractSocket','QDomNode','QLayoutItem','QSharedData','QTextDocumentFragment',
'QAbstractSpinBox','QDomNodeList','QLCDNumber','QSharedDataPointer','QTextEdit','QAbstractTableModel',
'QDomNotation','QLibrary','QShortcut','QTextEncoder','QAbstractTextDocumentLayout',
'QDomProcessingInstruction','QLibraryInfo','QShortcutEvent','QTextFormat','QAccessible','QDomText',
'QLine','QShowEvent','QTextFragment','QAccessibleBridge','QDoubleSpinBox','QLinearGradient',
'QSignalMapper','QTextFrame','QAccessibleBridgePlugin','QDoubleValidator','QLineEdit','QSignalSpy',
'QTextFrameFormat','QAccessibleEvent','QDrag','QLineF','QSize','QTextImageFormat','QAccessibleInterface',
'QDragEnterEvent','QLinkedList','QSizeF','QTextInlineObject','QAccessibleObject','QDragLeaveEvent',
'QLinkedListIterator','QSizeGrip','QTextLayout','QAccessiblePlugin','QDragMoveEvent','QLinuxFbScreen',
'QSizePolicy','QTextLength','QAccessibleWidget','QDropEvent','QList','QSlider','QTextLine','QAction',
'QDynamicPropertyChangeEvent','QListIterator','QSocketNotifier','QTextList','QActionEvent','QErrorMessage',
'QListView','QSortFilterProxyModel','QTextListFormat','QActionGroup','QEvent','QListWidget','QSound',
'QTextObject','QApplication','QEventLoop','QListWidgetItem','QSpacerItem','QTextOption','QAssistantClient',
'QExtensionFactory','QLocale','QSpinBox','QTextStream','QAxAggregated','QExtensionManager',
'QMacPasteboardMime','QSplashScreen','QTextTable','QAxBase','QFile','QMacStyle','QSplitter',
'QTextTableCell','QAxBindable','QFileDialog','QMainWindow','QSplitterHandle','QTextTableFormat',
'QAxFactory','QFileIconProvider','QMap','QSqlDatabase','QThread','QAxObject','QFileInfo','QMapIterator',
'QSqlDriver','QThreadStorage','QAxScript','QFileOpenEvent','QMatrix','QSqlDriverCreator','QTime',
'QAxScriptEngine','QFileSystemWatcher','QMenu','QSqlDriverCreatorBase','QTimeEdit','QAxScriptManager',
'QFlag','QMenuBar','QSqlDriverPlugin','QTimeLine','QAxWidget','QFlags','QMessageBox','QSqlError','QTimer',
'QBasicTimer','QFocusEvent','QMetaClassInfo','QSqlField','QTimerEvent','QBitArray','QFocusFrame',
'QMetaEnum','QSqlIndex','QToolBar','QBitmap','QFont','QMetaMethod','QSqlQuery','QToolBox','QBoxLayout',
'QFontComboBox','QMetaObject','QSqlQueryModel','QToolButton','QBrush','QFontDatabase','QMetaProperty',
'QSqlRecord','QToolTip','QBuffer','QFontDialog','QMetaType','QSqlRelation','QTransformedScreen',
'QButtonGroup','QFontInfo','QMimeData','QSqlRelationalDelegate','QTranslator','QByteArray','QFontMetrics',
'QMimeSource','QSqlRelationalTableModel','QTreeView','QByteArrayMatcher','QFontMetricsF','QModelIndex',
'QSqlResult','QTreeWidget','QCache','QFormBuilder','QMotifStyle','QSqlTableModel','QTreeWidgetItem',
'QCalendarWidget','QFrame','QMouseDriverFactory','QStack','QTreeWidgetItemIterator','QCDEStyle',
'QFSFileEngine','QMouseDriverPlugin','QStackedLayout','QUdpSocket','QChar','QFtp','QMouseEvent',
'QStackedWidget','QUiLoader','QCheckBox','QGenericArgument','QMoveEvent','QStandardItem','QUndoCommand',
'QChildEvent','QGenericReturnArgument','QMovie','QStandardItemEditorCreator','QUndoGroup',
'QCleanlooksStyle','QGLColormap','QMultiHash','QStandardItemModel','QUndoStack','QClipboard',
'QGLContext','QMultiMap','QStatusBar','QUndoView','QCloseEvent','QGLFormat','QMutableHashIterator',
'QStatusTipEvent','QUrl','QColor','QGLFramebufferObject','QMutableLinkedListIterator','QString',
'QUrlInfo','QColorDialog','QGLPixelBuffer','QMutableListIterator','QStringList','QUuid','QColormap',
'QGLWidget','QMutableMapIterator','QStringListModel','QValidator','QComboBox','QGradient',
'QMutableSetIterator','QStringMatcher','QVariant','QCommonStyle','QGraphicsEllipseItem',
'QMutableVectorIterator','QStyle','QVarLengthArray','QCompleter','QGraphicsItem','QMutex',
'QStyleFactory','QVBoxLayout','QConicalGradient','QGraphicsItemAnimation','QMutexLocker',
'QStyleHintReturn','QVector','QContextMenuEvent','QGraphicsItemGroup','QNetworkAddressEntry',
'QStyleHintReturnMask','QVectorIterator','QCopChannel','QGraphicsLineItem','QNetworkInterface',
'QStyleOption','QVFbScreen','QCoreApplication','QGraphicsPathItem','QNetworkProxy','QStyleOptionButton',
'QVNCScreen','QCursor','QGraphicsPixmapItem','QObject','QStyleOptionComboBox','QWaitCondition',
'QCustomRasterPaintDevice','QGraphicsPolygonItem','QObjectCleanupHandler','QStyleOptionComplex',
'QWhatsThis','QDataStream','QGraphicsRectItem','QPageSetupDialog','QStyleOptionDockWidget',
'QWhatsThisClickedEvent','QDataWidgetMapper','QGraphicsScene','QPaintDevice','QStyleOptionFocusRect',
'QWheelEvent','QDate','QGraphicsSceneContextMenuEvent','QPaintEngine','QStyleOptionFrame','QWidget',
'QDateEdit','QGraphicsSceneEvent','QPaintEngineState','QStyleOptionFrameV2','QWidgetAction','QDateTime',
'QGraphicsSceneHoverEvent','QPainter','QStyleOptionGraphicsItem','QWidgetItem','QDateTimeEdit',
'QGraphicsSceneMouseEvent','QPainterPath','QStyleOptionGroupBox','QWindowsMime','QDBusAbstractAdaptor',
'QGraphicsSceneWheelEvent','QPainterPathStroker','QStyleOptionHeader','QWindowsStyle',
'QDBusAbstractInterface','QGraphicsSimpleTextItem','QPaintEvent','QStyleOptionMenuItem',
'QWindowStateChangeEvent','QDBusArgument','QGraphicsSvgItem','QPair','QStyleOptionProgressBar',
'QWindowsXPStyle','QDBusConnection','QGraphicsTextItem','QPalette','QStyleOptionProgressBarV2',
'QWorkspace','QDBusConnectionInterface','QGraphicsView','QPen','QStyleOptionQ3DockWindow','QWriteLocker',
'QDBusError','QGridLayout','QPersistentModelIndex','QStyleOptionQ3ListView','QWSCalibratedMouseHandler',
'QDBusInterface','QGroupBox','QPicture','QStyleOptionQ3ListViewItem','QWSClient','QDBusMessage','QHash',
'QPictureFormatPlugin','QStyleOptionRubberBand','QWSEmbedWidget','QDBusObjectPath','QHashIterator',
'QPictureIO','QStyleOptionSizeGrip','QWSEvent','QDBusReply','QHBoxLayout','QPixmap','QStyleOptionSlider',
'QWSInputMethod','QDBusServer','QHeaderView','QPixmapCache','QStyleOptionSpinBox','QWSKeyboardHandler',
'QDBusSignature','QHelpEvent','QPlastiqueStyle','QStyleOptionTab','QWSMouseHandler','QDBusVariant',
'QHideEvent','QPluginLoader','QStyleOptionTabBarBase','QWSPointerCalibrationData','QDecoration',
'QHostAddress','QPoint','QStyleOptionTabV2','QWSScreenSaver','QDecorationFactory','QHostInfo','QPointer',
'QStyleOptionTabWidgetFrame','QWSServer','QDecorationPlugin','QHoverEvent','QPointF','QStyleOptionTitleBar',
'QWSTslibMouseHandler','QDesignerActionEditorInterface','QHttp','QPolygon','QStyleOptionToolBar','QWSWindow',
'QDesignerContainerExtension','QHttpHeader','QPolygonF','QStyleOptionToolBox','QWSWindowSurface',
'QDesignerCustomWidgetCollectionInterface','QHttpRequestHeader','QPrintDialog','QStyleOptionToolButton',
'QX11EmbedContainer','QDesignerCustomWidgetInterface','QHttpResponseHeader','QPrintEngine',
'QStyleOptionViewItem','QX11EmbedWidget','QDesignerFormEditorInterface','QIcon','QPrinter',
'QStyleOptionViewItemV2','QX11Info','QDesignerFormWindowCursorInterface','QIconDragEvent','QProcess',
'QStylePainter','QXmlAttributes','QDesignerFormWindowInterface','QIconEngine','QProgressBar',
'QStylePlugin','QXmlContentHandler','QDesignerFormWindowManagerInterface','QIconEnginePlugin',
'QProgressDialog','QSvgRenderer','QXmlDeclHandler','QDesignerMemberSheetExtension','QImage',
'QProxyModel','QSvgWidget','QXmlDefaultHandler','QDesignerObjectInspectorInterface','QImageIOHandler',
'QPushButton','QSyntaxHighlighter','QXmlDTDHandler','QDesignerPropertyEditorInterface','QImageIOPlugin',
'QQueue','QSysInfo','QXmlEntityResolver','QDesignerPropertySheetExtension','QImageReader','QRadialGradient',
'QSystemLocale','QXmlErrorHandler','QDesignerTaskMenuExtension','QImageWriter','QRadioButton',
'QSystemTrayIcon','QXmlInputSource','QDesignerWidgetBoxInterface','QInputContext','QRasterPaintEngine',
'QTabBar','QXmlLexicalHandler','QDesktopServices','QInputContextFactory','QReadLocker','QTabletEvent',
'QXmlLocator','QDesktopWidget','QInputContextPlugin','QReadWriteLock','QTableView','QXmlNamespaceSupport',
'QDial','QInputDialog','QRect','QTableWidget','QXmlParseException','QDialog','QInputEvent','QRectF',
'QTableWidgetItem','QXmlReader','QDialogButtonBox','QInputMethodEvent','QRegExp',
'QTableWidgetSelectionRange','QXmlSimpleReader'
)
),
'SYMBOLS' => array(
'(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => false,
2 => false,
3 => false,
4 => false,
5 => true,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0000ff;',
2 => 'color: #0000ff;',
3 => 'color: #0000dd;',
4 => 'color: #0000ff;',
5 => 'color: #0000ee;'
),
'COMMENTS' => array(
1 => 'color: #ff0000;',
2 => 'color: #339900;',
'MULTI' => 'color: #ff0000; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #666666; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #000000;'
),
'STRINGS' => array(
0 => 'color: #666666;'
),
'NUMBERS' => array(
0 => 'color: #0000dd;'
),
'METHODS' => array(
1 => 'color: #00eeff;',
2 => 'color: #00eeff;'
),
'SYMBOLS' => array(
0 => 'color: #000000;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
5 => 'http://doc.trolltech.com/4.2/{FNAME}.html'
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.',
2 => '::'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4
);
?>

View file

@ -0,0 +1,185 @@
<?php
/*************************************************************************************
* cpp.php
* -------
* Author: Dennis Bayer (Dennis.Bayer@mnifh-giessen.de)
* Contributors:
* - M. Uli Kusterer (witness.of.teachtext@gmx.net)
* - Jack Lloyd (lloyd@randombit.net)
* Copyright: (c) 2004 Dennis Bayer, Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.7.21
* Date Started: 2004/09/27
*
* C++ language file for GeSHi.
*
* CHANGES
* -------
* 2004/XX/XX (1.0.2)
* - Added several new keywords (Jack Lloyd)
* 2004/11/27 (1.0.1)
* - Added StdCLib function and constant names, changed color scheme to
* a cleaner one. (M. Uli Kusterer)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'C++',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'break', 'case', 'continue', 'default', 'do', 'else', 'for', 'goto', 'if', 'return',
'switch', 'throw', 'while'
),
2 => array(
'NULL', 'false', 'true', 'enum', 'errno', 'EDOM',
'ERANGE', 'FLT_RADIX', 'FLT_ROUNDS', 'FLT_DIG', 'DBL_DIG', 'LDBL_DIG',
'FLT_EPSILON', 'DBL_EPSILON', 'LDBL_EPSILON', 'FLT_MANT_DIG', 'DBL_MANT_DIG',
'LDBL_MANT_DIG', 'FLT_MAX', 'DBL_MAX', 'LDBL_MAX', 'FLT_MAX_EXP', 'DBL_MAX_EXP',
'LDBL_MAX_EXP', 'FLT_MIN', 'DBL_MIN', 'LDBL_MIN', 'FLT_MIN_EXP', 'DBL_MIN_EXP',
'LDBL_MIN_EXP', 'CHAR_BIT', 'CHAR_MAX', 'CHAR_MIN', 'SCHAR_MAX', 'SCHAR_MIN',
'UCHAR_MAX', 'SHRT_MAX', 'SHRT_MIN', 'USHRT_MAX', 'INT_MAX', 'INT_MIN',
'UINT_MAX', 'LONG_MAX', 'LONG_MIN', 'ULONG_MAX', 'HUGE_VAL', 'SIGABRT',
'SIGFPE', 'SIGILL', 'SIGINT', 'SIGSEGV', 'SIGTERM', 'SIG_DFL', 'SIG_ERR',
'SIG_IGN', 'BUFSIZ', 'EOF', 'FILENAME_MAX', 'FOPEN_MAX', 'L_tmpnam', 'NULL',
'SEEK_CUR', 'SEEK_END', 'SEEK_SET', 'TMP_MAX', 'stdin', 'stdout', 'stderr',
'EXIT_FAILURE', 'EXIT_SUCCESS', 'RAND_MAX', 'CLOCKS_PER_SEC',
'virtual', 'public', 'private', 'protected', 'template', 'using', 'namespace',
'try', 'catch', 'inline', 'dynamic_cast', 'const_cast', 'reinterpret_cast',
'static_cast', 'explicit', 'friend', 'wchar_t', 'typename', 'typeid', 'class'
),
3 => array(
'cin', 'cerr', 'clog', 'cout', 'delete', 'new', 'this',
'printf', 'fprintf', 'snprintf', 'sprintf', 'assert',
'isalnum', 'isalpha', 'isdigit', 'iscntrl', 'isgraph', 'islower', 'isprint',
'ispunct', 'isspace', 'ispunct', 'isupper', 'isxdigit', 'tolower', 'toupper',
'exp', 'log', 'log10', 'pow', 'sqrt', 'ceil', 'floor', 'fabs', 'ldexp',
'frexp', 'modf', 'fmod', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'atan2',
'sinh', 'cosh', 'tanh', 'setjmp', 'longjmp', 'asin', 'acos', 'atan', 'atan2',
'va_start', 'va_arg', 'va_end', 'offsetof', 'sizeof', 'fopen', 'freopen',
'fflush', 'fclose', 'remove', 'rename', 'tmpfile', 'tmpname', 'setvbuf',
'setbuf', 'vfprintf', 'vprintf', 'vsprintf', 'fscanf', 'scanf', 'sscanf',
'fgetc', 'fgets', 'fputc', 'fputs', 'getc', 'getchar', 'gets', 'putc',
'putchar', 'puts', 'ungetc', 'fread', 'fwrite', 'fseek', 'ftell', 'rewind',
'fgetpos', 'fsetpos', 'clearerr', 'feof', 'ferror', 'perror', 'abs', 'labs',
'div', 'ldiv', 'atof', 'atoi', 'atol', 'strtod', 'strtol', 'strtoul', 'calloc',
'malloc', 'realloc', 'free', 'abort', 'exit', 'atexit', 'system', 'getenv',
'bsearch', 'qsort', 'rand', 'srand', 'strcpy', 'strncpy', 'strcat', 'strncat',
'strcmp', 'strncmp', 'strcoll', 'strchr', 'strrchr', 'strspn', 'strcspn',
'strpbrk', 'strstr', 'strlen', 'strerror', 'strtok', 'strxfrm', 'memcpy',
'memmove', 'memcmp', 'memchr', 'memset', 'clock', 'time', 'difftime', 'mktime',
'asctime', 'ctime', 'gmtime', 'localtime', 'strftime'
),
4 => array(
'auto', 'bool', 'char', 'const', 'double', 'float', 'int', 'long', 'longint',
'register', 'short', 'shortint', 'signed', 'static', 'struct',
'typedef', 'union', 'unsigned', 'void', 'volatile', 'extern', 'jmp_buf',
'signal', 'raise', 'va_list', 'ptrdiff_t', 'size_t', 'FILE', 'fpos_t',
'div_t', 'ldiv_t', 'clock_t', 'time_t', 'tm',
),
),
'SYMBOLS' => array(
0 => array('(', ')', '{', '}', '[', ']'),
1 => array('<', '>','='),
2 => array('+', '-', '*', '/', '%'),
3 => array('!', '^', '&', '|'),
4 => array(':')
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => false,
2 => false,
3 => false,
4 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0000ff;',
2 => 'color: #0000ff;',
3 => 'color: #0000dd;',
4 => 'color: #0000ff;'
),
'COMMENTS' => array(
1 => 'color: #666666;',
2 => 'color: #339900;',
'MULTI' => 'color: #ff0000; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #666666; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #008000;'
),
'STRINGS' => array(
0 => 'color: #FF0000;'
),
'NUMBERS' => array(
0 => 'color: #0000dd;'
),
'METHODS' => array(
1 => 'color: #00eeff;',
2 => 'color: #00eeff;'
),
'SYMBOLS' => array(
0 => 'color: #008000;',
1 => 'color: #000080;',
2 => 'color: #000040;',
3 => 'color: #000040;',
4 => 'color: #008080;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.',
2 => '::'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
'DISALLOWED_BEFORE' => "a-zA-Z0-9\$_\|\#>|^",
'DISALLOWED_AFTER' => "a-zA-Z0-9_<\|%\\-"
)
)
);
?>

View file

@ -0,0 +1,238 @@
<?php
/*************************************************************************************
* csharp.php
* ----------
* Author: Alan Juden (alan@judenware.org)
* Copyright: (c) 2004 Alan Juden, Nigel McNie (http://qbnz.com/highlighter/)
* Release Version: 1.0.7.21
* Date Started: 2004/06/04
*
* C# language file for GeSHi.
*
* CHANGES
* -------
* 2005/01/05 (1.0.1)
* - Used hardquote support for @"..." strings (Cliff Stanford)
* 2004/11/27 (1.0.0)
* - Initial release
*
* TODO (updated 2004/11/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'C#',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'HARDQUOTE' => array('@"', '"'),
'HARDESCAPE' => array('""'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'as', 'auto', 'base', 'break', 'case', 'catch', 'const', 'continue',
'default', 'do', 'else', 'event', 'explicit', 'extern', 'false',
'finally', 'fixed', 'for', 'foreach', 'goto', 'if', 'implicit',
'in', 'internal', 'lock', 'namespace', 'null', 'operator', 'out',
'override', 'params', 'private', 'protected', 'public', 'readonly',
'ref', 'return', 'sealed', 'stackalloc', 'static', 'switch', 'this',
'throw', 'true', 'try', 'unsafe', 'using', 'virtual', 'void', 'while'
),
2 => array(
'#elif', '#endif', '#endregion', '#else', '#error', '#define', '#if',
'#line', '#region', '#undef', '#warning'
),
3 => array(
'checked', 'is', 'new', 'sizeof', 'typeof', 'unchecked'
),
4 => array(
'bool', 'byte', 'char', 'class', 'decimal', 'delegate', 'double',
'enum', 'float', 'int', 'interface', 'long', 'object', 'sbyte',
'short', 'string', 'struct', 'uint', 'ulong', 'ushort'
),
5 => array(
'Microsoft.Win32',
'System',
'System.CodeDOM',
'System.CodeDOM.Compiler',
'System.Collections',
'System.Collections.Bases',
'System.ComponentModel',
'System.ComponentModel.Design',
'System.ComponentModel.Design.CodeModel',
'System.Configuration',
'System.Configuration.Assemblies',
'System.Configuration.Core',
'System.Configuration.Install',
'System.Configuration.Interceptors',
'System.Configuration.Schema',
'System.Configuration.Web',
'System.Core',
'System.Data',
'System.Data.ADO',
'System.Data.Design',
'System.Data.Internal',
'System.Data.SQL',
'System.Data.SQLTypes',
'System.Data.XML',
'System.Data.XML.DOM',
'System.Data.XML.XPath',
'System.Data.XML.XSLT',
'System.Diagnostics',
'System.Diagnostics.SymbolStore',
'System.DirectoryServices',
'System.Drawing',
'System.Drawing.Design',
'System.Drawing.Drawing2D',
'System.Drawing.Imaging',
'System.Drawing.Printing',
'System.Drawing.Text',
'System.Globalization',
'System.IO',
'System.IO.IsolatedStorage',
'System.Messaging',
'System.Net',
'System.Net.Sockets',
'System.NewXml',
'System.NewXml.XPath',
'System.NewXml.Xsl',
'System.Reflection',
'System.Reflection.Emit',
'System.Resources',
'System.Runtime.InteropServices',
'System.Runtime.InteropServices.Expando',
'System.Runtime.Remoting',
'System.Runtime.Serialization',
'System.Runtime.Serialization.Formatters',
'System.Runtime.Serialization.Formatters.Binary',
'System.Security',
'System.Security.Cryptography',
'System.Security.Cryptography.X509Certificates',
'System.Security.Permissions',
'System.Security.Policy',
'System.Security.Principal',
'System.ServiceProcess',
'System.Text',
'System.Text.RegularExpressions',
'System.Threading',
'System.Timers',
'System.Web',
'System.Web.Caching',
'System.Web.Configuration',
'System.Web.Security',
'System.Web.Services',
'System.Web.Services.Description',
'System.Web.Services.Discovery',
'System.Web.Services.Protocols',
'System.Web.UI',
'System.Web.UI.Design',
'System.Web.UI.Design.WebControls',
'System.Web.UI.Design.WebControls.ListControls',
'System.Web.UI.HtmlControls',
'System.Web.UI.WebControls',
'System.WinForms',
'System.WinForms.ComponentModel',
'System.WinForms.Design',
'System.Xml',
'System.Xml.Serialization',
'System.Xml.Serialization.Code',
'System.Xml.Serialization.Schema'
),
),
'SYMBOLS' => array(
'+', '-', '*', '?', '=', '/', '%', '&', '>', '<', '^', '!', '|', ':',
'(', ')', '{', '}', '[', ']'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => false,
2 => false,
3 => false,
4 => false,
5 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0600FF;',
2 => 'color: #FF8000; font-weight: bold;',
3 => 'color: #008000;',
4 => 'color: #FF0000;',
5 => 'color: #000000;'
),
'COMMENTS' => array(
1 => 'color: #008080; font-style: italic;',
2 => 'color: #008080;',
'MULTI' => 'color: #008080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #008080; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #000000;'
),
'STRINGS' => array(
0 => 'color: #808080;'
),
'NUMBERS' => array(
0 => 'color: #FF0000;'
),
'METHODS' => array(
1 => 'color: #0000FF;',
2 => 'color: #0000FF;'
),
'SYMBOLS' => array(
0 => 'color: #008000;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => 'http://www.google.com/search?q={FNAME}+msdn.microsoft.com',
4 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.',
2 => '::'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
'DISALLOWED_BEFORE' => "a-zA-Z0-9\$_\|\#>|^",
'DISALLOWED_AFTER' => "a-zA-Z0-9_<\|%\\-"
)
)
);
?>

View file

@ -0,0 +1,208 @@
<?php
/*************************************************************************************
* css.php
* -------
* Author: Nigel McNie (nigel@geshi.org)
* Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
* Release Version: 1.0.7.21
* Date Started: 2004/06/18
*
* CSS language file for GeSHi.
*
* CHANGES
* -------
* 2004/11/27 (1.0.3)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.2)
* - Changed regexps to catch "-" symbols
* - Added support for URLs
* 2004/08/05 (1.0.1)
* - Added support for symbols
* 2004/07/14 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
* * Improve or drop regexps for class/id/psuedoclass highlighting
* * Re-look at keywords - possibly to make several CSS language
* files, all with different versions of CSS in them
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'CSS',
'COMMENT_SINGLE' => array(1 => '@'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"', "'"),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'aqua', 'azimuth', 'background-attachment', 'background-color',
'background-image', 'background-position', 'background-repeat',
'background', 'black', 'blue', 'border-bottom-color',
'border-bottom-style', 'border-bottom-width', 'border-left-color',
'border-left-style', 'border-left-width', 'border-right',
'border-right-color', 'border-right-style', 'border-right-width',
'border-top-color', 'border-top-style',
'border-top-width','border-bottom', 'border-collapse',
'border-left', 'border-width', 'border-color', 'border-spacing',
'border-style', 'border-top', 'border', 'caption-side', 'clear',
'clip', 'color', 'content', 'counter-increment', 'counter-reset',
'cue-after', 'cue-before', 'cue', 'cursor', 'direction', 'display',
'elevation', 'empty-cells', 'float', 'font-family', 'font-size',
'font-size-adjust', 'font-stretch', 'font-style', 'font-variant',
'font-weight', 'font', 'line-height', 'letter-spacing',
'list-style', 'list-style-image', 'list-style-position',
'list-style-type', 'margin-bottom', 'margin-left', 'margin-right',
'margin-top', 'margin', 'marker-offset', 'marks', 'max-height',
'max-width', 'min-height', 'min-width', 'orphans', 'outline',
'outline-color', 'outline-style', 'outline-width', 'overflow',
'padding-bottom', 'padding-left', 'padding-right', 'padding-top',
'padding', 'page', 'page-break-after', 'page-break-before',
'page-break-inside', 'pause-after', 'pause-before', 'pause',
'pitch', 'pitch-range', 'play-during', 'position', 'quotes',
'richness', 'right', 'size', 'speak-header', 'speak-numeral',
'speak-punctuation', 'speak', 'speech-rate', 'stress',
'table-layout', 'text-align', 'text-decoration', 'text-indent',
'text-shadow', 'text-transform', 'top', 'unicode-bidi',
'vertical-align', 'visibility', 'voice-family', 'volume',
'white-space', 'widows', 'width', 'word-spacing', 'z-index',
'bottom', 'left', 'height'
),
2 => array(
'above', 'absolute', 'always', 'armenian', 'aural', 'auto',
'avoid', 'baseline', 'behind', 'below', 'bidi-override', 'blink',
'block', 'bold', 'bolder', 'both', 'capitalize', 'center-left',
'center-right', 'center', 'circle', 'cjk-ideographic',
'close-quote', 'collapse', 'condensed', 'continuous', 'crop',
'crosshair', 'cross', 'cursive', 'dashed', 'decimal-leading-zero',
'decimal', 'default', 'digits', 'disc', 'dotted', 'double',
'e-resize', 'embed', 'extra-condensed', 'extra-expanded',
'expanded', 'fantasy', 'far-left', 'far-right', 'faster', 'fast',
'fixed', 'fuchsia', 'georgian', 'gray', 'green', 'groove',
'hebrew', 'help', 'hidden', 'hide', 'higher', 'high',
'hiragana-iroha', 'hiragana', 'icon', 'inherit', 'inline-table',
'inline', 'inset', 'inside', 'invert', 'italic', 'justify',
'katakana-iroha', 'katakana', 'landscape', 'larger', 'large',
'left-side', 'leftwards', 'level', 'lighter', 'lime',
'line-through', 'list-item', 'loud', 'lower-alpha', 'lower-greek',
'lower-roman', 'lowercase', 'ltr', 'lower', 'low', 'maroon',
'medium', 'message-box', 'middle', 'mix', 'monospace', 'n-resize',
'narrower', 'navy', 'ne-resize', 'no-close-quote',
'no-open-quote', 'no-repeat', 'none', 'normal', 'nowrap',
'nw-resize', 'oblique', 'olive', 'once', 'open-quote', 'outset',
'outside', 'overline', 'pointer', 'portrait', 'purple', 'px',
'red', 'relative', 'repeat-x', 'repeat-y', 'repeat', 'rgb',
'ridge', 'right-side', 'rightwards', 's-resize', 'sans-serif',
'scroll', 'se-resize', 'semi-condensed', 'semi-expanded',
'separate', 'serif', 'show', 'silent', 'silver', 'slow', 'slower',
'small-caps', 'small-caption', 'smaller', 'soft', 'solid',
'spell-out', 'square', 'static', 'status-bar', 'super',
'sw-resize', 'table-caption', 'table-cell', 'table-column',
'table-column-group', 'table-footer-group', 'table-header-group',
'table-row', 'table-row-group', 'teal', 'text', 'text-bottom',
'text-top', 'thick', 'thin', 'transparent', 'ultra-condensed',
'ultra-expanded', 'underline', 'upper-alpha', 'upper-latin',
'upper-roman', 'uppercase', 'url', 'visible', 'w-resize', 'wait',
'white', 'wider', 'x-fast', 'x-high', 'x-large', 'x-loud',
'x-low', 'x-small', 'x-soft', 'xx-large', 'xx-small', 'yellow',
'yes'
)
),
'SYMBOLS' => array(
'(', ')', '{', '}', ':', ';'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000000; font-weight: bold;',
2 => 'color: #993333;'
),
'COMMENTS' => array(
1 => 'color: #a1a100;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'SCRIPT' => array(
),
'REGEXPS' => array(
0 => 'color: #cc00cc;',
1 => 'color: #6666ff;',
2 => 'color: #3333ff;',
3 => 'color: #933;',
4 => 'color: #933;',
)
),
'URLS' => array(
1 => '',
2 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
0 => '\#[a-zA-Z0-9\-_]+',
1 => '\.[a-zA-Z0-9\-_]+',
2 => ':[a-zA-Z0-9\-]+',
3 => '(\d+|(\d*\.\d+))(em|ex|pt|px|cm|in|%)',
4 => array(
GESHI_SEARCH => '(url\()([^)]+)(\))',
GESHI_REPLACE => '\\2',
GESHI_BEFORE => '\\1',
GESHI_AFTER => '\\3',
GESHI_MODIFIERS => 'si'
)
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4
);
if (isset($this) && is_a($this, 'GeSHi')) {
$language_data['STYLES']['NUMBERS'][0] = $language_data['STYLES']['REGEXPS'][3];
}
?>

View file

@ -0,0 +1,285 @@
<?php
/*************************************************************************************
* d.php
* -----
* Author: Thomas Kuehne (thomas@kuehne.cn)
* Copyright: (c) 2005 Thomas Kuehne (http://thomas.kuehne.cn/)
* Release Version: 1.0.7.21
* Date Started: 2005/04/22
*
* D language file for GeSHi.
*
* CHANGES
* -------
* 2005/04/22 (0.0.2)
* - added _d_* and sizeof/ptrdiff_t
* 2005/04/20 (0.0.1)
* - First release
*
* TODO (updated 2005/04/22)
* -------------------------
* * nested comments
* * correct handling of r"" and ``
* * correct handling of ... and ..
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'D',
'COMMENT_SINGLE' => array(1 => '//'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"', "'", '`'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'while',
'switch',
'if',
'foreach',
'for',
'goto',
'return',
'else',
'do',
'case',
'continue',
'break'
),
2 => array(
'with',
'union',
'typeof',
'typeid',
'typedef',
'try',
'true',
'throw',
'this',
'super',
'pragma',
'out',
'null',
'new',
'module',
'mixin',
'is',
'invariant',
'interface',
'inout',
'in',
'import',
'function',
'finally',
'false',
'extern',
'delete',
'delegate',
'default',
'catch',
'cast',
'body',
'assert',
'asm',
'alias'
),
3 => array(
'TypeInfo',
'SwitchError',
'OutOfMemoryException',
'Object',
'ModuleInfo',
'Interface',
'Exception',
'Error',
'ClassInfo',
'ArrayBoundsError',
'AssertError',
'_d_throw',
'_d_switch_ustring',
'_d_switch_string',
'_d_switch_dstring',
'_d_OutOfMemory',
'_d_obj_eq',
'_d_obj_cmp',
'_d_newclass',
'_d_newbitarray',
'_d_newarrayi',
'_d_new',
'_d_monitorrelease',
'_d_monitor_prolog',
'_d_monitor_handler',
'_d_monitorexit',
'_d_monitor_epilog',
'_d_monitorenter',
'_d_local_unwind',
'_d_isbaseof2',
'_d_isbaseof',
'_d_invariant',
'_d_interface_vtbl',
'_d_interface_cast',
'_d_framehandler',
'_d_exception_filter',
'_d_exception',
'_d_dynamic_cast',
'_d_delmemory',
'_d_delinterface',
'_d_delclass',
'_d_delarray',
'_d_criticalexit',
'_d_criticalenter',
'_d_create_exception_object',
'_d_callfinalizer',
'_d_arraysetlengthb',
'_d_arraysetlength',
'_d_arraysetbit2',
'_d_arraysetbit',
'_d_arraycopybit',
'_d_arraycopy',
'_d_arraycatn',
'_d_arraycatb',
'_d_arraycat',
'_d_arraycast_frombit',
'_d_arraycast',
'_d_arrayappendcb',
'_d_arrayappendc',
'_d_arrayappendb',
'_d_arrayappend',
),
4 => array(
'wchar',
'volatile',
'void',
'version',
'ushort',
'unittest',
'ulong',
'uint',
'ucent',
'ubyte',
'template',
'struct',
'static',
'synchronized',
'size_t',
'short',
'real',
'public',
'protected',
'private',
'ptrdiff_t',
'package',
'override',
'long',
'int',
'ireal',
'ifloat',
'idouble',
'float',
'final',
'export',
'enum',
'double',
'deprecated',
'debug',
'dchar',
'creal',
'const',
'class',
'char',
'cfloat',
'cent',
'cdouble',
'byte',
'bool',
'bit',
'auto',
'align',
'abstract'
)
),
'SYMBOLS' => array(
'(', ')', '[', ']', '{', '}', '?', '!', ';', ':', ',', '...', '..',
'+', '-', '*', '/', '%', '&', '|', '^', '<', '>', '=', '~',
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => true,
2 => true,
3 => true,
4 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #aaaadd; font-weight: bold;',
4 => 'color: #993333;'
),
'COMMENTS' => array(
1=> 'color: #808080; font-style: italic;',
2=> 'color: #a1a100;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
1 => 'color: #006600;',
2 => 'color: #006600;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'SCRIPT' => array(
),
'REGEXPS' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.',
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,280 @@
<?php
/*************************************************************************************
* delphi.php
* ----------
* Author: Járja Norbert (jnorbi@vipmail.hu), Benny Baumann (BenBE@omorphia.de)
* Copyright: (c) 2004 Járja Norbert, Benny Baumann (BenBE@omorphia.de), Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.7.21
* Date Started: 2004/07/26
*
* Delphi (Object Pascal) language file for GeSHi.
*
* CHANGES
* -------
* 2005/11/19 (1.0.3)
* - Updated the very incomplete keyword and type lists
* 2005/09/03 (1.0.2)
* - Added support for hex numbers and string entities
* 2004/11/27 (1.0.1)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Delphi',
'COMMENT_SINGLE' => array(1 => '//'),
'COMMENT_MULTI' => array('(*' => '*)', '{' => '}'),
'CASE_KEYWORDS' => 0,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
'Abstract', 'And', 'Array', 'As', 'Asm', 'At', 'Begin', 'Case', 'Class',
'Const', 'Constructor', 'Contains', 'Destructor', 'DispInterface', 'Div',
'Do', 'DownTo', 'Else', 'End', 'Except', 'File', 'Finalization',
'Finally', 'For', 'Function', 'Goto', 'If', 'Implementation', 'In',
'Inherited', 'Initialization', 'Inline', 'Interface', 'Is', 'Label',
'Mod', 'Not', 'Object', 'Of', 'On', 'Or', 'Overload', 'Override',
'Package', 'Packed', 'Private', 'Procedure', 'Program', 'Property',
'Protected', 'Public', 'Published', 'Raise', 'Record', 'Repeat',
'Requires', 'Resourcestring', 'Set', 'Shl', 'Shr', 'Then', 'ThreadVar',
'To', 'Try', 'Type', 'Unit', 'Until', 'Uses', 'Var', 'Virtual', 'While',
'With', 'Xor', 'assembler', 'cdecl', 'far', 'near', 'pascal', 'register',
'safecall', 'stdcall', 'varargs'
),
2 => array(
'nil', 'false', 'self', 'true', 'var', 'type', 'const'
),
3 => array(
'Abs', 'AcquireExceptionObject', 'Addr', 'AnsiToUtf8', 'Append', 'ArcTan',
'Assert', 'AssignFile', 'Assigned', 'BeginThread', 'BlockRead',
'BlockWrite', 'Break', 'ChDir', 'Chr', 'Close', 'CloseFile',
'CompToCurrency', 'CompToDouble', 'Concat', 'Continue', 'Copy', 'Cos',
'Dec', 'Delete', 'Dispose', 'DoubleToComp', 'EndThread', 'EnumModules',
'EnumResourceModules', 'Eof', 'Eoln', 'Erase', 'ExceptAddr',
'ExceptObject', 'Exclude', 'Exit', 'Exp', 'FilePos', 'FileSize',
'FillChar', 'Finalize', 'FindClassHInstance', 'FindHInstance',
'FindResourceHInstance', 'Flush', 'Frac', 'FreeMem', 'Get8087CW',
'GetDir', 'GetLastError', 'GetMem', 'GetMemoryManager',
'GetModuleFileName', 'GetVariantManager', 'Halt', 'Hi', 'High',
'IOResult', 'Inc', 'Include', 'Initialize', 'Insert', 'Int',
'IsMemoryManagerSet', 'IsVariantManagerSet', 'Length', 'Ln', 'Lo', 'Low',
'MkDir', 'Move', 'New', 'Odd', 'OleStrToStrVar', 'OleStrToString', 'Ord',
'PUCS4Chars', 'ParamCount', 'ParamStr', 'Pi', 'Pos', 'Pred', 'Ptr',
'Random', 'Randomize', 'Read', 'ReadLn', 'ReallocMem',
'ReleaseExceptionObject', 'Rename', 'Reset', 'Rewrite', 'RmDir', 'Round',
'RunError', 'Seek', 'SeekEof', 'SeekEoln', 'Set8087CW', 'SetLength',
'SetLineBreakStyle', 'SetMemoryManager', 'SetString', 'SetTextBuf',
'SetVariantManager', 'Sin', 'SizeOf', 'Slice', 'Sqr', 'Sqrt', 'Str',
'StringOfChar', 'StringToOleStr', 'StringToWideChar', 'Succ', 'Swap',
'Trunc', 'Truncate', 'TypeInfo', 'UCS4StringToWideString', 'UTF8Decode',
'UTF8Encode', 'UnicodeToUtf8', 'UniqueString', 'UpCase', 'Utf8ToAnsi',
'Utf8ToUnicode', 'Val', 'VarArrayRedim', 'VarClear',
'WideCharLenToStrVar', 'WideCharLenToString', 'WideCharToStrVar',
'WideCharToString', 'WideStringToUCS4String', 'Write', 'WriteLn',
'Abort', 'AddExitProc', 'AddTerminateProc', 'AdjustLineBreaks', 'AllocMem',
'AnsiCompareFileName', 'AnsiCompareStr', 'AnsiCompareText',
'AnsiDequotedStr', 'AnsiExtractQuotedStr', 'AnsiLastChar',
'AnsiLowerCase', 'AnsiLowerCaseFileName', 'AnsiPos', 'AnsiQuotedStr',
'AnsiSameStr', 'AnsiSameText', 'AnsiStrComp', 'AnsiStrIComp',
'AnsiStrLComp', 'AnsiStrLIComp', 'AnsiStrLastChar', 'AnsiStrLower',
'AnsiStrPos', 'AnsiStrRScan', 'AnsiStrScan', 'AnsiStrUpper',
'AnsiUpperCase', 'AnsiUpperCaseFileName', 'AppendStr', 'AssignStr',
'Beep', 'BoolToStr', 'ByteToCharIndex', 'ByteToCharLen', 'ByteType',
'CallTerminateProcs', 'ChangeFileExt', 'CharLength', 'CharToByteIndex',
'CharToByteLen', 'CompareMem', 'CompareStr', 'CompareText', 'CreateDir',
'CreateGUID', 'CurrToStr', 'CurrToStrF', 'CurrentYear', 'Date',
'DateTimeToFileDate', 'DateTimeToStr', 'DateTimeToString',
'DateTimeToSystemTime', 'DateTimeToTimeStamp', 'DateToStr', 'DayOfWeek',
'DecodeDate', 'DecodeDateFully', 'DecodeTime', 'DeleteFile',
'DirectoryExists', 'DiskFree', 'DiskSize', 'DisposeStr', 'EncodeDate',
'EncodeTime', 'ExceptionErrorMessage', 'ExcludeTrailingBackslash',
'ExcludeTrailingPathDelimiter', 'ExpandFileName', 'ExpandFileNameCase',
'ExpandUNCFileName', 'ExtractFileDir', 'ExtractFileDrive',
'ExtractFileExt', 'ExtractFileName', 'ExtractFilePath',
'ExtractRelativePath', 'ExtractShortPathName', 'FileAge', 'FileClose',
'FileCreate', 'FileDateToDateTime', 'FileExists', 'FileGetAttr',
'FileGetDate', 'FileIsReadOnly', 'FileOpen', 'FileRead', 'FileSearch',
'FileSeek', 'FileSetAttr', 'FileSetDate', 'FileSetReadOnly', 'FileWrite',
'FinalizePackage', 'FindClose', 'FindCmdLineSwitch', 'FindFirst',
'FindNext', 'FloatToCurr', 'FloatToDateTime', 'FloatToDecimal',
'FloatToStr', 'FloatToStrF', 'FloatToText', 'FloatToTextFmt',
'FmtLoadStr', 'FmtStr', 'ForceDirectories', 'Format', 'FormatBuf',
'FormatCurr', 'FormatDateTime', 'FormatFloat', 'FreeAndNil',
'GUIDToString', 'GetCurrentDir', 'GetEnvironmentVariable',
'GetFileVersion', 'GetFormatSettings', 'GetLocaleFormatSettings',
'GetModuleName', 'GetPackageDescription', 'GetPackageInfo', 'GetTime',
'IncAMonth', 'IncMonth', 'IncludeTrailingBackslash',
'IncludeTrailingPathDelimiter', 'InitializePackage', 'IntToHex',
'IntToStr', 'InterlockedDecrement', 'InterlockedExchange',
'InterlockedExchangeAdd', 'InterlockedIncrement', 'IsDelimiter',
'IsEqualGUID', 'IsLeapYear', 'IsPathDelimiter', 'IsValidIdent',
'Languages', 'LastDelimiter', 'LoadPackage', 'LoadStr', 'LowerCase',
'MSecsToTimeStamp', 'NewStr', 'NextCharIndex', 'Now', 'OutOfMemoryError',
'QuotedStr', 'RaiseLastOSError', 'RaiseLastWin32Error', 'RemoveDir',
'RenameFile', 'ReplaceDate', 'ReplaceTime', 'SafeLoadLibrary',
'SameFileName', 'SameText', 'SetCurrentDir', 'ShowException', 'Sleep',
'StrAlloc', 'StrBufSize', 'StrByteType', 'StrCat', 'StrCharLength',
'StrComp', 'StrCopy', 'StrDispose', 'StrECopy', 'StrEnd', 'StrFmt',
'StrIComp', 'StrLCat', 'StrLComp', 'StrLCopy', 'StrLFmt', 'StrLIComp',
'StrLen', 'StrLower', 'StrMove', 'StrNew', 'StrNextChar', 'StrPCopy',
'StrPLCopy', 'StrPas', 'StrPos', 'StrRScan', 'StrScan', 'StrToBool',
'StrToBoolDef', 'StrToCurr', 'StrToCurrDef', 'StrToDate', 'StrToDateDef',
'StrToDateTime', 'StrToDateTimeDef', 'StrToFloat', 'StrToFloatDef',
'StrToInt', 'StrToInt64', 'StrToInt64Def', 'StrToIntDef', 'StrToTime',
'StrToTimeDef', 'StrUpper', 'StringReplace', 'StringToGUID', 'Supports',
'SysErrorMessage', 'SystemTimeToDateTime', 'TextToFloat', 'Time',
'TimeStampToDateTime', 'TimeStampToMSecs', 'TimeToStr', 'Trim',
'TrimLeft', 'TrimRight', 'TryEncodeDate', 'TryEncodeTime',
'TryFloatToCurr', 'TryFloatToDateTime', 'TryStrToBool', 'TryStrToCurr',
'TryStrToDate', 'TryStrToDateTime', 'TryStrToFloat', 'TryStrToInt',
'TryStrToInt64', 'TryStrToTime', 'UnloadPackage', 'UpperCase',
'WideCompareStr', 'WideCompareText', 'WideFmtStr', 'WideFormat',
'WideFormatBuf', 'WideLowerCase', 'WideSameStr', 'WideSameText',
'WideUpperCase', 'Win32Check', 'WrapText',
'ActivateClassGroup', 'AllocateHwnd', 'BinToHex', 'CheckSynchronize',
'CollectionsEqual', 'CountGenerations', 'DeallocateHwnd', 'EqualRect',
'ExtractStrings', 'FindClass', 'FindGlobalComponent', 'GetClass',
'GroupDescendantsWith', 'HexToBin', 'IdentToInt',
'InitInheritedComponent', 'IntToIdent', 'InvalidPoint',
'IsUniqueGlobalComponentName', 'LineStart', 'ObjectBinaryToText',
'ObjectResourceToText', 'ObjectTextToBinary', 'ObjectTextToResource',
'PointsEqual', 'ReadComponentRes', 'ReadComponentResEx',
'ReadComponentResFile', 'Rect', 'RegisterClass', 'RegisterClassAlias',
'RegisterClasses', 'RegisterComponents', 'RegisterIntegerConsts',
'RegisterNoIcon', 'RegisterNonActiveX', 'SmallPoint', 'StartClassGroup',
'TestStreamFormat', 'UnregisterClass', 'UnregisterClasses',
'UnregisterIntegerConsts', 'UnregisterModuleClasses',
'WriteComponentResFile',
'ArcCos', 'ArcCosh', 'ArcCot', 'ArcCotH', 'ArcCsc', 'ArcCscH', 'ArcSec',
'ArcSecH', 'ArcSin', 'ArcSinh', 'ArcTan2', 'ArcTanh', 'Ceil',
'CompareValue', 'Cosecant', 'Cosh', 'Cot', 'CotH', 'Cotan', 'Csc', 'CscH',
'CycleToDeg', 'CycleToGrad', 'CycleToRad', 'DegToCycle', 'DegToGrad',
'DegToRad', 'DivMod', 'DoubleDecliningBalance', 'EnsureRange', 'Floor',
'Frexp', 'FutureValue', 'GetExceptionMask', 'GetPrecisionMode',
'GetRoundMode', 'GradToCycle', 'GradToDeg', 'GradToRad', 'Hypot',
'InRange', 'IntPower', 'InterestPayment', 'InterestRate',
'InternalRateOfReturn', 'IsInfinite', 'IsNan', 'IsZero', 'Ldexp', 'LnXP1',
'Log10', 'Log2', 'LogN', 'Max', 'MaxIntValue', 'MaxValue', 'Mean',
'MeanAndStdDev', 'Min', 'MinIntValue', 'MinValue', 'MomentSkewKurtosis',
'NetPresentValue', 'Norm', 'NumberOfPeriods', 'Payment', 'PeriodPayment',
'Poly', 'PopnStdDev', 'PopnVariance', 'Power', 'PresentValue',
'RadToCycle', 'RadToDeg', 'RadToGrad', 'RandG', 'RandomRange', 'RoundTo',
'SLNDepreciation', 'SYDDepreciation', 'SameValue', 'Sec', 'SecH',
'Secant', 'SetExceptionMask', 'SetPrecisionMode', 'SetRoundMode', 'Sign',
'SimpleRoundTo', 'SinCos', 'Sinh', 'StdDev', 'Sum', 'SumInt',
'SumOfSquares', 'SumsAndSquares', 'Tan', 'Tanh', 'TotalVariance',
'Variance'
),
4 => array(
'AnsiChar', 'AnsiString', 'Bool', 'Boolean', 'Byte', 'ByteBool', 'Cardinal', 'Char',
'Comp', 'Currency', 'DWORD', 'Double', 'Extended', 'Int64', 'Integer', 'IUnknown',
'LongBool', 'LongInt', 'LongWord', 'PAnsiChar', 'PAnsiString', 'PBool', 'PBoolean', 'PByte',
'PByteArray', 'PCardinal', 'PChar', 'PComp', 'PCurrency', 'PDWORD', 'PDate', 'PDateTime',
'PDouble', 'PExtended', 'PInt64', 'PInteger', 'PLongInt', 'PLongWord', 'Pointer', 'PPointer',
'PShortInt', 'PShortString', 'PSingle', 'PSmallInt', 'PString', 'PHandle', 'PVariant', 'PWord',
'PWordArray', 'PWordBool', 'PWideChar', 'PWideString', 'Real', 'Real48', 'ShortInt', 'ShortString',
'Single', 'SmallInt', 'String', 'TClass', 'TDate', 'TDateTime', 'TextFile', 'THandle',
'TObject', 'TTime', 'Variant', 'WideChar', 'WideString', 'Word', 'WordBool'
),
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => false,
2 => false,
3 => false,
4 => false,
),
'SYMBOLS' => array(
0 => array('(', ')', '[', ']'),
1 => array('.', ',', ':', ';'),
2 => array('@', '^'),
3 => array('=', '+', '-', '*', '/')
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000000; font-weight: bold;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #000066;',
4 => 'color: #993333;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
1 => 'color: #006600;'
),
'REGEXPS' => array(
0 => 'color: #9ac;',
1 => 'color: #ff0000;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;',
1 => 'color: #66cc66;',
2 => 'color: #66cc66;',
3 => 'color: #66cc66;'
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
0 => '\$[0-9a-fA-F]+',
1 => '\#\$?[0-9]{1,3}'
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 2
);
?>

View file

@ -0,0 +1,184 @@
<?php
/*************************************************************************************
* diff.php
* --------
* Author: Conny Brunnkvist (conny@fuchsia.se), W. Tasin (tasin@fhm.edu)
* Copyright: (c) 2004 Fuchsia Open Source Solutions (http://www.fuchsia.se/)
* Release Version: 1.0.7.21
* Date Started: 2004/12/29
*
* Diff-output language file for GeSHi.
*
* CHANGES
* -------
* 2006/02/27
* - changing language file to use matching of start (^) and end ($) (wt)
*
* 2004/12/29 (1.0.0)
* - First Release
*
* TODO (updated 2006/02/27)
* -------------------------
*
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Diff',
'COMMENT_SINGLE' => array(),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array(),
'ESCAPE_CHAR' => ' ',
'KEYWORDS' => array(
1 => array(
'\ No newline at end of file'
),
2 => array(
'***************' /* This only seems to works in some cases? */
),
),
'SYMBOLS' => array(
),
'CASE_SENSITIVE' => array(
1 => false,
2 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #aaaaaa; font-style: italic;',
2 => 'color: #dd6611;',
),
'COMMENTS' => array(
),
'ESCAPE_CHAR' => array(
0 => ''
),
'BRACKETS' => array(
0 => ''
),
'STRINGS' => array(
0 => ''
),
'NUMBERS' => array(
0 => ''
),
'METHODS' => array(
0 => ''
),
'SYMBOLS' => array(
0 => ''
),
'SCRIPT' => array(
0 => ''
),
'REGEXPS' => array(
0 => 'color: #440088;',
1 => 'color: #991111;',
2 => 'color: #00b000;',
3 => 'color: #888822;',
4 => 'color: #888822;',
5 => 'color: #0011dd;',
6 => 'color: #440088;',
7 => 'color: #991111;',
8 => 'color: #00b000;',
9 => 'color: #888822;',
),
),
'URLS' => array(
),
'OOLANG' => false,
'OBJECT_SPLITTER' => '',
'REGEXPS' => array(
0 => "[0-9,]+[acd][0-9,]+",
1 => array(
GESHI_SEARCH => '^\\&lt;.*$',
GESHI_REPLACE => '\\0',
GESHI_MODIFIERS => 'm',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
2 => array(
GESHI_SEARCH => '^\\&gt;.*$',
GESHI_REPLACE => '\\0',
GESHI_MODIFIERS => 'm',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
3 => array(
GESHI_SEARCH => '^[\\-]{3}\\s.*$',
GESHI_REPLACE => '\\0',
GESHI_MODIFIERS => 'm',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
4 => array(
GESHI_SEARCH => '^(\\+){3}\\s.*$',
GESHI_REPLACE => '\\0',
GESHI_MODIFIERS => 'm',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
5 => array(
GESHI_SEARCH => '^\\!.*$',
GESHI_REPLACE => '\\0',
GESHI_MODIFIERS => 'm',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
6 => array(
GESHI_SEARCH => '^[\\@]{2}.*$',
GESHI_REPLACE => '\\0',
GESHI_MODIFIERS => 'm',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
7 => array(
GESHI_SEARCH => '^\\-.*$',
GESHI_REPLACE => '\\0',
GESHI_MODIFIERS => 'm',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
8 => array(
GESHI_SEARCH => '^\\+.*$',
GESHI_REPLACE => '\\0',
GESHI_MODIFIERS => 'm',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
9 => array(
GESHI_SEARCH => '^(\\*){3}\\s.*$',
GESHI_REPLACE => '\\0',
GESHI_MODIFIERS => 'm',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,126 @@
<?php
/*************************************************************************************
* div.php
* ---------------------------------
* Author: Gabriel Lorenzo (ermakina@gmail.com)
* Copyright: (c) 2005 Gabriel Lorenzo (http://ermakina.gazpachito.net)
* Release Version: 1.0.7.21
* Date Started: 2005/06/19
*
* DIV language file for GeSHi.
*
* CHANGES
* -------
* 2005/06/22 (1.0.0)
* - First Release, includes "2nd gen" ELSEIF statement
*
* TODO (updated 2005/06/22)
* -------------------------
* - I'm pretty satisfied with this, so nothing for now... :P
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'DIV',
'COMMENT_SINGLE' => array(1 => '//'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_UPPER,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
'while','until','to','switch','step','return','repeat','loop','if','from','frame','for','end','elseif',
'else','default','debug','continue','clone','case','break','begin'
),
2 => array(
'xor','whoami','type','sizeof','pointer','or','offset','not','neg','mod','id','dup','and','_ne','_lt',
'_le','_gt','_ge','_eq'
),
3 => array(
'setup_program','program','process','private','local','import','global','function','const',
'compiler_options'
),
4 => array(
'word','struct','string','int','byte'
),
),
'SYMBOLS' => array(
'(',')','[',']','=','+','-','*','/','!','%','^','&',':',';',',','<','>'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0040b1;',
2 => 'color: #000000;',
3 => 'color: #000066; font-weight: bold;',
4 => 'color: #993333;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => ''
),
'BRACKETS' => array(
0 => 'color: #44aa44;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
0 => 'color: #202020;',
),
'SYMBOLS' => array(
0 => 'color: #44aa44;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTER' => '',
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,185 @@
<?php
/*************************************************************************************
* dos.php
* -------
* Author: Alessandro Staltari (staltari@geocities.com)
* Copyright: (c) 2005 Alessandro Staltari (http://www.geocities.com/SiliconValley/Vista/8155/)
* Release Version: 1.0.7.21
* Date Started: 2005/07/05
*
* DOS language file for GeSHi.
*
* CHANGES
* -------
* 2005/07/05 (1.0.0)
* - First Release
*
* TODO (updated 2005/07/05)
* -------------------------
*
* - Find a way to higlight %*
* - Highlight pipes and redirection (do we really need this?)
* - Add missing keywords.
* - Find a good hyperlink for keywords.
* - Improve styles.
*
* KNOWN ISSUES (updated 2005/07/07)
* ---------------------------------
*
* - Doesn't even try to handle spaces in variables name or labels (I can't
* find a reliable way to establish if a sting is a name or not, in some
* cases it depends on the contex or enviroment status).
* - Doesn't handle %%[letter] pseudo variable used inside FOR constructs
* (it should be done only into its scope: how to handle variable it?).
* - Doesn't handle %~[something] pseudo arguments.
* - If the same keyword is placed at the end of the line and the
* beginning of the next, the second occourrence is not highlighted
* (this should be a GeSHi bug, not related to the language definition).
* - I can't avoid to have keyword highlighted even when they are not used
* as keywords but, for example, as arguments to the echo command.
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'DOS',
'COMMENT_SINGLE' => array(1 =>'REM', 2 => '@REM'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array(),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
/* Flow control keywords */
1 => array(
'if', 'else', 'goto',
'for', 'in', 'do',
'call', 'exit'
),
/* IF statement keywords */
2 => array(
'not', 'exist', 'errorlevel',
'defined',
'equ', 'neq', 'lss', 'leq', 'gtr', 'geq'
),
/* Internal commands */
3 => array(
'shift',
'cd', 'dir', 'echo',
'setlocal', 'endlocal', 'set',
'pause'
),
/* Special files */
4 => array(
'prn', 'nul', 'lpt3', 'lpt2', 'lpt1', 'con',
'com4', 'com3', 'com2', 'com1', 'aux'
)
),
'SYMBOLS' => array(
'(', ')'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #00b100; font-weight: bold;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #b1b100; font-weight: bold;',
4 => 'color: #0000ff; font-weight: bold;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
2 => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #33cc33;',
1 => 'color: #33cc33;'
),
'SCRIPT' => array(
),
'REGEXPS' => array(
0 => 'color: #b100b1; font-weight: bold;',
1 => 'color: #448844;',
2 => 'color: #448888;'
)
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'URLS' => array(
1 => 'http://www.ss64.com/nt/{FNAME}.html',
2 => 'http://www.ss64.com/nt/{FNAME}.html',
3 => 'http://www.ss64.com/nt/{FNAME}.html',
4 => 'http://www.ss64.com/nt/{FNAME}.html'
),
'REGEXPS' => array(
/* Label */
0 => array(
/* GESHI_SEARCH => '((?si:[@\s]+GOTO\s+|\s+:)[\s]*)((?<!\n)[^\s\n]*)',*/
GESHI_SEARCH => '((?si:[@\s]+GOTO\s+|\s+:)[\s]*)((?<!\n)[^\n]*)',
GESHI_REPLACE => '\\2',
GESHI_MODIFIERS => 'si',
GESHI_BEFORE => '\\1',
GESHI_AFTER => ''
),
/* Variable assignement */
1 => array(
/* GESHI_SEARCH => '(SET[\s]+(?si:/A[\s]+|/P[\s]+|))([^=\s\n]+)([\s]*=)',*/
GESHI_SEARCH => '(SET[\s]+(?si:/A[\s]+|/P[\s]+|))([^=\n]+)([\s]*=)',
GESHI_REPLACE => '\\2',
GESHI_MODIFIERS => 'si',
GESHI_BEFORE => '\\1',
GESHI_AFTER => '\\3'
),
/* Arguments or variable evaluation */
2 => array(
/* GESHI_SEARCH => '(%)([\d*]|[^%\s]*(?=%))((?<!%\d)%|)',*/
GESHI_SEARCH => '(%)([\d*]|[^%]*(?=%))((?<!%\d)%|)',
GESHI_REPLACE => '\\2',
GESHI_MODIFIERS => 'si',
GESHI_BEFORE => '\\1',
GESHI_AFTER => '\\3'
)
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,158 @@
<?php
/*************************************************************************************
* dot.php
* ---------------------------------
* Author: Adrien Friggeri (adrien@friggeri.net)
* Copyright: (c) 2007 Adrien Friggeri (http://www.friggeri.net)
* Release Version: 1.0.7.21
* Date Started: 2007/05/30
*
* dot language file for GeSHi.
*
* CHANGES
* -------
* 2007/05/30 (1.0.0)
* - First Release
*
* TODO (updated 2007/05/30)
* -------------------------
* Everything
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'dot',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array('URL', 'arrowhead', 'arrowsize', 'arrowtail', 'bb', 'bgcolor', 'bottomlabel',
'center', 'clusterrank', 'color', 'comment', 'constraint', 'decorate',
'dir', 'distortion', 'fillcolor', 'fixedsize', 'fontcolor',
'fontname', 'fontsize', 'group', 'headclip', 'headlabel', 'headport',
'height', 'id', 'label', 'labelangle', 'labeldistance', 'labelfontcolor',
'labelfontname', 'labelfontsize', 'layer', 'layers', 'margin', 'mclimit',
'minlen', 'nodesep', 'nslimit', 'ordering', 'orientation', 'page',
'pagedir', 'peripheries', 'port_label_distance', 'quantum', 'rank', 'rankdir',
'ranksep', 'ratio', 'regular', 'rotate', 'samehead', 'sametail', 'searchsize',
'shape', 'shapefile', 'showboxes', 'sides', 'size', 'skew', 'style',
'tailclip', 'taillabel', 'tailport', 'toplabel', 'weight', 'width'
),
2 => array('node', 'graph', 'digraph', 'strict', 'edge', 'subgraph'),
3 => array('FALSE', 'Mcircle', 'Mdiamond', 'Mrecord', 'Msquare', 'TRUE', 'auto', 'back',
'bold', 'both', 'box', 'circle', 'compress', 'dashed', 'diamond', 'dot',
'dotted', 'doublecircle', 'doubleoctagon', 'egg', 'ellipse', 'epsf', 'false',
'fill', 'filled', 'forward', 'global', 'hexagon', 'house', 'inv', 'invdot',
'invhouse', 'invis', 'invodot', 'invtrapezium', 'invtriangle', 'local', 'max',
'min', 'none', 'normal', 'octagon', 'odot', 'out', 'parallelogram', 'plaintext',
'polygon', 'record', 'same', 'solid', 'trapezium', 'triangle', 'tripleoctagon',
'true'
),
4 => array('aliceblue', 'antiquewhite', 'aquamarine', 'azure', 'beige', 'bisque', 'black',
'blanchedalmond', 'blue', 'blueviolet', 'brown', 'burlywood', 'cadetblue',
'chartreuse', 'chocolate', 'coral', 'cornflowerblue', 'cornsilk', 'crimson',
'cyan', 'darkgoldenrod', 'darkgreen', 'darkkhaki', 'darkolivegreen',
'darkorange', 'darkorchid', 'darksalmon', 'darkseagreen', 'darkslateblue',
'darkslategray', 'darkturquoise', 'darkviolet', 'deeppink', 'deepskyblue',
'dimgray', 'dodgerblue', 'firebrick', 'forestgreen', 'gainsboro', 'ghostwhite',
'gold', 'goldenrod', 'gray', 'green', 'greenyellow', 'honeydew', 'hotpink',
'indianred', 'indigo', 'ivory', 'khaki', 'lavender', 'lavenderblush',
'lawngreen', 'lemonchiffon', 'lightblue', 'lightcyan', 'lightgoldenrod',
'lightgoldenrodyellow', 'lightgray', 'lightpink', 'lightsalmon',
'lightseagreen', 'lightskyblue', 'lightslateblue', 'lightslategray',
'lightyellow', 'limegreen', 'linen', 'magenta', 'maroon', 'mediumaquamarine',
'mediumblue', 'mediumorchid', 'mediumpurple', 'mediumseagreen',
'mediumslateblue', 'mediumspringgreen', 'mediumturquoise', 'mediumvioletred',
'midnightblue', 'mintcream', 'mistyrose', 'moccasin', 'navajowhite', 'navy',
'navyblue', 'oldlace', 'olivedrab', 'oralwhite', 'orange', 'orangered',
'orchid', 'palegoldenrod', 'palegreen', 'paleturquoise', 'palevioletred',
'papayawhip', 'peachpuff', 'peru', 'pink', 'plum', 'powderblue', 'purple',
'red', 'rosybrown', 'royalblue', 'saddlebrown', 'salmon', 'salmon2', 'sandybrown',
'seagreen', 'seashell', 'sienna', 'skyblue', 'slateblue', 'slategray', 'snow',
'springgreen', 'steelblue', 'tan', 'thistle', 'tomato', 'turquoise', 'violet',
'violetred', 'wheat', 'white', 'whitesmoke', 'yellow', 'yellowgreen'
)
),
'SYMBOLS' => array(
'[', ']', '{', '}', '-', '+', '*', '/', '<', '>', '!', '~', '%', '&', '|', '='
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000066;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #993333;',
4 => 'color: #b1b100;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
2 => 'color: #339933;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #af624d; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'METHODS' => array(
),
'SCRIPT' => array(
),
'REGEXPS' => array(
),
),
'URLS' => array(
1 => '',
2 => '',
3 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTER' => '',
'REGEXPS' => array(),
'STRICT_MODE_APPLIES' => GESHI_MAYBE,
'SCRIPT_DELIMITERS' => array(),
'HIGHLIGHT_STRICT_BLOCK' => array(
0 => true,
1 => true,
2 => true,
3 => true
)
);
?>

View file

@ -0,0 +1,394 @@
<?php
/*************************************************************************************
* eiffel.php
* ----------
* Author: Zoran Simic (zsimic@axarosenberg.com)
* Copyright: (c) 2005 Zoran Simic
* Release Version: 1.0.7.21
* Date Started: 2005/06/30
*
* Eiffel language file for GeSHi.
*
* CHANGES
* -------
* 2005/06/30 (1.0.7)
* - Initial release
*
* TODO (updated 2005/06/30)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Eiffel',
'COMMENT_SINGLE' => array(1 => '--'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '%',
'KEYWORDS' => array(
1 => array(
'separate',
'invariant',
'inherit',
'indexing',
'feature',
'expanded',
'deferred',
'class'
),
2 => array(
'xor',
'when',
'variant',
'until',
'unique',
'undefine',
'then',
'strip',
'select',
'retry',
'rescue',
'require',
'rename',
'reference',
'redefine',
'prefix',
'or',
'once',
'old',
'obsolete',
'not',
'loop',
'local',
'like',
'is',
'inspect',
'infix',
'include',
'implies',
'if',
'frozen',
'from',
'external',
'export',
'ensure',
'end',
'elseif',
'else',
'do',
'creation',
'create',
'check',
'as',
'and',
'alias',
'agent'
),
3 => array(
'Void',
'True',
'Result',
'Precursor',
'False',
'Current'
),
4 => array(
'UNIX_SIGNALS',
'UNIX_FILE_INFO',
'UNBOUNDED',
'TWO_WAY_TREE_CURSOR',
'TWO_WAY_TREE',
'TWO_WAY_SORTED_SET',
'TWO_WAY_LIST',
'TWO_WAY_CURSOR_TREE',
'TWO_WAY_CIRCULAR',
'TWO_WAY_CHAIN_ITERATOR',
'TUPLE',
'TREE',
'TRAVERSABLE',
'TO_SPECIAL',
'THREAD_CONTROL',
'THREAD_ATTRIBUTES',
'THREAD',
'TABLE',
'SUBSET',
'STRING_HANDLER',
'STRING',
'STREAM',
'STORABLE',
'STD_FILES',
'STACK',
'SPECIAL',
'SORTED_TWO_WAY_LIST',
'SORTED_STRUCT',
'SORTED_LIST',
'SINGLE_MATH',
'SET',
'SEQUENCE',
'SEQ_STRING',
'SEMAPHORE',
'ROUTINE',
'RESIZABLE',
'RECURSIVE_TREE_CURSOR',
'RECURSIVE_CURSOR_TREE',
'REAL_REF',
'REAL',
'RAW_FILE',
'RANDOM',
'QUEUE',
'PROXY',
'PROFILING_SETTING',
'PROCEDURE',
'PRIORITY_QUEUE',
'PRIMES',
'PRECOMP',
'POINTER_REF',
'POINTER',
'PLATFORM',
'PLAIN_TEXT_FILE',
'PATH_NAME',
'PART_SORTED_TWO_WAY_LIST',
'PART_SORTED_SET',
'PART_SORTED_LIST',
'PART_COMPARABLE',
'OPERATING_ENVIRONMENT',
'ONCE_CONTROL',
'OBJECT_OWNER',
'OBJECT_CONTROL',
'NUMERIC',
'NONE',
'MUTEX',
'MULTI_ARRAY_LIST',
'MULTAR_LIST_CURSOR',
'MEMORY',
'MEM_INFO',
'MEM_CONST',
'MATH_CONST',
'LIST',
'LINKED_TREE_CURSOR',
'LINKED_TREE',
'LINKED_STACK',
'LINKED_SET',
'LINKED_QUEUE',
'LINKED_PRIORITY_QUEUE',
'LINKED_LIST_CURSOR',
'LINKED_LIST',
'LINKED_CURSOR_TREE',
'LINKED_CIRCULAR',
'LINKABLE',
'LINEAR_ITERATOR',
'LINEAR',
'ITERATOR',
'IO_MEDIUM',
'INTERNAL',
'INTEGER_REF',
'INTEGER_INTERVAL',
'INTEGER',
'INFINITE',
'INDEXABLE',
'IDENTIFIED_CONTROLLER',
'IDENTIFIED',
'HIERARCHICAL',
'HEAP_PRIORITY_QUEUE',
'HASHABLE',
'HASH_TABLE_CURSOR',
'HASH_TABLE',
'GENERAL',
'GC_INFO',
'FUNCTION',
'FORMAT_INTEGER',
'FORMAT_DOUBLE',
'FIXED_TREE',
'FIXED_LIST',
'FIXED',
'FINITE',
'FILE_NAME',
'FILE',
'FIBONACCI',
'EXECUTION_ENVIRONMENT',
'EXCEPTIONS',
'EXCEP_CONST',
'DYNAMIC_TREE',
'DYNAMIC_LIST',
'DYNAMIC_CIRCULAR',
'DYNAMIC_CHAIN',
'DOUBLE_REF',
'DOUBLE_MATH',
'DOUBLE',
'DISPENSER',
'DIRECTORY_NAME',
'DIRECTORY',
'DECLARATOR',
'DEBUG_OUTPUT',
'CURSOR_TREE_ITERATOR',
'CURSOR_TREE',
'CURSOR_STRUCTURE',
'CURSOR',
'COUNTABLE_SEQUENCE',
'COUNTABLE',
'CONTAINER',
'CONSOLE',
'CONDITION_VARIABLE',
'COMPARABLE_STRUCT',
'COMPARABLE_SET',
'COMPARABLE',
'COMPACT_TREE_CURSOR',
'COMPACT_CURSOR_TREE',
'COLLECTION',
'CIRCULAR_CURSOR',
'CIRCULAR',
'CHARACTER_REF',
'CHARACTER',
'CHAIN',
'CELL',
'BOX',
'BOUNDED_STACK',
'BOUNDED_QUEUE',
'BOUNDED',
'BOOLEAN_REF',
'BOOLEAN',
'BOOL_STRING',
'BIT_REF',
'BINARY_TREE',
'BINARY_SEARCH_TREE_SET',
'BINARY_SEARCH_TREE',
'BILINEAR',
'BI_LINKABLE',
'BASIC_ROUTINES',
'BAG',
'ASCII',
'ARRAYED_TREE',
'ARRAYED_STACK',
'ARRAYED_QUEUE',
'ARRAYED_LIST_CURSOR',
'ARRAYED_LIST',
'ARRAYED_CIRCULAR',
'ARRAY2',
'ARRAY',
'ARGUMENTS',
'ANY',
'ACTIVE'
),
5 => array(
'yes',
'visible',
'trace',
'system',
'root',
'profile',
'override_cluster',
'object',
'no',
'multithreaded',
'msil_generation_type',
'line_generation',
'library',
'inlining_size',
'inlining',
'include_path',
'il_verifiable',
'exclude',
'exception_trace',
'dynamic_runtime',
'dotnet_naming_convention',
'disabled_debug',
'default',
'debug',
'dead_code_removal',
'console_application',
'cluster',
'cls_compliant',
'check_vape',
'assertion',
'array_optimization',
'all',
'address_expression'
),
),
'SYMBOLS' => array(
'+', '-', '*', '?', '=', '/', '%', '&', '>', '<', '^', '!', '|', ':',
'(', ')', '{', '}', '[', ']', '#'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => false,
2 => false,
3 => false,
4 => true,
5 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0600FF; font-weight: bold;',
2 => 'color: #0600FF; font-weight: bold;',
3 => 'color: #800080;',
4 => 'color: #800000',
5 => 'color: #603000;'
),
'COMMENTS' => array(
1 => 'color: #008000; font-style: italic;',
'MULTI' => ''
),
'ESCAPE_CHAR' => array(
0 => 'color: #005070; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #FF0000;'
),
'STRINGS' => array(
0 => 'color: #0080A0;'
),
'NUMBERS' => array(
0 => 'color: #FF0000;'
),
'METHODS' => array(
1 => 'color: #000060;',
2 => 'color: #000050;'
),
'SYMBOLS' => array(
0 => 'color: #600000;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => 'http://www.google.com/search?q=site%3Ahttp%3A%2F%2Fdocs.eiffel.com%2Feiffelstudio%2Flibraries+{FNAME}&btnI=I%27m+Feeling+Lucky'
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,209 @@
<?php
/*************************************************************************************
* email.php
* ---------------
* Author: Benny Baumann (BenBE@geshi.org)
* Copyright: (c) 2008 Benny Baumann (http://qbnz.com/highlighter/)
* Release Version: 1.0.8.2
* Date Started: 2008/10/19
*
* Email (mbox \ eml \ RFC format) language file for GeSHi.
*
* CHANGES
* -------
* 2008/10/19 (1.0.8.1)
* - First Release
*
* TODO (updated 2008/10/19)
* -------------------------
* * Better checks when a header field should be expected
* * Fix the bound checks for kw groups 2 and 3, as well as rx group 1
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'eMail (mbox)',
'COMMENT_SINGLE' => array(),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
'HTTP', 'SMTP', 'ASMTP', 'ESMTP'
),
2 => array(
'Content-Type','Content-Transfer-Encoding','Content-Disposition',
'Delivered-To','Dkim-Signature','Domainkey-Signature','In-Reply-To',
'Message-Id','MIME-Version','Received','Received-SPF','References',
'Resend-From','Resend-To','Return-Path'
),
3 => array(
'Date','From','Subject','To',
),
4 => array(
'by', 'for', 'from', 'id', 'with'
)
),
'SYMBOLS' => array(
':', ';', '<', '>', '[', ']'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => false,
3 => false,
4 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0000FF; font-weight: bold;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #800000; font-weight: bold;',
4 => 'font-weight: bold;',
),
'COMMENTS' => array(
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'SCRIPT' => array(
0 => 'color: #000040;',
),
'REGEXPS' => array(
1 => 'color: #000000; font-weight: bold;',
2 => 'color: #0000FF;',
3 => 'color: #008000;',
4 => 'color: #0000FF; font-weight: bold;',
5 => 'font-weight: bold;',
6 => 'color: #400080;'
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
// Non-Standard-Header
1 => array(
GESHI_SEARCH => "(?<=\A\x20|\n)x-[a-z0-9\-]*(?=\s*:|\s*<)",
GESHI_REPLACE => "\\0",
GESHI_MODIFIERS => "smi",
GESHI_BEFORE => "",
GESHI_AFTER => ""
),
//Email-Adresses or Mail-IDs
2 => array(
GESHI_SEARCH => "\b[\w\.]+@\w+(?:(?:\.\w+)*\.\w{2,4})?",
GESHI_REPLACE => "\\0",
GESHI_MODIFIERS => "mi",
GESHI_BEFORE => "",
GESHI_AFTER => ""
),
//Date values in RFC format
3 => array(
GESHI_SEARCH => "\b(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s+\d\d?\s+" .
"(?:Jan|Feb|Mar|apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s+" .
"\d{4}\s+\d\d?:\d\d:\d\d\s+[+\-]\d{4}(?:\s+\(\w+\))?",
GESHI_REPLACE => "\\0",
GESHI_MODIFIERS => "mi",
GESHI_BEFORE => "",
GESHI_AFTER => ""
),
//IP addresses
4 => array(
GESHI_SEARCH => "(?<=\s)\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(?=\s)|".
"(?<=\[)\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(?=\])|".
"(?<==)\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(?=<)",
GESHI_REPLACE => "\\0",
GESHI_MODIFIERS => "i",
GESHI_BEFORE => "",
GESHI_AFTER => ""
),
//Field-Assignments
5 => array(
GESHI_SEARCH => "(?<=\s)[A-Z0-9\-]+(?==(?!\s|$))",
GESHI_REPLACE => "\\0",
GESHI_MODIFIERS => "mi",
GESHI_BEFORE => "",
GESHI_AFTER => ""
),
//MIME type
6 => array(
GESHI_SEARCH => "(?<=\s)(?:audio|application|image|multipart|text|".
"video|x-[a-z0-9\-]+)\/[a-z0-9][a-z0-9\-]*(?=\s|<|$)",
GESHI_REPLACE => "\\0",
GESHI_MODIFIERS => "m",
GESHI_BEFORE => "",
GESHI_AFTER => ""
)
),
'STRICT_MODE_APPLIES' => GESHI_ALWAYS,
'SCRIPT_DELIMITERS' => array(
0 => "/(^)[A-Z][a-zA-Z0-9\-]*\s*:\s*(?:.|(?=\n\s)\n)*($)/m"
),
'HIGHLIGHT_STRICT_BLOCK' => array(
0 => true,
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
2 => array(
'DISALLOWED_BEFORE' => '(?<=\A\x20|\n)',
'DISALLOWED_AFTER' => '(?=\s*:)',
),
3 => array(
'DISALLOWED_BEFORE' => '(?<=\A\x20|\n)',
'DISALLOWED_AFTER' => '(?=\s*:)',
),
4 => array(
'DISALLOWED_BEFORE' => '(?<=\s)',
'DISALLOWED_AFTER' => '(?=\s|\b)',
)
),
'ENABLE_FLAGS' => array(
'BRACKETS' => GESHI_NEVER,
'COMMENTS' => GESHI_NEVER,
'NUMBERS' => GESHI_NEVER
)
)
);
?>

View file

@ -0,0 +1,156 @@
<?php
/*************************************************************************************
* fortran.php
* -----------
* Author: Cedric Arrabie (cedric.arrabie@univ-pau.fr)
* Copyright: (C) 2006 Cetric Arrabie
* Release Version: 1.0.7.21
* Date Started: 2006/04/22
*
* Fortran language file for GeSHi.
*
* CHANGES
* -------
* 2006/04/20 (1.0.0)
* - First Release
*
* TODO
* -------------------------
* - Get a list of inbuilt functions to add (and explore fortran more
* to complete this rather bare language file)
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME'=>'Fortran',
'COMMENT_SINGLE'=> array(1 =>'!',2=>'Cf2py'),
'COMMENT_MULTI'=> array(),
'CASE_KEYWORDS'=> GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS'=> array("'",'"'),
'ESCAPE_CHAR'=>'\\',
'KEYWORDS'=> array(
1 => array(
'allocate','block','call','case','contains','continue','cycle','deallocate',
'default','do','else','elseif','elsewhere','end','enddo','endif','endwhere',
'entry','exit','function','go','goto','if','interface','module','nullify','only',
'operator','procedure','program','recursive','return','select','stop',
'subroutine','then','to','where','while',
'access','action','advance','blank','blocksize','carriagecontrol',
'delim','direct','eor','err','exist','file','flen','fmt','form','formatted',
'iostat','name','named','nextrec','nml','number','opened','pad','position',
'readwrite','recl','sequential','status','unformatted','unit'
),
2 => array(
'.AND.','.EQ.','.EQV.','.GE.','.GT.','.LE.','.LT.','.NE.','.NEQV.','.NOT.',
'.OR.','.TRUE.','.FALSE.'
),
3 => array(
'allocatable','character','common','complex','data','dimension','double',
'equivalence','external','implicit','in','inout','integer','intent','intrinsic',
'kind','logical','namelist','none','optional','out','parameter','pointer',
'private','public','real','result','save','sequence','target','type','use'
),
4 => array(
'abs','achar','acos','adjustl','adjustr','aimag','aint','all','allocated',
'anint','any','asin','atan','atan2','bit_size','break','btest','carg',
'ceiling','char','cmplx','conjg','cos','cosh','cpu_time','count','cshift',
'date_and_time','dble','digits','dim','dot_product','dprod dvchk',
'eoshift','epsilon','error','exp','exponent','floor','flush','fraction',
'getcl','huge','iachar','iand','ibclr','ibits','ibset','ichar','ieor','index',
'int','intrup','invalop','ior','iostat_msg','ishft','ishftc','lbound',
'len','len_trim','lge','lgt','lle','llt','log','log10','matmul','max','maxexponent',
'maxloc','maxval','merge','min','minexponent','minloc','minval','mod','modulo',
'mvbits','nbreak','ndperr','ndpexc','nearest','nint','not','offset','ovefl',
'pack','precfill','precision','present','product','prompt','radix',
'random_number','random_seed','range','repeat','reshape','rrspacing',
'scale','scan','segment','selected_int_kind','selected_real_kind',
'set_exponent','shape','sign','sin','sinh','size','spacing','spread','sqrt',
'sum system','system_clock','tan','tanh','timer','tiny','transfer','transpose',
'trim','ubound','undfl','unpack','val','verify'
),
),
'SYMBOLS'=> array(
'(',')','{','}','[',']','=','+','-','*','/','!','%','^','&',':'
),
'CASE_SENSITIVE'=> array(
GESHI_COMMENTS => true,
1 => false,
2 => false,
3 => false,
4 => false,
),
'STYLES'=> array(
'KEYWORDS'=> array(
1 =>'color: #b1b100;',
2 =>'color: #000000; font-weight: bold;',
3 =>'color: #000066;',
4 =>'color: #993333;'
),
'COMMENTS'=> array(
1 =>'color: #808080; font-style: italic;',
2 =>'color: #339933;',
'MULTI'=>'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR'=> array(
0 =>'color: #000099; font-weight: bold;'
),
'BRACKETS'=> array(
0 =>'color: #66cc66;'
),
'STRINGS'=> array(
0 =>'color: #ff0000;'
),
'NUMBERS'=> array(
0 =>'color: #cc66cc;'
),
'METHODS'=> array(
1 =>'color: #202020;',
2 =>'color: #202020;'
),
'SYMBOLS'=> array(
0 =>'color: #66cc66;'
),
'REGEXPS'=> array(
),
'SCRIPT'=> array(
)
),
'URLS'=> array(
1 =>'',
2 =>'',
3 =>'',
4 =>''
),
'OOLANG'=> true,
'OBJECT_SPLITTERS'=> array(
1 =>'.',
2 =>'::'
),
'REGEXPS'=> array(
),
'STRICT_MODE_APPLIES'=> GESHI_NEVER,
'SCRIPT_DELIMITERS'=> array(
),
'HIGHLIGHT_STRICT_BLOCK'=> array(
)
);
?>

View file

@ -0,0 +1,137 @@
<?php
/*************************************************************************************
* freebasic.php
* -------------
* Author: Roberto Rossi
* Copyright: (c) 2005 Roberto Rossi (http://rsoftware.altervista.org)
* Release Version: 1.0.7.21
* Date Started: 2005/08/19
*
* FreeBasic (http://www.freebasic.net/) language file for GeSHi.
*
* CHANGES
* -------
* 2005/08/19 (1.0.0)
* - First Release
*
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'FreeBasic',
'COMMENT_SINGLE' => array(1 => "'", 2 => '#'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
"append", "as", "asc", "asin", "asm", "atan2", "atn", "beep", "bin", "binary", "bit",
"bitreset", "bitset", "bload", "bsave", "byref", "byte", "byval", "call",
"callocate", "case", "cbyte", "cdbl", "cdecl", "chain", "chdir", "chr", "cint",
"circle", "clear", "clng", "clngint", "close", "cls", "color", "command",
"common", "cons", "const", "continue", "cos", "cshort", "csign", "csng",
"csrlin", "cubyte", "cuint", "culngint", "cunsg", "curdir", "cushort", "custom",
"cvd", "cvi", "cvl", "cvlongint", "cvs", "cvshort", "data", "date",
"deallocate", "declare", "defbyte", "defdbl", "defined", "defint", "deflng",
"deflngint", "defshort", "defsng", "defstr", "defubyte", "defuint",
"defulngint", "defushort", "dim", "dir", "do", "double", "draw", "dylibload",
"dylibsymbol", "else", "elseif", "end", "enum", "environ", 'environ$', "eof",
"eqv", "erase", "err", "error", "exec", "exepath", "exit", "exp", "export",
"extern", "field", "fix", "flip", "for", "fre", "freefile", "function", "get",
"getjoystick", "getkey", "getmouse", "gosub", "goto", "hex", "hibyte", "hiword",
"if", "iif", "imagecreate", "imagedestroy", "imp", "inkey", "inp", "input",
"instr", "int", "integer", "is", "kill", "lbound", "lcase", "left", "len",
"let", "lib", "line", "lobyte", "loc", "local", "locate", "lock", "lof", "log",
"long", "longint", "loop", "loword", "lset", "ltrim", "mid", "mkd", "mkdir",
"mki", "mkl", "mklongint", "mks", "mkshort", "mod", "multikey", "mutexcreate",
"mutexdestroy", "mutexlock", "mutexunlock", "name", "next", "not", "oct", "on",
"once", "open", "option", "or", "out", "output", "overload", "paint", "palette",
"pascal", "pcopy", "peek", "peeki", "peeks", "pipe", "pmap", "point", "pointer",
"poke", "pokei", "pokes", "pos", "preserve", "preset", "print", "private",
"procptr", "pset", "ptr", "public", "put", "random", "randomize", "read",
"reallocate", "redim", "rem", "reset", "restore", "resume", "resume", "next",
"return", "rgb", "rgba", "right", "rmdir", "rnd", "rset", "rtrim", "run",
"sadd", "screen", "screencopy", "screeninfo", "screenlock", "screenptr",
"screenres", "screenset", "screensync", "screenunlock", "seek", "statement",
"seek", "function", "selectcase", "setdate", "setenviron", "setmouse",
"settime", "sgn", "shared", "shell", "shl", "short", "shr", "sin", "single",
"sizeof", "sleep", "space", "spc", "sqr", "static", "stdcall", "step", "stop",
"str", "string", "string", "strptr", "sub", "swap", "system", "tab", "tan",
"then", "threadcreate", "threadwait", "time", "time", "timer", "to", "trans",
"trim", "type", "ubound", "ubyte", "ucase", "uinteger", "ulongint", "union",
"unlock", "unsigned", "until", "ushort", "using", "va_arg", "va_first",
"va_next", "val", "val64", "valint", "varptr", "view", "viewprint", "wait",
"wend", "while", "width", "window", "windowtitle", "with", "write", "xor",
"zstring", "explicit", "escape", "true", "false"
)
),
'SYMBOLS' => array(
'(', ')'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;'
),
'COMMENTS' => array(
1 => 'color: #808080;',
2 => 'color: #339933;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
0 => 'color: #66cc66;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099;'
),
'SCRIPT' => array(
),
'REGEXPS' => array(
)
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,464 @@
<?php
/*************************************************************************************
* genero.php
* ----------
* Author: Lars Gersmann (lars.gersmann@gmail.com)
* Copyright: (c) 2007 Lars Gersmann, Nigel McNie (http://qbnz.com/highlighter/)
* Release Version: 1.0.7.21
* CVS Revision Version: $Revision: 1.4 $
*
* Genero (FOURJ's Genero 4GL) language file for GeSHi.
*
* CHANGES
* -------
* 2007/07/01 (1.0.0)
* - Initial release
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'genero',
'COMMENT_SINGLE' => array(1 => '--', 2 => '#'),
'COMMENT_MULTI' => array('{' => '}'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
"ABSOLUTE",
"ACCEPT",
"ACTION",
"ADD",
"AFTER",
"ALL",
"ALTER",
"AND",
"ANY",
"APPEND",
"APPLICATION",
"AS",
"AT",
"ATTRIBUTE",
"ATTRIBUTES",
"AUDIT",
"AVG",
"BEFORE",
"BEGIN",
"BETWEEN",
"BORDER",
"BORDER",
"BOTTOM",
"BREAKPOINT",
"BUFFER",
"BUFFERED",
"BY",
"CALL",
"CANCEL",
"CASE",
"CENTURY",
"CHANGE",
"CHECK",
"CLEAR",
"CLIPPED",
"CLOSE",
"CLUSTER",
"COLUMN",
"COLUMNS",
"COMMAND",
"COMMENT",
"COMMIT",
"COMMITTED",
"CONCURRENT ",
"CONNECT",
"CONNECTION",
"CONSTANT",
"CONSTRAINED",
"CONSTRAINT",
"CONSTRUCT",
"CONTINUE",
"CONTROL",
"COUNT",
"CREATE",
"CROSS",
"CURRENT",
"DATABASE",
"DBA",
"DEC",
"DECLARE",
"DEFAULT",
"DEFAULTS",
"DEFER",
"DEFINE",
"DELETE",
"DELIMITER",
"DESCRIBE",
"DESTINATION",
"DIM",
"DIALOG",
"DIMENSION",
"DIRTY",
"DISCONNECT",
"DISPLAY",
"DISTINCT",
"DORMANT",
"DOWN",
"DROP",
"DYNAMIC",
"ELSE",
"END",
"ERROR",
"ESCAPE",
"EVERY",
"EXCLUSIVE",
"EXECUTE",
"EXISTS",
"EXIT",
"EXPLAIN",
"EXTEND",
"EXTENT",
"EXTERNAL",
"FETCH",
"FGL_DRAWBOX",
"FIELD",
"FIELD_TOUCHED",
"FILE",
"FILL",
"FINISH",
"FIRST",
"FLOAT",
"FLUSH",
"FOR",
"FOREACH",
"FORM",
"FORMAT",
"FOUND",
"FRACTION",
"FREE",
"FROM",
"FULL",
"FUNCTION",
"GET_FLDBUF",
"GLOBALS",
"GO",
"GOTO",
"GRANT",
"GROUP",
"HAVING",
"HEADER",
"HELP",
"HIDE",
"HOLD",
"HOUR",
"IDLE",
"IF",
"IMAGE",
"IMMEDIATE",
"IN",
"INDEX",
"INFIELD",
"INITIALIZE",
"INNER",
"INPUT",
"INSERT",
"INTERRUPT",
"INTERVAL",
"INTO",
"INVISIBLE",
"IS",
"ISOLATION",
"JOIN",
"KEEP",
"KEY",
"LABEL",
"LAST",
"LEFT",
"LENGTH",
"LET",
"LIKE",
"LINE",
"LINENO",
"LINES",
"LOAD",
"LOCATE",
"LOCK",
"LOG",
"LSTR",
"MAIN",
"MARGIN",
"MATCHES",
"MAX",
"MAXCOUNT",
"MDY",
"MEMORY",
"MENU",
"MESSAGE",
"MIN",
"MINUTE",
"MOD",
"MODE",
"MODIFY",
"MONEY",
"NAME",
"NEED",
"NEXT",
"NO",
"NORMAL",
"NOT",
"NOTFOUND",
"NULL",
"NUMERIC",
"OF",
"ON",
"OPEN",
"OPTION",
"OPTIONS",
"OR",
"ORDER",
"OTHERWISE",
"OUTER",
"OUTPUT",
"PAGE",
"PAGENO",
"PAUSE",
"PERCENT",
"PICTURE",
"PIPE",
"PRECISION",
"PREPARE",
"PREVIOUS",
"PRINT",
"PRINTER",
"PRINTX",
"PRIOR",
"PRIVILEGES",
"PROCEDURE",
"PROGRAM",
"PROMPT",
"PUBLIC",
"PUT",
"QUIT",
"READ",
"REAL",
"RECORD",
"RECOVER",
"RED ",
"RELATIVE",
"RENAME",
"REOPTIMIZATION",
"REPEATABLE",
"REPORT",
"RESOURCE",
"RETURN",
"RETURNING",
"REVERSE",
"REVOKE",
"RIGHT",
"ROLLBACK",
"ROLLFORWARD",
"ROW",
"ROWS",
"RUN",
"SCHEMA",
"SCREEN",
"SCROLL",
"SECOND",
"SELECT",
"SERIAL",
"SET",
"SFMT",
"SHARE",
"SHIFT",
"SHOW",
"SIGNAL ",
"SIZE",
"SKIP",
"SLEEP",
"SOME",
"SPACE",
"SPACES",
"SQL",
"SQLERRMESSAGE",
"SQLERROR",
"SQLSTATE",
"STABILITY",
"START",
"STATISTICS",
"STEP",
"STOP",
"STYLE",
"SUM",
"SYNONYM",
"TABLE",
"TEMP",
"TERMINATE",
"TEXT",
"THEN",
"THROUGH",
"THRU",
"TO",
"TODAY",
"TOP",
"TRAILER",
"TRANSACTION ",
"UNBUFFERED",
"UNCONSTRAINED",
"UNDERLINE",
"UNION",
"UNIQUE",
"UNITS",
"UNLOAD",
"UNLOCK",
"UP",
"UPDATE",
"USE",
"USER",
"USING",
"VALIDATE",
"VALUE",
"VALUES",
"VARCHAR",
"VIEW",
"WAIT",
"WAITING",
"WARNING",
"WHEN",
"WHENEVER",
"WHERE",
"WHILE",
"WINDOW",
"WITH",
"WITHOUT",
"WORDWRAP",
"WORK",
"WRAP"
),
2 => array(
'&AMP;IFDEF', '&AMP;ENDIF'
),
3 => array(
"ARRAY",
"BYTE",
"CHAR",
"CHARACTER",
"CURSOR",
"DATE",
"DATETIME",
"DECIMAL",
"DOUBLE",
"FALSE",
"INT",
"INTEGER",
"SMALLFLOAT",
"SMALLINT",
"STRING",
"TIME",
"TRUE"
),
4 => array(
"BLACK",
"BLINK",
"BLUE",
"BOLD",
"ANSI",
"ASC",
"ASCENDING",
"ASCII",
"CYAN",
"DESC",
"DESCENDING",
"GREEN",
"MAGENTA",
"OFF",
"WHITE",
"YELLOW",
"YEAR",
"DAY",
"MONTH",
"WEEKDAY"
),
),
'SYMBOLS' => array(
'+', '-', '*', '?', '=', '/', '%', '>', '<', '^', '!', '|', ':',
'(', ')', '[', ']'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => false,
2 => false,
3 => false,
4 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0600FF;',
2 => 'color: #0000FF; font-weight: bold;',
3 => 'color: #008000;',
4 => 'color: #FF0000;',
),
'COMMENTS' => array(
1 => 'color: #008080; font-style: italic;',
2 => 'color: #008080;',
'MULTI' => 'color: #008080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #008080; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #000000;'
),
'STRINGS' => array(
0 => 'color: #808080;'
),
'NUMBERS' => array(
0 => 'color: #FF0000;'
),
'METHODS' => array(
1 => 'color: #0000FF;',
2 => 'color: #0000FF;'
),
'SYMBOLS' => array(
0 => 'color: #008000;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,97 @@
<?php
/*************************************************************************************
* gettext.php
* --------
* Author: Milian Wolff (mail@milianw.de)
* Copyright: (c) 2008 Milian Wolff
* Release Version: 1.0.8.2
* Date Started: 2008/05/25
*
* GNU Gettext .po/.pot language file for GeSHi.
*
* CHANGES
* -------
* 2008/08/02 (1.0.8)
* - New comments: flags and previous-fields
* - New keywords: msgctxt, msgid_plural
* - Msgstr array indices
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'GNU Gettext',
'COMMENT_SINGLE' => array('#:', '#.', '#,', '#|', '#'),
'COMMENT_MULTI' => array(),
'COMMENT_REGEXP' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array('msgctxt', 'msgid_plural', 'msgid', 'msgstr'),
),
'SYMBOLS' => array(),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000000; font-weight: bold;'
),
'COMMENTS' => array(
0 => 'color: #000099;',
1 => 'color: #000099;',
2 => 'color: #000099;',
3 => 'color: #006666;',
4 => 'color: #666666; font-style: italic;',
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'REGEXPS' => array(),
'SYMBOLS' => array(),
'NUMBERS' => array(
0 => 'color: #000099;'
),
'METHODS' => array(),
'SCRIPT' => array(),
'BRACKETS' => array(
0 => 'color: #000099;'
),
),
'URLS' => array(
1 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(),
'REGEXPS' => array(),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4,
);
?>

View file

@ -0,0 +1,199 @@
<?php
/*************************************************************************************
* glsl.php
* -----
* Author: Benny Baumann (BenBE@omorphia.de)
* Copyright: (c) 2008 Benny Baumann (BenBE@omorphia.de)
* Release Version: 1.0.8.2
* Date Started: 2008/03/20
*
* glSlang language file for GeSHi.
*
* CHANGES
* -------
* 2008/03/20 (1.0.7.21)
* - First Release
*
* TODO
* ----
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'glSlang',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'if', 'else', 'for', 'while', 'do', 'break', 'continue', 'asm',
'switch', 'case', 'default', 'return', 'discard',
'namespace', 'using', 'sizeof', 'cast'
),
2 => array(
'const', 'uniform', 'attribute', 'centroid', 'varying', 'invariant',
'in', 'out', 'inout', 'input', 'output', 'typedef', 'volatile',
'public', 'static', 'extern', 'external', 'packed',
'inline', 'noinline'
),
3 => array(
'void', 'bool', 'int', 'long', 'short', 'float', 'half', 'fixed',
'unsigned', 'lowp', 'mediump', 'highp', 'precision',
'vec2', 'vec3', 'vec4', 'bvec2', 'bvec3', 'bvec4',
'dvec2', 'dvec3', 'dvec4', 'fvec2', 'fvec3', 'fvec4',
'hvec2', 'hvec3', 'hvec4', 'ivec2', 'ivec3', 'ivec4',
'mat2', 'mat3', 'mat4', 'mat2x2', 'mat3x2', 'mat4x2',
'mat2x3', 'mat3x3', 'mat4x3', 'mat2x4', 'mat3x4', 'mat4x4',
'sampler1D', 'sampler2D', 'sampler3D', 'samplerCube',
'sampler1DShadow', 'sampler2DShadow',
'struct', 'class', 'union', 'enum', 'interface', 'template'
),
4 => array(
'this', 'false', 'true'
),
5 => array(
'radians', 'degrees', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan',
'pow', 'exp2', 'log2', 'sqrt', 'inversesqrt', 'abs', 'sign', 'ceil',
'floor', 'fract', 'mod', 'min', 'max', 'clamp', 'mix', 'step',
'smoothstep', 'length', 'distance', 'dot', 'cross', 'normalize',
'ftransform', 'faceforward', 'reflect', 'matrixCompMult', 'equal',
'lessThan', 'lessThanEqual', 'greaterThan', 'greaterThanEqual',
'notEqual', 'any', 'all', 'not', 'texture1D', 'texture1DProj',
'texture1DLod', 'texture1DProjLod', 'texture2D', 'texture2DProj',
'texture2DLod', 'texture2DProjLod', 'texture3D', 'texture3DProj',
'texture3DLod', 'texture3DProjLod', 'textureCube', 'textureCubeLod',
'shadow1D', 'shadow1DProj', 'shadow1DLod', 'shadow1DProjLod',
'shadow2D', 'shadow2DProj', 'shadow2DLod', 'shadow2DProjLod',
'noise1', 'noise2', 'noise3', 'noise4'
),
6 => array(
'gl_Position', 'gl_PointSize', 'gl_ClipVertex', 'gl_FragColor',
'gl_FragData', 'gl_FragDepth', 'gl_FragCoord', 'gl_FrontFacing',
'gl_Color', 'gl_SecondaryColor', 'gl_Normal', 'gl_Vertex',
'gl_MultiTexCoord0', 'gl_MultiTexCoord1', 'gl_MultiTexCoord2',
'gl_MultiTexCoord3', 'gl_MultiTexCoord4', 'gl_MultiTexCoord5',
'gl_MultiTexCoord6', 'gl_MultiTexCoord7', 'gl_FogCoord',
'gl_MaxLights', 'gl_MaxClipPlanes', 'gl_MaxTextureUnits',
'gl_MaxTextureCoords', 'gl_MaxVertexAttribs', 'gl_MaxVaryingFloats',
'gl_MaxVertexUniformComponents', 'gl_MaxVertexTextureImageUnits',
'gl_MaxCombinedTextureImageUnits', 'gl_MaxTextureImageUnits',
'gl_MaxFragmentUniformComponents', 'gl_MaxDrawBuffers', 'gl_Point',
'gl_ModelViewMatrix', 'gl_ProjectionMatrix', 'gl_FrontMaterial',
'gl_ModelViewProjectionMatrix', 'gl_TextureMatrix', 'gl_ClipPlane',
'gl_NormalMatrix', 'gl_ModelViewMatrixInverse', 'gl_BackMaterial',
'gl_ProjectionMatrixInverse', 'gl_ModelViewProjectionMatrixInverse',
'gl_TextureMatrixInverse', 'gl_ModelViewMatrixTranspose', 'gl_Fog',
'gl_ProjectionMatrixTranspose', 'gl_NormalScale', 'gl_DepthRange',
'gl_odelViewProjectionMatrixTranspose', 'gl_TextureMatrixTranspose',
'gl_ModelViewMatrixInverseTranspose', 'gl_LightSource',
'gl_ProjectionMatrixInverseTranspose', 'gl_LightModel',
'gl_ModelViewProjectionMatrixInverseTranspose', 'gl_TexCoord',
'gl_TextureMatrixInverseTranspose', 'gl_TextureEnvColor',
'gl_FrontLightModelProduct', 'gl_BackLightModelProduct',
'gl_FrontLightProduct', 'gl_BackLightProduct', 'gl_ObjectPlaneS',
'gl_ObjectPlaneT', 'gl_ObjectPlaneR', 'gl_ObjectPlaneQ',
'gl_EyePlaneS', 'gl_EyePlaneT', 'gl_EyePlaneR', 'gl_EyePlaneQ',
'gl_FrontColor', 'gl_BackColor', 'gl_FrontSecondaryColor',
'gl_BackSecondaryColor', 'gl_FogFragCoord', 'gl_PointCoord'
)
),
'SYMBOLS' => array(
'(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^',
'&', '?', ':', '.', '|', ';', ',', '<', '>'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
4 => true,
5 => true,
6 => true,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000000; font-weight: bold;',
2 => 'color: #333399; font-weight: bold;',
3 => 'color: #000066; font-weight: bold;',
4 => 'color: #333399; font-weight: bold;',
5 => 'color: #993333; font-weight: bold;',
6 => 'color: #551111;'
),
'COMMENTS' => array(
1 => 'color: #666666; font-style: italic;',
2 => 'color: #009900;',
'MULTI' => 'color: #666666; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #000066;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #0000ff;'
),
'METHODS' => array(
1 => 'color: #006600;'
),
'SYMBOLS' => array(
0 => 'color: #000066;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
5 => '',
6 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'OOLANG' => array(
'MATCH_BEFORE' => '',
'MATCH_AFTER' => '[a-zA-Z_][a-zA-Z0-9_]*',
'MATCH_SPACES' => '[\s]*'
)
)
);
?>

View file

@ -0,0 +1,502 @@
<?php
/*************************************************************************************
* gml.php
* --------
* Author: José Jorge Enríquez (jenriquez@users.sourceforge.net)
* Copyright: (c) 2005 José Jorge Enríquez Rodríguez (http://www.zonamakers.com)
* Release Version: 1.0.7.21
* Date Started: 2005/06/21
*
* GML language file for GeSHi.
*
* GML (Game Maker Language) is a script language that is built-in into Game Maker,
* a game creation program, more info about Game Maker can be found at
* http://www.gamemaker.nl/
* All GML keywords were extracted from the Game Maker HTML Help file using a PHP
* script (one section at a time). I love PHP for saving me that bunch of work :P!.
* I think all GML functions have been indexed here, but I'm not sure about it, so
* please let me know of any issue you may find.
*
* CHANGES
* -------
* 2005/11/11
* - Changed 'CASE_KEYWORDS' fom 'GESHI_CAPS_LOWER' to 'GESHI_CAPS_NO_CHANGE',
* so that MCI_command appears correctly (the only GML function using capitals).
* - Changed 'CASE_SENSITIVE' options, 'GESHI_COMMENTS' from true to false and all
* of the others from false to true.
* - Deleted repeated entries.
* - div and mod are language keywords, moved (from symbols) to the appropiate section (1).
* - Moved self, other, all, noone and global identifiers to language keywords section 1.
* - Edited this file lines to a maximum width of 100 characters (as stated in
* the GeSHi docs). Well, not strictly to 100 but around it.
* - Corrected some minor issues (the vk_f1...vk_f12 keys and similar).
* - Deleted the KEYWORDS=>5 and KEYWORDS=>6 sections (actually, they were empty).
* I was planning of using those for the GML functions available only in the
* registered version of the program, but not anymore.
*
* 2005/06/26 (1.0.3)
* - First Release.
*
* TODO (updated 2005/11/11)
* -------------------------
* - Test it for a while and make the appropiate corrections.
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'GML',
'COMMENT_SINGLE' => array(1 => '//'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'"),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
// language keywords
1 => array(
'break', 'continue', 'do', 'until', 'if', 'else',
'exit', 'for', 'for', 'repeat', 'return', 'switch',
'case', 'default', 'var', 'while', 'with', 'div', 'mod',
// GML Language overview
'self', 'other', 'all', 'noone', 'global',
),
// modifiers and built-in variables
2 => array(
// Game play
'x','y','xprevious','yprevious','xstart','ystart','hspeed','vspeed','direction','speed',
'friction','gravity','gravity_direction',
'path_index','path_position','path_positionprevious','path_speed','path_orientation',
'path_scale','path_endaction',
'object_index','id','mask_index','solid','persistent','instance_count','instance_id',
'room_speed','fps','current_time','current_year','current_month','current_day','current_weekday',
'current_hour','current_minute','current_second','alarm','timeline_index','timeline_position',
'timeline_speed',
'room','room_first','room_last','room_width','room_height','room_caption','room_persistent',
'score','lives','health','show_score','show_lives','show_health','caption_score','caption_lives',
'caption_health',
'event_type','event_number','event_object','event_action',
'error_occurred','error_last',
// User interaction
'keyboard_lastkey','keyboard_key','keyboard_lastchar','keyboard_string',
'mouse_x','mouse_y','mouse_button','mouse_lastbutton',
// Game Graphics
'visible','sprite_index','sprite_width','sprite_height','sprite_xoffset','sprite_yoffset',
'image_number','image_index','image_speed','depth','image_xscale','image_yscale','image_angle',
'image_alpha','image_blend','bbox_left','bbox_right','bbox_top','bbox_bottom',
'background_color','background_showcolor','background_visible','background_foreground',
'background_index','background_x','background_y','background_width','background_height',
'background_htiled','background_vtiled','background_xscale','background_yscale',
'background_hspeed','background_vspeed','background_blend','background_alpha',
'background','left, top, width, height','x,y','depth','visible','xscale, yscale','blend','alpha',
'view_enabled','view_current','view_visible','view_yview','view_wview','view_hview','view_xport',
'view_yport','view_wport','view_hport','view_angle','view_hborder','view_vborder','view_hspeed',
'view_vspeed','view_object',
'transition_kind',
// Files, registry and executing programs
'game_id','working_directory','temp_directory',
'secure_mode',
// Creating particles
'xmin', 'xmax', 'ymin', 'ymax','shape','distribution','particle type','number',
'x', 'y', 'force','dist','kind','additive', 'friction', 'parttype1', 'parttype2'
),
// functions
3 => array(
// Computing things
'random','choose','abs','sign','round','floor','ceil','frac','sqrt','sqr','power','exp','ln',
'log2','log10','logn','sin','cos','tan','arcsin','arccos','arctan','arctan2','degtorad',
'radtodeg','min','max','mean','median','point_distance','point_direction','lengthdir_x',
'lengthdir_y','is_real','is_string',
'chr','ord','real','string','string_format','string_length','string_pos','string_copy',
'string_char_at','string_delete','string_insert','string_replace','string_replace_all',
'string_count','string_lower','string_upper','string_repeat','string_letters','string_digits',
'string_lettersdigits','clipboard_has_text','clipboard_get_text','clipboard_set_text',
'date_current_datetime','date_current_date','date_current_time','date_create_datetime',
'date_create_date','date_create_time','date_valid_datetime','date_valid_date','date_valid_time',
'date_inc_year','date_inc_month','date_inc_week','date_inc_day','date_inc_hour',
'date_inc_minute','date_inc_second','date_get_year','date_get_month','date_get_week',
'date_get_day','date_get_hour', 'date_get_minute','date_get_second','date_get_weekday',
'date_get_day_of_year','date_get_hour_of_year','date_get_minute_of_year',
'date_get_second_of_year','date_year_span','date_month_span','date_week_span','date_day_span',
'date_hour_span','date_minute_span','date_second_span','date_compare_datetime',
'date_compare_date','date_compare_time','date_date_of','date_time_of','date_datetime_string',
'date_date_string','date_time_string','date_days_in_month','date_days_in_year','date_leap_year',
'date_is_today',
// Game play
'motion_set','motion_add','place_free','place_empty','place_meeting','place_snapped',
'move_random','move_snap','move_wrap','move_towards_point','move_bounce_solid','move_bounce_all',
'move_contact_solid','move_contact_all','move_outside_solid','move_outside_all',
'distance_to_point','distance_to_object','position_empty','position_meeting',
'path_start','path_end',
'mp_linear_step','mp_linear_step_object','mp_potential_step','mp_potential_step_object',
'mp_potential_settings','mp_linear_path','mp_linear_path_object', 'mp_potential_path',
'mp_potential_path_object','mp_grid_create','mp_grid_destroy','mp_grid_clear_all',
'mp_grid_clear_cell','mp_grid_clear_rectangle','mp_grid_add_cell','mp_grid_add_rectangle',
'mp_grid_add_instances','mp_grid_path','mp_grid_draw',
'collision_point','collision_rectangle','collision_circle','collision_ellipse','collision_line',
'instance_find','instance_exists','instance_number','instance_position','instance_nearest',
'instance_furthest','instance_place','instance_create','instance_copy','instance_destroy',
'instance_change','position_destroy','position_change',
'instance_deactivate_all','instance_deactivate_object','instance_deactivate_region',
'instance_activate_all','instance_activate_object','instance_activate_region',
'sleep',
'room_goto','room_goto_previous','room_goto_next','room_restart','room_previous','room_next',
'game_end','game_restart','game_save','game_load',
'event_perform', 'event_perform_object','event_user','event_inherited',
'show_debug_message','variable_global_exists','variable_local_exists','variable_global_get',
'variable_global_array_get','variable_global_array2_get','variable_local_get',
'variable_local_array_get','variable_local_array2_get','variable_global_set',
'variable_global_array_set','variable_global_array2_set','variable_local_set',
'variable_local_array_set','variable_local_array2_set','set_program_priority',
// User interaction
'keyboard_set_map','keyboard_get_map','keyboard_unset_map','keyboard_check',
'keyboard_check_pressed','keyboard_check_released','keyboard_check_direct',
'keyboard_get_numlock','keyboard_set_numlock','keyboard_key_press','keyboard_key_release',
'keyboard_clear','io_clear','io_handle','keyboard_wait',
'mouse_check_button','mouse_check_button_pressed','mouse_check_button_released','mouse_clear',
'io_clear','io_handle','mouse_wait',
'joystick_exists','joystick_name','joystick_axes','joystick_buttons','joystick_has_pov',
'joystick_direction','joystick_check_button','joystick_xpos','joystick_ypos','joystick_zpos',
'joystick_rpos','joystick_upos','joystick_vpos','joystick_pov',
// Game Graphics
'draw_sprite','draw_sprite_stretched','draw_sprite_tiled','draw_sprite_part','draw_background',
'draw_background_stretched','draw_background_tiled','draw_background_part','draw_sprite_ext',
'draw_sprite_stretched_ext','draw_sprite_tiled_ext','draw_sprite_part_ext','draw_sprite_general',
'draw_background_ext','draw_background_stretched_ext','draw_background_tiled_ext',
'draw_background_part_ext','draw_background_general',
'draw_clear','draw_clear_alpha','draw_point','draw_line','draw_rectangle','draw_roundrect',
'draw_triangle','draw_circle','draw_ellipse','draw_arrow','draw_button','draw_path',
'draw_healthbar','draw_set_color','draw_set_alpha','draw_get_color','draw_get_alpha',
'make_color_rgb','make_color_hsv','color_get_red','color_get_green','color_get_blue',
'color_get_hue','color_get_saturation','color_get_value','merge_color','draw_getpixel',
'screen_save','screen_save_part',
'draw_set_font','draw_set_halign','draw_set_valign','draw_text','draw_text_ext','string_width',
'string_height','string_width_ext','string_height_ext','draw_text_transformed',
'draw_text_ext_transformed','draw_text_color','draw_text_ext_color',
'draw_text_transformed_color','draw_text_ext_transformed_color',
'draw_point_color','draw_line_color','draw_rectangle_color','draw_roundrect_color',
'draw_triangle_color','draw_circle_color','draw_ellipse_color','draw_primitive_begin',
'draw_vertex','draw_vertex_color','draw_primitive_end','sprite_get_texture',
'background_get_texture','texture_preload','texture_set_priority',
'texture_get_width','texture_get_height','draw_primitive_begin_texture','draw_vertex_texture',
'draw_vertex_texture_color','draw_primitive_end','texture_set_interpolation',
'texture_set_blending','texture_set_repeat','draw_set_blend_mode','draw_set_blend_mode_ext',
'surface_create','surface_free','surface_exists','surface_get_width','surface_get_height',
'surface_get_texture','surface_set_target','surface_reset_target','surface_getpixel',
'surface_save','surface_save_part','draw_surface','draw_surface_stretched','draw_surface_tiled',
'draw_surface_part','draw_surface_ext','draw_surface_stretched_ext','draw_surface_tiled_ext',
'draw_surface_part_ext','draw_surface_general','surface_copy','surface_copy_part',
'tile_add','tile_delete','tile_exists','tile_get_x','tile_get_y','tile_get_left','tile_get_top',
'tile_get_width','tile_get_height','tile_get_depth','tile_get_visible','tile_get_xscale',
'tile_get_yscale','tile_get_background','tile_get_blend','tile_get_alpha','tile_set_position',
'tile_set_region','tile_set_background','tile_set_visible','tile_set_depth','tile_set_scale',
'tile_set_blend','tile_set_alpha','tile_layer_hide','tile_layer_show','tile_layer_delete',
'tile_layer_shift','tile_layer_find','tile_layer_delete_at','tile_layer_depth',
'display_get_width','display_get_height','display_get_colordepth','display_get_frequency',
'display_set_size','display_set_colordepth','display_set_frequency','display_set_all',
'display_test_all','display_reset','display_mouse_get_x','display_mouse_get_y','display_mouse_set',
'window_set_visible','window_get_visible','window_set_fullscreen','window_get_fullscreen',
'window_set_showborder','window_get_showborder','window_set_showicons','window_get_showicons',
'window_set_stayontop','window_get_stayontop','window_set_sizeable','window_get_sizeable',
'window_set_caption','window_get_caption','window_set_cursor', 'window_get_cursor',
'window_set_color','window_get_color','window_set_region_scale','window_get_region_scale',
'window_set_position','window_set_size','window_set_rectangle','window_center','window_default',
'window_get_x','window_get_y','window_get_width','window_get_height','window_mouse_get_x',
'window_mouse_get_y','window_mouse_set',
'window_set_region_size','window_get_region_width','window_get_region_height',
'window_view_mouse_get_x','window_view_mouse_get_y','window_view_mouse_set',
'window_views_mouse_get_x','window_views_mouse_get_y','window_views_mouse_set',
'screen_redraw','screen_refresh','set_automatic_draw','set_synchronization','screen_wait_vsync',
// Sound and music)
'sound_play','sound_loop','sound_stop','sound_stop_all','sound_isplaying','sound_volume',
'sound_global_volume','sound_fade','sound_pan','sound_background_tempo','sound_set_search_directory',
'sound_effect_set','sound_effect_chorus','sound_effect_echo', 'sound_effect_flanger',
'sound_effect_gargle','sound_effect_reverb','sound_effect_compressor','sound_effect_equalizer',
'sound_3d_set_sound_position','sound_3d_set_sound_velocity','sound_3d_set_sound_distance',
'sound_3d_set_sound_cone',
'cd_init','cd_present','cd_number','cd_playing','cd_paused','cd_track','cd_length',
'cd_track_length','cd_position','cd_track_position','cd_play','cd_stop','cd_pause','cd_resume',
'cd_set_position','cd_set_track_position','cd_open_door','cd_close_door','MCI_command',
// Splash screens, highscores, and other pop-ups
'show_text','show_image','show_video','show_info','load_info',
'show_message','show_message_ext','show_question','get_integer','get_string',
'message_background','message_alpha','message_button','message_text_font','message_button_font',
'message_input_font','message_mouse_color','message_input_color','message_caption',
'message_position','message_size','show_menu','show_menu_pos','get_color','get_open_filename',
'get_save_filename','get_directory','get_directory_alt','show_error',
'highscore_show','highscore_set_background','highscore_set_border','highscore_set_font',
'highscore_set_colors','highscore_set_strings','highscore_show_ext','highscore_clear',
'highscore_add','highscore_add_current','highscore_value','highscore_name','draw_highscore',
// Resources
'sprite_exists','sprite_get_name','sprite_get_number','sprite_get_width','sprite_get_height',
'sprite_get_transparent','sprite_get_smooth','sprite_get_preload','sprite_get_xoffset',
'sprite_get_yoffset','sprite_get_bbox_left','sprite_get_bbox_right','sprite_get_bbox_top',
'sprite_get_bbox_bottom','sprite_get_bbox_mode','sprite_get_precise',
'sound_exists','sound_get_name','sound_get_kind','sound_get_preload','sound_discard',
'sound_restore',
'background_exists','background_get_name','background_get_width','background_get_height',
'background_get_transparent','background_get_smooth','background_get_preload',
'font_exists','font_get_name','font_get_fontname','font_get_bold','font_get_italic',
'font_get_first','font_get_last',
'path_exists','path_get_name','path_get_length','path_get_kind','path_get_closed',
'path_get_precision','path_get_number','path_get_point_x','path_get_point_y',
'path_get_point_speed','path_get_x','path_get_y','path_get_speed',
'script_exists','script_get_name','script_get_text',
'timeline_exists','timeline_get_name',
'object_exists','object_get_name','object_get_sprite','object_get_solid','object_get_visible',
'object_get_depth','object_get_persistent','object_get_mask','object_get_parent',
'object_is_ancestor',
'room_exists','room_get_name',
// Changing resources
'sprite_set_offset','sprite_set_bbox_mode','sprite_set_bbox','sprite_set_precise',
'sprite_duplicate','sprite_assign','sprite_merge','sprite_add','sprite_replace',
'sprite_create_from_screen','sprite_add_from_screen','sprite_create_from_surface',
'sprite_add_from_surface','sprite_delete','sprite_set_alpha_from_sprite',
'sound_add','sound_replace','sound_delete',
'background_duplicate','background_assign','background_add','background_replace',
'background_create_color','background_create_gradient','background_create_from_screen',
'background_create_from_surface','background_delete','background_set_alpha_from_background',
'font_add','font_add_sprite','font_replace_sprite','font_delete',
'path_set_kind','path_set_closed','path_set_precision','path_add','path_delete','path_duplicate',
'path_assign','path_append','path_add_point','path_insert_point','path_change_point',
'path_delete_point','path_clear_points','path_reverse','path_mirror','path_flip','path_rotate',
'path_scale','path_shift',
'execute_string','execute_file','script_execute',
'timeline_add','timeline_delete','timeline_moment_add','timeline_moment_clear',
'object_set_sprite','object_set_solid','object_set_visible','object_set_depth',
'object_set_persistent','object_set_mask','object_set_parent','object_add','object_delete',
'object_event_add','object_event_clear',
'room_set_width','room_set_height','room_set_caption','room_set_persistent','room_set_code',
'room_set_background_color','room_set_background','room_set_view','room_set_view_enabled',
'room_add','room_duplicate','room_assign','room_instance_add','room_instance_clear',
'room_tile_add','room_tile_add_ext','room_tile_clear',
// Files, registry and executing programs
'file_text_open_read','file_text_open_write','file_text_open_append','file_text_close',
'file_text_write_string','file_text_write_real','file_text_writeln','file_text_read_string',
'file_text_read_real','file_text_readln','file_text_eof','file_exists','file_delete',
'file_rename','file_copy','directory_exists','directory_create','file_find_first',
'file_find_next','file_find_close','file_attributes', 'filename_name','filename_path',
'filename_dir','filename_drive','filename_ext','filename_change_ext','file_bin_open',
'file_bin_rewrite','file_bin_close','file_bin_size','file_bin_position','file_bin_seek',
'file_bin_write_byte','file_bin_read_byte','parameter_count','parameter_string',
'environment_get_variable',
'registry_write_string','registry_write_real','registry_read_string','registry_read_real',
'registry_exists','registry_write_string_ext','registry_write_real_ext',
'registry_read_string_ext','registry_read_real_ext','registry_exists_ext','registry_set_root',
'ini_open','ini_close','ini_read_string','ini_read_real','ini_write_string','ini_write_real',
'ini_key_exists','ini_section_exists','ini_key_delete','ini_section_delete',
'execute_program','execute_shell',
// Data structures
'ds_stack_create','ds_stack_destroy','ds_stack_clear','ds_stack_size','ds_stack_empty',
'ds_stack_push','ds_stack_pop','ds_stack_top',
'ds_queue_create','ds_queue_destroy','ds_queue_clear','ds_queue_size','ds_queue_empty',
'ds_queue_enqueue','ds_queue_dequeue','ds_queue_head','ds_queue_tail',
'ds_list_create','ds_list_destroy','ds_list_clear','ds_list_size','ds_list_empty','ds_list_add',
'ds_list_insert','ds_list_replace','ds_list_delete','ds_list_find_index','ds_list_find_value',
'ds_list_sort',
'ds_map_create','ds_map_destroy','ds_map_clear','ds_map_size','ds_map_empty','ds_map_add',
'ds_map_replace','ds_map_delete','ds_map_exists','ds_map_find_value','ds_map_find_previous',
'ds_map_find_next','ds_map_find_first','ds_map_find_last',
'ds_priority_create','ds_priority_destroy','ds_priority_clear','ds_priority_size',
'ds_priority_empty','ds_priority_add','ds_priority_change_priority','ds_priority_find_priority',
'ds_priority_delete_value','ds_priority_delete_min','ds_priority_find_min',
'ds_priority_delete_max','ds_priority_find_max',
'ds_grid_create','ds_grid_destroy','ds_grid_resize','ds_grid_width','ds_grid_height',
'ds_grid_clear','ds_grid_set','ds_grid_add','ds_grid_multiply','ds_grid_set_region',
'ds_grid_add_region','ds_grid_multiply_region','ds_grid_set_disk','ds_grid_add_disk',
'ds_grid_multiply_disk','ds_grid_get','ds_grid_get_sum','ds_grid_get_max','ds_grid_get_min',
'ds_grid_get_mean','ds_grid_get_disk_sum','ds_grid_get_disk_min','ds_grid_get_disk_max',
'ds_grid_get_disk_mean','ds_grid_value_exists','ds_grid_value_x','ds_grid_value_y',
'ds_grid_value_disk_exists','ds_grid_value_disk_x','ds_grid_value_disk_y',
// Creating particles
'effect_create_below','effect_create_above','effect_clear',
'part_type_create','part_type_destroy','part_type_exists','part_type_clear','part_type_shape',
'part_type_sprite','part_type_size','part_type_scale',
'part_type_orientation','part_type_color1','part_type_color2','part_type_color3',
'part_type_color_mix','part_type_color_rgb','part_type_color_hsv',
'part_type_alpha1','part_type_alpha2','part_type_alpha3','part_type_blend','part_type_life',
'part_type_step','part_type_death','part_type_speed','part_type_direction','part_type_gravity',
'part_system_create','part_system_destroy','part_system_exists','part_system_clear',
'part_system_draw_order','part_system_depth','part_system_position',
'part_system_automatic_update','part_system_automatic_draw','part_system_update',
'part_system_drawit','part_particles_create','part_particles_create_color',
'part_particles_clear','part_particles_count',
'part_emitter_create','part_emitter_destroy','part_emitter_destroy_all','part_emitter_exists',
'part_emitter_clear','part_emitter_region','part_emitter_burst','part_emitter_stream',
'part_attractor_create','part_attractor_destroy','part_attractor_destroy_all',
'part_attractor_exists','part_attractor_clear','part_attractor_position','part_attractor_force',
'part_destroyer_create','part_destroyer_destroy','part_destroyer_destroy_all',
'part_destroyer_exists','part_destroyer_clear','part_destroyer_region',
'part_deflector_create','part_deflector_destroy','part_deflector_destroy_all',
'part_deflector_exists','part_deflector_clear','part_deflector_region','part_deflector_kind',
'part_deflector_friction',
'part_changer_create','part_changer_destroy','part_changer_destroy_all','part_changer_exists',
'part_changer_clear','part_changer_region','part_changer_types','part_changer_kind',
// Multiplayer games
'mplay_init_ipx','mplay_init_tcpip','mplay_init_modem','mplay_init_serial',
'mplay_connect_status','mplay_end','mplay_ipaddress',
'mplay_session_create','mplay_session_find','mplay_session_name','mplay_session_join',
'mplay_session_mode','mplay_session_status','mplay_session_end',
'mplay_player_find','mplay_player_name','mplay_player_id',
'mplay_data_write','mplay_data_read','mplay_data_mode',
'mplay_message_send','mplay_message_send_guaranteed','mplay_message_receive','mplay_message_id',
'mplay_message_value','mplay_message_player','mplay_message_name','mplay_message_count',
'mplay_message_clear',
// Using DLL's
'external_define','external_call','external_free','execute_string','execute_file','window_handle',
// 3D Graphics
'd3d_start','d3d_end','d3d_set_hidden','d3d_set_perspective',
'd3d_set_depth',
'd3d_primitive_begin','d3d_vertex','d3d_vertex_color','d3d_primitive_end',
'd3d_primitive_begin_texture','d3d_vertex_texture','d3d_vertex_texture_color','d3d_set_culling',
'd3d_draw_block','d3d_draw_cylinder','d3d_draw_cone','d3d_draw_ellipsoid','d3d_draw_wall',
'd3d_draw_floor',
'd3d_set_projection','d3d_set_projection_ext','d3d_set_projection_ortho',
'd3d_set_projection_perspective',
'd3d_transform_set_identity','d3d_transform_set_translation','d3d_transform_set_scaling',
'd3d_transform_set_rotation_x','d3d_transform_set_rotation_y','d3d_transform_set_rotation_z',
'd3d_transform_set_rotation_axis','d3d_transform_add_translation','d3d_transform_add_scaling',
'd3d_transform_add_rotation_x','d3d_transform_add_rotation_y','d3d_transform_add_rotation_z',
'd3d_transform_add_rotation_axis','d3d_transform_stack_clear','d3d_transform_stack_empty',
'd3d_transform_stack_push','d3d_transform_stack_pop','d3d_transform_stack_top',
'd3d_transform_stack_discard',
'd3d_set_fog',
'd3d_set_lighting','d3d_set_shading','d3d_light_define_direction','d3d_light_define_point',
'd3d_light_enable','d3d_vertex_normal','d3d_vertex_normal_color','d3d_vertex_normal_texture',
'd3d_vertex_normal_texture_color',
'd3d_model_create','d3d_model_destroy','d3d_model_clear','d3d_model_save','d3d_model_load',
'd3d_model_draw','d3d_model_primitive_begin','d3d_model_vertex','d3d_model_vertex_color',
'd3d_model_vertex_texture','d3d_model_vertex_texture_color','d3d_model_vertex_normal',
'd3d_model_vertex_normal_color','d3d_model_vertex_normal_texture',
'd3d_model_vertex_normal_texture_color','d3d_model_primitive_end','d3d_model_block',
'd3d_model_cylinder','d3d_model_cone','d3d_model_ellipsoid','d3d_model_wall','d3d_model_floor'
),
// constants
4 => array(
'true', 'false', 'pi',
'ev_destroy','ev_step','ev_alarm','ev_keyboard','ev_mouse','ev_collision','ev_other','ev_draw',
'ev_keypress','ev_keyrelease','ev_left_button','ev_right_button','ev_middle_button',
'ev_no_button','ev_left_press','ev_right_press','ev_middle_press','ev_left_release',
'ev_right_release','ev_middle_release','ev_mouse_enter','ev_mouse_leave','ev_mouse_wheel_up',
'ev_mouse_wheel_down','ev_global_left_button','ev_global_right_button','ev_global_middle_button',
'ev_global_left_press','ev_global_right_press','ev_global_middle_press','ev_global_left_release',
'ev_global_right_release','ev_global_middle_release','ev_joystick1_left','ev_joystick1_right',
'ev_joystick1_up','ev_joystick1_down','ev_joystick1_button1','ev_joystick1_button2',
'ev_joystick1_button3','ev_joystick1_button4','ev_joystick1_button5','ev_joystick1_button6',
'ev_joystick1_button7','ev_joystick1_button8','ev_joystick2_left','ev_joystick2_right',
'ev_joystick2_up','ev_joystick2_down','ev_joystick2_button1','ev_joystick2_button2',
'ev_joystick2_button3','ev_joystick2_button4','ev_joystick2_button5','ev_joystick2_button6',
'ev_joystick2_button7','ev_joystick2_button8',
'ev_outside','ev_boundary','ev_game_start','ev_game_end','ev_room_start','ev_room_end',
'ev_no_more_lives','ev_no_more_health','ev_animation_end','ev_end_of_path','ev_user0','ev_user1',
'ev_user2','ev_user3','ev_user4','ev_user5','ev_user6','ev_user7','ev_user8','ev_user9',
'ev_user10','ev_user11','ev_user12','ev_user13','ev_user14','ev_user15','ev_step_normal',
'ev_step_begin','ev_step_end',
'vk_nokey','vk_anykey','vk_left','vk_right','vk_up','vk_down','vk_enter','vk_escape','vk_space',
'vk_shift','vk_control','vk_alt','vk_backspace','vk_tab','vk_home','vk_end','vk_delete',
'vk_insert','vk_pageup','vk_pagedown','vk_pause','vk_printscreen',
'vk_f1','vk_f2','vk_f3','vk_f4','vk_f5','vk_f6','vk_f7','vk_f8','vk_f9','vk_f10','vk_f11','vk_f12',
'vk_numpad0','vk_numpad1','vk_numpad2','vk_numpad3','vk_numpad4','vk_numpad5','vk_numpad6',
'vk_numpad7','vk_numpad8','vk_numpad9', 'vk_multiply','vk_divide','vk_add','vk_subtract',
'vk_decimal','vk_lshift','vk_lcontrol','vk_lalt','vk_rshift','vk_rcontrol','vk_ralt',
'c_aqua','c_black','c_blue','c_dkgray','c_fuchsia','c_gray','c_green','c_lime','c_ltgray',
'c_maroon','c_navy','c_olive','c_purple','c_red','c_silver','c_teal','c_white','c_yellow',
'fa_left', 'fa_center','fa_right','fa_top','fa_middle','fa_bottom',
'pr_pointlist','pr_linelist','pr_linestrip','pr_trianglelist','pr_trianglestrip',
'pr_trianglefan',
'cr_none','cr_arrow','cr_cross','cr_beam','cr_size_nesw','cr_size_ns','cr_size_nwse',
'cr_size_we','cr_uparrow','cr_hourglass','cr_drag','cr_nodrop','cr_hsplit','cr_vsplit',
'cr_multidrag','cr_sqlwait','cr_no','cr_appstart','cr_help','cr_handpoint','cr_size_all',
'se_chorus','se_echo','se_flanger','se_gargle','se_reverb','se_compressor','se_equalizer',
'fa_readonly','fa_hidden','fa_sysfile','fa_volumeid','fa_directory','fa_archive',
'pt_shape_pixel','pt_shape_disk','pt_shape_square','pt_shape_line','pt_shape_star',
'pt_shape_circle','pt_shape_ring','pt_shape_sphere','pt_shape_flare','pt_shape_spark',
'pt_shape_explosion','pt_shape_cloud','pt_shape_smoke','pt_shape_snow',
'ps_shape_rectangle','ps_shape_ellipse ','ps_shape_diamond','ps_shape_line',
'ps_distr_linear','ps_distr_gaussian','ps_force_constant','ps_force_linear','ps_force_quadratic',
'ps_deflect_horizontal', 'ps_deflect_vertical',
'ps_change_motion','ps_change_shape','ps_change_all'
),
),
'SYMBOLS' => array(
'(', ')', '{', '}', '[', ']', '&&', '||', '^^', '<', '<=', '==', '!=', '>', '>=',
'|', '&', '^', '<<', '>>', '+', '-', '*', '/', '!', '-', '~'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
4 => true,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'font-weight: bold; color: #000000;',
2 => 'font-weight: bold; color: #000000;',
3 => 'color: navy;',
4 => 'color: #663300;',
),
'COMMENTS' => array(
1 => 'font-style: italic; color: green;',
'MULTI' => 'font-style: italic; color: green;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #000000;' //'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
1 => 'color: #202020;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66; font-weight: bold;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
// All GML functions have been indexed, but need some corrections.
3 => 'http://www.zonamakers.com/gmlreference/{FNAME}.html', // (provisional, could change soon!)
4 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,296 @@
<?php
/*************************************************************************************
* gnuplot.php
* ----------
* Author: Milian Wolff (mail@milianw.de)
* Copyright: (c) 2008 Milian Wolff (http://milianw.de)
* Release Version: 1.0.8.2
* Date Started: 2008/07/07
*
* Gnuplot script language file for GeSHi.
*
* CHANGES
* -------
* 2008/07/07 (1.0.8)
* - Initial import
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Gnuplot',
'COMMENT_SINGLE' => array(1 => '#'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('`', '"', "'"),
'ESCAPE_CHAR' => '\\',
'NUMBERS' =>
GESHI_NUMBER_INT_BASIC |
GESHI_NUMBER_FLT_NONSCI |
GESHI_NUMBER_FLT_SCI_SHORT |
GESHI_NUMBER_FLT_SCI_ZERO,
'KEYWORDS' => array(
// copy output of help command, indent properly and use this replace regexp:
// ([a-z0-9_\-]+)(( )+|$) => '\1',\3
// commands as found in `help commands`
1 => array(
'bind', 'call', 'cd', 'clear',
'exit', 'fit', 'help', 'history',
'if', 'load', 'lower', 'pause',
'plot', 'print', 'pwd', 'quit',
'raise', 'replot', 'reread', 'reset',
'save', 'set', 'shell', 'show',
'splot', 'system', 'test', 'unset',
'update'
),
2 => array(
// set commands as returned by `help set`
'angles', 'arrow', 'autoscale', 'bars',
'bmargin', 'border', 'boxwidth', 'cbdata',
'cbdtics', 'cblabel', 'cbmtics', 'cbrange',
'cbtics', 'clabel', 'clip', 'cntrparam',
'colorbox', 'contour', 'datafile', 'date_specifiers',
'decimalsign', 'dgrid3d', 'dummy', 'encoding',
'fontpath', 'format', 'grid',
'hidden3d', 'historysize', 'isosamples', 'key',
'label', 'lmargin', 'loadpath', 'locale',
'log', 'logscale', 'macros', 'mapping',
'margin', 'missing', 'mouse', 'multiplot',
'mx2tics', 'mxtics', 'my2tics', 'mytics',
'mztics', 'object', 'offsets', 'origin',
'output', 'palette', 'parametric', 'pm3d',
'pointsize', 'polar', 'rmargin',
'rrange', 'samples', 'size', 'style',
'surface', 'table', 'term', 'terminal',
'termoption', 'tics', 'ticscale', 'ticslevel',
'time_specifiers', 'timefmt', 'timestamp', 'title',
'trange', 'urange', 'view',
'vrange', 'x2data', 'x2dtics', 'x2label',
'x2mtics', 'x2range', 'x2tics', 'x2zeroaxis',
'xdata', 'xdtics', 'xlabel', 'xmtics',
'xrange', 'xtics', 'xyplane', 'xzeroaxis',
'y2data', 'y2dtics', 'y2label', 'y2mtics',
'y2range', 'y2tics', 'y2zeroaxis', 'ydata',
'ydtics', 'ylabel', 'ymtics', 'yrange',
'ytics', 'yzeroaxis', 'zdata', 'zdtics',
'zero', 'zeroaxis', 'zlabel', 'zmtics',
'zrange', 'ztics', 'zzeroaxis',
// same but with leading no
'noangles', 'noarrow', 'noautoscale', 'nobars',
'nobmargin', 'noborder', 'noboxwidth', 'nocbdata',
'nocbdtics', 'nocblabel', 'nocbmtics', 'nocbrange',
'nocbtics', 'noclabel', 'noclip', 'nocntrparam',
'nocolorbox', 'nocontour', 'nodatafile', 'nodate_specifiers',
'nodecimalsign', 'nodgrid3d', 'nodummy', 'noencoding',
'nofit', 'nofontpath', 'noformat', 'nogrid',
'nohidden3d', 'nohistorysize', 'noisosamples', 'nokey',
'nolabel', 'nolmargin', 'noloadpath', 'nolocale',
'nolog', 'nologscale', 'nomacros', 'nomapping',
'nomargin', 'nomissing', 'nomouse', 'nomultiplot',
'nomx2tics', 'nomxtics', 'nomy2tics', 'nomytics',
'nomztics', 'noobject', 'nooffsets', 'noorigin',
'nooutput', 'nopalette', 'noparametric', 'nopm3d',
'nopointsize', 'nopolar', 'noprint', 'normargin',
'norrange', 'nosamples', 'nosize', 'nostyle',
'nosurface', 'notable', 'noterm', 'noterminal',
'notermoption', 'notics', 'noticscale', 'noticslevel',
'notime_specifiers', 'notimefmt', 'notimestamp', 'notitle',
'notmargin', 'notrange', 'nourange', 'noview',
'novrange', 'nox2data', 'nox2dtics', 'nox2label',
'nox2mtics', 'nox2range', 'nox2tics', 'nox2zeroaxis',
'noxdata', 'noxdtics', 'noxlabel', 'noxmtics',
'noxrange', 'noxtics', 'noxyplane', 'noxzeroaxis',
'noy2data', 'noy2dtics', 'noy2label', 'noy2mtics',
'noy2range', 'noy2tics', 'noy2zeroaxis', 'noydata',
'noydtics', 'noylabel', 'noymtics', 'noyrange',
'noytics', 'noyzeroaxis', 'nozdata', 'nozdtics',
'nozero', 'nozeroaxis', 'nozlabel', 'nozmtics',
'nozrange', 'noztics', 'nozzeroaxis',
),
3 => array(
// predefined variables
'pi', 'NaN', 'GNUTERM',
'GPVAL_X_MIN', 'GPVAL_X_MAX', 'GPVAL_Y_MIN', 'GPVAL_Y_MAX',
'GPVAL_TERM', 'GPVAL_TERMOPTIONS', 'GPVAL_OUTPUT',
'GPVAL_VERSION', 'GPVAL_PATcHLEVEL', 'GPVAL_COMPILE_OPTIONS',
'MOUSE_KEY', 'MOUSE_X', 'MOUSE_X2', 'MOUSE_Y', 'MOUSE_Y2',
'MOUSE_BUTTON', 'MOUSE_SHIFT', 'MOUSE_ALT', 'MOUSE_CTRL'
),
4 => array(
// predefined functions `help functions`
'abs', 'acos', 'acosh', 'arg',
'asin', 'asinh', 'atan', 'atan2',
'atanh', 'besj0', 'besj1', 'besy0',
'besy1', 'ceil', 'column', 'cos',
'cosh', 'defined', 'erf', 'erfc',
'exists', 'exp', 'floor', 'gamma',
'gprintf', 'ibeta', 'igamma', 'imag',
'int', 'inverf', 'invnorm', 'lambertw',
'lgamma', 'log10', 'norm',
'rand', 'random', 'real', 'sgn',
'sin', 'sinh', 'sprintf', 'sqrt',
'stringcolumn', 'strlen', 'strstrt', 'substr',
'tan', 'tanh', 'timecolumn',
'tm_hour', 'tm_mday', 'tm_min', 'tm_mon',
'tm_sec', 'tm_wday', 'tm_yday', 'tm_year',
'valid', 'word', 'words',
),
5 => array(
// mixed arguments
// there is no sane way to get these ones easily...
'autofreq', 'x', 'y', 'z',
'lt', 'linetype', 'lw', 'linewidth', 'ls', 'linestyle',
'out', 'rotate by', 'screen',
'enhanced', 'via',
// `help set key`
'on', 'off', 'default', 'inside', 'outside', 'tmargin',
'at', 'left', 'right', 'center', 'top', 'bottom', 'vertical', 'horizontal', 'Left', 'Right',
'noreverse', 'reverse', 'noinvert', 'invert', 'samplen', 'spacing', 'width', 'height',
'noautotitle', 'autotitle', 'noenhanced', 'nobox', 'box',
// help set terminal postscript
'landscape', 'portrait', 'eps', 'defaultplex', 'simplex', 'duplex',
'fontfile', 'add', 'delete', 'nofontfiles', 'level1', 'leveldefault',
'color', 'colour', 'monochrome', 'solid', 'dashed', 'dashlength', 'dl',
'rounded', 'butt', 'palfuncparam', 'blacktext', 'colortext', 'colourtext',
'font',
// help set terminal png
'notransparent', 'transparent', 'nointerlace', 'interlace',
'notruecolor', 'truecolor', 'tiny', 'small', 'medium', 'large', 'giant',
'nocrop', 'crop',
// `help plot`
'acsplines', 'bezier', 'binary', 'csplines',
'every',
'example', 'frequency', 'index', 'matrix',
'ranges', 'sbezier', 'smooth',
'special-filenames', 'thru',
'unique', 'using', 'with',
// `help plotting styles`
'boxerrorbars', 'boxes', 'boxxyerrorbars', 'candlesticks',
'dots', 'errorbars', 'errorlines', 'filledcurves',
'financebars', 'fsteps', 'histeps', 'histograms',
'image', 'impulses', 'labels', 'lines',
'linespoints', 'points', 'rgbimage', 'steps',
'vectors', 'xerrorbars', 'xerrorlines', 'xyerrorbars',
'xyerrorlines', 'yerrorbars', 'yerrorlines',
// terminals `help terminals`
'aed512', 'aed767', 'aifm', 'bitgraph',
'cgm', 'corel', 'dumb', 'dxf',
'eepic', 'emf', 'emtex', 'epslatex',
'epson-180dpi', 'epson-60dpi', 'epson-lx800', 'fig',
'gif', 'gpic', 'hp2623a', 'hp2648',
'hp500c', 'hpdj', 'hpgl', 'hpljii',
'hppj', 'imagen', 'jpeg', 'kc-tek40xx',
'km-tek40xx', 'latex', 'mf', 'mif',
'mp', 'nec-cp6', 'okidata', 'pbm',
'pcl5', 'png', 'pop', 'postscript',
'pslatex', 'pstex', 'pstricks', 'push',
'qms', 'regis', 'selanar', 'starc',
'svg', 'tandy-60dpi', 'tek40xx', 'tek410x',
'texdraw', 'tgif', 'tkcanvas', 'tpic',
'vttek', 'x11', 'xlib',
)
),
'REGEXPS' => array(
//Variable assignment
0 => "([a-zA-Z_][a-zA-Z0-9_]*)\s*=",
//Numbers with unit
1 => "(?<=^|\s)([0-9]*\.?[0-9]+\s*cm)"
),
'SYMBOLS' => array(
'-', '+', '~', '!', '$',
'*', '/', '%', '=', '<', '>', '&',
'^', '|', '.', 'eq', 'ne', '?:', ':', '`', ','
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
4 => true,
5 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;',
2 => 'color: #990000;',
3 => 'color: #550000;',
4 => 'color: #7a0874;',
5 => 'color: #448888;'
),
'COMMENTS' => array(
1 => 'color: #adadad; font-style: italic;',
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight:bold;'
),
'BRACKETS' => array(
0 => 'color: #000099; font-weight:bold;'
),
'STRINGS' => array(
0 => 'color: #0000ff;',
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #000; font-weight: bold;'
),
'REGEXPS' => array(
0 => 'color: #007800;',
1 => 'color: #cc66cc;'
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => 'http://www.google.com/search?q=%22set+{FNAME}%22+site%3Ahttp%3A%2F%2Fwww.gnuplot.info%2Fdocs%2F&amp;btnI=lucky',
3 => '',
4 => '',
5 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
4 => array(
'DISALLOWED_AFTER' => "(?![\.\-a-zA-Z0-9_%])"
)
)
),
'TAB_WIDTH' => 4
);
?>

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,195 @@
<?php
/*************************************************************************************
* haskell.php
* ----------
* Author: Jason Dagit (dagit@codersbase.com) based on ocaml.php by Flaie (fireflaie@gmail.com)
* Copyright: (c) 2005 Flaie, Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.7.21
* Date Started: 2005/08/27
*
* Haskell language file for GeSHi.
*
* CHANGES
* -------
* 2005/08/27 (1.0.0)
* - First Release
*
* TODO (updated 2005/08/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Haskell',
'COMMENT_SINGLE' => array( 1 => '--'),
'COMMENT_MULTI' => array('{-' => '-}'),
'CASE_KEYWORDS' => 0,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => "\\",
'KEYWORDS' => array(
/* main haskell keywords */
1 => array(
'as',
'case', 'of', 'class', 'data', 'default',
'deriving', 'do', 'forall', 'hiding', 'if', 'then',
'else', 'import', 'infix', 'infixl', 'infixr',
'instance', 'let', 'in', 'module', 'newtype',
'qualified', 'type', 'where'
),
/* define names of main librarys, so we can link to it */
2 => array(
'Foreign', 'Numeric', 'Prelude'
),
/* just link to Prelude functions, cause it's the default opened library when starting Haskell */
3 => array(
'not', 'otherwise', 'maybe',
'either', 'fst', 'snd', 'curry', 'uncurry',
'compare',
'max', 'min', 'succ', 'pred', 'toEnum', 'fromEnum',
'enumFrom', 'enumFromThen', 'enumFromTo',
'enumFromThenTo', 'minBound', 'maxBound',
'negate', 'abs', 'signum',
'fromInteger', 'toRational', 'quot', 'rem',
'div', 'mod', 'quotRem', 'divMod', 'toInteger',
'recip', 'fromRational', 'pi', 'exp',
'log', 'sqrt', 'logBase', 'sin', 'cos',
'tan', 'asin', 'acos', 'atan', 'sinh', 'cosh',
'tanh', 'asinh', 'acosh', 'atanh',
'properFraction', 'truncate', 'round', 'ceiling',
'floor', 'floatRadix', 'floatDigits', 'floatRange',
'decodeFloat', 'encodeFloat', 'exponent',
'significand', 'scaleFloat', 'isNaN', 'isInfinite',
'isDenomalized', 'isNegativeZero', 'isIEEE',
'atan2', 'subtract', 'even', 'odd', 'gcd',
'lcm', 'fromIntegral', 'realToFrac',
'return', 'fail', 'fmap',
'mapM', 'mapM_', 'sequence', 'sequence_',
'id', 'const','flip',
'until', 'asTypeOf', 'error', 'undefined',
'seq','map','filter', 'head',
'last', 'tail', 'init', 'null', 'length',
'reverse', 'foldl', 'foldl1', 'foldr',
'foldr1', 'and', 'or', 'any', 'all', 'sum',
'product', 'concat', 'concatMap', 'maximum',
'minimum', 'scanl', 'scanl1', 'scanr', 'scanr1',
'iterate', 'repeat', 'cycle', 'take', 'drop',
'splitAt', 'teakWhile', 'dropWhile', 'span',
'break', 'elem', 'notElem', 'lookup', 'zip',
'zip3', 'zipWith', 'zipWith3', 'unzip', 'unzip3',
'unzip', 'unzip3', 'lines', 'words', 'unlines',
'unwords', 'showPrec', 'show', 'showList',
'shows', 'showChar', 'showString', 'showParen',
'readsPrec', 'readList', 'reads', 'readParen',
'read', 'lex', 'putChar', 'putStr', 'putStrLn',
'print', 'getChar', 'getLine', 'getContents',
'interact', 'readFile', 'writeFile', 'appendFile',
'readIO', 'readLn', 'ioError', 'userError', 'catch'
),
/* here Prelude Types */
4 => array (
'Bool', 'Maybe', 'Either', 'Ord', 'Ordering',
'Char', 'String', 'Eq', 'Enum', 'Bounded',
'Int', 'Integer', 'Float', 'Double', 'Rational',
'Num', 'Real', 'Integral', 'Fractional',
'Floating', 'RealFrac', 'RealFloat', 'Monad',
'Functor', 'Show', 'ShowS', 'Read', 'ReadS',
'IO'
),
/* finally Prelude Exceptions */
5 => array (
'IOError', 'IOException'
)
),
/* highlighting symbols is really important in Haskell */
'SYMBOLS' => array(
'|', '->', '<-', '@', '!', '::', '_', '~', '=',
'&&', '||', '==', '/=', '<', '<=', '>',
'>=','+', '-', '*','/', '**', '^', '^^',
'>>=', '>>', '=<<', '$', '.', '$!',
'++', '!!'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => true,
2 => true, /* functions name are case seinsitive */
3 => true, /* types name too */
4 => true, /* finally exceptions too */
5 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #06c; font-weight: bold;', /* nice blue */
2 => 'color: #06c; font-weight: bold;', /* blue as well */
3 => 'font-weight: bold;', /* make the preduled functions bold */
4 => 'color: #cccc00; font-weight: bold;', /* give types a different bg */
5 => 'color: maroon;'
),
'COMMENTS' => array(
1 => 'color: #5d478b; font-style: italic;',
'MULTI' => 'color: #5d478b; font-style: italic;' /* light purpHle */
),
'ESCAPE_CHAR' => array(
),
'BRACKETS' => array(
0 => 'color: green;'
),
'STRINGS' => array(
0 => 'background-color: #3cb371;' /* nice green */
),
'NUMBERS' => array(
0 => 'color: red;' /* pink */
),
'METHODS' => array(
1 => 'color: #060;' /* dark green */
),
'REGEXPS' => array(
),
'SYMBOLS' => array(
0 => 'color: #66cc66; font-weight: bold;'
),
'SCRIPT' => array(
)
),
'URLS' => array(
/* some of keywords are Prelude functions */
1 => '',
/* link to the wanted library */
2 => 'http://haskell.org/ghc/docs/latest/html/libraries/base/{FNAME}.html',
/* link to Prelude functions */
3 => 'http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#v:{FNAME}',
/* link to Prelude types */
4 => 'http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#t:{FNAME}',
/* link to Prelude exceptions */
5 => 'http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#t:{FNAME}',
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,104 @@
<?php
/*************************************************************************************
* hq9plus.php
* ----------
* Author: Benny Baumann (BenBE@geshi.org)
* Copyright: (c) 2008 Benny Baumann (http://qbnz.com/highlighter/)
* Release Version: 1.0.8.2
* Date Started: 2009/10/31
*
* HQ9+ language file for GeSHi.
*
* CHANGES
* -------
* 2008/10/31 (1.0.8.1)
* - First Release
*
* TODO
* ----
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'HQ9+',
'COMMENT_SINGLE' => array(),
'COMMENT_MULTI' => array(),
'COMMENT_REGEXP' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_UPPER,
'QUOTEMARKS' => array(),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
),
'SYMBOLS' => array(
'H', 'Q', '9', '+', 'h', 'q'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false
),
'STYLES' => array(
'KEYWORDS' => array(
),
'COMMENTS' => array(
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #a16000;'
),
'ESCAPE_CHAR' => array(
),
'SCRIPT' => array(
),
'REGEXPS' => array(
)
),
'URLS' => array(
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'ENABLE_FLAGS' => array(
'KEYWORDS' => GESHI_NEVER,
'COMMENTS' => GESHI_NEVER,
'STRINGS' => GESHI_NEVER,
'REGEXPS' => GESHI_NEVER,
'NUMBERS' => GESHI_NEVER
)
)
);
?>

View file

@ -0,0 +1,255 @@
<?php
/*************************************************************************************
* html4strict.php
* ---------------
* Author: Nigel McNie (nigel@geshi.org)
* Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
* Release Version: 1.0.7.21
* Date Started: 2004/07/10
*
* HTML 4.01 strict language file for GeSHi.
*
* CHANGES
* -------
* 2005/12/28 (1.0.4)
* - Removed escape character for strings
* 2004/11/27 (1.0.3)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.2)
* - Added support for URLs
* 2004/08/05 (1.0.1)
* - Added INS and DEL
* - Removed the background colour from tags' styles
* 2004/07/14 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
* * Check that only HTML4 strict attributes are highlighted
* * Eliminate empty tags that aren't allowed in HTML4 strict
* * Split to several files - html4trans, xhtml1 etc
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'HTML',
'COMMENT_SINGLE' => array(),
'COMMENT_MULTI' => array('<!--' => '-->'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
),
2 => array(
'&lt;a&gt;', '&lt;abbr&gt;', '&lt;acronym&gt;', '&lt;address&gt;', '&lt;applet&gt;',
'&lt;a', '&lt;abbr', '&lt;acronym', '&lt;address', '&lt;applet',
'&lt;/a&gt;', '&lt;/abbr&gt;', '&lt;/acronym&gt;', '&lt;/address&gt;', '&lt;/applet&gt;',
'&lt;/a', '&lt;/abbr', '&lt;/acronym', '&lt;/address', '&lt;/applet',
'&lt;base&gt;', '&lt;basefont&gt;', '&lt;bdo&gt;', '&lt;big&gt;', '&lt;blockquote&gt;', '&lt;body&gt;', '&lt;br&gt;', '&lt;button&gt;', '&lt;b&gt;',
'&lt;base', '&lt;basefont', '&lt;bdo', '&lt;big', '&lt;blockquote', '&lt;body', '&lt;br', '&lt;button', '&lt;b',
'&lt;/base&gt;', '&lt;/basefont&gt;', '&lt;/bdo&gt;', '&lt;/big&gt;', '&lt;/blockquote&gt;', '&lt;/body&gt;', '&lt;/br&gt;', '&lt;/button&gt;', '&lt;/b&gt;',
'&lt;/base', '&lt;/basefont', '&lt;/bdo', '&lt;/big', '&lt;/blockquote', '&lt;/body', '&lt;/br', '&lt;/button', '&lt;/b',
'&lt;caption&gt;', '&lt;center&gt;', '&lt;cite&gt;', '&lt;code&gt;', '&lt;colgroup&gt;', '&lt;col&gt;',
'&lt;caption', '&lt;center', '&lt;cite', '&lt;code', '&lt;colgroup', '&lt;col',
'&lt;/caption&gt;', '&lt;/center&gt;', '&lt;/cite&gt;', '&lt;/code&gt;', '&lt;/colgroup&gt;', '&lt;/col&gt;',
'&lt;/caption', '&lt;/center', '&lt;/cite', '&lt;/code', '&lt;/colgroup', '&lt;/col',
'&lt;dd&gt;', '&lt;del&gt;', '&lt;dfn&gt;', '&lt;dir&gt;', '&lt;div&gt;', '&lt;dl&gt;', '&lt;dt&gt;',
'&lt;dd', '&lt;del', '&lt;dfn', '&lt;dir', '&lt;div', '&lt;dl', '&lt;dt',
'&lt;/dd&gt;', '&lt;/del&gt;', '&lt;/dfn&gt;', '&lt;/dir&gt;', '&lt;/div&gt;', '&lt;/dl&gt;', '&lt;/dt&gt;',
'&lt;/dd', '&lt;/del', '&lt;/dfn', '&lt;/dir', '&lt;/div', '&lt;/dl', '&lt;/dt',
'&lt;em&gt;',
'&lt;em',
'&lt;/em&gt;',
'&lt;/em',
'&lt;fieldset&gt;', '&lt;font&gt;', '&lt;form&gt;', '&lt;frame&gt;', '&lt;frameset&gt;',
'&lt;fieldset', '&lt;font', '&lt;form', '&lt;frame', '&lt;frameset',
'&lt;/fieldset&gt;', '&lt;/font&gt;', '&lt;/form&gt;', '&lt;/frame&gt;', '&lt;/frameset&gt;',
'&lt;/fieldset', '&lt;/font', '&lt;/form', '&lt;/frame', '&lt;/frameset',
'&lt;h1&gt;', '&lt;h2&gt;', '&lt;h3&gt;', '&lt;h4&gt;', '&lt;h5&gt;', '&lt;h6&gt;', '&lt;head&gt;', '&lt;hr&gt;', '&lt;html&gt;',
'&lt;h1', '&lt;h2', '&lt;h3', '&lt;h4', '&lt;h5', '&lt;h6', '&lt;head', '&lt;hr', '&lt;html',
'&lt;/h1&gt;', '&lt;/h2&gt;', '&lt;/h3&gt;', '&lt;/h4&gt;', '&lt;/h5&gt;', '&lt;/h6&gt;', '&lt;/head&gt;', '&lt;/hr&gt;', '&lt;/html&gt;',
'&lt;/h1', '&lt;/h2', '&lt;/h3', '&lt;/h4', '&lt;/h5', '&lt;/h6', '&lt;/head', '&lt;/hr', '&lt;/html',
'&lt;iframe&gt;', '&lt;ilayer&gt;', '&lt;img&gt;', '&lt;input&gt;', '&lt;ins&gt;', '&lt;isindex&gt;', '&lt;i&gt;',
'&lt;iframe', '&lt;ilayer', '&lt;img', '&lt;input', '&lt;ins', '&lt;isindex', '&lt;i',
'&lt;/iframe&gt;', '&lt;/ilayer&gt;', '&lt;/img&gt;', '&lt;/input&gt;', '&lt;/ins&gt;', '&lt;/isindex&gt;', '&lt;/i&gt;',
'&lt;/iframe', '&lt;/ilayer', '&lt;/img', '&lt;/input', '&lt;/ins', '&lt;/isindex', '&lt;/i',
'&lt;kbd&gt;',
'&lt;kbd',
'&t;/kbd&gt;',
'&lt;/kbd',
'&lt;label&gt;', '&lt;legend&gt;', '&lt;link&gt;', '&lt;li&gt;',
'&lt;label', '&lt;legend', '&lt;link', '&lt;li',
'&lt;/label&gt;', '&lt;/legend&gt;', '&lt;/link&gt;', '&lt;/li&gt;',
'&lt;/label', '&lt;/legend', '&lt;/link', '&lt;/li',
'&lt;map&gt;', '&lt;meta&gt;',
'&lt;map', '&lt;meta',
'&lt;/map&gt;', '&lt;/meta&gt;',
'&lt;/map', '&lt;/meta',
'&lt;noframes&gt;', '&lt;noscript&gt;',
'&lt;noframes', '&lt;noscript',
'&lt;/noframes&gt;', '&lt;/noscript&gt;',
'&lt;/noframes', '&lt;/noscript',
'&lt;object&gt;', '&lt;ol&gt;', '&lt;optgroup&gt;', '&lt;option&gt;',
'&lt;object', '&lt;ol', '&lt;optgroup', '&lt;option',
'&lt;/object&gt;', '&lt;/ol&gt;', '&lt;/optgroup&gt;', '&lt;/option&gt;',
'&lt;/object', '&lt;/ol', '&lt;/optgroup', '&lt;/option',
'&lt;param&gt;', '&lt;pre&gt;', '&lt;p&gt;',
'&lt;param', '&lt;pre', '&lt;p',
'&lt;/param&gt;', '&lt;/pre&gt;', '&lt;/p&gt;',
'&lt;/param', '&lt;/pre', '&lt;/p',
'&lt;q&gt;',
'&lt;q',
'&lt;/q&gt;',
'&lt;/q',
'&lt;samp&gt;', '&lt;script&gt;', '&lt;select&gt;', '&lt;small&gt;', '&lt;span&gt;', '&lt;strike&gt;', '&lt;strong&gt;', '&lt;style&gt;', '&lt;sub&gt;', '&lt;sup&gt;', '&lt;s&gt;',
'&lt;samp', '&lt;script', '&lt;select', '&lt;small', '&lt;span', '&lt;strike', '&lt;strong', '&lt;style', '&lt;sub', '&lt;sup', '&lt;s',
'&lt;/samp&gt;', '&lt;/script&gt;', '&lt;/select&gt;', '&lt;/small&gt;', '&lt;/span&gt;', '&lt;/strike&gt;', '&lt;/strong&gt;', '&lt;/style&gt;', '&lt;/sub&gt;', '&lt;/sup&gt;', '&lt;/s&gt;',
'&lt;/samp', '&lt;/script', '&lt;/select', '&lt;/small', '&lt;/span', '&lt;/strike', '&lt;/strong', '&lt;/style', '&lt;/sub', '&lt;/sup', '&lt;/s',
'&lt;table&gt;', '&lt;tbody&gt;', '&lt;td&gt;', '&lt;textarea&gt;', '&lt;text&gt;', '&lt;tfoot&gt;', '&lt;thead&gt;', '&lt;th&gt;', '&lt;title&gt;', '&lt;tr&gt;', '&lt;tt&gt;',
'&lt;table', '&lt;tbody', '&lt;td', '&lt;textarea', '&lt;text', '&lt;tfoot', '&lt;tfoot', '&lt;thead', '&lt;th', '&lt;title', '&lt;tr', '&lt;tt',
'&lt;/table&gt;', '&lt;/tbody&gt;', '&lt;/td&gt;', '&lt;/textarea&gt;', '&lt;/text&gt;', '&lt;/tfoot&gt;', '&lt;/thead', '&lt;/tfoot', '&lt;/th&gt;', '&lt;/title&gt;', '&lt;/tr&gt;', '&lt;/tt&gt;',
'&lt;/table', '&lt;/tbody', '&lt;/td', '&lt;/textarea', '&lt;/text', '&lt;/tfoot', '&lt;/tfoot', '&lt;/thead', '&lt;/th', '&lt;/title', '&lt;/tr', '&lt;/tt',
'&lt;ul&gt;', '&lt;u&gt;',
'&lt;ul', '&lt;u',
'&lt;/ul&gt;', '&lt;/ul&gt;',
'&lt;/ul', '&lt;/u',
'&lt;var&gt;',
'&lt;var',
'&lt;/var&gt;',
'&lt;/var',
'&gt;', '&lt;'
),
3 => array(
'abbr', 'accept-charset', 'accept', 'accesskey', 'action', 'align', 'alink', 'alt', 'archive', 'axis',
'background', 'bgcolor', 'border',
'cellpadding', 'cellspacing', 'char', 'char', 'charoff', 'charset', 'checked', 'cite', 'class', 'classid', 'clear', 'code', 'codebase', 'codetype', 'color', 'cols', 'colspan', 'compact', 'content', 'coords',
'data', 'datetime', 'declare', 'defer', 'dir', 'disabled',
'enctype',
'face', 'for', 'frame', 'frameborder',
'headers', 'height', 'href', 'hreflang', 'hspace', 'http-equiv',
'id', 'ismap',
'label', 'lang', 'language', 'link', 'longdesc',
'marginheight', 'marginwidth', 'maxlength', 'media', 'method', 'multiple',
'name', 'nohref', 'noresize', 'noshade', 'nowrap',
'object', 'onblur', 'onchange', 'onclick', 'ondblclick', 'onfocus', 'onkeydown', 'onkeypress', 'onkeyup', 'onload', 'onmousedown', 'onmousemove', 'onmouseout', 'onmouseover', 'onmouseup', 'onreset', 'onselect', 'onsubmit', 'onunload',
'profile', 'prompt',
'readonly', 'rel', 'rev', 'rowspan', 'rows', 'rules',
'scheme', 'scope', 'scrolling', 'selected', 'shape', 'size', 'span', 'src', 'standby', 'start', 'style', 'summary',
'tabindex', 'target', 'text', 'title', 'type',
'usemap',
'valign', 'value', 'valuetype', 'version', 'vlink', 'vspace',
'width'
)
),
'SYMBOLS' => array(
'/', '='
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #000066;'
),
'COMMENTS' => array(
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'SCRIPT' => array(
0 => 'color: #00bbdd;',
1 => 'color: #ddbb00;',
2 => 'color: #009900;'
),
'REGEXPS' => array(
)
),
'URLS' => array(
1 => '',
2 => 'http://december.com/html/4/element/{FNAME}.html',
3 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_ALWAYS,
'SCRIPT_DELIMITERS' => array(
0 => array(
'<!DOCTYPE' => '>'
),
1 => array(
'&' => ';'
),
2 => array(
'<' => '>'
)
),
'HIGHLIGHT_STRICT_BLOCK' => array(
0 => false,
1 => false,
2 => true
),
'TAB_WIDTH' => 4
);
?>

View file

@ -0,0 +1,119 @@
<?php
/*************************************************************************************
* idl.php
* -------
* Author: Cedric Bosdonnat (cedricbosdo@openoffice.org)
* Copyright: (c) 2006 Cedric Bosdonnat
* Release Version: 1.0.7.21
* Date Started: 2006/08/20
*
* Unoidl language file for GeSHi.
*
* 2006/08/20 (1.0.0)
* - First Release
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Uno Idl',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'published', 'get', 'set', 'service', 'singleton', 'type', 'module', 'interface', 'struct',
'const', 'constants', 'exception', 'enum', 'raises', 'typedef'
),
2 => array(
'bound', 'maybeambiguous', 'maybedefault', 'maybevoid', 'oneway', 'optional',
'readonly', 'in', 'out', 'inout', 'attribute', 'transient', 'removable'
),
3 => array(
'True', 'False', 'TRUE', 'FALSE'
),
4 => array(
'string', 'long', 'byte', 'hyper', 'boolean', 'any', 'char', 'double', 'long',
'void', 'sequence', 'unsigned', '...'
),
),
'SYMBOLS' => array(
'(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':', ';'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => true,
2 => true,
3 => true,
4 => true,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #990078; font-weight: bold',
2 => 'color: #36dd1c;',
3 => 'color: #990078; font-weight: bold',
4 => 'color: #0000ec;'
),
'COMMENTS' => array(
1 => 'color: #3f7f5f;',
2 => 'color: #808080;',
'MULTI' => 'color: #4080ff; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #666666; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #808080;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #0000dd;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
1 => '::'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,123 @@
<?php
/*************************************************************************************
* ini.php
* --------
* Author: deguix (cevo_deguix@yahoo.com.br)
* Copyright: (c) 2005 deguix
* Release Version: 1.0.7.21
* Date Started: 2005/03/27
*
* INI language file for GeSHi.
*
* CHANGES
* -------
* 2005/12/28 (1.0.1)
* - Removed unnecessary keyword style index
* - Added support for " strings
* 2005/04/05 (1.0.0)
* - First Release
*
* TODO (updated 2005/03/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'INI',
'COMMENT_SINGLE' => array(0 => ';'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
),
'SYMBOLS' => array(
'[', ']', '='
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false
),
'STYLES' => array(
'KEYWORDS' => array(
),
'COMMENTS' => array(
0 => 'color: #666666; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => ''
),
'BRACKETS' => array(
0 => ''
),
'STRINGS' => array(
0 => 'color: #933;'
),
'NUMBERS' => array(
0 => ''
),
'METHODS' => array(
0 => ''
),
'SYMBOLS' => array(
0 => 'color: #000066; font-weight:bold;'
),
'REGEXPS' => array(
0 => 'color: #000066; font-weight:bold;',
1 => 'color: #000099;',
2 => 'color: #660066;'
),
'SCRIPT' => array(
0 => ''
)
),
'URLS' => array(
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
0 => '\[.+\]',
1 => array(
GESHI_SEARCH => '([a-zA-Z0-9_]+\s*)=(.+)',
GESHI_REPLACE => '\\1',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '',
GESHI_AFTER => '=\\2'
),
2 => array(
// Evil hackery to get around GeSHi bug: <>" and ; are added so <span>s can be matched
// Explicit match on variable names because if a comment is before the first < of the span
// gets chewed up...
GESHI_SEARCH => '([<>";a-zA-Z0-9_]+\s*)=(.+)',
GESHI_REPLACE => '\\2',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '\\1=',
GESHI_AFTER => ''
)
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,213 @@
<?php
/*************************************************************************************
* Inno.php
* ----------
* Author: Thomas Klingler (hotline@theratech.de) based on delphi.php from Járja Norbert (jnorbi@vipmail.hu)
* Copyright: (c) 2004 Járja Norbert, Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.7.21
* Date Started: 2005/07/29
*
* Inno Script language inkl. Delphi (Object Pascal) language file for GeSHi.
*
* CHANGES
* -------
* 2005/09/03
* - First Release
*
* TODO (updated 2005/07/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Inno',
'COMMENT_SINGLE' => array(1 => '//'),
'COMMENT_MULTI' => array('(*' => '*)'),
'CASE_KEYWORDS' => 0,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array('Setup','Types','Components','Tasks','Dirs','Files','Icons','INI','InstallDelete','Languages','Messages',
'CustomMessage','LangOptions','Registry','RUN','UninstallDelete','UninstallRun'
,'app','win','sys','syswow64','src','sd','pf','pf32','pf64','cf','cf32','cf64','tmp','fonts','dao',
'group','localappdata','sendto','userappdata','commonappdata','userdesktop','commondesktop','userdocs',
'commondocs','userfavorites','commonfavorites','userprograms','commonprograms','userstartmenu',
'commonstartmenu','userstartup','commonstartup','usertemplates','commontemplates'
),
2 => array(
'nil', 'false', 'true', 'var', 'type', 'const','And', 'Array', 'As', 'Begin', 'Case', 'Class', 'Constructor', 'Destructor', 'Div', 'Do', 'DownTo', 'Else',
'End', 'Except', 'File', 'Finally', 'For', 'Function', 'Goto', 'If', 'Implementation', 'In', 'Inherited', 'Interface',
'Is', 'Mod', 'Not', 'Object', 'Of', 'On', 'Or', 'Packed', 'Procedure', 'Property', 'Raise', 'Record',
'Repeat', 'Set', 'Shl', 'Shr', 'Then', 'ThreadVar', 'To', 'Try', 'Unit', 'Until', 'Uses', 'While', 'With', 'Xor',
'HKCC','HKCR','HKCU','HKLM','HKU','alwaysoverwrite','alwaysskipifsameorolder','append',
'binary','classic','closeonexit','comparetimestamp','confirmoverwrite',
'createkeyifdoesntexist','createonlyiffileexists','createvalueifdoesntexist',
'deleteafterinstall','deletekey','deletevalue','dirifempty','dontcloseonexit',
'dontcopy','dontcreatekey','disablenouninstallwarning','dword','exclusive','expandsz',
'external','files','filesandordirs','fixed','fontisnttruetype','ignoreversion','iscustom','isreadme',
'modern','multisz','new','noerror','none','normal','nowait','onlyifdestfileexists',
'onlyifdoesntexist','onlyifnewer','overwrite','overwritereadonly','postinstall',
'preservestringtype','promptifolder','regserver','regtypelib','restart','restartreplace',
'runhidden','runmaximized','runminimized','sharedfile','shellexec','showcheckbox',
'skipifnotsilent','skipifsilent','silent','skipifdoesntexist',
'skipifsourcedoesntexist','sortfilesbyextension','unchecked','uninsalwaysuninstall',
'uninsclearvalue','uninsdeleteentry','uninsdeletekey','uninsdeletekeyifempty',
'uninsdeletesection','uninsdeletesectionifempty','uninsdeletevalue',
'uninsneveruninstall','useapppaths','verysilent','waituntilidle'
),
3 => array(
'Abs', 'Addr', 'AnsiCompareStr', 'AnsiCompareText', 'AnsiContainsStr', 'AnsiEndsStr', 'AnsiIndexStr', 'AnsiLeftStr',
'AnsiLowerCase', 'AnsiMatchStr', 'AnsiMidStr', 'AnsiPos', 'AnsiReplaceStr', 'AnsiReverseString', 'AnsiRightStr',
'AnsiStartsStr', 'AnsiUpperCase', 'ArcCos', 'ArcSin', 'ArcTan', 'Assigned', 'BeginThread', 'Bounds', 'CelsiusToFahrenheit',
'ChangeFileExt', 'Chr', 'CompareStr', 'CompareText', 'Concat', 'Convert', 'Copy', 'Cos', 'CreateDir', 'CurrToStr',
'CurrToStrF', 'Date', 'DateTimeToFileDate', 'DateTimeToStr', 'DateToStr', 'DayOfTheMonth', 'DayOfTheWeek', 'DayOfTheYear',
'DayOfWeek', 'DaysBetween', 'DaysInAMonth', 'DaysInAYear', 'DaySpan', 'DegToRad', 'DeleteFile', 'DiskFree', 'DiskSize',
'DupeString', 'EncodeDate', 'EncodeDateTime', 'EncodeTime', 'EndOfADay', 'EndOfAMonth', 'Eof', 'Eoln', 'Exp', 'ExtractFileDir',
'ExtractFileDrive', 'ExtractFileExt', 'ExtractFileName', 'ExtractFilePath', 'FahrenheitToCelsius', 'FileAge',
'FileDateToDateTime', 'FileExists', 'FilePos', 'FileSearch', 'FileSetDate', 'FileSize', 'FindClose', 'FindCmdLineSwitch',
'FindFirst', 'FindNext', 'FloatToStr', 'FloatToStrF', 'Format', 'FormatCurr', 'FormatDateTime', 'FormatFloat', 'Frac',
'GetCurrentDir', 'GetLastError', 'GetMem', 'High', 'IncDay', 'IncMinute', 'IncMonth', 'IncYear', 'InputBox',
'InputQuery', 'Int', 'IntToHex', 'IntToStr', 'IOResult', 'IsInfinite', 'IsLeapYear', 'IsMultiThread', 'IsNaN',
'LastDelimiter', 'Length', 'Ln', 'Lo', 'Log10', 'Low', 'LowerCase', 'Max', 'Mean', 'MessageDlg', 'MessageDlgPos',
'MonthOfTheYear', 'Now', 'Odd', 'Ord', 'ParamCount', 'ParamStr', 'Pi', 'Point', 'PointsEqual', 'Pos', 'Pred',
'Printer', 'PromptForFileName', 'PtInRect', 'RadToDeg', 'Random', 'RandomRange', 'RecodeDate', 'RecodeTime', 'Rect',
'RemoveDir', 'RenameFile', 'Round', 'SeekEof', 'SeekEoln', 'SelectDirectory', 'SetCurrentDir', 'Sin', 'SizeOf',
'Slice', 'Sqr', 'Sqrt', 'StringOfChar', 'StringReplace', 'StringToWideChar', 'StrToCurr', 'StrToDate', 'StrToDateTime',
'StrToFloat', 'StrToInt', 'StrToInt64', 'StrToInt64Def', 'StrToIntDef', 'StrToTime', 'StuffString', 'Succ', 'Sum', 'Tan',
'Time', 'TimeToStr', 'Tomorrow', 'Trunc', 'UpCase', 'UpperCase', 'VarType', 'WideCharToString', 'WrapText', 'Yesterday',
'Append', 'AppendStr', 'Assign', 'AssignFile', 'AssignPrn', 'Beep', 'BlockRead', 'BlockWrite', 'Break',
'ChDir', 'Close', 'CloseFile', 'Continue', 'DateTimeToString', 'Dec', 'DecodeDate', 'DecodeDateTime',
'DecodeTime', 'Delete', 'Dispose', 'EndThread', 'Erase', 'Exclude', 'Exit', 'FillChar', 'Flush', 'FreeAndNil',
'FreeMem', 'GetDir', 'GetLocaleFormatSettings', 'Halt', 'Inc', 'Include', 'Insert', 'MkDir', 'Move', 'New',
'ProcessPath', 'Randomize', 'Read', 'ReadLn', 'ReallocMem', 'Rename', 'ReplaceDate', 'ReplaceTime',
'Reset', 'ReWrite', 'RmDir', 'RunError', 'Seek', 'SetLength', 'SetString', 'ShowMessage', 'ShowMessageFmt',
'ShowMessagePos', 'Str', 'Truncate', 'Val', 'Write', 'WriteLn',
'AdminPrivilegesRequired','AfterInstall','AllowCancelDuringInstall','AllowNoIcons','AllowRootDirectory','AllowUNCPath','AlwaysRestart','AlwaysShowComponentsList','AlwaysShowDirOnReadyPage','AlwaysShowGroupOnReadyPage ','AlwaysUsePersonalGroup','AppComments','AppContact','AppCopyright','AppendDefaultDirName',
'AppendDefaultGroupName','AppId','AppModifyPath','AppMutex','AppName','AppPublisher',
'AppPublisherURL','AppReadmeFile','AppSupportURL','AppUpdatesURL','AppVerName','AppVersion',
'Attribs','BackColor','BackColor2','BackColorDirection','BackSolid','BeforeInstall',
'ChangesAssociations','ChangesEnvironment','Check','CodeFile','Comment','Components','Compression','CopyMode',
'CreateAppDir','CreateUninstallRegKey','DefaultDirName','DefaultGroupName',
'DefaultUserInfoName','DefaultUserInfoOrg','DefaultUserInfoSerial',
'Description','DestDir','DestName','DirExistsWarning',
'DisableDirPage','DisableFinishedPage',
'DisableProgramGroupPage','DisableReadyMemo','DisableReadyPage',
'DisableStartupPrompt','DiskClusterSize','DiskSliceSize','DiskSpaceMBLabel',
'DiskSpanning','DontMergeDuplicateFiles','EnableDirDoesntExistWarning','Encryption',
'Excludes','ExtraDiskSpaceRequired','Filename','Flags','FlatComponentsList','FontInstall',
'GroupDescription','HotKey','IconFilename','IconIndex','InfoAfterFile','InfoBeforeFile',
'InternalCompressLevel','Key','LanguageDetectionMethod','Languages',
'LicenseFile','MergeDuplicateFiles','MessagesFile','MinVersion','Name',
'OnlyBelowVersion','OutputBaseFilename','OutputManifestFile','OutputDir',
'Parameters','Password','Permissions','PrivilegesRequired','ReserveBytes',
'RestartIfNeededByRun','Root','RunOnceId','Section','SetupIconFile',
'ShowComponentSizes','ShowLanguageDialog','ShowTasksTreeLines','SlicesPerDisk',
'SolidCompression','Source','SourceDir','StatusMsg','Subkey','Tasks',
'TimeStampRounding','TimeStampsInUTC','TouchDate','TouchTime','Type','Types',
'UninstallDisplayIcon','UninstallDisplayName','UninstallFilesDir','UninstallIconFile',
'UninstallLogMode','UninstallRestartComputer','UninstallStyle','Uninstallable',
'UpdateUninstallLogAppName','UsePreviousAppDir','UsePreviousGroup',
'UsePreviousTasks','UsePreviousSetupType','UsePreviousUserInfo',
'UserInfoPage','UseSetupLdr','ValueData','ValueName','ValueType',
'VersionInfoVersion','VersionInfoCompany','VersionInfoDescription','VersionInfoTextVersion',
'WindowResizable','WindowShowCaption','WindowStartMaximized',
'WindowVisible','WizardImageBackColor','WizardImageFile','WizardImageStretch','WizardSmallImageBackColor','WizardSmallImageFile','WizardStyle','WorkingDir'
),
4 => array(
'AnsiChar', 'AnsiString', 'Boolean', 'Byte', 'Cardinal', 'Char', 'Comp', 'Currency', 'Double', 'Extended',
'Int64', 'Integer', 'LongInt', 'LongWord', 'PAnsiChar', 'PAnsiString', 'PChar', 'PCurrency', 'PDateTime',
'PExtended', 'PInt64', 'Pointer', 'PShortString', 'PString', 'PVariant', 'PWideChar', 'PWideString',
'Real', 'Real48', 'ShortInt', 'ShortString', 'Single', 'SmallInt', 'String', 'TBits', 'TConvType', 'TDateTime',
'Text', 'TextFile', 'TFloatFormat', 'TFormatSettings', 'TList', 'TObject', 'TOpenDialog', 'TPoint',
'TPrintDialog', 'TRect', 'TReplaceFlags', 'TSaveDialog', 'TSearchRec', 'TStringList', 'TSysCharSet',
'TThreadFunc', 'Variant', 'WideChar', 'WideString', 'Word'
),
),
'SYMBOLS' => array(
'(', ')', '[', ']', '{', '}', '@', '%', '&', '*', '|', '/', '<', '>'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => false,
2 => false,
3 => false,
4 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000000; font-weight: bold;',/*bold Black*/
2 => 'color: #000000;font-style: italic;',/*Black*/
3 => 'color: #0000FF;',/*blue*/
4 => 'color: #CC0000;'/*red*/
),
'COMMENTS' => array(
1 => 'color: #33FF00; font-style: italic;',
'MULTI' => 'color: #33FF00; font-style: italic;'
),
'ESCAPE_CHAR' => array(
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
1 => 'color: #006600;'
),
'REGEXPS' => array(
),
'SYMBOLS' => array(
0 => 'color: #000000; font-weight: bold;',
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,122 @@
<?php
/*************************************************************************************
* intercal.php
* ----------
* Author: Benny Baumann (BenBE@geshi.org)
* Copyright: (c) 2008 Benny Baumann (http://qbnz.com/highlighter/)
* Release Version: 1.0.8.2
* Date Started: 2009/10/31
*
* INTERCAL language file for GeSHi.
*
* CHANGES
* -------
* 2008/10/31 (1.0.8.1)
* - First Release
*
* TODO
* ----
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'INTERCAL',
'COMMENT_SINGLE' => array(),
'COMMENT_MULTI' => array(),
'COMMENT_REGEXP' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_UPPER,
'QUOTEMARKS' => array(),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
//Politeness
1 => array(
'DO', 'DONT', 'NOT', 'PLEASE', 'PLEASENT', 'MAYBE'
),
//Statements
2 => array(
'STASH', 'RETRIEVE', 'NEXT', 'RESUME', 'FORGET', 'ABSTAIN',
'COME', 'FROM', 'CALCULATING', 'REINSTATE', 'IGNORE', 'REMEMBER',
'WRITE', 'IN', 'READ', 'OUT', 'GIVE', 'UP'
)
),
'SYMBOLS' => array(
'.', ',', ':', ';', '#',
'~', '$', '&', '?',
'\'', '"', '<-'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000080;',
2 => 'color: #000080; font-width: bold;'
),
'COMMENTS' => array(
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'ESCAPE_CHAR' => array(
),
'SCRIPT' => array(
),
'REGEXPS' => array(
1 => 'color: #808080; font-style: italic;'
)
),
'URLS' => array(
1 => '',
2 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
1 => '^\(\d+\)'
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'ENABLE_FLAGS' => array(
'COMMENTS' => GESHI_NEVER,
'STRINGS' => GESHI_NEVER,
'NUMBERS' => GESHI_NEVER
)
)
);
?>

View file

@ -0,0 +1,139 @@
<?php
/*************************************************************************************
* io.php
* -------
* Author: Nigel McNie (nigel@geshi.org)
* Copyright: (c) 2006 Nigel McNie (http://qbnz.com/highlighter/)
* Release Version: 1.0.7.21
* Date Started: 2006/09/23
*
* Io language file for GeSHi. Thanks to Johnathan Wright for the suggestion and help
* with this language :)
*
* CHANGES
* -------
* 2006/09/23(1.0.0)
* - First Release
*
* TODO
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Io',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'and', 'break', 'else', 'elseif', 'exit', 'for', 'foreach', 'if', 'ifFalse', 'ifNil',
'ifTrue', 'or', 'pass', 'raise', 'return', 'then', 'try', 'wait', 'while', 'yield'
),
2 => array(
'activate', 'activeCoroCount', 'asString', 'block', 'catch', 'clone', 'collectGarbage',
'compileString', 'continue', 'do', 'doFile', 'doMessage', 'doString', 'forward',
'getSlot', 'getenv', 'hasSlot', 'isActive', 'isNil', 'isResumable', 'list', 'message',
'method', 'parent', 'pause', 'perform', 'performWithArgList', 'print', 'proto',
'raiseResumable', 'removeSlot', 'resend', 'resume', 'schedulerSleepSeconds', 'self',
'sender', 'setSchedulerSleepSeconds', 'setSlot', 'shallowCopy', 'slotNames', 'super',
'system', 'thisBlock', 'thisContext', 'thisMessage', 'type', 'uniqueId', 'updateSlot',
'write'
),
3 => array(
'Array', 'AudioDevice', 'AudioMixer', 'Block', 'Box', 'Buffer', 'CFunction', 'CGI',
'Color', 'Curses', 'DBM', 'DNSResolver', 'DOConnection', 'DOProxy', 'DOServer',
'Date', 'Directory', 'Duration', 'DynLib', 'Error', 'Exception', 'FFT', 'File',
'Fnmatch', 'Font', 'Future', 'GL', 'GLE', 'GLScissor', 'GLU', 'GLUCylinder',
'GLUQuadric', 'GLUSphere', 'GLUT', 'Host', 'Image', 'Importer', 'LinkList', 'List',
'Lobby', 'Locals', 'MD5', 'MP3Decoder', 'MP3Encoder', 'Map', 'Message', 'Movie',
'NULL', 'Nil', 'Nop', 'Notifiction', 'Number', 'Object', 'OpenGL', 'Point', 'Protos',
'Regex', 'SGMLTag', 'SQLite', 'Server', 'ShowMessage', 'SleepyCat', 'SleepyCatCursor',
'Socket', 'SocketManager', 'Sound', 'Soup', 'Store', 'String', 'Tree', 'UDPSender',
'UDPReceiver', 'URL', 'User', 'Warning', 'WeakLink'
)
),
'SYMBOLS' => array(
'(', ')', '[', ']', '{', '}', '!', '@', '%', '&', '*', '|', '/', '<', '>'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #000066;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
2 => 'color: #808080; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
1 => 'color: #006600;',
2 => 'color: #006600;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
0 => 'color: #0000ff;'
),
'SCRIPT' => array(
0 => ''
)
),
'URLS' => array(
1 => '',
2 => '',
3 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,144 @@
<?php
/*************************************************************************************
* javascript.php
* --------------
* Author: Ben Keen (ben.keen@gmail.com)
* Copyright: (c) 2004 Ben Keen (ben.keen@gmail.com), Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.7.21
* Date Started: 2004/06/20
*
* JavaScript language file for GeSHi.
*
* CHANGES
* -------
* 2004/11/27 (1.0.1)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Javascript',
'COMMENT_SINGLE' => array(1 => '//'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'as', 'break', 'case', 'catch', 'continue', 'decodeURI', 'delete', 'do',
'else', 'encodeURI', 'eval', 'finally', 'for', 'if', 'in', 'is', 'item',
'instanceof', 'return', 'switch', 'this', 'throw', 'try', 'typeof', 'void',
'while', 'write', 'with'
),
2 => array(
'class', 'const', 'default', 'debugger', 'export', 'extends', 'false',
'function', 'import', 'namespace', 'new', 'null', 'package', 'private',
'protected', 'public', 'super', 'true', 'use', 'var'
),
3 => array(
// common functions for Window object
'alert', 'back', 'blur', 'close', 'confirm', 'focus', 'forward', 'home',
'name', 'navigate', 'onblur', 'onerror', 'onfocus', 'onload', 'onmove',
'onresize', 'onunload', 'open', 'print', 'prompt', 'scroll', 'status',
'stop',
)
),
'SYMBOLS' => array(
'(', ')', '[', ']', '{', '}', '!', '@', '%', '&', '*', '|', '/', '<', '>'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000066; font-weight: bold;',
2 => 'color: #003366; font-weight: bold;',
3 => 'color: #000066;'
),
'COMMENTS' => array(
1 => 'color: #009900; font-style: italic;',
'MULTI' => 'color: #009900; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #3366CC;'
),
'NUMBERS' => array(
0 => 'color: #CC0000;'
),
'METHODS' => array(
1 => 'color: #006600;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
0 => 'color: #0066FF;'
),
'SCRIPT' => array(
0 => '',
1 => '',
2 => '',
3 => ''
)
),
'URLS' => array(
1 => '',
2 => '',
3 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
0 => "/.*/([igm]*)?" // matches js reg exps
),
'STRICT_MODE_APPLIES' => GESHI_MAYBE,
'SCRIPT_DELIMITERS' => array(
0 => array(
'<script type="text/javascript">' => '</script>'
),
1 => array(
'<script language="javascript">' => '</script>'
)
),
'HIGHLIGHT_STRICT_BLOCK' => array(
0 => true,
1 => true
)
);
?>

View file

@ -0,0 +1,329 @@
<?php
/*************************************************************************************
* kixtart.php
* --------
* Author: Riley McArdle (riley@glyff.net)
* Copyright: (c) 2007 Riley McArdle (http://www.glyff.net/)
* Release Version: 1.0.8.2
* Date Started: 2007/08/31
*
* PHP language file for GeSHi.
*
* CHANGES
* -------
* 2007/08/31 (1.0.7.22)
* - First Release
*
* TODO (updated 2007/08/31)
* -------------------------
* *
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'KiXtart',
'COMMENT_SINGLE' => array(1 => ';'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
'While', 'Loop',
'Use',
'Small',
'Sleep',
'Shell',
'SetTime',
'SetM',
'SetL',
'Set',
'Select', 'Case',
'Run',
'Return',
'Redim',
'RD',
'Quit',
'Play',
'Move',
'MD',
'Include',
'If', 'Else', 'Endif',
'GoTo',
'GoSub',
'Go',
'Global',
'GetS',
'Get',
'Function', 'Endfunction',
'For', 'Next',
'Each',
'FlushKb',
'Exit',
'Do', 'Until',
'Display',
'Dim',
'Del',
'Debug',
'Copy',
'Cookie1',
'Color',
'CLS',
'CD',
'Call',
'Break',
'Big',
'Beep',
),
2 => array(
'@Address',
'@Build',
'@Color',
'@Comment',
'@CPU',
'@CRLF',
'@CSD',
'@CurDir',
'@Date',
'@Day',
'@Domain',
'@DOS',
'@Error',
'@FullName',
'@HomeDir',
'@HomeDrive',
'@HomeShr',
'@HostName',
'@InWin',
'@IPaddressX',
'@KiX',
'@LanRoot',
'@LDomain',
'@LDrive',
'@LM',
'@LogonMode',
'@LongHomeDir',
'@LServer',
'@MaxPWAge',
'@MDayNo',
'@MHz',
'@MonthNo',
'@Month',
'@MSecs',
'@OnWoW64',
'@PID',
'@PrimaryGroup',
'@Priv',
'@ProductSuite',
'@ProductType',
'@PWAge',
'@RAS',
'@Result',
'@RServer',
'@ScriptDir',
'@ScriptExe',
'@ScriptName',
'@SError',
'@SID',
'@Site',
'@StartDir',
'@SysLang',
'@Ticks',
'@Time',
'@TsSession',
'@UserID',
'@UserLang',
'@WDayNo',
'@Wksta',
'@WUserID',
'@YDayNo',
'@Year',
),
3 => array(
'WriteValue',
'WriteProfileString',
'WriteLine',
'VarTypeName',
'VarType',
'Val',
'UnloadHive',
'UCase',
'Ubound',
'Trim',
'Substr',
'SRnd',
'Split',
'SidToName',
'ShutDown',
'ShowProgramGroup',
'SetWallpaper',
'SetTitle',
'SetSystemState',
'SetOption',
'SetFocus',
'SetFileAttr',
'SetDefaultPrinter',
'SetConsole',
'SetAscii',
'SendMessage',
'SendKeys',
'SaveKey',
'RTrim',
'Round',
'Rnd',
'Right',
'RedirectOutput',
'ReadValue',
'ReadType',
'ReadProfileString',
'ReadLine',
'Open',
'MessageBox',
'MemorySize',
'LTrim',
'Logoff',
'LogEvent',
'LoadKey',
'LoadHive',
'Len',
'Left',
'LCase',
'KeyExist',
'KbHit',
'Join',
'IsDeclared',
'Int',
'InStrRev',
'InStr',
'InGroup',
'IIF',
'GetObject',
'GetFileVersion',
'GetFileTime',
'GetFileSize',
'GetFileAttr',
'GetDiskSpace',
'FreeFileHandle',
'FormatNumber',
'Fix',
'ExpandEnvironmentVars',
'Exist',
'Execute',
'EnumValue',
'EnumLocalGroup',
'EnumKey',
'EnumIpInfo',
'EnumGroup',
'Dir',
'DelValue',
'DelTree',
'DelProgramItem',
'DelProgramGroup',
'DelPrinterConnection',
'DelKey',
'DecToHex',
'CStr',
'CreateObject',
'CompareFileTimes',
'Close',
'ClearEventLog',
'CInt',
'Chr',
'CDbl',
'Box',
'BackupEventLog',
'At',
'AScan',
'Asc',
'AddProgramItem',
'AddProgramGroup',
'AddPrinterConnection',
'AddKey',
'Abs'
)
),
'SYMBOLS' => array(
'(', ')', '[', ']', '?', ':', '+', '-', '*', '/', '&', '|', '^', '~', '<', '>', '='
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #000066;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
1 => 'color: #006600;',
2 => 'color: #006600;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => 'http://www.kixtart.org/manual/Commands/{FNAMEL}.htm',
2 => '',
3 => 'http://www.kixtart.org/manual/Functions/{FNAMEL}.htm'
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
0 => true,
1 => true,
2 => true,
3 => true
),
'TAB_WIDTH' => 4
);
?>

View file

@ -0,0 +1,282 @@
<?php
/*************************************************************************************
* klonec.php
* --------
* Author: AUGER Mickael
* Copyright: Synchronic
* Release Version: 1.0.8.2
* Date Started: 2008/04/16
*
* KLone with C language file for GeSHi.
*
* CHANGES
* -------
* 2008/04/16 (1.0.8)
* - First Release
*
* TODO (updated 2008/04/16)
* -------------------------
* A tester et a completer si besoin
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'KLone C',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),//#pour precede les include de C
'COMMENT_MULTI' => array('/*' => '*/', '<!--' => '-->' ),//comentaires C et KLone suivi de ceux pour HTML
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(//mots-cles C
'if', 'return', 'while', 'case', 'class', 'continue', 'default',
'do', 'else', 'for', 'switch', 'goto',
'null', 'break', 'true', 'enum', 'extern', 'inline', 'false'
),
2 => array(//mots-cles KLone
'out', 'request', 'response',
),
3 => array(//fonctions C usuelles
'printf', 'malloc', 'fopen', 'fclose', 'free', 'fputs', 'fgets', 'feof', 'fwrite',
'perror', 'ferror', 'qsort', 'stats', 'sscanf', 'scanf',
'strdup', 'strcpy', 'strcmp', 'strncpy', 'strcasecmp', 'cat', 'strcat', 'strstr',
'strlen', 'strtof', 'strtod', 'strtok', 'towlower', 'towupper',
'cd', 'system', 'exit', 'exec', 'fork', 'vfork', 'kill', 'signal', 'syslog',
'usleep', 'utime', 'wait', 'waitpid', 'waitid',
'ceil', 'eval', 'round', 'floor',
'atoi', 'atol', 'abs', 'cos', 'sin', 'tan', 'acos', 'asin', 'atan', 'exp',
'time', 'ctime', 'localtime', 'asctime', 'gmtime', 'difftime', 'date'
),
4 => array(//fonctions KLone usuelles
'request_get_cookies', 'request_get_cookie', 'request_get_args', 'request_get_arg',
'request_io', 'request_get_uri', 'request_get_filename', 'request_get_query_string', 'request_get_path_info',
'request_get_if_modified_since', 'request_get_http', 'request_get_client_request',
'request_get_content_length', 'request_get_uploads', 'request_get_uploaded_file',
'request_get_method', 'request_get_protocol', 'request_get_resolved_filename',
'request_get_resolved_path_info', 'request_get_addr', 'request_get_peer_addr',
'request_get_header', 'request_get_field', 'request_get_field_value',
'response_set_content_encoding', 'response_disable_caching', 'response_enable_caching',
'response_set_cookie', 'response_set_method', 'response_get_method',
'response_print_header', 'response_set_field', 'response_del_field',
'response_set_content_type', 'response_set_date', 'response_set_last_modified',
'response_set_content_length', 'response_get_status', 'response_get_header',
'response_io', 'response_redirect', 'response_set_status',
'session_get_vars', 'session_get', 'session_set', 'session_age', 'session_clean', 'session_del',
'io_type', 'io_pipe', 'io_dup', 'io_copy', 'io_seek', 'io_tell', 'io_close',
'io_free', 'io_read', 'io_printf', 'io_flush', 'io_write', 'io_putc', 'io_getc',
'io_get_until', 'io_gets', 'io_codec_add_head', 'io_codec_add_tail',
'io_codecs_remove', 'io_name_set', 'io_name_get'
),
5 => array(//types C
'auto', 'char', 'const', 'double', 'float', 'int', 'long',
'register', 'short', 'signed', 'sizeof', 'static', 'string', 'struct',
'typedef', 'union', 'unsigned', 'void', 'volatile',
'wchar_t', 'time_t', 'FILE'
),
6 => array(//mots-cles HTML
'a', 'abbr', 'acronym', 'address', 'applet',
'base', 'basefont', 'bdo', 'big', 'blockquote', 'body', 'br', 'button', 'b',
'caption', 'center', 'cite', 'code', 'colgroup', 'col',
'dd', 'del', 'dfn', 'dir', 'div', 'dl', 'dt',
'em',
'fieldset', 'font', 'form', 'frame', 'frameset',
'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'hr', 'html',
'iframe', 'ilayer', 'img', 'input', 'ins', 'isindex', 'i',
'kbd',
'label', 'legend', 'link', 'li',
'map', 'meta',
'noframes', 'noscript',
'object', 'ol', 'optgroup', 'option',
'param', 'pre', 'p',
'q',
'samp', 'script', 'select', 'small', 'span', 'strike', 'strong', 'style', 'sub', 'sup', 's',
'table', 'tbody', 'td', 'textarea', 'text', 'tfoot', 'thead', 'th', 'title', 'tr', 'tt',
'ul', 'u',
'var',
),
7 => array(//autres mots-cles HTML
'abbr', 'accept-charset', 'accept', 'accesskey', 'action', 'align', 'alink', 'alt', 'archive', 'axis',
'background', 'bgcolor', 'border',
'cellpadding', 'cellspacing', 'char', 'charoff', 'charset', 'checked', 'cite', 'class', 'classid', 'clear', 'code', 'codebase', 'codetype', 'color', 'cols', 'colspan', 'compact', 'content', 'coords',
'data', 'datetime', 'declare', 'defer', 'dir', 'disabled',
'enctype',
'face', 'for', 'frame', 'frameborder',
'headers', 'height', 'href', 'hreflang', 'hspace', 'http-equiv',
'id', 'ismap',
'label', 'lang', 'language', 'link', 'longdesc',
'marginheight', 'marginwidth', 'maxlength', 'media', 'method', 'multiple',
'name', 'nohref', 'noresize', 'noshade', 'nowrap',
'object', 'onblur', 'onchange', 'onclick', 'ondblclick', 'onfocus', 'onkeydown', 'onkeypress', 'onkeyup', 'onload', 'onmousedown', 'onmousemove', 'onmouseout', 'onmouseover', 'onmouseup', 'onreset', 'onselect', 'onsubmit', 'onunload',
'profile', 'prompt',
'readonly', 'rel', 'rev', 'rowspan', 'rows', 'rules',
'scheme', 'scope', 'scrolling', 'selected', 'shape', 'size', 'span', 'src', 'standby', 'start', 'style', 'summary',
'tabindex', 'target', 'text', 'title', 'type',
'usemap',
'valign', 'value', 'valuetype', 'version', 'vlink', 'vspace',
'width'
)
),
'SYMBOLS' => array(
1 => array(
'<%=', '<%!', '<%', '%>'
),
0 => array(
'(', ')', '[', ']', '{', '}',
'!', '%', '&', '|', '/',
'<', '>',
'=', '-', '+', '*',
'.', ':', ',', ';', '^'
)
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false,
5 => false,
6 => false,
7 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100; font-weight: bold;',//pour les mots-cles C
2 => 'color: #000000; font-weight: bold;',//pour les mots-cles KLone
3 => 'color: #6600FF;',//pour les fonctions C
4 => 'color: #6600FF;',//pour les fonctions Klone
5 => 'color: #0099FF; font-weight: bold;',//pour les types C
6 => 'color: #990099; font-weight: bold;',//pour les mots-cles HTML
7 => 'color: #000066;'//pour les autres mots-cles HTML
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',//commentaire sur une ligne C et KLone
2 => 'color: #339933;',//pour les #... en C
'MULTI' => 'color: #808080; font-style: italic;'//commentaire sur plusieurs lignes C et KLone
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #000000;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
1 => 'color: #006600;',
2 => 'color: #006600;'
),
'SYMBOLS' => array(
0 => 'color: #000000;',
1 => 'color: #000000; font-weight: bold;'
),
'REGEXPS' => array(),
'SCRIPT' => array(
0 => 'background-color:#ffccff; font-weight: bold; color:#000000;',
1 => '',
2 => '',
3 => 'color: #00bbdd; font-weight: bold;',
4 => 'color: #ddbb00;',
5 => 'color: #009900;'
)
),
'URLS' => array(
1 => '',
2 => '',
3 => 'http://www.opengroup.org/onlinepubs/009695399/functions/{FNAMEL}.html',
4 => 'http://www.koanlogic.com/klone/api/html/globals.html',
5 => '',
6 => 'http://december.com/html/4/element/{FNAMEL}.html',
7 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.',
2 => '::'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_ALWAYS,
'SCRIPT_DELIMITERS' => array(
//delimiteurs pour KLone
0 => array(
'<%=' => '%>'
),
1 => array(
'<%!' => '%>'
),
2 => array(
'<%' => '%>'
),
//delimiteur pour HTML
3 => array(
'<!DOCTYPE' => '>'
),
4 => array(
'&' => ';'
),
5 => array(
'<' => '>'
)
),
'HIGHLIGHT_STRICT_BLOCK' => array(
0 => false,
1 => true,
2 => true,
3 => false,
4 => false,
5 => true
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
6 => array(
'DISALLOWED_BEFORE' => '(?<=&lt;|&lt;\/)',
'DISALLOWED_AFTER' => '(?=\s|\/|&gt;)',
),
7 => array(
'DISALLOWED_AFTER' => '(?=\s*=)',
)
)
)
);
?>

View file

@ -0,0 +1,310 @@
<?php
/*************************************************************************************
* klonecpp.php
* --------
* Author: AUGER Mickael
* Copyright: Synchronic
* Release Version: 1.0.8.2
* Date Started: 2008/04/16
*
* KLone with C++ language file for GeSHi.
*
* CHANGES
* -------
* 2008/04/16 (1.0.8)
* - First Release
*
* TODO (updated 2008/04/16)
* -------------------------
* A tester et a completer si besoin
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'KLone C++',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),//#pour precede les include de C
'COMMENT_MULTI' => array('/*' => '*/', '<!--' => '-->' ),//comentaires C et KLone suivi de ceux pour HTML
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(//mots-cles C++
'if', 'return', 'while', 'case', 'continue', 'default',
'do', 'else', 'for', 'switch', 'goto',
'break', 'true', 'enum', 'extern', 'inline', 'false',
'errno', 'stdin', 'stdout', 'stderr',
'virtual', 'public', 'private', 'protected', 'template', 'using', 'namespace',
'try', 'catch', 'dynamic_cast', 'const_cast', 'reinterpret_cast',
'static_cast', 'explicit', 'friend', 'typename', 'typeid', 'class',
'EDOM', 'ERANGE', 'FLT_RADIX', 'FLT_ROUNDS', 'FLT_DIG', 'DBL_DIG', 'LDBL_DIG',
'FLT_EPSILON', 'DBL_EPSILON', 'LDBL_EPSILON', 'FLT_MANT_DIG', 'DBL_MANT_DIG',
'LDBL_MANT_DIG', 'FLT_MAX', 'DBL_MAX', 'LDBL_MAX', 'FLT_MAX_EXP', 'DBL_MAX_EXP',
'LDBL_MAX_EXP', 'FLT_MIN', 'DBL_MIN', 'LDBL_MIN', 'FLT_MIN_EXP', 'DBL_MIN_EXP',
'LDBL_MIN_EXP', 'CHAR_BIT', 'CHAR_MAX', 'CHAR_MIN', 'SCHAR_MAX', 'SCHAR_MIN',
'UCHAR_MAX', 'SHRT_MAX', 'SHRT_MIN', 'USHRT_MAX', 'INT_MAX', 'INT_MIN',
'UINT_MAX', 'LONG_MAX', 'LONG_MIN', 'ULONG_MAX', 'HUGE_VAL', 'SIGABRT',
'SIGFPE', 'SIGILL', 'SIGINT', 'SIGSEGV', 'SIGTERM', 'SIG_DFL', 'SIG_ERR',
'SIG_IGN', 'BUFSIZ', 'EOF', 'FILENAME_MAX', 'FOPEN_MAX', 'L_tmpnam', 'NULL',
'SEEK_CUR', 'SEEK_END', 'SEEK_SET', 'TMP_MAX',
'EXIT_FAILURE', 'EXIT_SUCCESS', 'RAND_MAX', 'CLOCKS_PER_SEC'
),
2 => array(//mots-cles KLone
'out', 'request', 'response',
),
3 => array(//fonctions C++ usuelles
'cin', 'cerr', 'clog', 'cout', 'delete', 'new', 'this',
'printf', 'fprintf', 'snprintf', 'sprintf', 'assert',
'isalnum', 'isalpha', 'isdigit', 'iscntrl', 'isgraph', 'islower', 'isprint',
'ispunct', 'isspace', 'isupper', 'isxdigit', 'tolower', 'toupper',
'exp', 'log', 'log10', 'pow', 'sqrt', 'ceil', 'floor', 'fabs', 'ldexp',
'frexp', 'modf', 'fmod', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'atan2',
'sinh', 'cosh', 'tanh', 'setjmp', 'longjmp',
'va_start', 'va_arg', 'va_end', 'offsetof', 'sizeof', 'fopen', 'freopen',
'fflush', 'fclose', 'remove', 'rename', 'tmpfile', 'tmpname', 'setvbuf',
'setbuf', 'vfprintf', 'vprintf', 'vsprintf', 'fscanf', 'scanf', 'sscanf',
'fgetc', 'fgets', 'fputc', 'fputs', 'getc', 'getchar', 'gets', 'putc',
'putchar', 'puts', 'ungetc', 'fread', 'fwrite', 'fseek', 'ftell', 'rewind',
'fgetpos', 'fsetpos', 'clearerr', 'feof', 'ferror', 'perror', 'abs', 'labs',
'div', 'ldiv', 'atof', 'atoi', 'atol', 'strtod', 'strtol', 'strtoul', 'calloc',
'malloc', 'realloc', 'free', 'abort', 'exit', 'atexit', 'system', 'getenv',
'bsearch', 'qsort', 'rand', 'srand', 'strcpy', 'strncpy', 'strcat', 'strncat',
'strcmp', 'strncmp', 'strcoll', 'strchr', 'strrchr', 'strspn', 'strcspn',
'strpbrk', 'strstr', 'strlen', 'strerror', 'strtok', 'strxfrm', 'memcpy',
'memmove', 'memcmp', 'memchr', 'memset', 'clock', 'time', 'difftime', 'mktime',
'asctime', 'ctime', 'gmtime', 'localtime', 'strftime'
),
4 => array(//fonctions KLone usuelles
'request_get_cookies', 'request_get_cookie', 'request_get_args', 'request_get_arg',
'request_io', 'request_get_uri', 'request_get_filename', 'request_get_query_string', 'request_get_path_info',
'request_get_if_modified_since', 'request_get_http', 'request_get_client_request',
'request_get_content_length', 'request_get_uploads', 'request_get_uploaded_file',
'request_get_method', 'request_get_protocol', 'request_get_resolved_filename',
'request_get_resolved_path_info', 'request_get_addr', 'request_get_peer_addr',
'request_get_header', 'request_get_field', 'request_get_field_value',
'response_set_content_encoding', 'response_disable_caching', 'response_enable_caching',
'response_set_cookie', 'response_set_method', 'response_get_method',
'response_print_header', 'response_set_field', 'response_del_field',
'response_set_content_type', 'response_set_date', 'response_set_last_modified',
'response_set_content_length', 'response_get_status', 'response_get_header',
'response_io', 'response_redirect', 'response_set_status',
'session_get_vars', 'session_get', 'session_set', 'session_age', 'session_clean', 'session_del',
'io_type', 'io_pipe', 'io_dup', 'io_copy', 'io_seek', 'io_tell', 'io_close',
'io_free', 'io_read', 'io_printf', 'io_flush', 'io_write', 'io_putc', 'io_getc',
'io_get_until', 'io_gets', 'io_codec_add_head', 'io_codec_add_tail',
'io_codecs_remove', 'io_name_set', 'io_name_get'
),
5 => array(//types C++
'auto', 'bool', 'char', 'const', 'double', 'float', 'int', 'long', 'longint',
'register', 'short', 'shortint', 'signed', 'static', 'struct',
'typedef', 'union', 'unsigned', 'void', 'volatile', 'jmp_buf',
'signal', 'raise', 'va_list', 'ptrdiff_t', 'size_t', 'FILE', 'fpos_t',
'div_t', 'ldiv_t', 'clock_t', 'time_t', 'tm',
'string', 'wchar_t'
),
6 => array(//mots-cles HTML
'a', 'abbr', 'acronym', 'address', 'applet',
'base', 'basefont', 'bdo', 'big', 'blockquote', 'body', 'br', 'button', 'b',
'caption', 'center', 'cite', 'code', 'colgroup', 'col',
'dd', 'del', 'dfn', 'dir', 'div', 'dl', 'dt',
'em',
'fieldset', 'font', 'form', 'frame', 'frameset',
'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'hr', 'html',
'iframe', 'ilayer', 'img', 'input', 'ins', 'isindex', 'i',
'kbd',
'label', 'legend', 'link', 'li',
'map', 'meta',
'noframes', 'noscript',
'object', 'ol', 'optgroup', 'option',
'param', 'pre', 'p',
'q',
'samp', 'script', 'select', 'small', 'span', 'strike', 'strong', 'style', 'sub', 'sup', 's',
'table', 'tbody', 'td', 'textarea', 'text', 'tfoot', 'thead', 'th', 'title', 'tr', 'tt',
'ul', 'u',
'var',
),
7 => array(//autres mots-cles HTML
'abbr', 'accept-charset', 'accept', 'accesskey', 'action', 'align', 'alink', 'alt', 'archive', 'axis',
'background', 'bgcolor', 'border',
'cellpadding', 'cellspacing', 'char', 'charoff', 'charset', 'checked', 'cite', 'class', 'classid', 'clear', 'code', 'codebase', 'codetype', 'color', 'cols', 'colspan', 'compact', 'content', 'coords',
'data', 'datetime', 'declare', 'defer', 'dir', 'disabled',
'enctype',
'face', 'for', 'frame', 'frameborder',
'headers', 'height', 'href', 'hreflang', 'hspace', 'http-equiv',
'id', 'ismap',
'label', 'lang', 'language', 'link', 'longdesc',
'marginheight', 'marginwidth', 'maxlength', 'media', 'method', 'multiple',
'name', 'nohref', 'noresize', 'noshade', 'nowrap',
'object', 'onblur', 'onchange', 'onclick', 'ondblclick', 'onfocus', 'onkeydown', 'onkeypress', 'onkeyup', 'onload', 'onmousedown', 'onmousemove', 'onmouseout', 'onmouseover', 'onmouseup', 'onreset', 'onselect', 'onsubmit', 'onunload',
'profile', 'prompt',
'readonly', 'rel', 'rev', 'rowspan', 'rows', 'rules',
'scheme', 'scope', 'scrolling', 'selected', 'shape', 'size', 'span', 'src', 'standby', 'start', 'style', 'summary',
'tabindex', 'target', 'text', 'title', 'type',
'usemap',
'valign', 'value', 'valuetype', 'version', 'vlink', 'vspace',
'width'
)
),
'SYMBOLS' => array(
1 => array(
'<%=', '<%!', '<%', '%>'
),
0 => array(
'(', ')', '[', ']', '{', '}',
'!', '%', '&', '|', '/',
'<', '>',
'=', '-', '+', '*',
'.', ':', ',', ';', '^'
)
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false,
5 => false,
6 => false,
7 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100; font-weight: bold;',//pour les mots-cles C++
2 => 'color: #000000; font-weight: bold;',//pour les mots-cles KLone
3 => 'color: #6600FF;',//pour les fonctions C++
4 => 'color: #6600FF;',//pour les fonctions Klone
5 => 'color: #0099FF; font-weight: bold;',//pour les types C++
6 => 'color: #990099; font-weight: bold;',//pour les mots-cles HTML
7 => 'color: #000066;'//pour les autres mots-cles HTML
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',//commentaire sur une ligne C++ et KLone
2 => 'color: #339933;',//pour les #... en C++
'MULTI' => 'color: #808080; font-style: italic;'//commentaire sur plusieurs lignes C++ et KLone
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #000000;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
1 => 'color: #006600;',
2 => 'color: #006600;'
),
'SYMBOLS' => array(
0 => 'color: #000000;',
1 => 'color: #000000; font-weight: bold;'
),
'REGEXPS' => array(),
'SCRIPT' => array(
0 => 'background-color:#ffccff; font-weight: bold; color:#000000;',
1 => '',
2 => '',
3 => 'color: #00bbdd; font-weight: bold;',
4 => 'color: #ddbb00;',
5 => 'color: #009900;'
)
),
'URLS' => array(
1 => '',
2 => '',
3 => 'http://www.opengroup.org/onlinepubs/009695399/functions/{FNAMEL}.html',
4 => 'http://www.koanlogic.com/klone/api/html/globals.html',
5 => '',
6 => 'http://december.com/html/4/element/{FNAMEL}.html',
7 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.',
2 => '::'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_ALWAYS,
'SCRIPT_DELIMITERS' => array(
//delimiteurs pour KLone
0 => array(
'<%=' => '%>'
),
1 => array(
'<%!' => '%>'
),
2 => array(
'<%' => '%>'
),
//delimiteur pour HTML
3 => array(
'<!DOCTYPE' => '>'
),
4 => array(
'&' => ';'
),
5 => array(
'<' => '>'
)
),
'HIGHLIGHT_STRICT_BLOCK' => array(
0 => false,
1 => true,
2 => true,
3 => false,
4 => false,
5 => true
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
6 => array(
'DISALLOWED_BEFORE' => '(?<=&lt;|&lt;\/)',
'DISALLOWED_AFTER' => '(?=\s|\/|&gt;)',
),
7 => array(
'DISALLOWED_AFTER' => '(?=\s*=)',
)
)
)
);
?>

View file

@ -0,0 +1,203 @@
<?php
/*************************************************************************************
* latex.php
* -----
* Author: efi, Matthias Pospiech (mail@matthiaspospiech.de)
* Copyright: (c) 2006 efi, Matthias Pospiech (mail@matthiaspospiech.de), Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.7.21
* Date Started: 2006/09/23
*
* LaTeX language file for GeSHi.
*
* CHANGES
* -------
* 2006/09/23 (1.0.0)
* - First Release
*
* TODO
* -------------------------
* *
*
*************************************************************************************
*
* This file is not yet part of GeSHi. (and is not compatible to the 1.1+ branch)
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
if (isset($this) && is_a($this, 'GeSHi')) {
$this->set_symbols_highlighting(false);
$this->set_numbers_highlighting(false);
}
$language_data = array (
'LANG_NAME' => 'LaTeX',
'COMMENT_SINGLE' => array(1 => '%'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array(),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
),
'SYMBOLS' => array(
'.', ',','\\',"~", "{", "}", "[", "]", "$"
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => false,
2 => false,
3 => false,
4 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
),
'BRACKETS' => array(
),
'STRINGS' => array(
),
'NUMBERS' => array(
),
'METHODS' => array(
),
'SYMBOLS' => array(
),
'REGEXPS' => array(
1 => 'color: #00A000; font-weight: bold;', // Math inner
2 => 'color: #800000; font-weight: normal;', // \keyword #202020
3 => 'color: #2222D0; font-weight: normal;', // {...}
4 => 'color: #2222D0; font-weight: normal;', // [Option]
5 => 'color: #00A000; font-weight: normal;', // Mathe #CCF020
6 => 'color: #F00000; font-weight: normal;', // Structure \begin
7 => 'color: #F00000; font-weight: normal;', // Structure \end
8 => 'color: #F00000; font-weight: normal;', // Structure: Labels
//9 => 'color: #F00000; font-weight: normal;', // Structure
10 => 'color: #0000D0; font-weight: bold;', // Environment
11 => 'color: #0000D0; font-weight: bold;', // Environment
),
'SCRIPT' => array(
)
),
'URLS' => array(
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
// Math inner
1 => array(
GESHI_SEARCH => "(\\\\begin\\{)(equation|displaymath|eqnarray|subeqnarray|math|multline|gather|align|alignat|flalign )(\\})(.*)(\\\\end\\{)(equation|displaymath|eqnarray|subeqnarray|math|multline|gather|align|alignat|flalign)(\\})",
GESHI_REPLACE => '\\4',
GESHI_MODIFIERS => 's',
GESHI_BEFORE => '\1\2\3',
GESHI_AFTER => '\5\6\7'
),
// \keywords
2 => array(
GESHI_SEARCH => "(\\\\)([a-zA-Z]+)",
GESHI_REPLACE => '\1\2',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
// {parameters}
3 => array(
GESHI_SEARCH => "(\\{)(.*)(\\})",
GESHI_REPLACE => '\2',
GESHI_MODIFIERS => 'U',
GESHI_BEFORE => '\1',
GESHI_AFTER => '\3'
),
// [Option]
4 => array(
GESHI_SEARCH => "(\[)(.+)(\])",
GESHI_REPLACE => '\2',
GESHI_MODIFIERS => 'U',
GESHI_BEFORE => '\1',
GESHI_AFTER => '\3'
),
// Mathe mit $ ... $
5 => array(
GESHI_SEARCH => "(\\$)(.+)(\\$)",
GESHI_REPLACE => '\1\2\3',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
// Structure begin
6 => array(
GESHI_SEARCH => "(\\\\begin)(?=[^a-zA-Z])",
GESHI_REPLACE => '\\1',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '',
GESHI_AFTER => '\\2'
),
// Structure end
7 => array(
GESHI_SEARCH => "(\\\\end)(?=[^a-zA-Z])",
GESHI_REPLACE => '\\1',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '',
GESHI_AFTER => '\\2'
),
//Structure: Label
8 => array(
GESHI_SEARCH => "(\\\\)(label|pageref|ref|cite)(?=[^a-zA-Z])",
GESHI_REPLACE => '\\1\\2',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '',
GESHI_AFTER => '\\3'
),
// Structure: sections
/*9 => array(
GESHI_SEARCH => "(\\\\)(part|chapter|section|subsection|subsubsection|paragraph|subparagraph)(?=[^a-zA-Z])",
GESHI_REPLACE => '\1\\2',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '',
GESHI_AFTER => '\\3'
),*/
// environment begin
10 => array(
GESHI_SEARCH => "(\\\\begin)(\\{)(.*)(\\})",
GESHI_REPLACE => '\\3',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
// environment end
11 => array(
GESHI_SEARCH => "(\\\\end)(\\{)(.*)(\\})",
GESHI_REPLACE => '\\3',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
// ---------------------------------------------
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,133 @@
<?php
/*************************************************************************************
* lisp.php
* --------
* Author: Roberto Rossi (rsoftware@altervista.org)
* Copyright: (c) 2004 Roberto Rossi (http://rsoftware.altervista.org), Nigel McNie (http://qbnz.com/highlighter
* Release Version: 1.0.7.21
* Date Started: 2004/08/30
*
* Generic Lisp language file for GeSHi.
*
* CHANGES
* -------
* 2005/12/9 (1.0.2)
* - Added support for :keywords and ::access (Denis Mashkevich)
* 2004/11/27 (1.0.1)
* - Added support for multiple object splitters
* 2004/08/30 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Lisp',
'COMMENT_SINGLE' => array(1 => ';'),
'COMMENT_MULTI' => array(';|' => '|;'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'not','defun','princ',
'eval','apply','funcall','quote','identity','function',
'complement','backquote','lambda','set','setq','setf',
'defun','defmacro','gensym','make','symbol','intern',
'symbol','name','symbol','value','symbol','plist','get',
'getf','putprop','remprop','hash','make','array','aref',
'car','cdr','caar','cadr','cdar','cddr','caaar','caadr','cadar',
'caddr','cdaar','cdadr','cddar','cdddr','caaaar','caaadr',
'caadar','caaddr','cadaar','cadadr','caddar','cadddr',
'cdaaar','cdaadr','cdadar','cdaddr','cddaar','cddadr',
'cdddar','cddddr','cons','list','append','reverse','last','nth',
'nthcdr','member','assoc','subst','sublis','nsubst',
'nsublis','remove','length','list','length',
'mapc','mapcar','mapl','maplist','mapcan','mapcon','rplaca',
'rplacd','nconc','delete','atom','symbolp','numberp',
'boundp','null','listp','consp','minusp','zerop','plusp',
'evenp','oddp','eq','eql','equal','cond','case','and','or',
'let','l','if','prog','prog1','prog2','progn','go','return',
'do','dolist','dotimes','catch','throw','error','cerror','break',
'continue','errset','baktrace','evalhook','truncate','float',
'rem','min','max','abs','sin','cos','tan','expt','exp','sqrt',
'random','logand','logior','logxor','lognot','bignums','logeqv',
'lognand','lognor','logorc2','logtest','logbitp','logcount',
'integer','length','nil'
)
),
'SYMBOLS' => array(
'(', ')', '{', '}', '[', ']', '!', '%', '^', '&', '/','+','-','*','=','<','>',';','|'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
0 => 'color: #555;',
1 => 'color: #555;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
'::', ':'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,147 @@
<?php
/*************************************************************************************
* lolcode.php
* ----------
* Author: Benny Baumann (BenBE@geshi.org)
* Copyright: (c) 2008 Benny Baumann (http://qbnz.com/highlighter/)
* Release Version: 1.0.8.2
* Date Started: 2009/10/31
*
* LOLcode language file for GeSHi.
*
* CHANGES
* -------
* 2008/10/31 (1.0.8.1)
* - First Release
*
* TODO
* ----
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'LOLcode',
'COMMENT_SINGLE' => array(),
'COMMENT_MULTI' => array(),
'COMMENT_REGEXP' => array(
1 => "/\bBTW\b.*$/im",
2 => "/(^|\b)(?:OBTW\b.+?\bTLDR|LOL\b.+?\/LOL)(\b|$)/si"
),
'CASE_KEYWORDS' => GESHI_CAPS_UPPER,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '',
'ESCAPE_REGEXP' => array(
1 => '/:[)>o":]/',
2 => '/:\([\da-f]+\)/i',
3 => '/:\{\w+\}/i',
4 => '/:\[\w+\]/i',
),
'KEYWORDS' => array(
//Statements
1 => array(
'VISIBLE', 'HAI', 'KTHX', 'KTHXBYE', 'SMOOSH', 'GIMMEH', 'PLZ',
'ON', 'INVISIBLE', 'R', 'ITZ', 'GTFO', 'COMPLAIN', 'GIMME',
'OPEN', 'FILE', 'I HAS A', 'AWSUM THX', 'O NOES', 'CAN', 'HAS', 'HAZ',
'HOW DOES I', 'IF U SAY SO', 'FOUND YR', 'BORROW', 'OWN', 'ALONG',
'WITH', 'WIT', 'LOOK', 'AT', 'AWSUM', 'THX'
),
//Conditionals
2 => array(
'IZ', 'YARLY', 'NOWAI', 'WTF?', 'MEBBE', 'OMG', 'OMGWTF',
'ORLY?', 'OF', 'NOPE', 'SO', 'IM', 'MAI',
'O RLY?', 'SUM', 'BOTH SAEM', 'DIFFRINT', 'BOTH', 'EITHER', 'WON',
'DIFF', 'PRODUKT', 'QUOSHUNT', 'MOD', 'MKAY', 'OK', 'THING',
'BIGNESS'
),
//Repetition
3 => array(
'IN', 'OUTTA', 'LOOP', 'WHILE'
),
//Operators \Math
4 => array(
'AN', 'AND', 'NOT', 'UP', 'YR', 'UPPIN', 'NERF', 'NERFIN', 'NERFZ',
'SMASHING', 'UR', 'KINDA', 'LIKE', 'SAEM', 'BIG', 'SMALL',
'BIGGR', 'SMALLR', 'BIGGER', 'SMALLER', 'GOOD', 'CUTE', 'THAN'
)
),
'SYMBOLS' => array(
'.', ',', '?',
'!!'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #008000;',
2 => 'color: #000080;',
3 => 'color: #000080;',
4 => 'color: #800000;'
),
'COMMENTS' => array(
1 => 'color: #666666; style: italic;',
2 => 'color: #666666; style: italic;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'ESCAPE_CHAR' => array(
),
'SCRIPT' => array(
),
'REGEXPS' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4
);
?>

View file

@ -0,0 +1,318 @@
<?php
/*************************************************************************************
* lotusformulas.php
* ------------------------
* Author: Richard Civil (info@richardcivil.net)
* Copyright: (c) 2008 Richard Civil (info@richardcivil.net), Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.8.2
* Date Started: 2008/04/12
*
* @Formula/@Command language file for GeSHi.
*
* @Formula/@Command source: IBM Lotus Notes/Domino 8 Designer Help
*
* CHANGES
* -------
* 2008/04/12 (1.0.7.22)
* - First Release
*
* TODO (updated 2008/04/12)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Lotus Notes @Formulas',
'COMMENT_SINGLE' => array(1 => "'"),
'COMMENT_MULTI' => array('REM' => ';'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array (
'[ZoomPreview]', '[WorkspaceStackReplicaIcons]',
'[WorkspaceProperties]', '[WindowWorkspace]',
'[WindowTile]', '[WindowRestore]', '[WindowNext]',
'[WindowMinimizeAll]', '[WindowMinimize]', '[WindowMaximizeAll]',
'[WindowMaximize]', '[WindowCascade]', '[ViewSwitchForm]',
'[ViewShowUnread]', '[ViewShowServerNames]', '[ViewShowSearchBar]',
'[ViewShowRuler]', '[ViewShowPageBreaks]', '[ViewShowOnlyUnread]',
'[ViewShowOnlySelected]', '[ViewShowOnlySearchResults]',
'[ViewShowOnlyCategories]', '[ViewShowObject]',
'[ViewShowFieldHelp]', '[ViewRenamePerson]', '[ViewRefreshUnread]',
'[ViewRefreshFields]', '[ViewNavigatorsNone]',
'[ViewNavigatorsFolders]', '[ViewMoveName]', '[ViewHorizScrollbar]',
'[ViewExpandWithChildren]', '[ViewExpandAll]', '[ViewExpand]',
'[ViewCollapseAll]', '[ViewCollapse]', '[ViewChange]',
'[ViewCertify]', '[ViewBesideFolders]', '[ViewBelowFolders]',
'[ViewArrangeIcons]', '[V3EditPrevField]', '[V3EditNextField]',
'[UserIDSwitch]', '[UserIDSetPassword]', '[UserIDMergeCopy]',
'[UserIDInfo]', '[UserIDEncryptionKeys]', '[UserIDCreateSafeCopy]',
'[UserIDClearPassword]', '[UserIDCertificates]',
'[ToolsUserLogoff]', '[ToolsSpellCheck]', '[ToolsSmartIcons]',
'[ToolsSetupUserSetup]', '[ToolsSetupPorts]', '[ToolsSetupMail]',
'[ToolsSetupLocation]', '[ToolsScanUnreadSelected]',
'[ToolsScanUnreadPreferred]', '[ToolsScanUnreadChoose]',
'[ToolsRunMacro]', '[ToolsRunBackgroundMacros]', '[ToolsReplicate]',
'[ToolsRefreshSelectedDocs]', '[ToolsRefreshAllDocs]',
'[ToolsMarkSelectedUnread]', '[ToolsMarkSelectedRead]',
'[ToolsMarkAllUnread]', '[ToolsMarkAllRead]', '[ToolsHangUp]',
'[ToolsCategorize]', '[ToolsCall]', '[TextUnderline]',
'[TextSpacingSingle]', '[TextSpacingOneAndaHalf]',
'[TextSpacingDouble]', '[TextSetFontSize]', '[TextSetFontFace]',
'[TextSetFontColor]', '[TextReduceFont]', '[TextPermanentPen]',
'[TextParagraphStyles]', '[TextParagraph]', '[TextOutdent]',
'[TextNumbers]', '[TextNormal]', '[TextItalic]', '[TextFont]',
'[TextEnlargeFont]', '[TextCycleSpacing]', '[TextBullet]',
'[TextBold]', '[TextAlignRight]', '[TextAlignNone]',
'[TextAlignLeft]', '[TextAlignFull]', '[TextAlignCenter]',
'[SwitchView]', '[SwitchForm]', '[StyleCycleKey]',
'[SmartIconsNextSet]', '[SmartIconsFloating]', '[ShowProperties]',
'[ShowHidePreviewPane]', '[ShowHideParentPreview]',
'[ShowHideLinkPreview]', '[ShowHideIMContactList]',
'[SetCurrentLocation]', '[SendInstantMessage]',
'[SectionRemoveHeader]', '[SectionProperties]',
'[SectionExpandAll]', '[SectionExpand]', '[SectionDefineEditors]',
'[SectionCollapseAll]', '[SectionCollapse]', '[RunScheduledAgents]',
'[RunAgent]', '[ReplicatorStop]', '[ReplicatorStart]',
'[ReplicatorSendReceiveMail]', '[ReplicatorSendMail]',
'[ReplicatorReplicateWithServer]', '[ReplicatorReplicateSelected]',
'[ReplicatorReplicateNext]', '[ReplicatorReplicateHigh]',
'[Replicator]', '[RenameDatabase]', '[RemoveFromFolder]',
'[RemoteDebugLotusScript]', '[ReloadWindow]', '[RefreshWindow]',
'[RefreshParentNote]', '[RefreshHideFormulas]', '[RefreshFrame]',
'[PublishDatabase]', '[PictureProperties]', '[PasteBitmapAsObject]',
'[PasteBitmapAsBackground]', '[OpenView]', '[OpenPage]',
'[OpenNavigator]', '[OpenInNewWindow]', '[OpenHelpDocument]',
'[OpenFrameset]', '[OpenDocument]', '[OpenCalendar]',
'[ObjectProperties]', '[ObjectOpen]', '[ObjectDisplayAs]',
'[NavPrevUnread]', '[NavPrevSelected]', '[NavPrevMain]',
'[NavPrev]', '[NavNextUnread]', '[NavNextSelected]',
'[NavNextMain]', '[NavNext]', '[NavigatorTest]',
'[NavigatorProperties]', '[NavigateToBacklink]',
'[NavigatePrevUnread]', '[NavigatePrevSelected]',
'[NavigatePrevMain]', '[NavigatePrevHighlight]', '[NavigatePrev]',
'[NavigateNextUnread]', '[NavigateNextSelected]',
'[NavigateNextMain]', '[NavigateNextHighlight]', '[NavigateNext]',
'[MoveToTrash]', '[MailSendPublicKey]', '[MailSendEncryptionKey]',
'[MailSendCertificateRequest]', '[MailSend]', '[MailScanUnread]',
'[MailRequestNewPublicKey]', '[MailRequestNewName]',
'[MailRequestCrossCert]', '[MailOpen]', '[MailForwardAsAttachment]',
'[MailForward]', '[MailComposeMemo]', '[MailAddress]',
'[LayoutProperties]', '[LayoutElementSendToBack]',
'[LayoutElementProperties]', '[LayoutElementBringToFront]',
'[LayoutAddText]', '[LayoutAddGraphic]', '[InsertSubform]',
'[HotspotProperties]', '[HotspotClear]', '[HelpUsingDatabase]',
'[HelpAboutNotes]', '[HelpAboutDatabase]', '[GoUpLevel]',
'[FormTestDocument]', '[FormActions]', '[FolderRename]',
'[FolderProperties]', '[FolderMove]', '[FolderExpandWithChildren]',
'[FolderExpandAll]', '[FolderExpand]', '[FolderDocuments]',
'[FolderCustomize]', '[FolderCollapse]', '[Folder]',
'[FindFreeTimeDialog]', '[FileSaveNewVersion]', '[FileSave]',
'[FilePrintSetup]', '[FilePrint]', '[FilePageSetup]',
'[FileOpenDBRepID]', '[FileOpenDatabase]', '[FileNewReplica]',
'[FileNewDatabase]', '[FileImport]', '[FileFullTextUpdate]',
'[FileFullTextInfo]', '[FileFullTextDelete]',
'[FileFullTextCreate]', '[FileExport]', '[FileExit]',
'[FileDatabaseUseServer]', '[FileDatabaseRemove]',
'[FileDatabaseInfo]', '[FileDatabaseDelete]', '[FileDatabaseCopy]',
'[FileDatabaseCompact]', '[FileDatabaseACL]', '[FileCloseWindow]',
'[ExitNotes]', '[Execute]', '[ExchangeUnreadMarks]', '[EmptyTrash]',
'[EditUp]', '[EditUntruncate]', '[EditUndo]', '[EditTop]',
'[EditTableInsertRowColumn]', '[EditTableFormat]',
'[EditTableDeleteRowColumn]', '[EditShowHideHiddenChars]',
'[EditSelectByDate]', '[EditSelectAll]', '[EditRight]',
'[EditRestoreDocument]', '[EditResizePicture]',
'[EditQuoteSelection]', '[EditProfileDocument]', '[EditProfile]',
'[EditPrevField]', '[EditPhoneNumbers]', '[EditPasteSpecial]',
'[EditPaste]', '[EditOpenLink]', '[EditNextField]',
'[EditMakeDocLink]', '[EditLocations]', '[EditLinks]', '[EditLeft]',
'[EditInsertText]', '[EditInsertTable]', '[EditInsertPopup]',
'[EditInsertPageBreak]', '[EditInsertObject]',
'[EditInsertFileAttachment]', '[EditInsertButton]',
'[EditIndentFirstLine]', '[EditIndent]', '[EditHorizScrollbar]',
'[EditHeaderFooter]', '[EditGotoField]', '[EditFindNext]',
'[EditFindInPreview]', '[EditFind]', '[EditEncryptionKeys]',
'[EditDown]', '[EditDocument]', '[EditDetach]', '[EditDeselectAll]',
'[EditCut]', '[EditCopy]', '[EditClear]', '[EditButton]',
'[EditBottom]', '[DiscoverFolders]', '[Directories]',
'[DialingRules]', '[DesignViewSelectFormula]', '[DesignViews]',
'[DesignViewNewColumn]', '[DesignViewFormFormula]',
'[DesignViewEditActions]', '[DesignViewColumnDef]',
'[DesignViewAttributes]', '[DesignViewAppendColumn]',
'[DesignSynopsis]', '[DesignSharedFields]', '[DesignReplace]',
'[DesignRefresh]', '[DesignMacros]', '[DesignIcon]',
'[DesignHelpUsingDocument]', '[DesignHelpAboutDocument]',
'[DesignFormWindowTitle]', '[DesignFormUseField]',
'[DesignFormShareField]', '[DesignForms]', '[DesignFormNewField]',
'[DesignFormFieldDef]', '[DesignFormAttributes]',
'[DesignDocumentInfo]', '[DebugLotusScript]',
'[DatabaseReplSettings]', '[DatabaseDelete]', '[CreateView]',
'[CreateTextbox]', '[CreateSubForm]', '[CreateSection]',
'[CreateRectangularHotspot]', '[CreateRectangle]',
'[CreatePolyline]', '[CreatePolygon]', '[CreateNavigator]',
'[CreateLayoutRegion]', '[CreateForm]', '[CreateFolder]',
'[CreateEllipse]', '[CreateControlledAccessSection]',
'[CreateAgent]', '[CreateAction]', '[CopySelectedAsTable]',
'[ComposeWithReference]', '[Compose]', '[CloseWindow]', '[Clear]',
'[ChooseFolders]', '[CalendarGoTo]', '[CalendarFormat]',
'[AttachmentView]', '[AttachmentProperties]', '[AttachmentLaunch]',
'[AttachmentDetachAll]', '[AgentTestRun]', '[AgentSetServerName]',
'[AgentRun]', '[AgentLog]', '[AgentEnableDisable]', '[AgentEdit]',
'[AdminTraceConnection]', '[AdminStatisticsConfig]',
'[AdminSendMailTrace]', '[AdminRemoteConsole]',
'[AdminRegisterUser]', '[AdminRegisterServer]',
'[AdminRegisterFromFile]', '[AdminOutgoingMail]',
'[AdminOpenUsersView]', '[AdminOpenStatistics]',
'[AdminOpenServersView]', '[AdminOpenServerLog]',
'[AdminOpenGroupsView]', '[AdminOpenCertLog]', '[AdminOpenCatalog]',
'[AdminOpenAddressBook]', '[AdminNewOrgUnit]',
'[AdminNewOrganization]', '[Administration]',
'[AdminIDFileSetPassword]', '[AdminIDFileExamine]',
'[AdminIDFileClearPassword]', '[AdminDatabaseQuotas]',
'[AdminDatabaseAnalysis]', '[AdminCrossCertifyKey]',
'[AdminCrossCertifyIDFile]', '[AdminCreateGroup]', '[AdminCertify]',
'[AddToIMContactList]', '[AddDatabaseRepID]', '[AddDatabase]',
'[AddBookmark]'
),
2 => array(
'SELECT', 'FIELD', 'ENVIRONMENT', 'DEFAULT', '@Zone ', '@Yesterday',
'@Yes', '@Year', '@Word', '@Wide', '@While', '@Weekday',
'@WebDbName', '@ViewTitle', '@ViewShowThisUnread', '@Version',
'@VerifyPassword', '@ValidateInternetAddress', '@V4UserAccess',
'@V3UserName', '@V2If', '@UserRoles', '@UserPrivileges',
'@UserNamesList', '@UserNameLanguage', '@UserName', '@UserAccess',
'@UrlQueryString', '@URLOpen', '@URLHistory', '@URLGetHeader',
'@URLEncode', '@URLDecode', '@UpperCase', '@UpdateFormulaContext',
'@Unique', '@UndeleteDocument', '@Unavailable', '@True', '@Trim',
'@Transform', '@ToTime', '@ToNumber', '@Tomorrow', '@Today',
'@TimeZoneToText', '@TimeToTextInZone', '@TimeMerge', '@Time',
'@ThisValue', '@ThisName', '@TextToTime', '@TextToNumber', '@Text',
'@TemplateVersion', '@Tan', '@Sum', '@Success', '@Subset',
'@StatusBar', '@Sqrt', '@Soundex', '@Sort', '@Sin', '@Sign',
'@SetViewInfo', '@SetTargetFrame', '@SetProfileField',
'@SetHTTPHeader', '@SetField', '@SetEnvironment', '@SetDocField',
'@Set', '@ServerName', '@ServerAccess', '@Select', '@Second',
'@Round', '@RightBack', '@Right', '@Return', '@Responses',
'@ReplicaID', '@ReplaceSubstring', '@Replace', '@Repeat',
'@RegQueryValue', '@RefreshECL', '@Random', '@ProperCase',
'@Prompt', '@Power', '@PostedCommand', '@PolicyIsFieldLocked',
'@Platform', '@PickList', '@Pi', '@PasswordQuality', '@Password',
'@OrgDir', '@OptimizeMailAddress', '@OpenInNewWindow', '@Now',
'@Nothing', '@NoteID', '@No', '@NewLine', '@Narrow', '@NameLookup',
'@Name', '@Month', '@Modulo', '@Modified', '@Minute', '@Min',
'@MiddleBack', '@Middle', '@Member', '@Max', '@Matches',
'@MailSignPreference', '@MailSend', '@MailSavePreference',
'@MailEncryptSentPreference', '@MailEncryptSavedPreference',
'@MailDbName', '@LowerCase', '@Log', '@Locale', '@Ln', '@Like',
'@Length', '@LeftBack', '@Left', '@LDAPServer', '@LaunchApp',
'@LanguagePreference', '@Keywords', '@IsVirtualizedDirectory',
'@IsValid', '@IsUsingJavaElement', '@IsUnavailable', '@IsTime',
'@IsText', '@IsResponseDoc', '@IsNumber', '@IsNull', '@IsNotMember',
'@IsNewDoc', '@IsModalHelp', '@IsMember', '@IsExpandable',
'@IsError', '@IsEmbeddedInsideWCT', '@IsDocTruncated',
'@IsDocBeingSaved', '@IsDocBeingRecalculated', '@IsDocBeingMailed',
'@IsDocBeingLoaded', '@IsDocBeingEdited', '@IsDB2', '@IsCategory',
'@IsAvailable', '@IsAppInstalled', '@IsAgentEnabled', '@Integer',
'@InheritedDocumentUniqueID', '@Implode', '@IfError', '@If',
'@Hour', '@HashPassword', '@HardDeleteDocument', '@GetViewInfo',
'@GetProfileField', '@GetPortsList', '@GetIMContactListGroupNames',
'@GetHTTPHeader', '@GetFocusTable', '@GetField', '@GetDocField',
'@GetCurrentTimeZone', '@GetAddressBooks', '@FormLanguage', '@For',
'@FontList', '@FloatEq', '@FileDir', '@False', '@Failure',
'@Explode', '@Exp', '@Eval', '@Error', '@Environment', '@Ends',
'@EnableAlarms', '@Elements', '@EditUserECL', '@EditECL',
'@DoWhile', '@Domain', '@DocumentUniqueID', '@DocSiblings',
'@DocParentNumber', '@DocOmmittedLength', '@DocNumber', '@DocMark',
'@DocLock', '@DocLevel', '@DocLength', '@DocFields',
'@DocDescendants', '@DocChildren', '@Do', '@DialogBox',
'@DeleteField', '@DeleteDocument', '@DDETerminate', '@DDEPoke',
'@DDEInitiate', '@DDEExecute', '@DbTitle', '@DbName', '@DbManager',
'@DbLookup', '@DbExists', '@DbCommand', '@DbColumn', '@DB2Schema',
'@Day', '@Date', '@Created', '@Count', '@Cos', '@Contains',
'@ConfigFile', '@Compare', '@Command', '@ClientType',
'@CheckFormulaSyntax', '@CheckAlarms', '@Char', '@Certificate',
'@BusinessDays', '@BrowserInfo', '@Begins', '@Author',
'@Attachments', '@AttachmentNames', '@AttachmentModifiedTimes',
'@AttachmentLengths', '@ATan2', '@ATan', '@ASin', '@Ascii',
'@AllDescendants', '@AllChildren', '@All', '@AdminECLIsLocked',
'@Adjust', '@AddToFolder', '@ACos', '@Accessed', '@AbstractSimple',
'@Abstract', '@Abs'
)
),
'SYMBOLS' => array(
'(', ')'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #800000;',
2 => 'color: #0000FF;'
),
'COMMENTS' => array(
1 => 'color: #008000;'
),
'BRACKETS' => array(
0 => 'color: #000000;'
),
'STRINGS' => array(
0 => 'color: #FF00FF;'
),
'NUMBERS' => array(
0 => 'color: #FF00FF;'
),
'METHODS' => array(
1 => 'color: #0000AA;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099;'
),
'SCRIPT' => array(
),
'REGEXPS' => array(
)
),
'URLS' => array(
1 => '',
2 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 2
);
?>

View file

@ -0,0 +1,191 @@
<?php
/**
* lotusscript.php
* ------------------------
* Author: Richard Civil (info@richardcivil.net)
* Copyright: (c) 2008 Richard Civil (info@richardcivil.net), Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.8.2
* Date Started: 2008/04/12
*
* LotusScript language file for GeSHi.
*
* LotusScript source: IBM Lotus Notes/Domino 8 Designer Help
*
* CHANGES
* -------
* 2008/04/12 (1.0.7.22)
* - First Release
*
* TODO (2008/04/12)
* -----------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'LotusScript',
'COMMENT_SINGLE' => array(1 => "'"),
'COMMENT_MULTI' => array('%REM' => '%END REM'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"' , "|"),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array (
'Yield', 'Year', 'Xor', 'Write', 'With', 'Width', 'While', 'Wend',
'Weekday', 'VarType', 'Variant', 'Val', 'UString', 'UString$',
'UseLSX', 'Use', 'Until', 'Unlock', 'Unicode', 'Uni', 'UChr',
'UChr$', 'UCase', 'UCase$', 'UBound', 'TypeName', 'Type', 'TRUE',
'Trim', 'Trim$', 'Today', 'To', 'TimeValue', 'TimeSerial', 'Timer',
'TimeNumber', 'Time', 'Time$', 'Then', 'Text', 'Tan', 'Tab', 'Sub',
'StrToken', 'StrToken$', 'StrRightBack', 'StrRightBack$',
'StrRight', 'StrRight$', 'StrLeftBack', 'StrLeftBack$', 'StrLeft',
'StrLeft$', 'String', 'String$', 'StrConv', 'StrCompare', 'StrComp',
'Str', 'Str$', 'Stop', 'Step', 'Static', 'Sqr', 'Split', 'Spc',
'Space', 'Space$', 'Sleep', 'Single', 'Sin', 'Shell', 'Shared',
'Sgn', 'SetFileAttr', 'SetAttr', 'Set', 'SendKeys', 'Select',
'Seek', 'Second', 'RTrim', 'RTrim$', 'RSet', 'Round', 'Rnd',
'RmDir', 'RightC', 'RightC$', 'RightBP', 'RightBP$', 'RightB',
'RightB$', 'Right', 'Right$', 'Return', 'Resume', 'Reset',
'Replace', 'Remove', 'Rem', 'ReDim', 'Read', 'Randomize',
'Random', 'Put', 'Public', 'Property', 'Private', 'Print',
'Preserve', 'Pitch', 'PI', 'Output', 'Or', 'Option', 'Open', 'On',
'Oct', 'Oct$', 'NULL', 'Now', 'NOTHING', 'Not', 'NoPitch', 'NoCase',
'Next', 'New', 'Name', 'MsgBox', 'Month', 'Mod', 'MkDir', 'Minute',
'MidC', 'MidC$', 'MidBP', 'MidBP$', 'MidB', 'MidB$', 'Mid', 'Mid$',
'MessageBox', 'Me', 'LTrim', 'LTrim$', 'LSServer', 'LSI_Info',
'LSet', 'Loop', 'Long', 'Log', 'LOF', 'Lock', 'LOC', 'LMBCS',
'ListTag', 'List', 'Line', 'Like', 'Lib', 'Let', 'LenC', 'LenBP',
'LenB', 'Len', 'LeftC', 'LeftC$', 'LeftBP', 'LeftBP$', 'LeftB',
'LeftB$', 'Left', 'Left$', 'LCase', 'LCase$', 'LBound', 'Kill',
'Join', 'IsUnknown', 'IsScalar', 'IsObject', 'IsNumeric', 'IsNull',
'IsList', 'IsEmpty', 'IsElement', 'IsDate', 'IsArray', 'IsA', 'Is',
'Integer', 'Int', 'InStrC', 'InStrBP', 'InStrB', 'InStr', 'InputBP',
'InputBP$', 'InputBox', 'InputBox$', 'InputB', 'InputB$', 'Input',
'Input$', 'In', 'IMSetMode', 'Implode', 'Implode$', 'Imp',
'IMEStatus', 'If', 'Hour', 'Hex', 'Hex$', 'Goto', 'GoSub',
'GetThreadInfo', 'GetFileAttr', 'GetAttr', 'Get', 'Function',
'FullTrim', 'From', 'FreeFile', 'Fraction', 'Format', 'Format$',
'ForAll', 'For', 'Fix', 'FileLen', 'FileDateTime', 'FileCopy',
'FileAttr', 'FALSE', 'Explicit', 'Exp', 'Exit', 'Execute', 'Event',
'Evaluate', 'Error', 'Error$', 'Err', 'Erl', 'Erase', 'Eqv', 'EOF',
'Environ', 'Environ$', 'End', 'ElseIf', 'Else', 'Double', 'DoEvents',
'Do', 'Dir', 'Dir$', 'Dim', 'DestroyLock', 'Delete', 'DefVar',
'DefStr', 'DefSng', 'DefLng', 'DefInt', 'DefDbl', 'DefCur',
'DefByte', 'DefBool', 'Declare', 'Day', 'DateValue', 'DateSerial',
'DateNumber', 'Date', 'Date$', 'DataType', 'CVDate', 'CVar',
'Currency', 'CurDrive', 'CurDrive$', 'CurDir', 'CurDir$', 'CStr',
'CSng', 'CreateLock', 'Cos', 'Const', 'Compare', 'Command',
'Command$', 'CodeUnlock', 'CodeLockCheck', 'CodeLock', 'Close',
'CLng', 'Class', 'CInt', 'Chr', 'Chr$', 'ChDrive', 'ChDir', 'CDbl',
'CDat', 'CCur', 'CByte', 'CBool', 'Case', 'Call', 'ByVal', 'Byte',
'Boolean', 'Bind', 'Binary', 'Bin', 'Bin$', 'Beep', 'Base', 'Atn2',
'Atn', 'ASin', 'Asc', 'As', 'ArrayUnique', 'ArrayReplace',
'ArrayGetIndex', 'ArrayAppend', 'Append', 'AppActivate', 'Any',
'And', 'Alias', 'ActivateApp', 'ACos', 'Access', 'Abs', '%Include',
'%If', '%END', '%ElseIf', '%Else'
),
2 => array (
'NotesXSLTransformer', 'NotesXMLProcessor', 'NotesViewNavigator',
'NotesViewEntryCollection', 'NotesViewEntry', 'NotesViewColumn',
'NotesView', 'NotesUIWorkspace', 'NotesUIView', 'NotesUIScheduler',
'NotesUIDocument', 'NotesUIDatabase', 'NotesTimer', 'NotesStream',
'NotesSession', 'NotesSAXParser', 'NotesSAXException',
'NotesSAXAttributeList', 'NotesRichTextTable', 'NotesRichTextTab',
'NotesRichTextStyle', 'NotesRichTextSection', 'NotesRichTextRange',
'NotesRichTextParagraphStyle', 'NotesRichTextNavigator',
'NotesRichTextItem', 'NotesRichTextDocLink',
'NotesReplicationEntry', 'NotesReplication', 'NotesRegistration',
'NotesOutlineEntry', 'NotesOutline', 'NotesNoteCollection',
'NotesNewsLetter', 'NotesName', 'NotesMIMEHeader',
'NotesMIMEEntity', 'NotesLog', 'NotesItem', 'NotesInternational',
'NotesForm', 'NotesEmbeddedObject', 'NotesDXLImporter',
'NotesDXLExporter', 'NotesDOMXMLDeclNode', 'NotesDOMTextNode',
'NotesDOMProcessingInstructionNode', 'NotesDOMParser',
'NotesDOMNotationNode', 'NotesDOMNodeList', 'NotesDOMNode',
'NotesDOMNamedNodeMap', 'NotesDOMEntityReferenceNode',
'NotesDOMEntityNode', 'NotesDOMElementNode',
'NotesDOMDocumentTypeNode', 'NotesDOMDocumentNode',
'NotesDOMDocumentFragmentNode', 'NotesDOMCommentNode',
'NotesDOMCharacterDataNote', 'NotesDOMCDATASectionNode',
'NotesDOMAttributeNode', 'NotesDocumentCollection', 'NotesDocument',
'NotesDbDirectory', 'NotesDateTime', 'NotesDateRange',
'NotesDatabase', 'NotesColorObject', 'NotesAgent',
'NotesAdministrationProcess', 'NotesACLEntry', 'NotesACL',
'Navigator', 'Field', 'Button'
)
) ,
'SYMBOLS' => array(
'(', ')'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0000FF;',
2 => 'color: #0000EE;'
),
'COMMENTS' => array(
1 => 'color: #008000;'
),
'BRACKETS' => array(
0 => 'color: #000000;'
),
'STRINGS' => array(
0 => 'color: #000000;'
),
'NUMBERS' => array(
0 => 'color: #FF00FF;'
),
'METHODS' => array(
1 => 'color: #0000AA;'
),
'SYMBOLS' => array(
0 => 'color: #006600;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099;'
),
'SCRIPT' => array(
),
'REGEXPS' => array(
)
),
'URLS' => array(
1 => '',
2 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 2
);
?>

View file

@ -0,0 +1,387 @@
<?php
/*************************************************************************************
* lscript.php
* ---------
* Author: Arendedwinter (admin@arendedwinter.com)
* Copyright: (c) 2008 Beau McGuigan (http://www.arendedwinter.com)
* Release Version: 1.0.8.2
* Date Started: 15/11/2008
*
* Lightwave Script language file for GeSHi.
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'LScript',
'COMMENT_SINGLE' => array(1 => '//'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
//Yes, I'm aware these are out of order,
//I had to rearrange and couldn't be bothered changing the numbers...
7 => array(
'@data', '@define', '@else', '@end', '@fpdepth', '@if', '@include',
'@insert', '@library', '@localipc', '@name', '@save', '@script',
'@sequence', '@version', '@warnings'
),
1 => array(
'break', 'case', 'continue', 'else', 'end', 'false', 'for',
'foreach', 'if', 'return', 'switch', 'true', 'while',
),
3 => array(
'active', 'alertlevel', 'alpha', 'alphaprefix', 'animfilename', 'autokeycreate',
'backdroptype', 'blue', 'boxthreshold', 'button',
'channelsvisible', 'childrenvisible', 'compfg', 'compbg', 'compfgalpha',
'coneangles', 'cosine', 'count', 'ctl', 'curFilename', 'curFrame',
'currenttime', 'curTime', 'curType',
'depth', 'diffshade', 'diffuse', 'dimensions', 'displayopts', 'dynamicupdate',
'end', 'eta',
'filename', 'flags', 'fogtype', 'fps', 'frame', 'frameend', 'frameheight',
'framestart', 'framestep', 'framewidth',
'generalopts', 'genus', 'geometry', 'gNorm', 'goal', 'green',
'h', 'hasAlpha', 'height',
'id', 'innerlimit', 'isColor',
'keyCount', 'keys',
'limiteregion', 'locked', 'luminous',
'maxsamplesperpixel', 'minsamplesperpixel', 'mirror', 'motionx', 'motiony',
'name', 'newFilename', 'newFrame', 'newTime', 'newType', 'null', 'numthreads',
'objID', 'oPos', 'outerlimit', 'oXfrm',
'parent', 'pixel', 'pixelaspect', 'point', 'points', 'pointcount', 'polNum',
'polycount', 'polygon', 'polygons', 'postBehavior', 'preBehavior', 'previewend',
'previewstart', 'previewstep',
'range', 'rawblue', 'rawgreen', 'rawred', 'rayLength', 'raySource', 'red',
'reflectblue', 'reflectgreen', 'reflectred', 'recursiondepth', 'renderend',
'renderopts', 'renderstart', 'renderstep', 'rendertype', 'restlength',
'rgbprefix', 'roughness',
'selected', 'setColor', 'setPattern', 'shading', 'shadow', 'shadows',
'shadowtype', 'size', 'source', 'special', 'specshade', 'specular',
'spotsize', 'start', 'sx', 'sy', 'sz',
'target', 'totallayers', 'totalpoints', 'totalpolygons', 'trans', 'transparency',
'type',
'value', 'view', 'visible', 'visibility',
'w', 'width', 'wNorm', 'wPos', 'wXfrm',
'x', 'xoffset',
'y', 'yoffset',
'z'
),
4 => array(
'addLayer', 'addParticle', 'alphaspot', 'ambient', 'asAsc', 'asBin',
'asInt', 'asNum', 'asStr', 'asVec', 'attach', 'axislocks',
'backdropColor', 'backdropRay', 'backdropSqueeze', 'bone', 'blurLength',
'close', 'color', 'contains', 'copy', 'createKey',
'deleteKey', 'detach', 'drawCircle', 'drawLine', 'drawPoint', 'drawText',
'drawTriangle',
'edit', 'eof', 'event',
'firstChannel', 'firstLayer', 'firstSelect', 'focalLength', 'fogColor',
'fogMaxAmount', 'fogMaxDist', 'fogMinAmount', 'fogMinDist',
'fovAngles', 'fStop', 'firstChild', 'focalDistance',
'get', 'getChannelGroup', 'getEnvelope', 'getForward', 'getKeyBias',
'getKeyContinuity', 'getKeyCurve', 'getKeyHermite', 'getKeyTension',
'getKeyTime', 'getKeyValue', 'getParticle', 'getPivot', 'getPosition',
'getRight', 'getRotation', 'getSelect', 'getScaling', 'getTag', 'getTexture',
'getUp', 'getValue', 'getWorldPosition', 'getWorldForward', 'getWorldRight',
'getWorldRotation', 'getWorldUp', 'globalBlur', 'globalMask', 'globalResolution',
'hasCCEnd', 'hasCCStart',
'illuminate', 'indexOf', 'isAscii', 'isAlnum', 'isAlpha', 'isBone',
'isCamera', 'isChannel', 'isChannelGroup', 'isCntrl', 'isCurve', 'isDigit',
'isEnvelope', 'isImage', 'isInt', 'isLight', 'isLower', 'isMapped', 'isMesh',
'isNil', 'isNum', 'IsOpen', 'isOriginal', 'isPrint', 'isPunct', 'isScene',
'isSpace', 'isStr', 'isUpper', 'isValid', 'isVMap', 'isVec', 'isXDigit',
'keyExists',
'layer', 'layerName', 'layerVisible', 'limits', 'line', 'linecount', 'load', 'luma',
'next', 'nextLayer', 'nextSelect', 'nextChannel', 'nextChild', 'nl',
'offset', 'open',
'pack', 'param', 'parse', 'paste', 'persist', 'polygonCount', 'position',
'rayCast', 'rayTrace', 'read', 'readByte', 'readInt', 'readNumber',
'readDouble', 'readShort', 'readString', 'readVector', 'reduce',
'remParticle', 'renderCamera', 'reopen', 'replace', 'reset', 'restParam',
'rewind', 'rgb', 'rgbambient', 'rgbcolor', 'rgbspot',
'save', 'schemaPosition', 'select', 'set', 'setChannelGroup', 'setKeyBias',
'setKeyContinuity', 'setKeyCurve',
'setKeyHermite', 'setKeyTension', 'setKeyValue', 'setParticle', 'setPoints',
'setTag', 'setValue', 'server', 'serverFlags', 'sortA', 'sortD', 'surface',
'trunc',
'write', 'writeln', 'writeByte', 'writeData', 'writeNumber', 'writeDouble',
'writeShort', 'writeString', 'writeVector',
'vertex', 'vertexCount',
'zoomFactor'
),
2 => array(
'abs', 'acos', 'angle', 'append', 'ascii', 'asin', 'atan',
'binary',
'ceil', 'center', 'chdir', 'clearimage', 'cloned', 'comringattach',
'comringdecode', 'comringdetach', 'comringencode', 'comringmsg', 'cos',
'cosh', 'cot', 'cross2d', 'cross3d', 'csc', 'ctlstring', 'ctlinteger',
'ctlnumber', 'ctlvector', 'ctldistance', 'ctlchoice', 'ctltext',
'ctlcolor', 'ctlsurface', 'ctlfont', 'ctlpopup', 'ctledit', 'ctlpercent',
'ctlangle', 'ctlrgb', 'ctlhsv', 'ctlcheckbox', 'ctlstate', 'ctlfilename',
'ctlbutton', 'ctllistbox', 'ctlslider', 'ctlminislider', 'ctlsep', 'ctlimage',
'ctltab', 'ctlallitems', 'ctlmeshitems', 'ctlcameraitems', 'ctllightitems',
'ctlboneitems', 'ctlimageitems', 'ctlchannel', 'ctlviewport', 'Control_Management',
'ctlpage', 'ctlgroup', 'ctlposition', 'ctlactive', 'ctlvisible', 'ctlalign',
'ctlrefresh', 'ctlmenu', 'ctlinfo',
'date', 'debug', 'deg', 'dot2d', 'dot3d', 'drawborder', 'drawbox', 'drawcircle',
'drawelipse', 'drawerase', 'drawfillcircle', 'drawfillelipse', 'drawline',
'drawpixel', 'drawtext', 'drawtextwidth', 'drawtextheight', 'dump',
'error', 'exp', 'expose', 'extent',
'fac', 'filecrc', 'filedelete', 'fileexists', 'filefind', 'filerename',
'filestat', 'floor', 'format', 'frac', 'fullpath',
'gamma', 'getdir', 'getenv', 'getfile', 'getfirstitem', 'getsep', 'getvalue',
'globalrecall', 'globalstore',
'hash', 'hex', 'hostBuild', 'hostVersion', 'hypot',
'info', 'integer',
'library', 'licenseId', 'lscriptVersion', 'load', 'loadimage', 'log', 'log10',
'matchdirs', 'matchfiles', 'max', 'min', 'mkdir', 'mod', 'monend', 'moninit', 'monstep',
'nil', 'normalize', 'number',
'octal', 'overlayglyph',
'parse', 'platform', 'pow',
'rad', 'random', 'randu', 'range', 'read', 'readdouble', 'readInt', 'readNumber',
'readShort', 'recall', 'regexp', 'reqabort', 'reqbegin', 'reqend', 'reqisopen',
'reqkeyboard', 'reqopen', 'reqposition', 'reqpost', 'reqredraw',
'reqsize', 'reqresize', 'requpdate', 'rmdir', 'round', 'runningUnder',
'save', 'sec', 'select', 'selector', 'setdesc', 'setvalue', 'sin', 'sinh', 'size',
'sizeof', 'sleep', 'spawn', 'split', 'sqrt', 'step', 'store', 'string', 'strleft',
'strlower', 'strright', 'strsub', 'strupper',
'tan', 'tanh', 'targetobject', 'terminate', 'text', 'time',
'wait', 'warn', 'when', 'write', 'writeDouble', 'writeInt', 'writeNumber', 'writeShort',
'var', 'vector', 'visitnodes', 'vmag',
),
5 => array(
'addcurve', 'addpoint', 'addpolygon', 'addquad', 'addtriangle', 'alignpols',
'autoflex', 'axisdrill',
'bend', 'bevel', 'boolean', 'boundingbox',
'changepart', 'changesurface', 'close', 'closeall', 'cmdseq', 'copy', 'copysurface',
'createsurface', 'cut',
'deformregion', 'delete',
'editbegin', 'editend', 'exit', 'extrude',
'fixedflex', 'flip', 'fontclear', 'fontcount', 'fontindex', 'fontload',
'fontname', 'fracsubdivide', 'freezecurves',
'getdefaultsurface',
'jitter',
'lathe', 'layerName', 'layerVisible', 'lyrbg', 'lyrdata', 'lyrempty', 'lyremptybg',
'lyremptyfg', 'lyrfg', 'lyrsetbg', 'lyrsetfg', 'lyrswap',
'magnet', 'make4patch', 'makeball', 'makebox', 'makecone', 'makedisc',
'maketesball', 'maketext', 'mergepoints', 'mergepols', 'meshedit', 'mirror',
'morphpols', 'move',
'new', 'nextsurface',
'paste', 'pathclone', 'pathextrude', 'pixel', 'pointcount', 'pointinfo',
'pointmove', 'pole', 'polycount', 'polyinfo', 'polynormal', 'polypointcount',
'polypoints', 'polysurface',
'quantize',
'railclone', 'railextrude', 'redo', 'removepols', 'rempoint', 'rempoly',
'renamesurface', 'revert', 'rotate',
'scale', 'selhide', 'selinvert', 'selmode', 'selpoint', 'selpolygon', 'selunhide',
'selectvmap', 'setlayername', 'setobject', 'setpivot', 'setsurface', 'shapebevel',
'shear', 'skinpols', 'smooth', 'smoothcurves', 'smoothscale', 'smoothshift',
'soliddrill', 'splitpols', 'subdivide', 'swaphidden',
'taper', 'triple', 'toggleCCend', 'toggleCCstart', 'togglepatches', 'twist',
'undo', 'undogroupend', 'undogroupbegin', 'unifypols', 'unweld',
'vortex',
'weldaverage', 'weldpoints'
),
6 => array(
'About', 'AboutOpenGL', 'AdaptiveSampling', 'AdaptiveThreshold',
'AddAreaLight', 'AddBone', 'AddButton', 'AddCamera', 'AddChildBone',
'AddDistantLight', 'AddEnvelope', 'AddLinearLight', 'AddNull',
'AddPartigon', 'AddPlugins', 'AddPointLight', 'AddPosition',
'AddRotation', 'AddScale', 'AddSpotlight', 'AddToSelection',
'AdjustRegionTool', 'AffectCaustics', 'AffectDiffuse', 'AffectOpenGL',
'AffectSpecular', 'AlertLevel', 'AmbientColor', 'AmbientIntensity',
'Antialiasing', 'ApertureHeight', 'ApplyServer', 'AreaLight',
'AutoConfirm', 'AutoFrameAdvance', 'AutoKey',
'BackdropColor', 'BackView', 'BController', 'BLimits', 'BLurLength', 'BoneActive',
'BoneFalloffType', 'BoneJointComp', 'BoneJointCompAmounts', 'BoneJointCompParent',
'BoneLimitedRange', 'BoneMaxRange', 'BoneMinRange', 'BoneMuscleFlex',
'BoneMuscleFlexAmounts', 'BoneMuscleFlexParent', 'BoneNormalization',
'BoneRestLength', 'BoneRestPosition', 'BoneRestRotation', 'BoneSource',
'BoneStrength', 'BoneStrengthMultiply', 'BoneWeightMapName', 'BoneWeightMapOnly',
'BoneWeightShade', 'BoneXRay', 'BottomView', 'BoundingBoxThreshold',
'BStiffness',
'CacheCaustics', 'CacheRadiosity', 'CacheShadowMap',
'CameraMask', 'CameraView', 'CameraZoomTool', 'CastShadow', 'CausticIntensity',
'CenterItem', 'CenterMouse', 'ChangeTool', 'ClearAllBones', 'ClearAllCameras',
'ClearAllLights', 'ClearAllObjects', 'ClearAudio', 'ClearScene', 'ClearSelected',
'Clone', 'CommandHistory', 'CommandInput', 'Compositing', 'ConeAngleTool',
'ContentDirectory', 'CreateKey',
'DecreaseGrid', 'DeleteKey', 'DepthBufferAA', 'DepthOfField', 'DisplayOptions',
'DistantLight', 'DrawAntialiasing', 'DrawBones', 'DrawChildBones', 'DynamicUpdate',
'EditBones', 'EditCameras', 'EditKeys', 'EditLights',
'EditMenus', 'EditObjects', 'EditPlugins', 'EditServer', 'EnableCaustics',
'EnableDeformations', 'EnableIK', 'EnableLensFlares', 'EnableRadiosity', 'EnableServer',
'EnableShadowMaps', 'EnableVIPER', 'EnableVolumetricLights', 'EnableXH',
'EnableYP', 'EnableZB', 'EnahancedAA', 'ExcludeLight', 'ExcludeObject',
'EyeSeparation',
'FasterBones', 'FirstFrame', 'FirstItem', 'FitAll', 'FitSelected',
'FlareIntensity', 'FlareOptions', 'FocalDistance', 'FogColor', 'FogMaxAmount',
'FogMaxDistance', 'FogMinAmount', 'FogMinDistance', 'FogType', 'FractionalFrames',
'FrameSize', 'FramesPerSecond', 'FrameStep', 'FreePreview', 'FrontView', 'FullTimeIK',
'GeneralOptions', 'Generics', 'GlobalApertureHeight', 'GlobalBlurLength',
'GlobalFrameSize', 'GlobalIllumination', 'GlobalMaskPosition', 'GlobalMotionBlur',
'GlobalParticleBlur', 'GlobalPixelAspect', 'GlobalResolutionMulitplier', 'GoalItem',
'GoalStrength', 'GoToFrame', 'GradientBackdrop', 'GraphEditor', 'GridSize', 'GroundColor',
'HController', 'HideToolbar', 'HideWindows', 'HLimits', 'HStiffness',
'ImageEditor', 'ImageProcessing', 'IncludeLight', 'IncludeObject', 'IncreaseGrid',
'IndirectBounces', 'Item_SetWindowPos', 'ItemActive', 'ItemColor', 'ItemLock',
'ItemProperties', 'ItemVisibilty',
'KeepGoalWithinReach',
'LastFrame', 'LastItem', 'LastPluginInterface', 'Layout_SetWindowPos',
'Layout_SetWindowSize', 'LeftView', 'LensFlare', 'LensFStop', 'LightColor',
'LightConeAngle', 'LightEdgeAngle', 'LightFalloffType', 'LightIntensity',
'LightIntensityTool', 'LightQuality', 'LightRange', 'LightView', 'LimitB',
'LimitDynamicRange', 'LimitedRegion', 'LimitH', 'LimitP', 'LinearLight',
'LoadAudio', 'LoadFromScene', 'LoadMotion', 'LoadObject', 'LoadObjectLayer',
'LoadPreview', 'LoadScene', 'LocalCoordinateSystem',
'MakePreview', 'MaskColor', 'MaskPosition', 'MasterPlugins', 'MatchGoalOrientation',
'MatteColor', 'MatteObject', 'MetaballResolution', 'Model', 'MorphAmount',
'MorphAmountTool', 'MorphMTSE', 'MorphSurfaces', 'MorphTarget', 'MotionBlur',
'MotionBlurDOFPreview', 'MotionOptions', 'MovePathTool', 'MovePivotTool', 'MoveTool',
'NadirColor', 'NetRender', 'NextFrame', 'NextItem', 'NextKey', 'NextSibling',
'NextViewLayout', 'NoiseReduction', 'Numeric',
'ObjectDissolve',
'ParentCoordinateSystem', 'ParentInPlace', 'ParentItem',
'ParticleBlur', 'PathAlignLookAhead', 'PathAlignMaxLookSteps', 'PathAlignReliableDist',
'Pause', 'PController', 'PerspectiveView',
'PivotPosition', 'PivotRotation', 'PixelAspect', 'PlayAudio', 'PlayBackward',
'PlayForward', 'PlayPreview', 'PLimits', 'PointLight', 'PolygonEdgeColor',
'PolygonEdgeFlags', 'PolygonEdgeThickness', 'PolygonEdgeZScale', 'PolygonSize',
'Position', 'Presets', 'PreviewFirstFrame', 'PreviewFrameStep', 'PreviewLastFrame',
'PreviewOptions', 'PreviousFrame', 'PreviousItem', 'PreviousKey', 'PreviousSibling',
'PreviousViewLayout', 'PStiffness',
'Quit',
'RadiosityIntensity', 'RadiosityTolerance', 'RadiosityType', 'RayRecursionLimit',
'RayTraceReflection', 'RayTraceShadows',
'RayTraceTransparency', 'ReceiveShadow', 'RecentContentDirs', 'RecentScenes',
'ReconstructionFilter', 'RecordMaxAngles', 'RecordMinAngles', 'RecordPivotRotation',
'RecordRestPosition', 'Redraw', 'RedrawNow', 'Refresh', 'RefreshNow', 'RegionPosition',
'RemoveEnvelope', 'RemoveFromSelection', 'RemoveServer', 'Rename', 'RenderFrame',
'RenderOptions', 'RenderScene', 'RenderSelected', 'RenderThreads',
'ReplaceObjectLayer', 'ReplaceWithNull', 'ReplaceWithObject', 'Reset',
'ResolutionMultiplier', 'RestLengthTool', 'RightView', 'RotatePivotTool',
'RotateTool', 'Rotation',
'SaveAllObjects', 'SaveCommandList', 'SaveCommandMessages',
'SaveEndomorph', 'SaveLight', 'SaveLWSC1', 'SaveMotion', 'SaveObject', 'SaveObjectCopy',
'SavePreview', 'SaveScene', 'SaveSceneAs', 'SaveSceneCopy', 'SaveTransformed',
'SaveViewLayout', 'Scale', 'Scene_SetWindowPos', 'Scene_SetWindowSize',
'SceneEditor', 'SchematicPosition', 'SchematicView', 'SelectAllBones',
'SelectAllCameras', 'SelectAllLights', 'SelectAllObjects', 'SelectByName',
'SelectChild', 'SelectItem', 'SelectParent', 'SelfShadow', 'ShadowColor',
'ShadowExclusion', 'ShadowMapAngle', 'ShadowMapFitCone', 'ShadowMapFuzziness',
'ShadowMapSize', 'ShadowType', 'ShowCages', 'ShowFieldChart', 'ShowHandles',
'ShowIKChains', 'ShowMotionPaths', 'ShowSafeAreas', 'ShowTargetLines',
'ShrinkEdgesWithDistance', 'SingleView', 'SizeTool', 'SkelegonsToBones', 'SkyColor',
'Spotlight', 'SquashTool', 'Statistics', 'StatusMsg', 'Stereoscopic', 'StretchTool',
'SubdivisionOrder', 'SubPatchLevel', 'SurfaceEditor', 'Synchronize',
'TargetItem', 'TopView',
'UnaffectedByFog', 'UnaffectedByIK', 'Undo', 'UnseenByAlphaChannel', 'UnseenByCamera',
'UnseenByRays', 'UseGlobalResolution', 'UseGlobalBlur', 'UseGlobalMask',
'UseMorphedPositions',
'ViewLayout', 'VIPER', 'VolumetricLighting',
'VolumetricLightingOptions', 'VolumetricRadiosity', 'Volumetrics',
'WorldCoordinateSystem',
'XYView', 'XZView',
'ZenithColor', 'ZoomFactor', 'ZoomIn', 'ZoomInX2', 'ZoomOut', 'ZoomOutX2', 'ZYView',
'Camera', 'Channel', 'ChannelGroup', 'Envelope', 'File', 'Glyph', 'Icon', 'Image',
'Light', 'Mesh', 'Scene', 'Surface', 'VMap'
),
),
'SYMBOLS' => array(
'(', ')', '{', '}', '[', ']', '=', '<', '>', '+', '-', '*', '/', '!', '%', '&', '@'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => false,
2 => false,
3 => false,
4 => false,
5 => false,
6 => false,
7 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000000; font-weight: bold;',
2 => 'color: #FF6820; font-weight: bold;', //LS_COMMANDS
3 => 'color: #007F7F; font-weight: bold;', //LS_MEMBERS
4 => 'color: #800080; font-weight: bold;', //LS_METHODS
5 => 'color: #51BD95; font-weight: bold;', //LS_MODELER
6 => 'color: #416F85; font-weight: bold;', //LS_GENERAL
7 => 'color: #C92929; font-weight: bold;' //LS_COMMANDS (cont)
),
'COMMENTS' => array(
1 => 'color: #7F7F7F;',
'MULTI' => 'color: #7F7F7F;'
),
'BRACKETS' => array(
0 => 'color: #0040A0;'
),
'STRINGS' => array(
0 => 'color: #00C800;'
),
'NUMBERS' => array(
0 => 'color: #6953AC;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #0040A0;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
),
'ESCAPE_CHAR' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
5 => '',
6 => '',
7 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
3 => array(
'DISALLOWED_BEFORE' => '(?<=\.)'
),
4 => array(
'DISALLOWED_BEFORE' => '(?<=\.)'
)
)
)
);
?>

View file

@ -0,0 +1,134 @@
<?php
/*************************************************************************************
* lua.php
* -------
* Author: Roberto Rossi (rsoftware@altervista.org)
* Copyright: (c) 2004 Roberto Rossi (http://rsoftware.altervista.org), Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.7.21
* Date Started: 2004/07/10
*
* LUA language file for GeSHi.
*
* CHANGES
* -------
* 2005/08/26 (1.0.2)
* - Added support for objects and methods
* - Removed unusable keywords
* 2004/11/27 (1.0.1)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Lua',
'COMMENT_SINGLE' => array(1 => "--"),
'COMMENT_MULTI' => array('--[[' => ']]'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'and','break','do','else','elseif','end','false','for','function','if',
'in','local','nil','not','or','repeat','return','then','true','until','while',
'_VERSION','assert','collectgarbage','dofile','error','gcinfo','loadfile','loadstring',
'print','tonumber','tostring','type','unpack',
'_ALERT','_ERRORMESSAGE','_INPUT','_PROMPT','_OUTPUT',
'_STDERR','_STDIN','_STDOUT','call','dostring','foreach','foreachi','getn','globals','newtype',
'rawget','rawset','require','sort','tinsert','tremove',
'abs','acos','asin','atan','atan2','ceil','cos','deg','exp',
'floor','format','frexp','gsub','ldexp','log','log10','max','min','mod','rad','random','randomseed',
'sin','sqrt','strbyte','strchar','strfind','strlen','strlower','strrep','strsub','strupper','tan',
'openfile','closefile','readfrom','writeto','appendto',
'remove','rename','flush','seek','tmpfile','tmpname','read','write',
'clock','date','difftime','execute','exit','getenv','setlocale','time',
'_G','getfenv','getmetatable','ipairs','loadlib','next','pairs','pcall',
'rawegal','rawget','rawset','require','setfenv','setmetatable','xpcall',
'string.byte','string.char','string.dump','string.find','string.len',
'string.lower','string.rep','string.sub','string.upper','string.format','string.gfind','string.gsub',
'table.concat','table.foreach','table.foreachi','table.getn','table.sort','table.insert','table.remove','table.setn',
'math.abs','math.acos','math.asin','math.atan','math.atan2','math.ceil','math.cos','math.deg','math.exp',
'math.floor','math.frexp','math.ldexp','math.log','math.log10','math.max','math.min','math.mod',
'math.pi','math.rad','math.random','math.randomseed','math.sin','math.sqrt','math.tan',
'coroutine.create','coroutine.resume','coroutine.status',
'coroutine.wrap','coroutine.yield',
'io.close','io.flush','io.input','io.lines','io.open','io.output','io.read','io.tmpfile','io.type','io.write',
'io.stdin','io.stdout','io.stderr',
'os.clock','os.date','os.difftime','os.execute','os.exit','os.getenv','os.remove','os.rename',
'os.setlocale','os.time','os.tmpname',
'string','table','math','coroutine','io','os','debug'
)
),
'SYMBOLS' => array(
'(', ')', '{', '}', '!', '@', '%', '&', '*', '|', '/', '<', '>', '=', ';'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
0 => 'color: #b1b100;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,135 @@
<?php
/*************************************************************************************
* m68k.php
* --------
* Author: Benny Baumann (BenBE@omorphia.de)
* Copyright: (c) 2007 Benny Baumann (http://www.omorphia.de/), Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.7.21
* Date Started: 2007/02/06
*
* Motorola 68000 Assembler language file for GeSHi.
*
* Syntax definition as commonly used by the motorola documentation for the
* MC68HC908GP32 Microcontroller (and maybe others).
*
* CHANGES
* -------
* 2007/06/02 (1.0.0)
* - First Release
*
* TODO (updated 2007/06/02)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Motorola 68000 Assembler',
'COMMENT_SINGLE' => array(1 => ';'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
/*CPU*/
1 => array(
'adc','add','ais','aix','and','asl','asr','bcc','bclr','bcs','beq',
'bge','bgt','bhcc','bhcs','bhi','bhs','bih','bil','bit','ble','blo',
'bls','blt','bmc','bmi','bms','bne','bpl','bra','brclr','brn',
'brset','bset','bsr','cbeq','clc','cli','clr','cmp','com','cphx',
'cpx','daa','dbnz','dec','div','eor','inc','jmp','jsr','lda','ldhx',
'ldx','lsl','lsr','mov','mul','neg','nop','nsa','ora','psha','pshh',
'pshx','pula','pulh','pulx','rol','ror','rsp','rti','rts','sbc',
'sec','sei','sta','sthx','stop','stx','sub','swi','tap','tax','tpa',
'tst','tsx','txa','txs','wait'
),
/*registers*/
2 => array(
'a','h','x',
'hx','sp'
),
/*Directive*/
3 => array(
'#define','#endif','#else','#ifdef','#ifndef','#include','#undef',
'.db','.dd','.df','.dq','.dt','.dw','.end','.org','equ'
),
),
'SYMBOLS' => array(
','
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => false,
2 => false,
3 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0000ff; font-weight:bold;',
2 => 'color: #0000ff;',
3 => 'color: #46aa03; font-weight:bold;'
),
'COMMENTS' => array(
1 => 'color: #adadad; font-style: italic;',
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #0000ff;'
),
'STRINGS' => array(
0 => 'color: #7f007f;'
),
'NUMBERS' => array(
0 => 'color: #dd22dd;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #008000;'
),
'REGEXPS' => array(
0 => 'color: #22bbff;',
1 => 'color: #22bbff;',
2 => 'color: #993333;'
),
'SCRIPT' => array(
)
),
'URLS' => array(
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
0 => '#?0[0-9a-fA-F]{1,32}[hH]',
1 => '\%[01]{1,64}[bB]',
2 => '^[_a-zA-Z][_a-zA-Z0-9]{0,50}\:'
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 8
);
?>

View file

@ -0,0 +1,151 @@
<?php
/*************************************************************************************
* make.php
* --------
* Author: Neil Bird <phoenix@fnxweb.com>
* Copyright: (c) 2008 Neil Bird
* Release Version: 1.0.8.2
* Date Started: 2008/08/26
*
* make language file for GeSHi.
*
* (GNU make specific)
*
* CHANGES
* -------
* 2008/09/05 (1.0.0)
* - First Release
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'GNU make',
'COMMENT_SINGLE' => array(1 => '#'),
'COMMENT_REGEXP' => array(
//Escaped String Starters
2 => "/\\\\['\"]/siU"
),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
// core
'ifeq', 'else', 'endif', 'ifneq', 'ifdef', 'ifndef',
'include', 'vpath', 'export', 'unexport', 'override',
'info', 'warning', 'error'
),
2 => array(
// macros, literals
'.SUFFIXES', '.PHONY', '.DEFAULT', '.PRECIOUS', '.IGNORE', '.SILENT', '.EXPORT_ALL_VARIABLES', '.KEEP_STATE',
'.LIBPATTERNS', '.NOTPARALLEL', '.DELETE_ON_ERROR', '.INTERMEDIATE', '.POSIX', '.SECONDARY'
),
/*
3 => array(
// funcs - see regex
//'subst', 'addprefix', 'addsuffix', 'basename', 'call', 'dir', 'error', 'eval', 'filter-out', 'filter',
//'findstring', 'firstword', 'foreach', 'if', 'join', 'notdir', 'origin', 'patsubst', 'shell', 'sort', 'strip',
//'suffix', 'warning', 'wildcard', 'word', 'wordlist', 'words'
)*/
),
'SYMBOLS' => array(
'(', ')', '[', ']', '{', '}',
'!', '@', '%', '&', '|', '/',
'<', '>',
'=', '-', '+', '*',
'.', ':', ',', ';',
'$'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
//3 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #666622; font-weight: bold;',
2 => 'color: #990000;',
//3 => 'color: #000000; font-weight: bold;'
),
'COMMENTS' => array(
1 => 'color: #339900; font-style: italic;',
2 => 'color: #000099; font-weight: bold;',
'MULTI' => ''
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array( # keep same as symbols so as to make ${} and $() equiv.
0 => 'color: #004400;'
),
'STRINGS' => array(
0 => 'color: #CC2200;'
),
'NUMBERS' => array(
0 => 'color: #CC2200;'
),
'SYMBOLS' => array(
0 => 'color: #004400;'
),
'REGEXPS' => array(
0 => 'color: #000088; font-weight: bold;',
1 => 'color: #0000CC; font-weight: bold;',
2 => 'color: #000088;'
),
'SCRIPT' => array(),
'METHODS' => array()
),
'URLS' => array(
1 => '',
2 => '',
//3 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(),
'REGEXPS' => array(
//Simple variables
0 => "\\$(?:[^{(&]|&(?:amp|lt|gt);)",
//Complex variables/functions [built-ins]
1 => array(
GESHI_SEARCH => '(\\$[({])(subst|addprefix|addsuffix|basename|call|dir|error|eval|filter-out|filter,|findstring|firstword|foreach|if|join|notdir|origin|patsubst|shell|sort|strip,|suffix|warning|wildcard|word|wordlist|words)([ })])',
GESHI_REPLACE => '\\2',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '\\1',
GESHI_AFTER => '\\3'
),
//Complex variables/functions [others]
2 => array(
GESHI_SEARCH => '(\\$[({])([A-Za-z_][A-Za-z_0-9]*)([ })])',
GESHI_REPLACE => '\\2',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '\\1',
GESHI_AFTER => '\\3'
),
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(),
'HIGHLIGHT_STRICT_BLOCK' => array(),
'TAB_WIDTH' => 8
// vim: set sw=4 sts=4 :
);
?>

View file

@ -0,0 +1,867 @@
<?php
/*************************************************************************************
* matlab.php
* -----------
* Author: Florian Knorn (floz@gmx.de)
* Copyright: (c) 2004 Florian Knorn (http://www.florian-knorn.com)
* Release Version: 1.0.7.21
* Date Started: 2005/02/09
*
* Matlab M-file language file for GeSHi.
*
* CHANGES
* -------
* 2006-03-25
* - support for the transpose operator
* - many keywords added
* - links to the matlab documentation at mathworks
* by: Olivier Verdier (olivier.verdier@free.fr)
* 2005/05/07 (1.0.0)
* - First Release
*
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Matlab M',
'COMMENT_SINGLE' => array(1 => '%'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array(),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
'break', 'case', 'catch', 'continue', 'elseif', 'else', 'end', 'for',
'function', 'global', 'if', 'otherwise', 'persistent', 'return',
'switch', 'try', 'while','...'
),
2 => array(
'all',
'any',
'exist',
'find',
'is',
'isa',
'logical',
'mislocked',
'builtin',
'eval',
'evalc',
'evalin',
'feval',
'function',
'global',
'nargchk',
'persistent',
'script',
'break',
'case',
'catch',
'else',
'elseif',
'end',
'error',
'for',
'if',
'otherwise',
'return',
'switch',
'try',
'warning',
'while',
'input',
'keyboard',
'menu',
'pause',
'class',
'double',
'inferiorto',
'inline',
'int8',
'int16',
'int32',
'isa',
'loadobj',
'saveobj',
'single',
'superiorto',
'uint8',
'int16',
'uint32',
'dbclear',
'dbcont',
'dbdown',
'dbmex',
'dbquit',
'dbstack',
'dbstatus',
'dbstep',
'dbstop',
'dbtype',
'dbup',
'blkdiag',
'eye',
'linspace',
'logspace',
'ones',
'rand',
'randn',
'zeros',
'ans',
'computer',
'eps',
'flops',
'i',
'Inf',
'inputname',
'j',
'NaN',
'nargin',
'nargout',
'pi',
'realmax',
'realmin',
'varargin',
'varargout',
'calendar',
'clock',
'cputime',
'date',
'datenum',
'datestr',
'datevec',
'eomday',
'etime',
'now',
'tic',
'toc',
'weekday',
'cat',
'diag',
'fliplr',
'flipud',
'repmat',
'reshape',
'rot90',
'tril',
'triu',
'compan',
'gallery',
'hadamard',
'hankel',
'hilb',
'invhilb',
'magic',
'pascal',
'toeplitz',
'wilkinson',
'abs',
'acos',
'acosh',
'acot',
'acoth',
'acsc',
'acsch',
'angle',
'asec',
'asech',
'asin',
'asinh',
'atan',
'atanh',
'atan2',
'ceil',
'complex',
'conj',
'cos',
'cosh',
'cot',
'coth',
'csc',
'csch',
'exp',
'fix',
'floor',
'gcd',
'imag',
'lcm',
'log',
'log2',
'log10',
'mod',
'nchoosek',
'real',
'rem',
'round',
'sec',
'sech',
'sign',
'sin',
'sinh',
'sqrt',
'tan',
'tanh',
'airy',
'besselh',
'besseli',
'besselk',
'besselj',
'Bessely',
'beta',
'betainc',
'betaln',
'ellipj',
'ellipke',
'erf',
'erfc',
'erfcx',
'erfiny',
'expint',
'factorial',
'gamma',
'gammainc',
'gammaln',
'legendre',
'pow2',
'rat',
'rats',
'cart2pol',
'cart2sph',
'pol2cart',
'sph2cart',
'abs',
'eval',
'real',
'strings',
'deblank',
'findstr',
'lower',
'strcat',
'strcmp',
'strcmpi',
'strjust',
'strmatch',
'strncmp',
'strrep',
'strtok',
'strvcat',
'symvar',
'texlabel',
'upper',
'char',
'int2str',
'mat2str',
'num2str',
'sprintf',
'sscanf',
'str2double',
'str2num',
'bin2dec',
'dec2bin',
'dec2hex',
'hex2dec',
'hex2num',
'fclose',
'fopen',
'fread',
'fwrite',
'fgetl',
'fgets',
'fprintf',
'fscanf',
'feof',
'ferror',
'frewind',
'fseek',
'ftell',
'sprintf',
'sscanf',
'dlmread',
'dlmwrite',
'hdf',
'imfinfo',
'imread',
'imwrite',
'textread',
'wk1read',
'wk1write',
'bitand',
'bitcmp',
'bitor',
'bitmax',
'bitset',
'bitshift',
'bitget',
'bitxor',
'fieldnames',
'getfield',
'rmfield',
'setfield',
'struct',
'struct2cell',
'class',
'isa',
'cell',
'cellfun',
'cellstr',
'cell2struct',
'celldisp',
'cellplot',
'num2cell',
'cat',
'flipdim',
'ind2sub',
'ipermute',
'ndgrid',
'ndims',
'permute',
'reshape',
'shiftdim',
'squeeze',
'sub2ind',
'cond',
'condeig',
'det',
'norm',
'null',
'orth',
'rank',
'rcond',
'rref',
'rrefmovie',
'subspace',
'trace',
'chol',
'inv',
'lscov',
'lu',
'nnls',
'pinv',
'qr',
'balance',
'cdf2rdf',
'eig',
'gsvd',
'hess',
'poly',
'qz',
'rsf2csf',
'schur',
'svd',
'expm',
'funm',
'logm',
'sqrtm',
'qrdelete',
'qrinsert',
'bar',
'barh',
'hist',
'hold',
'loglog',
'pie',
'plot',
'polar',
'semilogx',
'semilogy',
'subplot',
'bar3',
'bar3h',
'comet3',
'cylinder',
'fill3',
'plot3',
'quiver3',
'slice',
'sphere',
'stem3',
'waterfall',
'clabel',
'datetick',
'grid',
'gtext',
'legend',
'plotyy',
'title',
'xlabel',
'ylabel',
'zlabel',
'contour',
'contourc',
'contourf',
'hidden',
'meshc',
'mesh',
'peaks',
'surf',
'surface',
'surfc',
'surfl',
'trimesh',
'trisurf',
'coneplot',
'contourslice',
'isocaps',
'isonormals',
'isosurface',
'reducepatch',
'reducevolume',
'shrinkfaces',
'smooth3',
'stream2',
'stream3',
'streamline',
'surf2patch',
'subvolume',
'griddata',
'meshgrid',
'area',
'box',
'comet',
'compass',
'errorbar',
'ezcontour',
'ezcontourf',
'ezmesh',
'ezmeshc',
'ezplot',
'ezplot3',
'ezpolar',
'ezsurf',
'ezsurfc',
'feather',
'fill',
'fplot',
'pareto',
'pie3',
'plotmatrix',
'pcolor',
'rose',
'quiver',
'ribbon',
'stairs',
'scatter',
'scatter3',
'stem',
'convhull',
'delaunay',
'dsearch',
'inpolygon',
'polyarea',
'tsearch',
'voronoi',
'camdolly',
'camlookat',
'camorbit',
'campan',
'campos',
'camproj',
'camroll',
'camtarget',
'camup',
'camva',
'camzoom',
'daspect',
'pbaspect',
'view',
'viewmtx',
'xlim',
'ylim',
'zlim',
'camlight',
'diffuse',
'lighting',
'lightingangle',
'material',
'specular',
'brighten',
'bwcontr',
'caxis',
'colorbar',
'colorcube',
'colordef',
'colormap',
'graymon',
'hsv2rgb',
'rgb2hsv',
'rgbplot',
'shading',
'spinmap',
'surfnorm',
'whitebg',
'autumn',
'bone',
'contrast',
'cool',
'copper',
'flag',
'gray',
'hot',
'hsv',
'jet',
'lines',
'prism',
'spring',
'summer',
'winter',
'orient',
'print',
'printopt',
'saveas',
'copyobj',
'findobj',
'gcbo',
'gco',
'get',
'rotate',
'ishandle',
'set',
'axes',
'figure',
'image',
'light',
'line',
'patch',
'rectangle',
'surface',
'text Create',
'uicontext Create',
'capture',
'clc',
'clf',
'clg',
'close',
'gcf',
'newplot',
'refresh',
'saveas',
'axis',
'cla',
'gca',
'propedit',
'reset',
'rotate3d',
'selectmoveresize',
'shg',
'ginput',
'zoom',
'dragrect',
'drawnow',
'rbbox',
'dialog',
'errordlg',
'helpdlg',
'inputdlg',
'listdlg',
'msgbox',
'pagedlg',
'printdlg',
'questdlg',
'uigetfile',
'uiputfile',
'uisetcolor',
'uisetfont',
'warndlg',
'menu',
'menuedit',
'uicontextmenu',
'uicontrol',
'uimenu',
'dragrect',
'findfigs',
'gcbo',
'rbbox',
'selectmoveresize',
'textwrap',
'uiresume',
'uiwait Used',
'waitbar',
'waitforbuttonpress',
'convhull',
'cumprod',
'cumsum',
'cumtrapz',
'delaunay',
'dsearch',
'factor',
'inpolygon',
'max',
'mean',
'median',
'min',
'perms',
'polyarea',
'primes',
'prod',
'sort',
'sortrows',
'std',
'sum',
'trapz',
'tsearch',
'var',
'voronoi',
'del2',
'diff',
'gradient',
'corrcoef',
'cov',
'conv',
'conv2',
'deconv',
'filter',
'filter2',
'abs',
'angle',
'cplxpair',
'fft',
'fft2',
'fftshift',
'ifft',
'ifft2',
'ifftn',
'ifftshift',
'nextpow2',
'unwrap',
'cross',
'intersect',
'ismember',
'setdiff',
'setxor',
'union',
'unique',
'conv',
'deconv',
'poly',
'polyder',
'polyeig',
'polyfit',
'polyval',
'polyvalm',
'residue',
'roots',
'griddata',
'interp1',
'interp2',
'interp3',
'interpft',
'interpn',
'meshgrid',
'ndgrid',
'spline',
'dblquad',
'fmin',
'fmins',
'fzero',
'ode45,',
'ode113,',
'ode15s,',
'ode23s,',
'ode23t,',
'ode23tb',
'odefile',
'odeget',
'odeset',
'quad,',
'vectorize',
'spdiags',
'speye',
'sprand',
'sprandn',
'sprandsym',
'find',
'full',
'sparse',
'spconvert',
'nnz',
'nonzeros',
'nzmax',
'spalloc',
'spfun',
'spones',
'colmmd',
'colperm',
'dmperm',
'randperm',
'symmmd',
'symrcm',
'condest',
'normest',
'bicg',
'bicgstab',
'cgs',
'cholinc',
'cholupdate',
'gmres',
'luinc',
'pcg',
'qmr',
'qr',
'qrdelete',
'qrinsert',
'qrupdate',
'eigs',
'svds',
'spparms',
'lin2mu',
'mu2lin',
'sound',
'soundsc',
'auread',
'auwrite',
'wavread',
'wavwrite',
'[Keywords 6]',
'addpath',
'doc',
'docopt',
'help',
'helpdesk',
'helpwin',
'lasterr',
'lastwarn',
'lookfor',
'partialpath',
'path',
'pathtool',
'profile',
'profreport',
'rmpath',
'type',
'ver',
'version',
'web',
'what',
'whatsnew',
'which',
'clear',
'disp',
'length',
'load',
'mlock',
'munlock',
'openvar',
'pack',
'save',
'saveas',
'size',
'who',
'whos',
'workspace',
'clc',
'echo',
'format',
'home',
'more',
'cd',
'copyfile',
'delete',
'diary',
'dir',
'edit',
'fileparts',
'fullfile',
'inmem',
'ls',
'matlabroot',
'mkdir',
'open',
'pwd',
'tempdir',
'tempname',
'matlabrc',
'quit',
)
),
'SYMBOLS' => array(
'...'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => false,
2 => false,
//3 => false,
//4 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0000FF;',
2 => 'color: #0000FF;'
),
'COMMENTS' => array(
1 => 'color: #228B22;',
),
'ESCAPE_CHAR' => array(
0 => ''
),
'BRACKETS' => array(
0 => 'color: #080;'
),
'STRINGS' => array(
//0 => 'color: #A020F0;'
),
'NUMBERS' => array(
0 => 'color: #33f;'
),
'METHODS' => array(
1 => '',
2 => ''
),
'SYMBOLS' => array(
0 => 'color: #080;'
),
'REGEXPS' => array(
0 => 'color:#A020F0;'
),
'SCRIPT' => array(
0 => ''
)
),
'URLS' => array(
1 => '',
2 => 'http://www.mathworks.com/access/helpdesk/help/techdoc/ref/{FNAME}.html',
3 => '',
4 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.',
2 => '::'
),
'REGEXPS' => array(
0 => array(
GESHI_SEARCH => "([^\w])'([^\\n\\r']*)'",
GESHI_REPLACE => '\\2',
GESHI_MODIFIERS => '',
GESHI_BEFORE => "\\1'",
GESHI_AFTER => "'"
)
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,156 @@
<?php
/*************************************************************************************
* mirc.php
* -----
* Author: Alberto 'Birckin' de Areba (Birckin@hotmail.com)
* Copyright: (c) 2006 Alberto de Areba
* Release Version: 1.0.7.21
* Date Started: 2006/05/29
*
* mIRC Scripting language file for GeSHi.
*
* CHANGES
* -------
* 2006/05/29 (1.0.0)
* - First Release
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'mIRC Scripting',
'COMMENT_SINGLE' => array(1 => ';'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array(),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
'alias', 'menu', 'dialog',
),
2 => array(
'if', 'elseif', 'else', 'while', 'return', 'goto',
),
3 => array(
'action','ajinvite','alias','amsg','ame','anick','aop','auser',
'avoice','auto','autojoin','away','background','ban','beep',
'channel','clear','clearall','clipboard','close','closemsg','color',
'copy','creq','ctcp','ctcpreply','ctcps','dcc','dde','ddeserver',
'debug','describe','disable','disconnect','dlevel','dll','dns',
'dqwindow','ebeeps','echo','editbox','emailaddr','enable','events',
'exit','filter','findtext','finger','flash','flood','flush',
'flushini', 'font','fsend','fserve','fullname','ghide','gload',
'gmove','gopts','gplay','gpoint','gqreq','groups','gshow','gsize',
'gstop','gtalk','gunload','guser','help','hop','ignore','invite',
'join','kick','linesep','links','list','load','loadbuf','localinfo',
'log','me','mdi','mkdir','mnick','mode','msg','names','nick','noop',
'notice','notify','omsg','onotice','part','partall','pdcc',
'perform','ping','play','pop','protect','pvoice','qmsg','qme',
'query','queryrn','quit','raw','remini','remote','remove','rename',
'enwin','resetidle','rlevel','rmdir','run','ruser','save','savebuf',
'saveini','say','server','showmirc','sline','sound','speak','splay',
'sreq','strip','time',
//'timer[N/name]', //Handled as a regular expression below ...
'timers','timestamp','titlebar','tnick','tokenize','topic','ulist',
'unload','updatenl','url','uwho','window','winhelp','write',
'writeini','who','whois','whowas'
)
),
'SYMBOLS' => array(
'(', ')', '{', '}', '[', ']',
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => false,
2 => false,
3 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #994444;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #990000; font-weight: bold;',
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
),
'ESCAPE_CHAR' => array(
),
'BRACKETS' => array(
0 => 'color: #FF0000;',
),
'STRINGS' => array(
),
'NUMBERS' => array(
0 => '',
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #FF0000;',
),
'REGEXPS' => array(
0 => 'color: #000099;',
1 => 'color: #990000;',
2 => 'color: #888800;',
3 => 'color: #888800;',
4 => 'color: #000099;',
5 => 'color: #000099;',
6 => 'color: #990000; font-weight: bold;',
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => 'http://www.mirc.com/{FNAME}',
4 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
0 => '\$[a-zA-Z0-9]+',
1 => '(%|&amp;)[a-zA-Z0-9]+',
2 => '(#|@)[a-zA-Z0-9]+',
3 => '-[a-z\d]+',
4 => '(on|ctcp) (!|@|&amp;)?(\d|\*):[a-zA-Z]+:',
/*4 => array(
GESHI_SEARCH => '((on|ctcp) (!|@|&)?(\d|\*):(Action|Active|Agent|AppActive|Ban|Chat|Close|Connect|Ctcp|CtcpReply|DccServer|DeHelp|DeOp|DeVoice|Dialog|Dns|Error|Exit|FileRcvd|FileSent|GetFail|Help|Hotlink|Input|Invite|Join|KeyDown|KeyUp|Kick|Load|Logon|MidiEnd|Mode|Mp3End|Nick|NoSound|Notice|Notify|Op|Open|Part|Ping|Pong|PlayEnd|Quit|Raw|RawMode|SendFail|Serv|ServerMode|ServerOp|Signal|Snotice|Start|Text|Topic|UnBan|Unload|Unotify|User|Mode|Voice|Wallops|WaveEnd):)',
GESHI_REPLACE => '\\1',
GESHI_MODIFIERS => 'i',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),*/
5 => 'raw (\d|\*):',
6 => '/timer(?!s\b)[0-9a-zA-Z_]+',
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
if (isset($this) && is_a($this, 'GeSHi')) {
$this->set_numbers_highlighting(false);
}
?>

View file

@ -0,0 +1,158 @@
<?php
/*************************************************************************************
* mpasm.php
* ---------
* Author: Bakalex (bakalex@gmail.com)
* Copyright: (c) 2004 Bakalex, Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.7.21
* Date Started: 2004/12/6
*
* Microchip Assembler language file for GeSHi.
*
* CHANGES
* -------
* 2005/01/29 (1.0.0)
* - First Release
*
* TODO (updated 2005/12/6)
* -------------------------
*
* For the moment, i've only added PIC16C6X registers. We need more (PIC16F/C7x/8x,
* PIC10, PIC18 and dsPIC registers).
* Must take a look to dsPIC instructions.
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Microchip Assembler',
'COMMENT_SINGLE' => array(1 => ';'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
/*Directive Language*/
4 => array(
'CONSTANT', '#DEFINE', 'END', 'EQU', 'ERROR', 'ERROR-LEVEL', '#INCLUDE', 'LIST',
'MESSG', 'NOLIST', 'ORG', 'PAGE', 'PROCESSOR', 'RADIX', 'SET', 'SPACE', 'SUBTITLE',
'TITLE', '#UNDEFINE', 'VARIABLE', 'ELSE', 'ENDIF', 'ENDW', 'IF', 'IFDEF', 'IFNDEF',
'WHILE', '__BADRAM', 'CBLOCK', '__CONFIG', 'DA', 'DATA', 'DB', 'DE', 'DT', 'DW',
'ENDC', 'FILL', '__IDLOCS', '__MAXRAM', 'RES', 'ENDM', 'EXITM', 'EXPAND', 'LOCAL',
'MACRO', 'NOEXPAND', 'BANKISEL', 'BANKSEL', 'CODE', 'EXTERN', 'GLOBAL', 'IDATA',
'PAGESEL', 'UDATA', 'UDATA_ACS', 'UDATA_OVR', 'UDATA_SHR'
),
/* 12&14-bit Specific Instruction Set*/
1 => array(
'andlw', 'call', 'clrwdt', 'goto', 'iorlw', 'movlw', 'option', 'retlw', 'sleep',
'tris', 'xorlw', 'addwf', 'andwf', 'clrf', 'clrw', 'comf', 'decf', 'decfsz', 'incf',
'incfsz', 'iorwf', 'movf', 'movwf', 'nop', 'rlf', 'rrf', 'subwf', 'swapf', 'xorwf',
'bcf', 'bsf', 'btfsc', 'btfss',
'addlw', 'iorlw', 'retfie', 'return', 'sublw', 'xorlw', 'addcf', 'adddcf', 'b', 'bc', 'bdc',
'bnc', 'bndc', 'bnz', 'bz', 'clrc', 'clrdc', 'clrz', 'lcall', 'lgoto', 'movfw',
'negf', 'setc', 'setdc', 'setz', 'skpc', 'skpdc', 'skpnc', 'skpndc', 'skpnz', 'skpz',
'subcf', 'subdcf', 'tstf'
),
/* 16-bit Specific Instructiob Set */
2 => array (
'movfp', 'movlb', 'movlp', 'movpf', 'movwf', 'tablrd', 'tablwt', 'tlrd', 'tlwt',
'addwfc', 'daw', 'mullw', 'negw', 'rlcf', 'rlncf', 'rrcf', 'rrncf', 'setf', 'subwfb',
'btg', 'cpfseq', 'cpfsgt', 'cpfslt', 'dcfsnz', 'infsnz', 'tstfsz', 'lfsr', 'bnn',
'bnov', 'bra', 'pop', 'push', 'rcall', 'reset'
),
/* Registers */
3 => array(
'INDF', 'TMR0', 'PCL', 'STATUS', 'FSR', 'PORTA', 'PORTB', 'PORTC', 'PORTD', 'PORTE',
'PCLATH', 'INTCON', 'PIR1', 'PIR2', 'TMR1L', 'TMR1H', 'T1CON', 'TMR2', 'T2CON', 'TMR2L',
'TMR2H', 'TMR0H', 'TMR0L', 'SSPBUF', 'SSPCON', 'CCPR1L', 'CCPR1H', 'CCP1CON', 'RCSTA',
'TXREG', 'RCREG', 'CCPR2L', 'CCPR2H', 'CCP2CON', 'OPTION', 'TRISA', 'TRISB', 'TRISC',
'TRISD', 'TRISE', 'PIE2', 'PIE1', 'PR2', 'SSPADD', 'SSPSTAT', 'TXSTA', 'SPBRG'
),
/*Operands*/
5 => array(
'high','low'
)
),
'SYMBOLS' => array(
'[', ']', '(', ')'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => false,
2 => false,
3 => false,
4 => false,
5 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #00007f;',
2 => 'color: #0000ff;',
3 => 'color: #007f00;',
4 => 'color: #46aa03; font-weight:bold;',
5 => 'color: #7f0000;',
6 => 'color: #7f0000;'
),
'COMMENTS' => array(
1 => 'color: #adadad; font-style: italic;',
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #7f007f;'
),
'NUMBERS' => array(
0 => 'color: #ff0000;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
0 => 'color: #ff0000;',
1 => 'color: #ff0000;'
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
0 => '[0-9a-fA-F]{1,32}[hH]',
1 => '[01]{1,64}[bB]'
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,145 @@
<?php
/*************************************************************************************
* mxml.php
* -------
* Author: David Spurr
* Copyright: (c) 2007 David Spurr (http://www.defusion.org.uk/)
* Release Version: 1.0.8.2
* Date Started: 2007/10/04
*
* MXML language file for GeSHi. Based on the XML file by Nigel McNie
*
* CHANGES
* -------
* 2007/10/04 (1.0.7.22)
* - First Release
*
* TODO
* ----
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'MXML',
'COMMENT_SINGLE' => array(),
'COMMENT_MULTI' => array('<!--' => '-->'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
),
'SYMBOLS' => array(
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
),
'STYLES' => array(
'KEYWORDS' => array(
),
'COMMENTS' => array(
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'SCRIPT' => array(
0 => 'color: #00bbdd;',
1 => 'color: #ddbb00;',
2 => 'color: #339933;',
3 => 'color: #000000;'
),
'REGEXPS' => array(
0 => 'font-weight: bold; color: black;',
1 => 'color: #7400FF;',
2 => 'color: #7400FF;'
)
),
'URLS' => array(
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
// xml declaration
0 => array(
GESHI_SEARCH => '(&lt;[\/?|(\?xml)]?[a-z0-9_\-:]*(\?&gt;))',
GESHI_REPLACE => '\\1',
GESHI_MODIFIERS => 'i',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
// opening tags
1 => array(
GESHI_SEARCH => '(&lt;\/?[a-z]+:[a-z]+)',
GESHI_REPLACE => '\\1',
GESHI_MODIFIERS => 'i',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
// closing tags
2 => array(
GESHI_SEARCH => '(\/?&gt;)',
GESHI_REPLACE => '\\1',
GESHI_MODIFIERS => 'i',
GESHI_BEFORE => '',
GESHI_AFTER => ''
)
),
'STRICT_MODE_APPLIES' => GESHI_ALWAYS,
'SCRIPT_DELIMITERS' => array(
0 => array(
'<!DOCTYPE' => '>'
),
1 => array(
'&' => ';'
),
2 => array(
//'<![CDATA[' => ']]>'
'<mx:Script>' => '</mx:Script>'
),
3 => array(
'<' => '>'
)
),
'HIGHLIGHT_STRICT_BLOCK' => array(
0 => false,
1 => false,
2 => false,
3 => true
),
'TAB_WIDTH' => 4
);
?>

View file

@ -0,0 +1,181 @@
<?php
/*************************************************************************************
* mysql.php
* ---------
* Author: Carl F<EFBFBD>rstenberg (azatoth@gmail.com)
* Copyright: (c) 2005 Carl F<EFBFBD>rstenberg, Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.7.21
* Date Started: 2004/06/04
*
* MySQL language file for GeSHi.
*
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'MySQL',
'COMMENT_SINGLE' => array(1 =>'--', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => 1,
'QUOTEMARKS' => array("'", '"', ''),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
/* Mix */
'ALTER DATABASE', 'ALTER TABLE', 'CREATE DATABASE', 'CREATE INDEX', 'CREATE TABLE', 'DROP DATABASE',
'DROP INDEX', 'DROP TABLE', 'RENAME TABLE', 'DELETE', 'DO', 'HANDLER', 'INSERT', 'LOAD DATA INFILE',
'REPLACE', 'SELECT', 'TRUNCATE', 'UPDATE', 'DESCRIBE', 'USE', 'START TRANSACTION', 'COMMIT', 'ROLLBACK',
'SAVEPOINT', 'ROLLBACK TO SAVEPOINT', 'LOCK TABLES', 'UNLOCK_TABLES', 'SET TRANACTIONS', 'SET', 'SHOW',
'CREATE PROCEDURE', 'CREATE FUNCTION', 'ALTER PROCEDURE', 'ALTER FUNCTION', 'DROP PROCEDURE', 'DROP FUNCTION',
'SHOW CREATE PROCEDURE', 'SHOW CREATE FUNCTION', 'SHOW PROCEDURE STATUS', 'SHOW FUNCTION STATUS',
'CALL', 'BEGIN', 'END', 'DECLARE', 'CREATE ROUTINE', 'ALTER ROUTINE', 'CREATE', 'ALTER', 'DROP',
'PRIMARY KEY', 'VALUES', 'INTO', 'FROM',
'ANALYZE', 'BDB', 'BERKELEYDB', 'BTREE', 'BY', 'CASCADE', 'CHECK', 'COLUMN', 'COLUMNS', 'CONSTRAINT',
'CROSS', 'DATABASES', 'DELAYED', 'DISTINCT', 'DISTINCTROW', 'ENCLOSED', 'ERRORS', 'ESCAPED', 'EXISTS',
'EXPLAIN', 'FALSE', 'FIELDS', 'FORCE', 'FOREIGN', 'FULLTEXT', 'GEOMETRY', 'GRANT', 'GROUP', 'HASH',
'HAVING', 'HELP', 'HIGH_PRIORITY', 'IGNORE', 'INNER', 'INNODB', 'INTERVAL', 'JOIN', 'KEYS', 'KILL',
'LINES', 'LOW_PRIORITY', 'MASTER_SERVER_ID', 'MATCH', 'MIDDLEINT', 'MRG_MYISAM', 'NATURAL', 'OPTIMIZE',
'OPTION', 'OPTIONALLY', 'ORDER', 'OUTER', 'OUTFILE', 'PRIVILEGES', 'PURGE', 'READ', 'REFERENCES',
'REQUIRE', 'RESTRICT', 'RETURNS', 'REVOKE', 'RLIKE', 'RTREE', 'SOME', 'SONAME', 'SPATIAL', 'SQL_BIG_RESULT',
'SQL_CALC_FOUND_ROWS', 'SQL_SMALL_RESULT', 'SSL', 'STARTING', 'STRAIGHT_JOIN', 'STRIPED', 'TERMINATED',
'TRUE', 'TYPES', 'UNION', 'USAGE', 'USER_RESOURCES', 'USING', 'VARCHARACTER', 'WARNINGS', 'WHERE', 'WRITE',
/* Control Flow Functions */
'CASE', 'WHEN', 'THEN', 'ELSE', 'END',
/* String Functions */
'UNHEX', 'BIN', 'BIT_LENGTH', 'CHAR_LENGTH', 'CHARACTER_LENGTH', 'COMPRESS', 'CONCAT',
'CONCAT_WS', 'CONV', 'ELT', 'EXPORT_SET', 'FIELD', 'FIND_IN_SET', 'FORMAT', 'HEX',
'INSERT', 'INSTR', 'LCASE', 'LEFT', 'LENGTH', 'LOAD_FILE', 'LOCATE', 'LOWER', 'LPAD',
'LTRIM', 'MAKE_SET', 'MID', 'OCT', 'OCTET_LENGTH', 'ORD', 'POSITION', 'QUOTE', 'REPEAT',
'REPLACE', 'REVERSE', 'RIGHT', 'RPAD', 'RTRIM', 'SOUNDEX', 'SPACE', 'SUBSTRING',
'SUBSTRING_INDEX', 'TRIM', 'UCASE', 'UPPER', 'UNCOMPRESS', 'UNCOMPRESSD_LENGTH',
'MD5', 'SHA1',
/* Numeric Functions */
'ABS', 'ACOS', 'ASIN', 'ATAN', 'ATAN2', 'CEILING', 'CEIL', 'COS', 'COT', 'CRC32', 'DEGREES',
'EXP', 'FLOOR', 'LN', 'LOG', 'LOG2', 'LOG10', 'MOD', 'PI', 'POW', 'POWER', 'RADIANS', 'RAND',
'ROUND', 'SIGN', 'SIN', 'SQRT', 'TAN', 'TRUNCATE',
/* Date and Time Functions */
'ADDDATE', 'ADDTIME', 'CONVERT_TZ', 'CURDATE', 'CURRENT_DATE', 'CURTIME', 'CURRENT_TIME',
'CURRENT_TIMESTAMP', 'DATEDIFF', 'DATE_ADD', 'DATE_SUB', 'DATE_FORMAT', 'DAY',
'DAYNAME', 'DAYOFMONTH', 'DAYOFWEEK', 'DAYOFYEAR', 'EXTRACT', 'FROM_DAYS', 'FROM_UNIXTIME',
'GET_FORMAT', 'LAST_DAY', 'LOCALTIME', 'LOCALTIMESTAMP', 'MAKEDATE', 'MAKETIME',
'MICROSECOND', 'MONTHNAME', 'NOW', 'PERIOD_ADD', 'PERIOD_DIFF', 'QUARTER',
'SECOND', 'SEC_TO_TIME', 'STR_TO_DATE', 'SUBDATE', 'SUBTIME', 'SYSDATE', 'TIME', 'TIMEDIFF',
'TIMESTAMP', 'TIMESTAMPADD', 'TIMESTAMPDIFF', 'TIME_FORMAT', 'TIME_TO_SEC', 'TO_DAYS',
'UNIX_TIMESTAMP', 'UTC_DATE', 'UTC_TIME', 'UTC_TIMESTAMP', 'WEEKDAY', 'WEEKOFYEAR',
'YEARWEEK',
),
2 => array(
'INTEGER', 'SMALLINT', 'DECIMAL', 'NUMERIC', 'FLOAT', 'REAL', 'DOUBLE PRECISION',
'DOUBLE', 'INT', 'DEC', 'BIT' ,'TINYINT', 'SMALLINT', 'MEDIUMINT', 'BIGINT',
'DATETIME', 'DATE', 'TIMESTAMP', 'TIME', 'YEAR',
'CHAR', 'VARCHAR', 'BINARY', 'CHARACTER VARYING', 'VARBINARY', 'TINYBLOB', 'TINYTEXT',
'BLOB', 'TEXT','MEDIUMBLOB', 'MEDIUMTEXT', 'LONGBLOB', 'LONGTEXT', 'ENUM', 'SET',
'SERIAL DEFAULT VALUE', 'SERIAL', 'FIXED'
),
3 => array(
'ZEROFILL', 'NOT NULL', 'UNSIGNED', 'AUTO_INCREMENT', 'UNIQUE', 'NOT', 'NULL', 'CHARACTER SET', 'CHARSET',
'ASCII', 'UNICODE', 'NATIONAL', 'BOTH', 'LEADING', 'TRAILING','DEFAULT'
),
4 => array(
'MICROSECOND', 'SECOND', 'MINUTE', 'HOUR', 'DAY', 'WEEK', 'MONTH', 'QUARTER', 'YEAR', 'SECOND_MICROSECOND',
'MINUTE_MICROSECOND', 'MINUTE_SECOND', 'HOUR_MICROSECOND', 'HOUR_SECOND', 'HOUR_MINUTE', 'DAY_MICROSECOND',
'DAY_SECOND', 'DAY_MINUTE', 'DAY_HOUR', 'YEAR_MONTH'
),
5 => array(
'OR', 'XOR', 'AND', 'NOT', 'BETWEEN', 'IS', 'LIKE', 'REGEXP', 'IN', 'DIV',
'MOD', 'BINARY', 'COLLATE', 'LIMIT', 'OFFSET'
),
),
'SYMBOLS' => array(
':=',
'||', 'OR', 'XOR',
'&&', 'AND',
'NOT',
'BETWEEN', 'CASE', 'WHEN', 'THEN', 'ELSE',
'=', '<=>', '>=', '>', '<=', '<', '<>', '!=', 'IS', 'LIKE', 'REGEXP', 'IN',
'|',
'&',
'<<', '>>',
'-', '+',
'*', '/', 'DIV', '%', 'MOD',
'^',
'-', '~',
'!',
'BINARY', 'COLLATE',
'(', ')',
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false,
5 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #993333; font-weight: bold;',
2 => 'color: #aa9933; font-weight: bold;',
3 => 'color: #aa3399; font-weight: bold;',
4 => 'color: #33aa99; font-weight: bold;',
5 => 'color: #993333; font-weight: bold;'
),
'COMMENTS' => array(
'MULTI' => 'color: #808080; font-style: italic;',
1 => 'color: #808080; font-style: italic;',
2 => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'SCRIPT' => array(
),
'REGEXPS' => array(
)
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,352 @@
<?php
/*************************************************************************************
* nsis.php
* --------
* Author: deguix (cevo_deguix@yahoo.com.br), Tux (http://tux.a4.cz/)
* Copyright: (c) 2005 deguix, 2004 Tux (http://tux.a4.cz/), Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.7.21
* Date Started: 2005/12/03
*
* Nullsoft Scriptable Install System language file for GeSHi.
*
* CHANGES
* -------
* 2005/12/03 (2.0.2)
* - Updated to NSIS 2.11.
* 2005/06/17 (2.0.1)
* - Updated to NSIS 2.07b0.
* 2005/04/05 (2.0.0)
* - Updated to NSIS 2.06.
* 2004/11/27 (1.0.2)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.1)
* - Added support for URLs
* 2004/08/05 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'NSIS',
'COMMENT_SINGLE' => array(1 => ';', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'",'"','`'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
'!appendfile', '!addIncludeDir', '!addplugindir', '!cd', '!define', '!delfile', '!echo', '!else',
'!endif', '!error', '!execute', '!ifdef', '!ifmacrodef', '!ifmacrondef', '!ifndef', '!include',
'!insertmacro', '!macro', '!macroend', '!packhdr', '!tempfile', '!system', '!undef', '!verbose',
'!warning'
),
2 => array(
'AddBrandingImage', 'AllowRootDirInstall', 'AutoCloseWindow', 'BGFont',
'BGGradient', 'BrandingText', 'Caption', 'ChangeUI', 'CheckBitmap', 'CompletedText', 'ComponentText',
'CRCCheck', 'DetailsButtonText', 'DirShow', 'DirText', 'DirVar', 'DirVerify', 'FileErrorText',
'Function', 'FunctionEnd', 'Icon', 'InstallButtonText', 'InstallColors', 'InstallDir',
'InstallDirRegKey', 'InstProgressFlags', 'InstType', 'LangString', 'LangStringUP', 'LicenseBkColor',
'LicenseData', 'LicenseForceSelection', 'LicenseLangString', 'LicenseText', 'LoadLanguageFile',
'MiscButtonText', 'Name', 'OutFile', 'Page', 'PageEx', 'PageExEnd', 'Section',
'SectionEnd', 'SectionGroup', 'SectionGroupEnd', 'SetCompressor', 'SetFont', 'ShowInstDetails',
'ShowUninstDetails', 'SilentInstall', 'SilentUnInstall', 'SpaceTexts', 'SubCaption', 'SubSection',
'SubSectionEnd', 'UninstallButtonText', 'UninstallCaption', 'UninstallIcon', 'UninstallSubCaption',
'UninstallText', 'UninstPage', 'Var', 'VIAddVersionKey', 'VIProductVersion', 'WindowIcon', 'XPStyle'
),
3 => array(
'AddSize', 'AllowSkipFiles', 'AutoCloseWindow', 'FileBufSize', 'GetInstDirError', 'PageCallbacks',
'SectionIn', 'SetCompress', 'SetCompressionLevel', 'SetCompressorDictSize',
'SetDatablockOptimize', 'SetDateSave', 'SetOverwrite', 'SetPluginUnload'
),
4 => array(
'Abort', 'BringToFront', 'Call', 'CallInstDLL', 'ClearErrors', 'CopyFiles','CreateDirectory',
'CreateFont', 'CreateShortCut', 'Delete', 'DeleteINISec', 'DeleteINIStr', 'DeleteRegKey',
'DeleteRegValue', 'DetailPrint', 'EnableWindow', 'EnumRegKey', 'EnumRegValue', 'Exch', 'Exec',
'ExecShell', 'ExecWait', 'ExpandEnvStrings', 'File', 'FileClose', 'FileOpen', 'FileRead',
'FileReadByte', 'FileSeek', 'FileWrite', 'FileWriteByte', 'FindClose', 'FindFirst', 'FindNext',
'FindWindow', 'FlushINI', 'GetCurInstType', 'GetCurrentAddress', 'GetDlgItem', 'GetDLLVersion',
'GetDLLVersionLocal', 'GetErrorLevel', 'GetFileTime', 'GetFileTimeLocal', 'GetFullPathName',
'GetFunctionAddress', 'GetLabelAddress', 'GetTempFileName', 'GetWindowText', 'Goto', 'HideWindow',
'IfAbort', 'IfErrors', 'IfFileExists', 'IfRebootFlag', 'IfSilent', 'InitPluginsDir', 'InstTypeGetText',
'InstTypeSetText', 'IntCmp', 'IntCmpU', 'IntFmt', 'IntOp', 'IsWindow', 'LockWindow', 'LogSet', 'LogText',
'MessageBox', 'Nop', 'Pop', 'Push', 'Quit', 'ReadEnvStr', 'ReadIniStr', 'ReadRegDWORD', 'ReadRegStr',
'Reboot', 'RegDLL', 'Rename', 'ReserveFile', 'Return', 'RMDir', 'SearchPath', 'SectionGetFlags',
'SectionGetInstTypes', 'SectionGetSize', 'SectionGetText', 'SectionSetFlags', 'SectionSetInstTypes',
'SectionSetSize', 'SectionSetText', 'SendMessage', 'SetAutoClose', 'SetBrandingImage', 'SetCtlColors',
'SetCurInstType', 'SetDetailsPrint', 'SetDetailsView', 'SetErrorLevel', 'SetErrors', 'SetFileAttributes',
'SetOutPath', 'SetRebootFlag', 'SetShellVarContext', 'SetSilent', 'ShowWindow', 'Sleep', 'StrCmp',
'StrCpy', 'StrLen', 'UnRegDLL', 'WriteINIStr', 'WriteRegBin', 'WriteRegDWORD', 'WriteRegExpandStr',
'WriteRegStr', 'WriteUninstaller'
),
5 => array(
'all', 'alwaysoff', 'ARCHIVE', 'auto', 'both', 'bzip2', 'checkbox', 'components', 'current',
'custom', 'directory', 'false', 'FILE_ATTRIBUTE_ARCHIVE', 'FILE_ATTRIBUTE_HIDDEN', 'FILE_ATTRIBUTE_NORMAL',
'FILE_ATTRIBUTE_OFFLINE', 'FILE_ATTRIBUTE_READONLY', 'FILE_ATTRIBUTE_SYSTEM,TEMPORARY',
'FILE_ATTRIBUTE_TEMPORARY', 'force', 'HIDDEN', 'hide', 'HKCC', 'HKCR', 'HKCU', 'HKDD', 'HKEY_CLASSES_ROOT',
'HKEY_CURRENT_CONFIG', 'HKEY_CURRENT_USER', 'HKEY_DYN_DATA', 'HKEY_LOCAL_MACHINE', 'HKEY_PERFORMANCE_DATA',
'HKEY_USERS', 'HKLM', 'HKPD', 'HKU', 'IDABORT', 'IDCANCEL', 'IDIGNORE', 'IDNO', 'IDOK', 'IDRETRY', 'IDYES',
'ifdiff', 'ifnewer', 'instfiles', 'lastused', 'leave', 'license', 'listonly', 'lzma', 'manual',
'MB_ABORTRETRYIGNORE', 'MB_DEFBUTTON1', 'MB_DEFBUTTON2', 'MB_DEFBUTTON3', 'MB_DEFBUTTON4',
'MB_ICONEXCLAMATION', 'MB_ICONINFORMATION', 'MB_ICONQUESTION', 'MB_ICONSTOP', 'MB_OK', 'MB_OKCANCEL',
'MB_RETRYCANCEL', 'MB_RIGHT', 'MB_SETFOREGROUND', 'MB_TOPMOST', 'MB_YESNO', 'MB_YESNOCANCEL', 'nevershow',
'none', 'normal', 'off', 'OFFLINE', 'on', 'radiobuttons', 'READONLY', 'RO', 'SHCTX', 'SHELL_CONTEXT', 'show',
'silent', 'silentlog', 'SW_HIDE', 'SW_SHOWMAXIMIZED', 'SW_SHOWMINIMIZED', 'SW_SHOWNORMAL', 'SYSTEM',
'textonly', 'true', 'try', 'uninstConfirm', 'zlib'
),
6 => array(
'/a', '/components', '/COMPONENTSONLYONCUSTOM', '/CUSTOMSTRING', '/e', '/FILESONLY', '/FINAL', '/gray', '/GLOBAL',
'/ifempty', '/IMGID', '/ITALIC', '/lang', '/NOCUSTOM', '/nonfatal', '/NOUNLOAD', '/oname', '/r', '/REBOOTOK',
'/RESIZETOFIT', '/SOLID', '/SD', '/SHORT', '/silent', '/SOLID', '/STRIKE', '/TIMEOUT', '/TRIMCENTER', '/TRIMLEFT',
'/TRIMRIGHT', '/UNDERLINE', '/windows', '/x'
),
7 => array(
'.onGUIEnd', '.onGUIInit', '.onInit', '.onInstFailed', '.onInstSuccess', '.onMouseOverSection',
'.onRebootFailed', '.onSelChange', '.onUserAbort', '.onVerifyInstDir', 'un.onGUIEnd', 'un.onGUIInit',
'un.onInit', 'un.onRebootFailed', 'un.onUninstFailed', 'un.onUninstSuccess', 'un.onUserAbort'
),
8 => array(
'MUI.nsh', '"${NSISDIR}\Contrib\Modern UI\System.nsh"', 'MUI_SYSVERSION', 'MUI_ICON', 'MUI_UNICON',
'MUI_HEADERIMAGE', 'MUI_HEADERIMAGE_BITMAP', 'MUI_HEADERIMAGE_BITMAP_NOSTRETCH', 'MUI_HEADERIMAGE_BITMAP_RTL',
'MUI_HEADERIMAGE_BITMAP_RTL_NOSTRETCH', 'MUI_HEADERIMAGE_UNBITMAP', 'MUI_HEADERIMAGE_UNBITMAP_NOSTRETCH',
'MUI_HEADERIMAGE_UNBITMAP_RTL', 'MUI_HEADERIMAGE_UNBITMAP_RTL_NOSTRETCH', 'MUI_HEADERIMAGE_RIGHT', 'MUI_BGCOLOR',
'MUI_UI', 'MUI_UI_HEADERIMAGE', 'MUI_UI_HEADERIMAGE_RIGHT', 'MUI_UI_COMPONENTSPAGE_SMALLDESC',
'MUI_UI_COMPONENTSPAGE_NODESC', 'MUI_WELCOMEFINISHPAGE_BITMAP', 'MUI_WELCOMEFINISHPAGE_BITMAP_NOSTRETCH',
'MUI_WELCOMEFINISHPAGE_INI', 'MUI_UNWELCOMEFINISHPAGE_BITMAP', 'MUI_UNWELCOMEFINISHPAGE_BITMAP_NOSTRETCH',
'MUI_UNWELCOMEFINISHPAGE_INI', 'MUI_LICENSEPAGE_BGCOLOR', 'MUI_COMPONENTSPAGE_CHECKBITMAP',
'MUI_COMPONENTSPAGE_SMALLDESC', 'MUI_COMPONENTSPAGE_NODESC', 'MUI_INSTFILESPAGE_COLORS',
'MUI_INSTFILESPAGE_PROGRESSBAR', 'MUI_FINISHPAGE_NOAUTOCLOSE', 'MUI_UNFINISHPAGE_NOAUTOCLOSE',
'MUI_ABORTWARNING', 'MUI_ABORTWARNING_TEXT', 'MUI_UNABORTWARNING', 'MUI_UNABORTWARNING_TEXT',
'MUI_PAGE_WELCOME', 'MUI_PAGE_LICENSE', 'MUI_PAGE_COMPONENTS', 'MUI_PAGE_DIRECTORY',
'MUI_PAGE_STARTMENU', 'MUI_PAGE_INSTFILES', 'MUI_PAGE_FINISH', 'MUI_UNPAGE_WELCOME',
'MUI_UNPAGE_CONFIRM', 'MUI_UNPAGE_LICENSE', 'MUI_UNPAGE_COMPONENTS', 'MUI_UNPAGE_DIRECTORY',
'MUI_UNPAGE_INSTFILES', 'MUI_UNPAGE_FINISH', 'MUI_PAGE_HEADER_TEXT', 'MUI_PAGE_HEADER_SUBTEXT',
'MUI_WELCOMEPAGE_TITLE', 'MUI_WELCOMEPAGE_TITLE_3LINES', 'MUI_WELCOMEPAGE_TEXT',
'MUI_LICENSEPAGE_TEXT_TOP', 'MUI_LICENSEPAGE_TEXT_BOTTOM', 'MUI_LICENSEPAGE_BUTTON',
'MUI_LICENSEPAGE_CHECKBOX', 'MUI_LICENSEPAGE_CHECKBOX_TEXT', 'MUI_LICENSEPAGE_RADIOBUTTONS',
'MUI_LICENSEPAGE_RADIOBUTTONS_TEXT_ACCEPT', 'MUI_LICENSEPAGE_RADIOBUTTONS_TEXT_DECLINE',
'MUI_COMPONENTSPAGE_TEXT_TOP', 'MUI_COMPONENTSPAGE_TEXT_COMPLIST', 'MUI_COMPONENTSPAGE_TEXT_INSTTYPE',
'MUI_COMPONENTSPAGE_TEXT_DESCRIPTION_TITLE', 'MUI_COMPONENTSPAGE_TEXT_DESCRIPTION_INFO',
'MUI_DIRECTORYPAGE_TEXT_TOP', 'MUI_DIRECTORYPAGE_TEXT_DESTINATION', 'MUI_DIRECTORYPAGE_VARIABLE',
'MUI_DIRECTORYPAGE_VERIFYONLEAVE', 'MUI_STARTMENU_WRITE_BEGIN', 'MUI_STARTMENU_WRITE_END',
'MUI_STARTMENUPAGE_TEXT_TOP', 'MUI_STARTMENUPAGE_TEXT_CHECKBOX', 'MUI_STARTMENUPAGE_DEFAULTFOLDER',
'MUI_STARTMENUPAGE_NODISABLE', 'MUI_STARTMENUPAGE_REGISTRY_ROOT', 'MUI_STARTMENUPAGE_REGISTRY_KEY',
'MUI_STARTMENUPAGE_REGISTRY_VALUENAME', 'MUI_INSTFILESPAGE_FINISHHEADER_TEXT',
'MUI_INSTFILESPAGE_FINISHHEADER_SUBTEXT', 'MUI_INSTFILESPAGE_ABORTHEADER_TEXT',
'MUI_INSTFILESPAGE_ABORTHEADER_SUBTEXT', 'MUI_FINISHPAGE_TITLE', 'MUI_FINISHPAGE_TITLE_3LINES',
'MUI_FINISHPAGE_TEXT', 'MUI_FINISHPAGE_TEXT_LARGE', 'MUI_FINISHPAGE_BUTTON',
'MUI_FINISHPAGE_TEXT_REBOOT', 'MUI_FINISHPAGE_TEXT_REBOOTNOW', 'MUI_FINISHPAGE_TEXT_REBOOTLATER',
'MUI_FINISHPAGE_RUN', 'MUI_FINISHPAGE_RUN_TEXT', 'MUI_FINISHPAGE_RUN_PARAMETERS',
'MUI_FINISHPAGE_RUN_NOTCHECKED', 'MUI_FINISHPAGE_RUN_FUNCTION', 'MUI_FINISHPAGE_SHOWREADME',
'MUI_FINISHPAGE_SHOWREADME_TEXT', 'MUI_FINISHPAGE_SHOWREADME_NOTCHECKED',
'MUI_FINISHPAGE_SHOWREADME_FUNCTION', 'MUI_FINISHPAGE_LINK', 'MUI_FINISHPAGE_LINK_LOCATION',
'MUI_FINISHPAGE_LINK_COLOR', 'MUI_FINISHPAGE_NOREBOOTSUPPORT', 'MUI_UNCONFIRMPAGE_TEXT_TOP',
'MUI_UNCONFIRMPAGE_TEXT_LOCATION', 'MUI_LANGUAGE', 'MUI_LANGDLL_DISPLAY',
'MUI_LANGDLL_REGISTRY_ROOT', 'MUI_LANGDLL_REGISTRY_KEY', 'MUI_LANGDLL_REGISTRY_VALUENAME',
'MUI_LANGDLL_WINDOWTITLE', 'MUI_LANGDLL_INFO', 'MUI_LANGDLL_ALWAYSSHOW',
'MUI_RESERVEFILE_INSTALLOPTIONS', 'MUI_RESERVEFILE_LANGDLL', 'MUI_FUNCTION_DESCRIPTION_BEGIN',
'MUI_DESCRIPTION_TEXT', 'MUI_FUNCTION_DESCRIPTION_END', 'MUI_INSTALLOPTIONS_EXTRACT',
'MUI_INSTALLOPTIONS_EXTRACT_AS', 'MUI_HEADER_TEXT', 'MUI_INSTALLOPTIONS_DISPLAY',
'MUI_INSTALLOPTIONS_INITDIALOG', 'MUI_INSTALLOPTIONS_SHOW',
'MUI_INSTALLOPTIONS_DISPLAY_RETURN', 'MUI_INSTALLOPTIONS_SHOW_RETURN',
'MUI_INSTALLOPTIONS_READ', 'MUI_INSTALLOPTIONS_WRITE',
'MUI_CUSTOMFUNCTION_GUIINIT', 'MUI_CUSTOMFUNCTION_GUIINIT',
'MUI_CUSTOMFUNCTION_UNGUIINIT', 'MUI_CUSTOMFUNCTION_ABORT', 'MUI_CUSTOMFUNCTION_UNABORT',
'MUI_PAGE_CUSTOMFUNCTION_PRE', 'MUI_PAGE_CUSTOMFUNCTION_SHOW', 'MUI_PAGE_CUSTOMFUNCTION_LEAVE',
'MUI_WELCOMEFINISHPAGE_CUSTOMFUNCTION_INIT'
),
9 => array(
'LogicLib.nsh', '${LOGICLIB}', 'LOGICLIB_STRCMP', 'LOGICLIB_INT64CMP', 'LOGICLIB_SECTIONCMP', '${If}', '${Unless}',
'${ElseIf}', '${ElseUnless}', '${Else}', '${EndIf}', '${EndUnless}', '${AndIf}', '${AndUnless}',
'${OrIf}', '${OrUnless}', '${IfThen}', '${IfCmd}', '${Select}', '${Case2}', '${Case3}',
'${Case4}', '${Case5}', '${CaseElse}', '${Default}', '${EndSelect}', '${Switch}',
'${Case}', '${EndSwitch}', '${Do}', '${DoWhile}', '${UntilWhile}', '${Continue}', '${Break}',
'${Loop}', '${LoopWhile}', '${LoopUntil}', '${While}', '${ExitWhile}', '${EndWhile}', '${For}',
'${ForEach}', '${ExitFor}', '${Next}', '${Abort}', '${Errors}', '${RebootFlag}', '${Silent}',
'${FileExists}', '${Cmd}', '${SectionIsSelected}', '${SectionIsSectionGroup}',
'${SectionIsSectionGroupEnd}', '${SectionIsBold}', '${SectionIsReadOnly}',
'${SectionIsExpanded}', '${SectionIsPartiallySelected}'
),
10 => array(
'StrFunc.nsh', '${STRFUNC}', '${StrCase}', '${StrClb}', '${StrIOToNSIS}', '${StrLoc}', '${StrNSISToIO}', '${StrRep}',
'${StrSort}', '${StrStr}', '${StrStrAdv}', '${StrTok}', '${StrTrimNewLines}'
),
11 => array(
'UpgradeDLL.nsh', 'UPGRADEDLL_INCLUDED', 'UpgradeDLL'
),
12 => array(
'Sections.nsh', 'SECTIONS_INCLUDED', '${SF_SELECTED}', '${SF_SECGRP}', '${SF_SUBSEC}', '${SF_SECGRPEND}',
'${SF_SUBSECEND}', '${SF_BOLD}', '${SF_RO}', '${SF_EXPAND}', '${SF_PSELECTED}', '${SF_TOGGLED}',
'${SF_NAMECHG}', '${SECTION_OFF}', 'SelectSection', 'UnselectSection', 'ReverseSection',
'StartRadioButtons', 'RadioButton', 'EndRadioButtons', '${INSTTYPE_1}', '${INSTTYPE_1}', '${INSTTYPE_2}',
'${INSTTYPE_3}', '${INSTTYPE_4}', '${INSTTYPE_5}', '${INSTTYPE_6}', '${INSTTYPE_7}', '${INSTTYPE_8}',
'${INSTTYPE_9}', '${INSTTYPE_10}', '${INSTTYPE_11}', '${INSTTYPE_12}', '${INSTTYPE_13}', '${INSTTYPE_14}',
'${INSTTYPE_15}', '${INSTTYPE_16}', '${INSTTYPE_17}', '${INSTTYPE_18}', '${INSTTYPE_19}', '${INSTTYPE_20}',
'${INSTTYPE_21}', '${INSTTYPE_22}', '${INSTTYPE_23}', '${INSTTYPE_24}', '${INSTTYPE_25}', '${INSTTYPE_26}',
'${INSTTYPE_27}', '${INSTTYPE_28}', '${INSTTYPE_29}', '${INSTTYPE_30}', '${INSTTYPE_31}', '${INSTTYPE_32}',
'SetSectionInInstType', 'ClearSectionInInstType', 'SetSectionFlag', 'ClearSectionFlag', 'SectionFlagIsSet'
),
13 => array(
'Colors.nsh', 'WHITE', 'BLACK', 'YELLOW', 'RED', 'GREEN', 'BLUE', 'MAGENTA', 'CYAN', 'rgb2hex'
),
14 => array(
'FileFunc.nsh', '${Locate}', '${GetSize}', '${DriveSpace}', '${GetDrives}', '${GetTime}', '${GetFileAttributes}', '${GetFileVersion}', '${GetExeName}', '${GetExePath}', '${GetParameters}', '${GetOptions}', '${GetRoot}', '${GetParent}', '${GetFileName}', '${GetBaseName}', '${GetFileExt}', '${BannerTrimPath}', '${DirState}', '${RefreshShellIcons}'
),
15 => array(
'TextFunc.nsh', '${LineFind}', '${LineRead}', '${FileReadFromEnd}', '${LineSum}', '${FileJoin}', '${TextCompare}', '${ConfigRead}', '${ConfigWrite}', '${FileRecode}', '${TrimNewLines}'
),
16 => array(
'WordFunc.nsh', '${WordFind}', '${WordFind2X}', '${WordFind3X}', '${WordReplace}', '${WordAdd}', '${WordInsert}', '${StrFilter}', '${VersionCompare}', '${VersionConvert}'
)
),
'SYMBOLS' => array(
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => false,
2 => false,
3 => false,
4 => false,
5 => false,
6 => false,
7 => false,
8 => false,
9 => false,
10 => false,
11 => false,
12 => false,
13 => false,
14 => false,
15 => false,
16 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000066; font-weight:bold;',
2 => 'color: #000066;',
3 => 'color: #003366;',
4 => 'color: #000099;',
5 => 'color: #ff6600;',
6 => 'color: #ff6600;',
7 => 'color: #006600;',
8 => 'color: #006600;',
9 => 'color: #006600;',
10 => 'color: #006600;',
11 => 'color: #006600;',
12 => 'color: #006600;',
13 => 'color: #006600;',
14 => 'color: #006600;',
15 => 'color: #006600;',
16 => 'color: #006600;'
),
'COMMENTS' => array(
1 => 'color: #666666; font-style: italic;',
2 => 'color: #666666; font-style: italic;',
'MULTI' => 'color: #666666; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #660066; font-weight: bold;'
),
'BRACKETS' => array(
0 => ''
),
'STRINGS' => array(
0 => 'color: #660066;'
),
'NUMBERS' => array(
0 => ''
),
'METHODS' => array(
0 => ''
),
'SYMBOLS' => array(
0 => ''
),
'REGEXPS' => array(
0 => 'color: #660000;',
1 => 'color: #660000;',
2 => 'color: #660000;',
3 => 'color: #660000;',
4 => 'color: #660000;',
5 => 'color: #660000;',
6 => 'color: #660000;',
7 => 'color: #000099;',
8 => 'color: #003399;'
),
'SCRIPT' => array(
0 => ''
)
),
'URLS' => array(
0 => '',
1 => '',
2 => '',
3 => '',
4 => '',
5 => '',
6 => '',
7 => '',
8 => '',
9 => '',
10 => '',
11 => '',
12 => '',
13 => '',
14 => '',
15 => '',
16 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
0 => '\$\$',
1 => '\$\\r',
2 => '\$\\n',
3 => '\$\\t',
4 => '\$[a-zA-Z0-9_]+',
5 => '\$\{.{1,256}\}',
6 => '\$\\\(.{1,256}\\\)',
7 => array(
GESHI_SEARCH => '([^:/\\\*\?\"\<\>\|\s]*?)(::)([^:/\\\*\?\"\<\>\|\s]*?)',
GESHI_REPLACE => '\\1',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '',
GESHI_AFTER => '\\2\\3'
),
8 => array(
GESHI_SEARCH => '([^:/\\\*\?\"\<\>\|\s]*?)(::)([^:/\\\*\?\"\<\>\|]*?\s)',
GESHI_REPLACE => '\\3',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '\\1\\2',
GESHI_AFTER => ''
)
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,239 @@
<?php
/*************************************************************************************
* objc.php
* --------
* Author: M. Uli Kusterer (witness.of.teachtext@gmx.net)
* Copyright: (c) 2004 M. Uli Kusterer, Nigel McNie (http://qbnz.com/highlighter/)
* Release Version: 1.0.7.21
* Date Started: 2004/06/04
*
* Objective C language file for GeSHi.
*
* CHANGES
* -------
* 2004/11/27 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Objective C',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'if', 'return', 'while', 'case', 'continue', 'default',
'do', 'else', 'for', 'switch', 'goto'
),
2 => array(
'NULL', 'false', 'break', 'true', 'enum', 'nil', 'Nil', 'errno', 'EDOM',
'ERANGE', 'FLT_RADIX', 'FLT_ROUNDS', 'FLT_DIG', 'DBL_DIG', 'LDBL_DIG',
'FLT_EPSILON', 'DBL_EPSILON', 'LDBL_EPSILON', 'FLT_MANT_DIG', 'DBL_MANT_DIG',
'LDBL_MANT_DIG', 'FLT_MAX', 'DBL_MAX', 'LDBL_MAX', 'FLT_MAX_EXP', 'DBL_MAX_EXP',
'LDBL_MAX_EXP', 'FLT_MIN', 'DBL_MIN', 'LDBL_MIN', 'FLT_MIN_EXP', 'DBL_MIN_EXP',
'LDBL_MIN_EXP', 'CHAR_BIT', 'CHAR_MAX', 'CHAR_MIN', 'SCHAR_MAX', 'SCHAR_MIN',
'UCHAR_MAX', 'SHRT_MAX', 'SHRT_MIN', 'USHRT_MAX', 'INT_MAX', 'INT_MIN',
'UINT_MAX', 'LONG_MAX', 'LONG_MIN', 'ULONG_MAX', 'HUGE_VAL', 'SIGABRT',
'SIGFPE', 'SIGILL', 'SIGINT', 'SIGSEGV', 'SIGTERM', 'SIG_DFL', 'SIG_ERR',
'SIG_IGN', 'BUFSIZ', 'EOF', 'FILENAME_MAX', 'FOPEN_MAX', 'L_tmpnam', 'NULL',
'SEEK_CUR', 'SEEK_END', 'SEEK_SET', 'TMP_MAX', 'stdin', 'stdout', 'stderr',
'EXIT_FAILURE', 'EXIT_SUCCESS', 'RAND_MAX', 'CLOCKS_PER_SEC'
),
3 => array(
'printf', 'fprintf', 'snprintf', 'sprintf', 'assert',
'isalnum', 'isalpha', 'isdigit', 'iscntrl', 'isgraph', 'islower', 'isprint',
'ispunct', 'isspace', 'ispunct', 'isupper', 'isxdigit', 'tolower', 'toupper',
'exp', 'log', 'log10', 'pow', 'sqrt', 'ceil', 'floor', 'fabs', 'ldexp',
'frexp', 'modf', 'fmod', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'atan2',
'sinh', 'cosh', 'tanh', 'setjmp', 'longjmp', 'asin', 'acos', 'atan', 'atan2',
'va_start', 'va_arg', 'va_end', 'offsetof', 'sizeof', 'fopen', 'freopen',
'fflush', 'fclose', 'remove', 'rename', 'tmpfile', 'tmpname', 'setvbuf',
'setbuf', 'vfprintf', 'vprintf', 'vsprintf', 'fscanf', 'scanf', 'sscanf',
'fgetc', 'fgets', 'fputc', 'fputs', 'getc', 'getchar', 'gets', 'putc',
'putchar', 'puts', 'ungetc', 'fread', 'fwrite', 'fseek', 'ftell', 'rewind',
'fgetpos', 'fsetpos', 'clearerr', 'feof', 'ferror', 'perror', 'abs', 'labs',
'div', 'ldiv', 'atof', 'atoi', 'atol', 'strtod', 'strtol', 'strtoul', 'calloc',
'malloc', 'realloc', 'free', 'abort', 'exit', 'atexit', 'system', 'getenv',
'bsearch', 'qsort', 'rand', 'srand', 'strcpy', 'strncpy', 'strcat', 'strncat',
'strcmp', 'strncmp', 'strcoll', 'strchr', 'strrchr', 'strspn', 'strcspn',
'strpbrk', 'strstr', 'strlen', 'strerror', 'strtok', 'strxfrm', 'memcpy',
'memmove', 'memcmp', 'memchr', 'memset', 'clock', 'time', 'difftime', 'mktime',
'asctime', 'ctime', 'gmtime', 'localtime', 'strftime'
),
4 => array( // Data types:
'auto', 'char', 'const', 'double', 'float', 'int', 'long',
'register', 'short', 'signed', 'sizeof', 'static', 'string', 'struct',
'typedef', 'union', 'unsigned', 'void', 'volatile', 'extern', 'jmp_buf',
'signal', 'raise', 'va_list', 'ptrdiff_t', 'size_t', 'FILE', 'fpos_t',
'div_t', 'ldiv_t', 'clock_t', 'time_t', 'tm',
// OpenStep/GNUstep/Cocoa:
'SEL', 'id', 'NSRect', 'NSRange', 'NSPoint', 'NSZone', 'Class', 'IMP', 'BOOL',
// OpenStep/GNUstep/Cocoa @identifiers
'@selector', '@class', '@protocol', '@interface', '@implementation', '@end',
'@private', '@protected', '@public', '@try', '@throw', '@catch', '@finally',
'@encode', '@defs', '@synchronized'
),
5 => array( // OpenStep/GNUstep/Cocoa Foundation
'NSAppleEventDescriptor', 'NSNetService', 'NSAppleEventManager',
'NSNetServiceBrowser', 'NSAppleScript', 'NSNotification', 'NSArchiver',
'NSNotificationCenter', 'NSArray', 'NSNotificationQueue', 'NSAssertionHandler',
'NSNull', 'NSAttributedString', 'NSNumber', 'NSAutoreleasePool',
'NSNumberFormatter', 'NSBundle', 'NSObject', 'NSCachedURLResponse',
'NSOutputStream', 'NSCalendarDate', 'NSPipe', 'NSCharacterSet', 'NSPort',
'NSClassDescription', 'NSPortCoder', 'NSCloneCommand', 'NSPortMessage',
'NSCloseCommand', 'NSPortNameServer', 'NSCoder', 'NSPositionalSpecifier',
'NSConditionLock', 'NSProcessInfo', 'NSConnection', 'NSPropertyListSerialization',
'NSCountCommand', 'NSPropertySpecifier', 'NSCountedSet', 'NSProtocolChecker',
'NSCreateCommand', 'NSProxy', 'NSData', 'NSQuitCommand', 'NSDate',
'NSRandomSpecifier', 'NSDateFormatter', 'NSRangeSpecifier', 'NSDecimalNumber',
'NSRecursiveLock', 'NSDecimalNumberHandler', 'NSRelativeSpecifier',
'NSDeleteCommand', 'NSRunLoop', 'NSDeserializer', 'NSScanner', 'NSDictionary',
'NSScriptClassDescription', 'NSDirectoryEnumerator', 'NSScriptCoercionHandler',
'NSDistantObject', 'NSScriptCommand', 'NSDistantObjectRequest',
'NSScriptCommandDescription', 'NSDistributedLock', 'NSScriptExecutionContext',
'NSDistributedNotificationCenter', 'NSScriptObjectSpecifier', 'NSEnumerator',
'NSScriptSuiteRegistry', 'NSError', 'NSScriptWhoseTest', 'NSException',
'NSSerializer', 'NSExistsCommand', 'NSSet', 'NSFileHandle', 'NSSetCommand',
'NSFileManager', 'NSSocketPort', 'NSFormatter', 'NSSocketPortNameServer',
'NSGetCommand', 'NSSortDescriptor', 'NSHost', 'NSSpecifierTest', 'NSHTTPCookie',
'NSSpellServer', 'NSHTTPCookieStorage', 'NSStream', 'NSHTTPURLResponse',
'NSString', 'NSIndexSet', 'NSTask', 'NSIndexSpecifier', 'NSThread',
'NSInputStream', 'NSTimer', 'NSInvocation', 'NSTimeZone', 'NSKeyedArchiver',
'NSUnarchiver', 'NSKeyedUnarchiver', 'NSUndoManager', 'NSLock',
'NSUniqueIDSpecifier', 'NSLogicalTest', 'NSURL', 'NSMachBootstrapServer',
'NSURLAuthenticationChallenge', 'NSMachPort', 'NSURLCache', 'NSMessagePort',
'NSURLConnection', 'NSMessagePortNameServer', 'NSURLCredential',
'NSMethodSignature', 'NSURLCredentialStorage', 'NSMiddleSpecifier',
'NSURLDownload', 'NSMoveCommand', 'NSURLHandle', 'NSMutableArray',
'NSURLProtectionSpace', 'NSMutableAttributedString', 'NSURLProtocol',
'NSMutableCharacterSet', 'NSURLRequest', 'NSMutableData', 'NSURLResponse',
'NSMutableDictionary', 'NSUserDefaults', 'NSMutableIndexSet', 'NSValue',
'NSMutableSet', 'NSValueTransformer', 'NSMutableString', 'NSWhoseSpecifier',
'NSMutableURLRequest', 'NSXMLParser', 'NSNameSpecifier'
),
6 => array( // OpenStep/GNUstep/Cocoa AppKit
'NSActionCell', 'NSOpenGLPixelFormat', 'NSAffineTransform', 'NSOpenGLView',
'NSAlert', 'NSOpenPanel', 'NSAppleScript Additions', 'NSOutlineView',
'NSApplication', 'NSPageLayout', 'NSArrayController', 'NSPanel',
'NSATSTypesetter', 'NSParagraphStyle', 'NSPasteboard', 'NSBezierPath',
'NSPDFImageRep', 'NSBitmapImageRep', 'NSPICTImageRep', 'NSBox', 'NSPopUpButton',
'NSBrowser', 'NSPopUpButtonCell', 'NSBrowserCell', 'NSPrinter', 'NSPrintInfo',
'NSButton', 'NSPrintOperation', 'NSButtonCell', 'NSPrintPanel', 'NSCachedImageRep',
'NSProgressIndicator', 'NSCell', 'NSQuickDrawView', 'NSClipView', 'NSResponder',
'NSRulerMarker', 'NSColor', 'NSRulerView', 'NSColorList', 'NSSavePanel',
'NSColorPanel', 'NSScreen', 'NSColorPicker', 'NSScroller', 'NSColorWell',
'NSScrollView', 'NSComboBox', 'NSSearchField', 'NSComboBoxCell',
'NSSearchFieldCell', 'NSControl', 'NSSecureTextField', 'NSController',
'NSSecureTextFieldCell', 'NSCursor', 'NSSegmentedCell', 'NSCustomImageRep',
'NSSegmentedControl', 'NSDocument', 'NSShadow', 'NSDocumentController',
'NSSimpleHorizontalTypesetter', 'NSDrawer', 'NSSlider', 'NSEPSImageRep',
'NSSliderCell', 'NSEvent', 'NSSound', 'NSFileWrapper', 'NSSpeechRecognizer',
'NSFont', 'NSSpeechSynthesizer', 'NSFontDescriptor', 'NSSpellChecker',
'NSFontManager', 'NSSplitView', 'NSFontPanel', 'NSStatusBar', 'NSForm',
'NSStatusItem', 'NSFormCell', 'NSStepper', 'NSGlyphGenerator', 'NSStepperCell',
'NSGlyphInfo', 'NSGraphicsContext', 'NSTableColumn', 'NSHelpManager',
'NSTableHeaderCell', 'NSImage', 'NSTableHeaderView', 'NSImageCell', 'NSTableView',
'NSImageRep', 'NSTabView', 'NSImageView', 'NSTabViewItem', 'NSInputManager',
'NSText', 'NSInputServer', 'NSTextAttachment', 'NSLayoutManager',
'NSTextAttachmentCell', 'NSMatrix', 'NSTextContainer', 'NSMenu', 'NSTextField',
'NSMenuItem', 'NSTextFieldCell', 'NSMenuItemCell', 'NSTextStorage', 'NSMenuView',
'NSTextTab', 'NSMovie', 'NSTextView', 'NSMovieView', 'NSToolbar', 'NSToolbarItem',
'NSMutableParagraphStyle', 'NSTypesetter', 'NSNib', 'NSNibConnector',
'NSUserDefaultsController', 'NSNibControlConnector', 'NSView',
'NSNibOutletConnector', 'NSWindow', 'NSObjectController', 'NSWindowController',
'NSOpenGLContext', 'NSWorkspace', 'NSOpenGLPixelBuffer'
)
),
'SYMBOLS' => array(
'(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => false,
2 => false,
3 => false,
4 => false,
5 => false,
6 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0000ff;',
2 => 'color: #0000ff;',
3 => 'color: #0000dd;',
4 => 'color: #0000ff;',
5 => 'color: #0000ff;',
6 => 'color: #0000ff;'
),
'COMMENTS' => array(
1 => 'color: #ff0000;',
2 => 'color: #339900;',
'MULTI' => 'color: #ff0000; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #666666; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #002200;'
),
'STRINGS' => array(
0 => 'color: #666666;'
),
'NUMBERS' => array(
0 => 'color: #0000dd;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #002200;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => 'http://www.opengroup.org/onlinepubs/009695399/functions/{FNAME}.html',
4 => '',
5 => 'http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ObjC_classic/Classes/{FNAME}.html',
6 => 'http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/ObjC_classic/Classes/{FNAME}.html'
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,112 @@
<?php
/*************************************************************************************
* ocaml.php
* ----------
* Author: Flaie (fireflaie@gmail.com)
* Copyright: (c) 2005 Flaie, Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.7.21
* Date Started: 2005/08/27
*
* OCaml (Objective Caml) language file for GeSHi.
*
* CHANGES
* -------
* 2005/08/27 (1.0.0)
* - First Release
*
* TODO (updated 2005/08/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'OCaml',
'COMMENT_SINGLE' => array(),
'COMMENT_MULTI' => array('(*' => '*)'),
'CASE_KEYWORDS' => 0,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => "",
'KEYWORDS' => array(
/* main OCaml keywords */
1 => array(
'and', 'As', 'asr', 'begin', 'Class', 'Closed', 'constraint', 'do', 'done', 'downto', 'else',
'end', 'exception', 'external', 'failwith', 'false', 'flush', 'for', 'fun', 'function', 'functor',
'if', 'in', 'include', 'inherit', 'incr', 'land', 'let', 'load', 'los', 'lsl', 'lsr', 'lxor',
'match', 'method', 'mod', 'module', 'mutable', 'new', 'not', 'of', 'open', 'option', 'or', 'parser',
'private', 'ref', 'rec', 'raise', 'regexp', 'sig', 'struct', 'stdout', 'stdin', 'stderr', 'then',
'to', 'true', 'try', 'type', 'val', 'virtual', 'when', 'while', 'with'
)
),
/* highlighting symbols is really important in OCaml */
'SYMBOLS' => array(
';', '!', ':', '.', '=', '%', '^', '*', '-', '/', '+',
'>', '<', '(', ')', '[', ']', '&', '|', '#', "'"
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #06c; font-weight: bold;' /* nice blue */
),
'COMMENTS' => array(
'MULTI' => 'color: #5d478b; font-style: italic;' /* light purple */
),
'ESCAPE_CHAR' => array(
),
'BRACKETS' => array(
0 => 'color: #6c6;'
),
'STRINGS' => array(
0 => 'color: #3cb371;' /* nice green */
),
'NUMBERS' => array(
0 => 'color: #c6c;' /* pink */
),
'METHODS' => array(
1 => 'color: #060;' /* dark green */
),
'REGEXPS' => array(
),
'SYMBOLS' => array(
0 => 'color: #a52a2a;' /* maroon */
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,161 @@
<?php
/*************************************************************************************
* ocaml.php
* ----------
* Author: Flaie (fireflaie@gmail.com)
* Copyright: (c) 2005 Flaie, Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.7.21
* Date Started: 2005/08/27
*
* OCaml (Objective Caml) language file for GeSHi.
*
* CHANGES
* -------
* 2005/08/27 (1.0.0)
* - First Release
*
* TODO (updated 2005/08/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'OCaml',
'COMMENT_SINGLE' => array(),
'COMMENT_MULTI' => array('(*' => '*)'),
'CASE_KEYWORDS' => 0,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => "",
'KEYWORDS' => array(
/* main OCaml keywords */
1 => array(
'and', 'As', 'asr', 'begin', 'Class', 'Closed', 'constraint', 'do', 'done', 'downto', 'else',
'end', 'exception', 'external', 'failwith', 'false', 'flush', 'for', 'fun', 'function', 'functor',
'if', 'in', 'include', 'inherit', 'incr', 'land', 'let', 'load', 'los', 'lsl', 'lsr', 'lxor',
'match', 'method', 'mod', 'module', 'mutable', 'new', 'not', 'of', 'open', 'option', 'or', 'parser',
'private', 'ref', 'rec', 'raise', 'regexp', 'sig', 'struct', 'stdout', 'stdin', 'stderr', 'then',
'to', 'true', 'try', 'type', 'val', 'virtual', 'when', 'while', 'with'
),
/* define names of main librarys, so we can link to it */
2 => array(
'Arg', 'Arith_status', 'Array', 'ArrayLabels', 'Big_int', 'Bigarray', 'Buffer', 'Callback',
'CamlinternalOO', 'Char', 'Complex', 'Condition', 'Dbm', 'Digest', 'Dynlink', 'Event',
'Filename', 'Format', 'Gc', 'Genlex', 'Graphics', 'GraphicsX11', 'Hashtbl', 'Int32', 'Int64',
'Lazy', 'Lexing', 'List', 'ListLabels', 'Map', 'Marshal', 'MoreLabels', 'Mutex', 'Nativeint',
'Num', 'Obj', 'Oo', 'Parsing', 'Pervasives', 'Printexc', 'Printf', 'Queue', 'Random', 'Scanf',
'Set', 'Sort', 'Stack', 'StdLabels', 'Str', 'Stream', 'String', 'StringLabels', 'Sys', 'Thread',
'ThreadUnix', 'Tk'
),
/* just link to the Pervasives functions library, cause it's the default opened library when starting OCaml */
3 => array(
'raise', 'invalid_arg', 'failwith', 'compare', 'min', 'max', 'succ', 'pred', 'mod', 'abs',
'max_int', 'min_int', 'sqrt', 'exp', 'log', 'log10', 'cos', 'sin', 'tan', 'acos', 'asin',
'atan', 'atan2', 'cosh', 'sinh', 'tanh', 'ceil', 'floor', 'abs_float', 'mod_float', 'frexp',
'ldexp', 'modf', 'float', 'float_of_int', 'truncate', 'int_of_float', 'infinity', 'nan',
'max_float', 'min_float', 'epsilon_float', 'classify_float', 'int_of_char', 'char_of_int',
'ignore', 'string_of_bool', 'bool_of_string', 'string_of_int', 'int_of_string',
'string_of_float', 'float_of_string', 'fst', 'snd', 'stdin', 'stdout', 'stderr', 'print_char',
'print_string', 'print_int', 'print_float', 'print_endline', 'print_newline', 'prerr_char',
'prerr_string', 'prerr_int', 'prerr_float', 'prerr_endline', 'prerr_newline', 'read_line',
'read_int', 'read_float', 'open_out', 'open_out_bin', 'open_out_gen', 'flush', 'flush_all',
'output_char', 'output_string', 'output', 'output_byte', 'output_binary_int', 'output_value',
'seek_out', 'pos_out', 'out_channel_length', 'close_out', 'close_out_noerr', 'set_binary_mode_out',
'open_in', 'open_in_bin', 'open_in_gen', 'input_char', 'input_line', 'input', 'really_input',
'input_byte', 'input_binary_int', 'input_value', 'seek_in', 'pos_in', 'in_channel_length',
'close_in', 'close_in_noerr', 'set_binary_mode_in', 'incr', 'decr', 'string_of_format',
'format_of_string', 'exit', 'at_exit'
),
/* here Pervasives Types */
4 => array (
'fpclass', 'in_channel', 'out_channel', 'open_flag', 'Sys_error', 'ref', 'format'
),
/* finally Pervasives Exceptions */
5 => array (
'Exit', 'Invalid_Argument', 'Failure', 'Division_by_zero'
)
),
/* highlighting symbols is really important in OCaml */
'SYMBOLS' => array(
';', '!', ':', '.', '=', '%', '^', '*', '-', '/', '+',
'>', '<', '(', ')', '[', ']', '&', '|', '#', "'"
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => false,
2 => true, /* functions name are case seinsitive */
3 => true, /* types name too */
4 => true /* finally exceptions too */
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #06c; font-weight: bold;' /* nice blue */
),
'COMMENTS' => array(
'MULTI' => 'color: #5d478b; font-style: italic;' /* light purple */
),
'ESCAPE_CHAR' => array(
),
'BRACKETS' => array(
0 => 'color: #6c6;'
),
'STRINGS' => array(
0 => 'color: #3cb371;' /* nice green */
),
'NUMBERS' => array(
0 => 'color: #c6c;' /* pink */
),
'METHODS' => array(
1 => 'color: #060;' /* dark green */
),
'REGEXPS' => array(
),
'SYMBOLS' => array(
0 => 'color: #a52a2a;' /* maroon */
),
'SCRIPT' => array(
)
),
'URLS' => array(
/* some of keywords are Pervasives functions (land, lxor, asr, ...) */
1 => '',
/* link to the wanted library */
2 => 'http://caml.inria.fr/pub/docs/manual-ocaml/libref/{FNAME}.html',
/* link to Pervasives functions */
3 => 'http://caml.inria.fr/pub/docs/manual-ocaml/libref/Pervasives.html#VAL{FNAME}',
/* link to Pervasives type */
4 => 'http://caml.inria.fr/pub/docs/manual-ocaml/libref/Pervasives.html#TYPE{FNAME}',
/* link to Pervasives exceptions */
5 => 'http://caml.inria.fr/pub/docs/manual-ocaml/libref/Pervasives.html#EXCEPTION{FNAME}'
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,130 @@
<?php
/*************************************************************************************
* oobas.php
* ---------
* Author: Roberto Rossi (rsoftware@altervista.org)
* Copyright: (c) 2004 Roberto Rossi (http://rsoftware.altervista.org), Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.7.21
* Date Started: 2004/08/30
*
* OpenOffice.org Basic language file for GeSHi.
*
* CHANGES
* -------
* 2004/11/27 (1.0.1)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'OpenOffice.org Basic',
'COMMENT_SINGLE' => array(1 => "'"),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
'dim','private','public','global','as','if','redim','true','set',
'byval',
'false','bool','double','integer','long','object','single','variant',
'msgbox','print','inputbox','green','blue','red','qbcolor',
'rgb','open','close','reset','freefile','get','input','line',
'put','write','loc','seek','eof','lof','chdir','chdrive',
'curdir','dir','fileattr','filecopy','filedatetime','fileexists',
'filelen','getattr','kill','mkdir','name','rmdir','setattr',
'dateserial','datevalue','day','month','weekday','year','cdatetoiso',
'cdatefromiso','hour','minute','second','timeserial','timevalue',
'date','now','time','timer','erl','err','error','on','error','goto','resume',
'and','eqv','imp','not','or','xor','mod','','atn','cos','sin','tan','log',
'exp','rnd','randomize','sqr','fix','int','abs','sgn','hex','oct',
'it','then','else','select','case','iif','do','loop','for','next',
'while','wend','gosub','return','goto','on','goto','call','choose','declare',
'end','exit','freelibrary','function','rem','stop','sub','switch','with',
'cbool','cdate','cdbl','cint','clng','const','csng','cstr','defbool',
'defdate','defdbl','defint','deflng','asc','chr','str','val','cbyte',
'space','string','format','lcase','left','lset','ltrim','mid','right',
'rset','rtrim','trim','ucase','split','join','converttourl','convertfromurl',
'instr','len','strcomp','beep','shell','wait','getsystemticks','environ',
'getsolarversion','getguitype','twipsperpixelx','twipsperpixely',
'createunostruct','createunoservice','getprocessservicemanager',
'createunodialog','createunolistener','createunovalue','thiscomponent',
'globalscope'
)
),
'SYMBOLS' => array(
'(', ')', '='
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;'
),
'COMMENTS' => array(
1 => 'color: #808080;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
1 => 'color: #006600;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099;'
),
'SCRIPT' => array(
),
'REGEXPS' => array(
)
),
'URLS' => array(
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,614 @@
<?php
/*************************************************************************************
* oracle11.php
* -----------
* Author: Guy Wicks (Guy.Wicks@rbs.co.uk)
* Contributions:
* - Updated for 11i by Simon Redhead
* Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.8.2
* Date Started: 2004/06/04
*
* Oracle 11i language file for GeSHi.
*
* CHANGES
* -------
* 2008/04/08 (1.0.8)
* - SR changes to oracle8.php to support Oracle 11i reserved words.
* 2005/01/29 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Oracle 11 SQL',
'COMMENT_SINGLE' => array(1 => '--'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_UPPER,
'QUOTEMARKS' => array("'", '"', '`'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
//Put your package names here - e.g. select distinct ''''|| lower(name) || ''',' from user_source;
// 6 => array(
// ),
//Put your table names here - e.g. select distinct ''''|| lower(table_name) || ''',' from user_tables;
// 5 => array(
// ),
//Put your view names here - e.g. select distinct ''''|| lower(view_name) || ''',' from user_views;
// 4 => array(
// ),
//Put your table field names here - e.g. select distinct ''''|| lower(column_name) || ''',' from user_tab_columns;
// 3 => array(
// ),
//Put ORACLE reserved keywords here (11i). I like mine uppercase.
1 => array(
'ABS',
'ACCESS',
'ACOS',
'ADD',
'ADD_MONTHS',
'ALL',
'ALTER',
'ANALYZE',
'AND',
'ANY',
'APPENDCHILDXML',
'ARRAY',
'AS',
'ASC',
'ASCII',
'ASCIISTR',
'ASIN',
'ASSOCIATE',
'AT',
'ATAN',
'ATAN2',
'AUDIT',
'AUTHID',
'AVG',
'BEGIN',
'BETWEEN',
'BFILENAME',
'BIN_TO_NUM',
'BINARY_INTEGER',
'BITAND',
'BODY',
'BOOLEAN',
'BULK',
'BY',
'CALL',
'CARDINALITY',
'CASCADE',
'CASE',
'CAST',
'CEIL',
'CHAR',
'CHAR_BASE',
'CHARTOROWID',
'CHECK',
'CHR',
'CLOSE',
'CLUSTER',
'CLUSTER_ID',
'CLUSTER_PROBABILITY',
'CLUSTER_SET',
'COALESCE',
'COLLECT',
'COLUMN',
'COMMENT',
'COMMIT',
'COMPOSE',
'COMPRESS',
'CONCAT',
'CONNECT',
'CONSTANT',
'CONSTRAINT',
'CONSTRAINTS',
'CONTEXT',
'CONTROLFILE',
'CONVERT',
'CORR',
'CORR_K',
'CORR_S',
'COS',
'COSH',
'COST',
'COUNT',
'COVAR_POP',
'COVAR_SAMP',
'CREATE',
'CUBE_TABLE',
'CUME_DIST',
'CURRENT',
'CURRENT_DATE',
'CURRENT_TIMESTAMP',
'CURRVAL',
'CURSOR',
'CV',
'DATABASE',
'DATAOBJ_TO_PARTITION',
'DATE',
'DAY',
'DBTIMEZONE',
'DECIMAL',
'DECLARE',
'DECODE',
'DECOMPOSE',
'DEFAULT',
'DELETE',
'DELETEXML',
'DENSE_RANK',
'DEPTH',
'DEREF',
'DESC',
'DIMENSION',
'DIRECTORY',
'DISASSOCIATE',
'DISTINCT',
'DO',
'DROP',
'DUMP',
'ELSE',
'ELSIF',
'EMPTY_BLOB',
'EMPTY_CLOB',
'END',
'EXCEPTION',
'EXCLUSIVE',
'EXEC',
'EXECUTE',
'EXISTS',
'EXISTSNODE',
'EXIT',
'EXP',
'EXPLAIN',
'EXTENDS',
'EXTRACT',
'EXTRACTVALUE',
'FALSE',
'FEATURE_ID',
'FEATURE_SET',
'FEATURE_VALUE',
'FETCH',
'FILE',
'FIRST',
'FIRST_VALUE',
'FLOAT',
'FLOOR',
'FOR',
'FORALL',
'FROM',
'FROM_TZ',
'FUNCTION',
'GOTO',
'GRANT',
'GREATEST',
'GROUP',
'GROUP_ID',
'GROUPING',
'GROUPING_ID',
'HAVING',
'HEAP',
'HEXTORAW',
'HOUR',
'IDENTIFIED',
'IF',
'IMMEDIATE',
'IN',
'INCREMENT',
'INDEX',
'INDEXTYPE',
'INDICATOR',
'INITCAP',
'INITIAL',
'INSERT',
'INSERTCHILDXML',
'INSERTXMLBEFORE',
'INSTR',
'INSTRB',
'INTEGER',
'INTERFACE',
'INTERSECT',
'INTERVAL',
'INTO',
'IS',
'ISOLATION',
'ITERATION_NUMBER',
'JAVA',
'KEY',
'LAG',
'LAST',
'LAST_DAY',
'LAST_VALUE',
'LEAD',
'LEAST',
'LENGTH',
'LENGTHB',
'LEVEL',
'LIBRARY',
'LIKE',
'LIMITED',
'LINK',
'LN',
'LNNVL',
'LOCALTIMESTAMP',
'LOCK',
'LOG',
'LONG',
'LOOP',
'LOWER',
'LPAD',
'LTRIM',
'MAKE_REF',
'MATERIALIZED',
'MAX',
'MAXEXTENTS',
'MEDIAN',
'MIN',
'MINUS',
'MINUTE',
'MLSLABEL',
'MOD',
'MODE',
'MODIFY',
'MONTH',
'MONTHS_BETWEEN',
'NANVL',
'NATURAL',
'NATURALN',
'NCHR',
'NEW',
'NEW_TIME',
'NEXT_DAY',
'NEXTVAL',
'NLS_CHARSET_DECL_LEN',
'NLS_CHARSET_ID',
'NLS_CHARSET_NAME',
'NLS_INITCAP',
'NLS_LOWER',
'NLS_UPPER',
'NLSSORT',
'NOAUDIT',
'NOCOMPRESS',
'NOCOPY',
'NOT',
'NOWAIT',
'NTILE',
'NULL',
'NULLIF',
'NUMBER',
'NUMBER_BASE',
'NUMTODSINTERVAL',
'NUMTOYMINTERVAL',
'NVL',
'NVL2',
'OCIROWID',
'OF',
'OFFLINE',
'ON',
'ONLINE',
'OPAQUE',
'OPEN',
'OPERATOR',
'OPTION',
'OR',
'ORA_HASH',
'ORDER',
'ORGANIZATION',
'OTHERS',
'OUT',
'OUTLINE',
'PACKAGE',
'PARTITION',
'PATH',
'PCTFREE',
'PERCENT_RANK',
'PERCENTILE_CONT',
'PERCENTILE_DISC',
'PLAN',
'PLS_INTEGER',
'POSITIVE',
'POSITIVEN',
'POWER',
'POWERMULTISET',
'POWERMULTISET_BY_CARDINALITY',
'PRAGMA',
'PREDICTION',
'PREDICTION_BOUNDS',
'PREDICTION_COST',
'PREDICTION_DETAILS',
'PREDICTION_PROBABILITY',
'PREDICTION_SET',
'PRESENTNNV',
'PRESENTV',
'PREVIOUS',
'PRIMARY',
'PRIOR',
'PRIVATE',
'PRIVILEGES',
'PROCEDURE',
'PROFILE',
'PUBLIC',
'RAISE',
'RANGE',
'RANK',
'RATIO_TO_REPORT',
'RAW',
'RAWTOHEX',
'RAWTONHEX',
'REAL',
'RECORD',
'REF',
'REFTOHEX',
'REGEXP_COUNT',
'REGEXP_INSTR',
'REGEXP_REPLACE',
'REGEXP_SUBSTR',
'REGR_AVGX',
'REGR_AVGY',
'REGR_COUNT',
'REGR_INTERCEPT',
'REGR_R2',
'REGR_SLOPE',
'REGR_SXX',
'REGR_SXY',
'REGR_SYY',
'RELEASE',
'REMAINDER',
'RENAME',
'REPLACE',
'RESOURCE',
'RETURN',
'RETURNING',
'REVERSE',
'REVOKE',
'ROLE',
'ROLLBACK',
'ROUND',
'ROW',
'ROW_NUMBER',
'ROWID',
'ROWIDTOCHAR',
'ROWIDTONCHAR',
'ROWNUM',
'ROWS',
'ROWTYPE',
'RPAD',
'RTRIM',
'SAVEPOINT',
'SCHEMA',
'SCN_TO_TIMESTAMP',
'SECOND',
'SEGMENT',
'SELECT',
'SEPERATE',
'SEQUENCE',
'SESSION',
'SESSIONTIMEZONE',
'SET',
'SHARE',
'SIGN',
'SIN',
'SINH',
'SIZE',
'SMALLINT',
'SOUNDEX',
'SPACE',
'SQL',
'SQLCODE',
'SQLERRM',
'SQRT',
'START',
'STATISTICS',
'STATS_BINOMIAL_TEST',
'STATS_CROSSTAB',
'STATS_F_TEST',
'STATS_KS_TEST',
'STATS_MODE',
'STATS_MW_TEST',
'STATS_ONE_WAY_ANOVA',
'STATS_T_TEST_INDEP',
'STATS_T_TEST_INDEPU',
'STATS_T_TEST_ONE',
'STATS_T_TEST_PAIRED',
'STATS_WSR_TEST',
'STDDEV',
'STDDEV_POP',
'STDDEV_SAMP',
'STOP',
'SUBSTR',
'SUBSTRB',
'SUBTYPE',
'SUCCESSFUL',
'SUM',
'SYNONYM',
'SYS_CONNECT_BY_PATH',
'SYS_CONTEXT',
'SYS_DBURIGEN',
'SYS_EXTRACT_UTC',
'SYS_GUID',
'SYS_TYPEID',
'SYS_XMLAGG',
'SYS_XMLGEN',
'SYSDATE',
'SYSTEM',
'SYSTIMESTAMP',
'TABLE',
'TABLESPACE',
'TAN',
'TANH',
'TEMPORARY',
'THEN',
'TIME',
'TIMESTAMP',
'TIMESTAMP_TO_SCN',
'TIMEZONE_ABBR',
'TIMEZONE_HOUR',
'TIMEZONE_MINUTE',
'TIMEZONE_REGION',
'TIMING',
'TO',
'TO_BINARY_DOUBLE',
'TO_BINARY_FLOAT',
'TO_CHAR',
'TO_CLOB',
'TO_DATE',
'TO_DSINTERVAL',
'TO_LOB',
'TO_MULTI_BYTE',
'TO_NCHAR',
'TO_NCLOB',
'TO_NUMBER',
'TO_SINGLE_BYTE',
'TO_TIMESTAMP',
'TO_TIMESTAMP_TZ',
'TO_YMINTERVAL',
'TRANSACTION',
'TRANSLATE',
'TREAT',
'TRIGGER',
'TRIM',
'TRUE',
'TRUNC',
'TRUNCATE',
'TYPE',
'TZ_OFFSET',
'UI',
'UID',
'UNION',
'UNIQUE',
'UNISTR',
'UPDATE',
'UPDATEXML',
'UPPER',
'USE',
'USER',
'USERENV',
'USING',
'VALIDATE',
'VALUE',
'VALUES',
'VAR_POP',
'VAR_SAMP',
'VARCHAR',
'VARCHAR2',
'VARIANCE',
'VIEW',
'VSIZE',
'WHEN',
'WHENEVER',
'WHERE',
'WHILE',
'WIDTH_BUCKET',
'WITH',
'WORK',
'WRITE',
'XMLAGG',
'XMLCAST',
'XMLCDATA',
'XMLCOLATTVAL',
'XMLCOMMENT',
'XMLCONCAT',
'XMLDIFF',
'XMLELEMENT',
'XMLEXISTS',
'XMLFOREST',
'XMLPARSE',
'XMLPATCH',
'XMLPI',
'XMLQUERY',
'XMLROOT',
'XMLSEQUENCE',
'XMLSERIALIZE',
'XMLTABLE',
'XMLTRANSFORM',
'YEAR',
'ZONE'
)
),
'SYMBOLS' => array(
'(', ')', '=', '<', '>', '|', '+', '-', '*', '/', ','
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
// 3 => false,
// 4 => false,
// 5 => false,
// 6 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #993333; font-weight: bold; text-transform: uppercase;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
1 => 'color: #ff0000;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'SCRIPT' => array(
),
'REGEXPS' => array(
)
),
'URLS' => array(
1 => '',
// 3 => '',
// 4 => '',
// 5 => '',
// 6 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,487 @@
<?php
/*************************************************************************************
* oracle8.php
* -----------
* Author: Guy Wicks (Guy.Wicks@rbs.co.uk)
* Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.7.21
* Date Started: 2004/06/04
*
* Oracle 8 language file for GeSHi
*
* CHANGES
* -------
* 2005/01/29 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Oracle 8 SQL',
'COMMENT_SINGLE' => array(1 => '--'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_UPPER,
'QUOTEMARKS' => array("'", '"', '`'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
//Put your package names here - e.g. select distinct ''''|| lower(name) || ''',' from user_source;
6 => array(
),
//Put your table names here - e.g. select distinct ''''|| lower(table_name) || ''',' from user_tables;
5 => array(
),
//Put your view names here - e.g. select distinct ''''|| lower(view_name) || ''',' from user_views;
4 => array(
),
//Put your table field names here - e.g. select distinct ''''|| lower(column_name) || ''',' from user_tab_columns;
3 => array(
),
//Put ORACLE reserved keywords here (8.1.7). I like mine uppercase.
1 => array(
'ABS',
'ACCESS',
'ACOS',
'ADD',
'ADD_MONTHS',
'ALL',
'ALTER',
'ANALYZE',
'AND',
'ANY',
'ARRAY',
'AS',
'ASC',
'ASCII',
'ASIN',
'ASSOCIATE',
'AT',
'ATAN',
'ATAN2',
'AUDIT',
'AUTHID',
'AVG',
'BEGIN',
'BETWEEN',
'BFILENAME',
'BINARY_INTEGER',
'BITAND',
'BODY',
'BOOLEAN',
'BULK',
'BY',
'CALL',
'CASCADE',
'CASE',
'CEIL',
'CHAR',
'CHAR_BASE',
'CHARTOROWID',
'CHECK',
'CHR',
'CLOSE',
'CLUSTER',
'COALESCE',
'COLLECT',
'COLUMN',
'COMMENT',
'COMMIT',
'COMPRESS',
'CONCAT',
'CONNECT',
'CONSTANT',
'CONSTRAINT',
'CONSTRAINTS',
'CONTEXT',
'CONTROLFILE',
'CONVERT',
'CORR',
'COS',
'COSH',
'COST',
'COUNT',
'COVAR_POP',
'COVAR_SAMP',
'CREATE',
'CUME_DIST',
'CURRENT',
'CURRVAL',
'CURSOR',
'DATABASE',
'DATE',
'DAY',
'DECIMAL',
'DECLARE',
'DECODE',
'DEFAULT',
'DELETE',
'DENSE_RANK',
'DEREF',
'DESC',
'DIMENSION',
'DIRECTORY',
'DISASSOCIATE',
'DISTINCT',
'DO',
'DROP',
'DUMP',
'ELSE',
'ELSIF',
'EMPTY_BLOB',
'EMPTY_CLOB',
'END',
'EXCEPTION',
'EXCLUSIVE',
'EXEC',
'EXECUTE',
'EXISTS',
'EXIT',
'EXP',
'EXPLAIN',
'EXTENDS',
'EXTRACT',
'FALSE',
'FETCH',
'FILE',
'FIRST_VALUE',
'FLOAT',
'FLOOR',
'FOR',
'FORALL',
'FROM',
'FUNCTION',
'GOTO',
'GRANT',
'GREATEST',
'GROUP',
'GROUPING',
'HAVING',
'HEAP',
'HEXTORAW',
'HOUR',
'IDENTIFIED',
'IF',
'IMMEDIATE',
'IN',
'INCREMENT',
'INDEX',
'INDEXTYPE',
'INDICATOR',
'INITCAP',
'INITIAL',
'INSERT',
'INSTR',
'INSTRB',
'INTEGER',
'INTERFACE',
'INTERSECT',
'INTERVAL',
'INTO',
'IS',
'ISOLATION',
'JAVA',
'KEY',
'LAG',
'LAST_DAY',
'LAST_VALUE',
'LEAD',
'LEAST',
'LENGTH',
'LENGTHB',
'LEVEL',
'LIBRARY',
'LIKE',
'LIMITED',
'LINK',
'LN',
'LOCK',
'LOG',
'LONG',
'LOOP',
'LOWER',
'LPAD',
'LTRIM',
'MAKE_REF',
'MATERIALIZED',
'MAX',
'MAXEXTENTS',
'MIN',
'MINUS',
'MINUTE',
'MLSLABEL',
'MOD',
'MODE',
'MODIFY',
'MONTH',
'MONTHS_BETWEEN',
'NATURAL',
'NATURALN',
'NEW',
'NEW_TIME',
'NEXT_DAY',
'NEXTVAL',
'NLS_CHARSET_DECL_LEN',
'NLS_CHARSET_ID',
'NLS_CHARSET_NAME',
'NLS_INITCAP',
'NLS_LOWER',
'NLS_UPPER',
'NLSSORT',
'NOAUDIT',
'NOCOMPRESS',
'NOCOPY',
'NOT',
'NOWAIT',
'NTILE',
'NULL',
'NULLIF',
'NUMBER',
'NUMBER_BASE',
'NUMTODSINTERVAL',
'NUMTOYMINTERVAL',
'NVL',
'NVL2',
'OCIROWID',
'OF',
'OFFLINE',
'ON',
'ONLINE',
'OPAQUE',
'OPEN',
'OPERATOR',
'OPTION',
'OR',
'ORDER',
'ORGANIZATION',
'OTHERS',
'OUT',
'OUTLINE',
'PACKAGE',
'PARTITION',
'PCTFREE',
'PERCENT_RANK',
'PLAN',
'PLS_INTEGER',
'POSITIVE',
'POSITIVEN',
'POWER',
'PRAGMA',
'PRIMARY',
'PRIOR',
'PRIVATE',
'PRIVILEGES',
'PROCEDURE',
'PROFILE',
'PUBLIC',
'RAISE',
'RANGE',
'RANK',
'RATIO_TO_REPORT',
'RAW',
'RAWTOHEX',
'REAL',
'RECORD',
'REF',
'REFTOHEX',
'REGR_AVGX',
'REGR_AVGY',
'REGR_COUNT',
'REGR_INTERCEPT',
'REGR_R2',
'REGR_SLOPE',
'REGR_SXX',
'REGR_SXY',
'REGR_SYY',
'RELEASE',
'RENAME',
'REPLACE',
'RESOURCE',
'RETURN',
'RETURNING',
'REVERSE',
'REVOKE',
'ROLE',
'ROLLBACK',
'ROUND',
'ROW',
'ROW_NUMBER',
'ROWID',
'ROWIDTOCHAR',
'ROWNUM',
'ROWS',
'ROWTYPE',
'RPAD',
'RTRIM',
'SAVEPOINT',
'SCHEMA',
'SECOND',
'SEGMENT',
'SELECT',
'SEPERATE',
'SEQUENCE',
'SESSION',
'SET',
'SHARE',
'SIGN',
'SIN',
'SINH',
'SIZE',
'SMALLINT',
'SOUNDEX',
'SPACE',
'SQL',
'SQLCODE',
'SQLERRM',
'SQRT',
'START',
'STATISTICS',
'STDDEV',
'STDDEV_POP',
'STDDEV_SAMP',
'STOP',
'SUBSTR',
'SUBSTRB',
'SUBTYPE',
'SUCCESSFUL',
'SUM',
'SYNONYM',
'SYS_CONTEXT',
'SYS_GUID',
'SYSDATE',
'SYSTEM',
'TABLE',
'TABLESPACE',
'TAN',
'TANH',
'TEMPORARY',
'THEN',
'TIME',
'TIMESTAMP',
'TIMEZONE_ABBR',
'TIMEZONE_HOUR',
'TIMEZONE_MINUTE',
'TIMEZONE_REGION',
'TIMING',
'TO',
'TO_CHAR',
'TO_DATE',
'TO_LOB',
'TO_MULTI_BYTE',
'TO_NUMBER',
'TO_SINGLE_BYTE',
'TRANSACTION',
'TRANSLATE',
'TRIGGER',
'TRIM',
'TRUE',
'TRUNC',
'TRUNCATE',
'TYPE',
'UI',
'UID',
'UNION',
'UNIQUE',
'UPDATE',
'UPPER',
'USE',
'USER',
'USERENV',
'USING',
'VALIDATE',
'VALUE',
'VALUES',
'VAR_POP',
'VAR_SAMP',
'VARCHAR',
'VARCHAR2',
'VARIANCE',
'VIEW',
'VSIZE',
'WHEN',
'WHENEVER',
'WHERE',
'WHILE',
'WITH',
'WORK',
'WRITE',
'YEAR',
'ZONE'
)
),
'SYMBOLS' => array(
'(', ')', '=', '<', '>', '|'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #993333; font-weight: bold; text-transform: uppercase;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
2 => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
1 => 'color: #ff0000;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'SCRIPT' => array(
),
'REGEXPS' => array(
)
),
'URLS' => array(
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,144 @@
<?php
/*************************************************************************************
* pascal.php
* ----------
* Author: Tux (tux@inamil.cz)
* Copyright: (c) 2004 Tux (http://tux.a4.cz/), Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.7.21
* Date Started: 2004/07/26
*
* Pascal language file for GeSHi.
*
* CHANGES
* -------
* 2004/11/27 (1.0.2)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.1)
* - Added support for URLs
* 2004/08/05 (1.0.0)
* - Added support for symbols
* 2004/07/27 (0.9.1)
* - Pascal is OO language. Some new words.
* 2004/07/26 (0.9.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Pascal',
'COMMENT_SINGLE' => array(1 => '//'),
'COMMENT_MULTI' => array('{' => '}','(*' => '*)'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'if', 'while', 'until', 'repeat', 'default',
'do', 'else', 'for', 'switch', 'goto','label','asm','begin','end',
'assembler','case', 'downto', 'to','div','mod','far','forward','in','inherited',
'inline','interrupt','label','library','not','var','of','then','stdcall',
'cdecl','end.','raise','try','except','name','finally','resourcestring','override','overload',
'default','public','protected','private','property','published','stored','catch'
),
2 => array(
'nil', 'false', 'break', 'true', 'function', 'procedure','implementation','interface',
'unit','program','initialization','finalization','uses'
),
3 => array(
'abs', 'absolute','and','arc','arctan','chr','constructor','destructor',
'dispose','cos','eof','eoln','exp','get','index','ln','new','xor','write','writeln',
'shr','sin','sqrt','succ','pred','odd','read','readln','ord','ordinal','blockread','blockwrite'
),
4 => array(
'array', 'char', 'const', 'boolean', 'real', 'integer', 'longint',
'word', 'shortint', 'record','byte','bytebool','string',
'type','object','export','exports','external','file','longbool','pointer','set',
'packed','ansistring','union'
),
),
'SYMBOLS' => array(
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => false,
2 => false,
3 => false,
4 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;',
2 => 'color: #000000; font-weight: bold;',
3 => '',
4 => 'color: #993333;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
2 => 'color: #339933;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
1 => 'color: #202020;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4
);
?>

View file

@ -0,0 +1,302 @@
<?php
/*************************************************************************************
* per.php
* --------
* Author: Lars Gersmann (lars.gersmann@gmail.com)
* Copyright: (c) 2007 Lars Gersmann
* Release Version: 1.0.7.21
* Date Started: 2007/06/03
*
* Per (forms) (FOURJ's Genero 4GL) language file for GeSHi.
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'per',
'COMMENT_SINGLE' => array(1 => '--', 2 => '#'),
'COMMENT_MULTI' => array('{' => '}'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
"ACCELERATOR",
"ACCELERATOR2",
"ACTION",
"ALT",
"AND",
"AUTO",
"AUTONEXT",
"AUTOSCALE",
"BETWEEN",
"BOTH",
"BUTTON",
"BUTTONEDIT",
"BUTTONTEXTHIDDEN",
"BY",
"BYTE",
"CANVAS",
"CENTER",
"CHECKBOX",
"CLASS",
"COLOR",
"COLUMNS",
"COMBOBOX",
"COMMAND",
"COMMENT",
"COMMENTS",
"COMPACT",
"COMPRESS",
"CONFIG",
"CONTROL",
"CURRENT",
"DATABASE",
"DATEEDIT",
"DEC",
"DEFAULT",
"DEFAULTS",
"DELIMITERS",
"DISPLAY",
"DISPLAYONLY",
"DOWNSHIFT",
"DYNAMIC",
"EDIT",
"FIXED",
"FOLDER",
"FONTPITCH",
"FORMAT",
"FORMONLY",
"GRID",
"GRIDCHILDRENINPARENT",
"GROUP",
"HBOX",
"HEIGHT",
"HIDDEN",
"HORIZONTAL",
"INCLUDE",
"INITIAL",
"INITIALIZER",
"INPUT",
"INSTRUCTIONS",
"INTERVAL",
"INVISIBLE",
"IS",
"ITEM",
"ITEMS",
"JUSTIFY",
"KEY",
"KEYS",
"LABEL",
"LEFT",
"LIKE",
"LINES",
"MATCHES",
"NAME",
"NOENTRY",
"NONCOMPRESS",
"NORMAL",
"NOT",
"NOUPDATE",
"OPTIONS",
"OR",
"ORIENTATION",
"PACKED",
"PAGE",
"PICTURE",
"PIXELHEIGHT",
"PIXELS",
"PIXELWIDTH",
"POINTS",
"PROGRAM",
"PROGRESSBAR",
"QUERYCLEAR",
"QUERYEDITABLE",
"RADIOGROUP",
"RECORD",
"REQUIRED",
"REVERSE",
"RIGHT",
"SAMPLE",
"SCREEN",
"SCROLL",
"SCROLLBARS",
"SCROLLGRID",
"SECOND",
"SEPARATOR",
"SHIFT",
"SIZE",
"SIZEPOLICY",
"SMALLFLOAT",
"SMALLINT",
"SPACING",
"STRETCH",
"STYLE",
"TABINDEX",
"TABLE",
"TAG",
"TEXT",
"TEXTEDIT",
"THROUGH",
"THRU",
"TITLE",
"TO",
"TOOLBAR",
"TOPMENU",
"TYPE",
"UNHIDABLE",
"UNHIDABLECOLUMNS",
"UNMOVABLE",
"UNMOVABLECOLUMNS",
"UNSIZABLE",
"UNSIZABLECOLUMNS",
"UNSORTABLE",
"UNSORTABLECOLUMNS",
"UPSHIFT",
"USER",
"VALIDATE",
"VALUECHECKED",
"VALUEMAX",
"VALUEMIN",
"VALUEUNCHECKED",
"VARCHAR",
"VARIABLE",
"VBOX",
"VERIFY",
"VERSION",
"VERTICAL",
"TIMESTAMP",
"WANTCOLUMNSANCHORED", /* to be removed! */
"WANTFIXEDPAGESIZE",
"WANTNORETURNS",
"WANTTABS",
"WHERE",
"WIDGET",
"WIDTH",
"WINDOWSTYLE",
"WITHOUT",
"WORDWRAP",
"X",
"Y",
"ZEROFILL",
"SCHEMA",
"ATTRIBUTES",
"TABLES",
"LAYOUT",
"END"
),
2 => array(
"YEAR",
"BLACK",
"BLINK",
"BLUE",
"YELLOW",
"WHITE",
"UNDERLINE",
"CENTURY",
"FRACTION",
"CHAR",
"CHARACTER",
"CHARACTERS",
"CYAN",
"DATE",
"DATETIME",
"DAY",
"DECIMAL",
"FALSE",
"FLOAT",
"GREEN",
"HOUR",
"INT",
"INTEGER",
"MAGENTA",
"MINUTE",
"MONEY",
"NONE",
"NULL",
"REAL",
"RED",
"TRUE",
"TODAY",
"MONTH",
"IMAGE"
),
),
'SYMBOLS' => array(
'+', '-', '*', '?', '=', '/', '%', '>', '<', '^', '!', '|', ':',
'(', ')', '[', ']'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => false,
2 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0600FF;',
2 => 'color: #0000FF; font-weight: bold;',
),
'COMMENTS' => array(
1 => 'color: #008080; font-style: italic;',
2 => 'color: #008080;',
'MULTI' => 'color: green'
),
'ESCAPE_CHAR' => array(
0 => 'color: #008080; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #000000;'
),
'STRINGS' => array(
0 => 'color: #808080;'
),
'NUMBERS' => array(
0 => 'color: #FF0000;'
),
'METHODS' => array(
1 => 'color: #0000FF;',
2 => 'color: #0000FF;'
),
'SYMBOLS' => array(
0 => 'color: #008000;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,179 @@
<?php
/*************************************************************************************
* perl.php
* --------
* Author: Andreas Gohr (andi@splitbrain.org), Ben Keen (ben.keen@gmail.com)
* Copyright: (c) 2004 Andreas Gohr, Ben Keen (http://www.benjaminkeen.org/), Nigel McNie (http://qbnz.com/highlighter/)
* Release Version: 1.0.7.21
* Date Started: 2004/08/20
*
* Perl language file for GeSHi.
*
* CHANGES
* -------
* 2008/02/15 (1.003)
* - Fixed SF#1891630 with placebo patch
* 2006/01/05 (1.0.2)
* - Used hardescape feature for ' strings (Cliff Stanford)
* 2004/11/27 (1.0.1)
* - Added support for multiple object splitters
* 2004/08/20 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
* * LABEL:
* * string comparison operators
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Perl',
'COMMENT_SINGLE' => array(1 => '#'),
'COMMENT_MULTI' => array(
'=back' => '=cut',
'=head' => '=cut',
'=item' => '=cut',
'=over' => '=cut',
'=begin' => '=cut',
'=end' => '=cut',
'=for' => '=cut',
'=encoding' => '=cut',
'=pod' => '=cut'
),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'HARDQUOTE' => array("'", "'"), // An optional 2-element array defining the beginning and end of a hard-quoted string
'HARDESCAPE' => array('\\\'', "\\\\"), // Things that must still be escaped inside a hard-quoted string
// If HARDQUOTE is defined, HARDESCAPE must be defined
// This will not work unless the first character of each element is either in the
// QUOTEMARKS array or is the ESCAPE_CHAR
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'case', 'do', 'else', 'elsif', 'for', 'if', 'then', 'until', 'while', 'foreach', 'my',
'or', 'and', 'unless', 'next', 'last', 'redo', 'not', 'our',
'reset', 'continue','and', 'cmp', 'ne'
),
2 => array(
'use', 'sub', 'new', '__END__', '__DATA__', '__DIE__', '__WARN__', 'BEGIN',
'STDIN', 'STDOUT', 'STDERR'
),
3 => array(
'abs', 'accept', 'alarm', 'atan2', 'bind', 'binmode', 'bless',
'caller', 'chdir', 'chmod', 'chomp', 'chop', 'chown', 'chr',
'chroot', 'close', 'closedir', 'connect', 'continue', 'cos',
'crypt', 'dbmclose', 'dbmopen', 'defined', 'delete', 'die',
'dump', 'each', 'endgrent', 'endhostent', 'endnetent', 'endprotoent',
'endpwent', 'endservent', 'eof', 'eval', 'exec', 'exists', 'exit',
'exp', 'fcntl', 'fileno', 'flock', 'fork', 'format', 'formline',
'getc', 'getgrent', 'getgrgid', 'getgrnam', 'gethostbyaddr',
'gethostbyname', 'gethostent', 'getlogin', 'getnetbyaddr', 'getnetbyname',
'getnetent', 'getpeername', 'getpgrp', 'getppid', 'getpriority',
'getprotobyname', 'getprotobynumber', 'getprotoent', 'getpwent',
'getpwnam', 'getpwuid', 'getservbyname', 'getservbyport', 'getservent',
'getsockname', 'getsockopt', 'glob', 'gmtime', 'goto', 'grep',
'hex', 'import', 'index', 'int', 'ioctl', 'join', 'keys', 'kill',
'last', 'lc', 'lcfirst', 'length', 'link', 'listen', 'local',
'localtime', 'log', 'lstat', 'm', 'map', 'mkdir', 'msgctl', 'msgget',
'msgrcv', 'msgsnd', 'my', 'next', 'no', 'oct', 'open', 'opendir',
'ord', 'our', 'pack', 'package', 'pipe', 'pop', 'pos', 'print',
'printf', 'prototype', 'push', 'qq', 'qr', 'quotemeta', 'qw',
'qx', 'q', 'rand', 'read', 'readdir', 'readline', 'readlink', 'readpipe',
'recv', 'redo', 'ref', 'rename', 'require', 'return',
'reverse', 'rewinddir', 'rindex', 'rmdir', 's', 'scalar', 'seek',
'seekdir', 'select', 'semctl', 'semget', 'semop', 'send', 'setgrent',
'sethostent', 'setnetent', 'setpgrp', 'setpriority', 'setprotoent',
'setpwent', 'setservent', 'setsockopt', 'shift', 'shmctl', 'shmget',
'shmread', 'shmwrite', 'shutdown', 'sin', 'sleep', 'socket', 'socketpair',
'sort', 'splice', 'split', 'sprintf', 'sqrt', 'srand', 'stat',
'study', 'substr', 'symlink', 'syscall', 'sysopen', 'sysread',
'sysseek', 'system', 'syswrite', 'tell', 'telldir', 'tie', 'tied',
'time', 'times', 'tr', 'truncate', 'uc', 'ucfirst', 'umask', 'undef',
'unlink', 'unpack', 'unshift', 'untie', 'utime', 'values',
'vec', 'wait', 'waitpid', 'wantarray', 'warn', 'write', 'y'
)
),
'SYMBOLS' => array(
'(', ')', '[', ']', '!', '@', '%', '&', '*', '|', '/', '<', '>'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => true,
2 => true,
3 => true,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #000066;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
1 => 'color: #006600;',
2 => 'color: #006600;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
0 => 'color: #0000ff;',
4 => 'color: #009999;',
),
'SCRIPT' => array(
)
),
'URLS' => array(
3 => 'http://perldoc.perl.org/functions/{FNAME}.html'
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '-&gt;',
2 => '::'
),
'REGEXPS' => array(
0 => '[\\$%@]+[a-zA-Z_][a-zA-Z0-9_]*',
4 => '&lt;[a-zA-Z_][a-zA-Z0-9_]*&gt;',
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,166 @@
<?php
/*************************************************************************************
* php-brief.php
* -------------
* Author: Nigel McNie (nigel@geshi.org)
* Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
* Release Version: 1.0.7.21
* Date Started: 2004/06/02
*
* PHP language file for GeSHi (brief version).
*
* CHANGES
* -------
* 2004/11/27 (1.0.3)
* - Added support for multiple object splitters
* - Fixed &new problem
* 2004/10/27 (1.0.2)
* - Added support for URLs
* 2004/08/05 (1.0.1)
* - Added support for symbols
* 2004/07/14 (1.0.0)
* - First Release
*
* TODO (updated 2004/07/14)
* -------------------------
* * Remove more functions that are hardly used
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'PHP',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'include', 'require', 'include_once', 'require_once',
'for', 'as', 'foreach', 'if', 'elseif', 'else', 'while', 'do', 'endwhile', 'endif', 'switch', 'case', 'endswitch',
'return', 'break'
),
2 => array(
'null', '__LINE__', '__FILE__',
'false', '&lt;?php', '?&gt;',
'true', 'var', 'default',
'function', 'class', 'new', '&amp;new', 'public', 'private', 'interface', 'extends',
),
3 => array(
'func_num_args', 'func_get_arg', 'func_get_args', 'strlen', 'strcmp', 'strncmp', 'strcasecmp', 'strncasecmp', 'each', 'error_reporting', 'define', 'defined',
'trigger_error', 'user_error', 'set_error_handler', 'restore_error_handler', 'get_declared_classes', 'get_loaded_extensions',
'extension_loaded', 'get_extension_funcs', 'debug_backtrace',
'constant', 'bin2hex', 'sleep', 'usleep', 'time', 'mktime', 'gmmktime', 'strftime', 'gmstrftime', 'strtotime', 'date', 'gmdate', 'getdate', 'localtime', 'checkdate', 'flush', 'wordwrap', 'htmlspecialchars', 'htmlentities', 'html_entity_decode', 'md5', 'md5_file', 'crc32', 'getimagesize', 'image_type_to_mime_type', 'phpinfo', 'phpversion', 'phpcredits', 'strnatcmp', 'strnatcasecmp', 'substr_count', 'strspn', 'strcspn', 'strtok', 'strtoupper', 'strtolower', 'strpos', 'strrpos', 'strrev', 'hebrev', 'hebrevc', 'nl2br', 'basename', 'dirname', 'pathinfo', 'stripslashes', 'stripcslashes', 'strstr', 'stristr', 'strrchr', 'str_shuffle', 'str_word_count', 'strcoll', 'substr', 'substr_replace', 'quotemeta', 'ucfirst', 'ucwords', 'strtr', 'addslashes', 'addcslashes', 'rtrim', 'str_replace', 'str_repeat', 'count_chars', 'chunk_split', 'trim', 'ltrim', 'strip_tags', 'similar_text', 'explode', 'implode', 'setlocale', 'localeconv',
'parse_str', 'str_pad', 'chop', 'strchr', 'sprintf', 'printf', 'vprintf', 'vsprintf', 'sscanf', 'fscanf', 'parse_url', 'urlencode', 'urldecode', 'rawurlencode', 'rawurldecode', 'readlink', 'linkinfo', 'link', 'unlink', 'exec', 'system', 'escapeshellcmd', 'escapeshellarg', 'passthru', 'shell_exec', 'proc_open', 'proc_close', 'rand', 'srand', 'getrandmax', 'mt_rand', 'mt_srand', 'mt_getrandmax', 'base64_decode', 'base64_encode', 'abs', 'ceil', 'floor', 'round', 'is_finite', 'is_nan', 'is_infinite', 'bindec', 'hexdec', 'octdec', 'decbin', 'decoct', 'dechex', 'base_convert', 'number_format', 'fmod', 'ip2long', 'long2ip', 'getenv', 'putenv', 'getopt', 'microtime', 'gettimeofday', 'getrusage', 'uniqid', 'quoted_printable_decode', 'set_time_limit', 'get_cfg_var', 'magic_quotes_runtime', 'set_magic_quotes_runtime', 'get_magic_quotes_gpc', 'get_magic_quotes_runtime',
'import_request_variables', 'error_log', 'serialize', 'unserialize', 'memory_get_usage', 'var_dump', 'var_export', 'debug_zval_dump', 'print_r','highlight_file', 'show_source', 'highlight_string', 'ini_get', 'ini_get_all', 'ini_set', 'ini_alter', 'ini_restore', 'get_include_path', 'set_include_path', 'restore_include_path', 'setcookie', 'header', 'headers_sent', 'connection_aborted', 'connection_status', 'ignore_user_abort', 'parse_ini_file', 'is_uploaded_file', 'move_uploaded_file', 'intval', 'floatval', 'doubleval', 'strval', 'gettype', 'settype', 'is_null', 'is_resource', 'is_bool', 'is_long', 'is_float', 'is_int', 'is_integer', 'is_double', 'is_real', 'is_numeric', 'is_string', 'is_array', 'is_object', 'is_scalar',
'ereg', 'ereg_replace', 'eregi', 'eregi_replace', 'split', 'spliti', 'join', 'sql_regcase', 'dl', 'pclose', 'popen', 'readfile', 'rewind', 'rmdir', 'umask', 'fclose', 'feof', 'fgetc', 'fgets', 'fgetss', 'fread', 'fopen', 'fpassthru', 'ftruncate', 'fstat', 'fseek', 'ftell', 'fflush', 'fwrite', 'fputs', 'mkdir', 'rename', 'copy', 'tempnam', 'tmpfile', 'file', 'file_get_contents', 'stream_select', 'stream_context_create', 'stream_context_set_params', 'stream_context_set_option', 'stream_context_get_options', 'stream_filter_prepend', 'stream_filter_append', 'fgetcsv', 'flock', 'get_meta_tags', 'stream_set_write_buffer', 'set_file_buffer', 'set_socket_blocking', 'stream_set_blocking', 'socket_set_blocking', 'stream_get_meta_data', 'stream_register_wrapper', 'stream_wrapper_register', 'stream_set_timeout', 'socket_set_timeout', 'socket_get_status', 'realpath', 'fnmatch', 'fsockopen', 'pfsockopen', 'pack', 'unpack', 'get_browser', 'crypt', 'opendir', 'closedir', 'chdir', 'getcwd', 'rewinddir', 'readdir', 'dir', 'glob', 'fileatime', 'filectime', 'filegroup', 'fileinode', 'filemtime', 'fileowner', 'fileperms', 'filesize', 'filetype', 'file_exists', 'is_writable', 'is_writeable', 'is_readable', 'is_executable', 'is_file', 'is_dir', 'is_link', 'stat', 'lstat', 'chown',
'touch', 'clearstatcache', 'mail', 'ob_start', 'ob_flush', 'ob_clean', 'ob_end_flush', 'ob_end_clean', 'ob_get_flush', 'ob_get_clean', 'ob_get_length', 'ob_get_level', 'ob_get_status', 'ob_get_contents', 'ob_implicit_flush', 'ob_list_handlers', 'ksort', 'krsort', 'natsort', 'natcasesort', 'asort', 'arsort', 'sort', 'rsort', 'usort', 'uasort', 'uksort', 'shuffle', 'array_walk', 'count', 'end', 'prev', 'next', 'reset', 'current', 'key', 'min', 'max', 'in_array', 'array_search', 'extract', 'compact', 'array_fill', 'range', 'array_multisort', 'array_push', 'array_pop', 'array_shift', 'array_unshift', 'array_splice', 'array_slice', 'array_merge', 'array_merge_recursive', 'array_keys', 'array_values', 'array_count_values', 'array_reverse', 'array_reduce', 'array_pad', 'array_flip', 'array_change_key_case', 'array_rand', 'array_unique', 'array_intersect', 'array_intersect_assoc', 'array_diff', 'array_diff_assoc', 'array_sum', 'array_filter', 'array_map', 'array_chunk', 'array_key_exists', 'pos', 'sizeof', 'key_exists', 'assert', 'assert_options', 'version_compare', 'ftok', 'str_rot13', 'aggregate',
'session_name', 'session_module_name', 'session_save_path', 'session_id', 'session_regenerate_id', 'session_decode', 'session_register', 'session_unregister', 'session_is_registered', 'session_encode',
'session_start', 'session_destroy', 'session_unset', 'session_set_save_handler', 'session_cache_limiter', 'session_cache_expire', 'session_set_cookie_params', 'session_get_cookie_params', 'session_write_close', 'preg_match', 'preg_match_all', 'preg_replace', 'preg_replace_callback', 'preg_split', 'preg_quote', 'preg_grep', 'overload', 'ctype_alnum', 'ctype_alpha', 'ctype_cntrl', 'ctype_digit', 'ctype_lower', 'ctype_graph', 'ctype_print', 'ctype_punct', 'ctype_space', 'ctype_upper', 'ctype_xdigit', 'virtual', 'apache_request_headers', 'apache_note', 'apache_lookup_uri', 'apache_child_terminate', 'apache_setenv', 'apache_response_headers', 'apache_get_version', 'getallheaders', 'mysql_connect', 'mysql_pconnect', 'mysql_close', 'mysql_select_db', 'mysql_create_db', 'mysql_drop_db', 'mysql_query', 'mysql_unbuffered_query', 'mysql_db_query', 'mysql_list_dbs', 'mysql_list_tables', 'mysql_list_fields', 'mysql_list_processes', 'mysql_error', 'mysql_errno', 'mysql_affected_rows', 'mysql_insert_id', 'mysql_result', 'mysql_num_rows', 'mysql_num_fields', 'mysql_fetch_row', 'mysql_fetch_array', 'mysql_fetch_assoc', 'mysql_fetch_object', 'mysql_data_seek', 'mysql_fetch_lengths', 'mysql_fetch_field', 'mysql_field_seek', 'mysql_free_result', 'mysql_field_name', 'mysql_field_table', 'mysql_field_len', 'mysql_field_type', 'mysql_field_flags', 'mysql_escape_string', 'mysql_real_escape_string', 'mysql_stat',
'mysql_thread_id', 'mysql_client_encoding', 'mysql_get_client_info', 'mysql_get_host_info', 'mysql_get_proto_info', 'mysql_get_server_info', 'mysql_info', 'mysql', 'mysql_fieldname', 'mysql_fieldtable', 'mysql_fieldlen', 'mysql_fieldtype', 'mysql_fieldflags', 'mysql_selectdb', 'mysql_createdb', 'mysql_dropdb', 'mysql_freeresult', 'mysql_numfields', 'mysql_numrows', 'mysql_listdbs', 'mysql_listtables', 'mysql_listfields', 'mysql_db_name', 'mysql_dbname', 'mysql_tablename', 'mysql_table_name', 'pg_connect', 'pg_pconnect', 'pg_close', 'pg_connection_status', 'pg_connection_busy', 'pg_connection_reset', 'pg_host', 'pg_dbname', 'pg_port', 'pg_tty', 'pg_options', 'pg_ping', 'pg_query', 'pg_send_query', 'pg_cancel_query', 'pg_fetch_result', 'pg_fetch_row', 'pg_fetch_assoc', 'pg_fetch_array', 'pg_fetch_object', 'pg_fetch_all', 'pg_affected_rows', 'pg_get_result', 'pg_result_seek', 'pg_result_status', 'pg_free_result', 'pg_last_oid', 'pg_num_rows', 'pg_num_fields', 'pg_field_name', 'pg_field_num', 'pg_field_size', 'pg_field_type', 'pg_field_prtlen', 'pg_field_is_null', 'pg_get_notify', 'pg_get_pid', 'pg_result_error', 'pg_last_error', 'pg_last_notice', 'pg_put_line', 'pg_end_copy', 'pg_copy_to', 'pg_copy_from',
'pg_trace', 'pg_untrace', 'pg_lo_create', 'pg_lo_unlink', 'pg_lo_open', 'pg_lo_close', 'pg_lo_read', 'pg_lo_write', 'pg_lo_read_all', 'pg_lo_import', 'pg_lo_export', 'pg_lo_seek', 'pg_lo_tell', 'pg_escape_string', 'pg_escape_bytea', 'pg_unescape_bytea', 'pg_client_encoding', 'pg_set_client_encoding', 'pg_meta_data', 'pg_convert', 'pg_insert', 'pg_update', 'pg_delete', 'pg_select', 'pg_exec', 'pg_getlastoid', 'pg_cmdtuples', 'pg_errormessage', 'pg_numrows', 'pg_numfields', 'pg_fieldname', 'pg_fieldsize', 'pg_fieldtype', 'pg_fieldnum', 'pg_fieldprtlen', 'pg_fieldisnull', 'pg_freeresult', 'pg_result', 'pg_loreadall', 'pg_locreate', 'pg_lounlink', 'pg_loopen', 'pg_loclose', 'pg_loread', 'pg_lowrite', 'pg_loimport', 'pg_loexport',
'echo', 'print', 'global', 'static', 'exit', 'array', 'empty', 'eval', 'isset', 'unset', 'die'
)
),
'SYMBOLS' => array(
'(', ')', '[', ']', '{', '}',
'!', '@', '%', '&', '|', '/',
'<', '>',
'=', '-', '+', '*',
'.', ':', ',', ';'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #000066;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
2 => 'color: #808080; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
1 => 'color: #006600;',
2 => 'color: #006600;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
0 => 'color: #0000ff;'
),
'SCRIPT' => array(
0 => '',
1 => '',
2 => '',
3 => ''
)
),
'URLS' => array(
1 => '',
2 => '',
3 => 'http://www.php.net/{FNAME}',
4 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '-&gt;',
2 => '::'
),
'REGEXPS' => array(
0 => "[\\$]{1,2}[a-zA-Z_][a-zA-Z0-9_]*"
),
'STRICT_MODE_APPLIES' => GESHI_MAYBE,
'SCRIPT_DELIMITERS' => array(
'<?php' => '?>',
'<?' => '?>',
'<%' => '%>',
'<script language="php">' => '</script>'
),
'HIGHLIGHT_STRICT_BLOCK' => array(
0 => true,
1 => true,
2 => true,
3 => true
),
'TAB_WIDTH' => 4
);
?>

View file

@ -0,0 +1,359 @@
<?php
/*************************************************************************************
* php.php
* --------
* Author: Nigel McNie (nigel@geshi.org)
* Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
* Release Version: 1.0.7.21
* Date Started: 2004/06/20
*
* PHP language file for GeSHi.
*
* CHANGES
* -------
* 2004/11/25 (1.0.3)
* - Added support for multiple object splitters
* - Fixed &new problem
* 2004/10/27 (1.0.2)
* - Added URL support
* - Added extra constants
* 2004/08/05 (1.0.1)
* - Added support for symbols
* 2004/07/14 (1.0.0)
* - First Release
*
* TODO (updated 2004/07/14)
* -------------------------
* * Make sure the last few function I may have missed
* (like eval()) are included for highlighting
* * Split to several files - php4, php5 etc
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'PHP',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'include', 'require', 'include_once', 'require_once',
'for', 'foreach', 'as', 'if', 'elseif', 'else', 'while', 'do', 'endwhile',
'endif', 'switch', 'case', 'endswitch', 'endfor', 'endforeach',
'return', 'break', 'continue'
),
2 => array(
'null', '__LINE__', '__FILE__',
'false', '&lt;?php', '?&gt;', '&lt;?',
'&lt;script language', '&lt;/script&gt;',
'true', 'var', 'default',
'function', 'class', 'new', '&amp;new', 'public', 'private', 'interface', 'extends',
'__FUNCTION__', '__CLASS__', '__METHOD__', 'PHP_VERSION',
'PHP_OS', 'DEFAULT_INCLUDE_PATH', 'PEAR_INSTALL_DIR', 'PEAR_EXTENSION_DIR',
'PHP_EXTENSION_DIR', 'PHP_BINDIR', 'PHP_LIBDIR', 'PHP_DATADIR', 'PHP_SYSCONFDIR',
'PHP_LOCALSTATEDIR', 'PHP_CONFIG_FILE_PATH', 'PHP_OUTPUT_HANDLER_START', 'PHP_OUTPUT_HANDLER_CONT',
'PHP_OUTPUT_HANDLER_END', 'E_ERROR', 'E_WARNING', 'E_PARSE', 'E_NOTICE',
'E_CORE_ERROR', 'E_CORE_WARNING', 'E_COMPILE_ERROR', 'E_COMPILE_WARNING', 'E_USER_ERROR',
'E_USER_WARNING', 'E_USER_NOTICE', 'E_ALL'
),
3 => array(
'zlib_get_coding_type','zend_version','zend_logo_guid','yp_order','yp_next',
'yp_match','yp_master','yp_get_default_domain','yp_first','yp_errno','yp_err_string',
'yp_cat','yp_all','xml_set_unparsed_entity_decl_handler','xml_set_start_namespace_decl_handler','xml_set_processing_instruction_handler','xml_set_object',
'xml_set_notation_decl_handler','xml_set_external_entity_ref_handler','xml_set_end_namespace_decl_handler','xml_set_element_handler','xml_set_default_handler','xml_set_character_data_handler',
'xml_parser_set_option','xml_parser_get_option','xml_parser_free','xml_parser_create_ns','xml_parser_create','xml_parse_into_struct',
'xml_parse','xml_get_error_code','xml_get_current_line_number','xml_get_current_column_number','xml_get_current_byte_index','xml_error_string',
'wordwrap','wddx_serialize_vars','wddx_serialize_value','wddx_packet_start','wddx_packet_end','wddx_deserialize',
'wddx_add_vars','vsprintf','vprintf','virtual','version_compare','var_export',
'var_dump','utf8_encode','utf8_decode','usort','usleep','user_error',
'urlencode','urldecode','unserialize','unregister_tick_function','unpack','unlink',
'unixtojd','uniqid','umask','uksort','ucwords','ucfirst',
'uasort','trim','trigger_error','touch','token_name','token_get_all',
'tmpfile','time','textdomain','tempnam','tanh','tan',
'system','syslog','symlink','substr_replace','substr_count','substr',
'strval','strtr','strtoupper','strtotime','strtolower','strtok',
'strstr','strspn','strrpos','strrev','strrchr','strpos',
'strncmp','strncasecmp','strnatcmp','strnatcasecmp','strlen','stristr',
'stripslashes','stripcslashes','strip_tags','strftime','stream_wrapper_register','stream_set_write_buffer',
'stream_set_timeout','stream_set_blocking','stream_select','stream_register_wrapper','stream_get_meta_data','stream_filter_prepend',
'stream_filter_append','stream_context_set_params','stream_context_set_option','stream_context_get_options','stream_context_create','strcspn',
'strcoll','strcmp','strchr','strcasecmp','str_word_count','str_shuffle',
'str_rot13','str_replace','str_repeat','str_pad','stat','sscanf',
'srand','sqrt','sql_regcase','sprintf','spliti','split',
'soundex','sort','socket_writev','socket_write','socket_strerror','socket_shutdown',
'socket_setopt','socket_set_timeout','socket_set_option','socket_set_nonblock','socket_set_blocking','socket_set_block',
'socket_sendto','socket_sendmsg','socket_send','socket_select','socket_recvmsg','socket_recvfrom',
'socket_recv','socket_readv','socket_read','socket_listen','socket_last_error','socket_iovec_set',
'socket_iovec_free','socket_iovec_fetch','socket_iovec_delete','socket_iovec_alloc','socket_iovec_add','socket_getsockname',
'socket_getpeername','socket_getopt','socket_get_status','socket_get_option','socket_create_pair','socket_create_listen',
'socket_create','socket_connect','socket_close','socket_clear_error','socket_bind','socket_accept',
'sleep','sizeof','sinh','sin','similar_text','shuffle',
'show_source','shmop_write','shmop_size','shmop_read','shmop_open','shmop_delete',
'shmop_close','shm_remove_var','shm_remove','shm_put_var','shm_get_var','shm_detach',
'shm_attach','shell_exec','sha1_file','sha1','settype','setlocale',
'setcookie','set_time_limit','set_socket_blocking','set_magic_quotes_runtime','set_include_path','set_file_buffer',
'set_error_handler','session_write_close','session_unset','session_unregister','session_start','session_set_save_handler',
'session_set_cookie_params','session_save_path','session_register','session_regenerate_id','session_name','session_module_name',
'session_is_registered','session_id','session_get_cookie_params','session_encode','session_destroy','session_decode',
'session_cache_limiter','session_cache_expire','serialize','sem_remove','sem_release','sem_get',
'sem_acquire','rtrim','rsort','round','rmdir','rewinddir',
'rewind','restore_include_path','restore_error_handler','reset','rename','register_tick_function',
'register_shutdown_function','realpath','readlink','readgzfile','readfile','readdir',
'read_exif_data','rawurlencode','rawurldecode','range','rand','rad2deg',
'quotemeta','quoted_printable_decode','putenv','proc_open','proc_close','printf',
'print_r','prev','preg_split','preg_replace_callback','preg_replace','preg_quote',
'preg_match_all','preg_match','preg_grep','pow','posix_uname','posix_ttyname',
'posix_times','posix_strerror','posix_setuid','posix_setsid','posix_setpgid','posix_setgid',
'posix_seteuid','posix_setegid','posix_mkfifo','posix_kill','posix_isatty','posix_getuid',
'posix_getsid','posix_getrlimit','posix_getpwuid','posix_getpwnam','posix_getppid','posix_getpid',
'posix_getpgrp','posix_getpgid','posix_getlogin','posix_getgroups','posix_getgrnam','posix_getgrgid',
'posix_getgid','posix_geteuid','posix_getegid','posix_getcwd','posix_get_last_error','posix_errno',
'posix_ctermid','pos','popen','pi','phpversion','phpinfo',
'phpcredits','php_uname','php_sapi_name','php_logo_guid','php_ini_scanned_files','pg_update',
'pg_untrace','pg_unescape_bytea','pg_tty','pg_trace','pg_setclientencoding','pg_set_client_encoding',
'pg_send_query','pg_select','pg_result_status','pg_result_seek','pg_result_error','pg_result',
'pg_query','pg_put_line','pg_port','pg_ping','pg_pconnect','pg_options',
'pg_numrows','pg_numfields','pg_num_rows','pg_num_fields','pg_meta_data','pg_lowrite',
'pg_lounlink','pg_loreadall','pg_loread','pg_loopen','pg_loimport','pg_loexport',
'pg_locreate','pg_loclose','pg_lo_write','pg_lo_unlink','pg_lo_tell','pg_lo_seek',
'pg_lo_read_all','pg_lo_read','pg_lo_open','pg_lo_import','pg_lo_export','pg_lo_create',
'pg_lo_close','pg_last_oid','pg_last_notice','pg_last_error','pg_insert','pg_host',
'pg_getlastoid','pg_get_result','pg_get_pid','pg_get_notify','pg_freeresult','pg_free_result',
'pg_fieldtype','pg_fieldsize','pg_fieldprtlen','pg_fieldnum','pg_fieldname','pg_fieldisnull',
'pg_field_type','pg_field_size','pg_field_prtlen','pg_field_num','pg_field_name','pg_field_is_null',
'pg_fetch_row','pg_fetch_result','pg_fetch_object','pg_fetch_assoc','pg_fetch_array','pg_fetch_all',
'pg_exec','pg_escape_string','pg_escape_bytea','pg_errormessage','pg_end_copy','pg_delete',
'pg_dbname','pg_copy_to','pg_copy_from','pg_convert','pg_connection_status','pg_connection_reset',
'pg_connection_busy','pg_connect','pg_cmdtuples','pg_close','pg_clientencoding','pg_client_encoding',
'pg_cancel_query','pg_affected_rows','pfsockopen','pclose','pathinfo','passthru',
'parse_url','parse_str','parse_ini_file','pack','overload','output_reset_rewrite_vars',
'output_add_rewrite_var','ord','openssl_x509_read','openssl_x509_parse','openssl_x509_free','openssl_x509_export_to_file',
'openssl_x509_export','openssl_x509_checkpurpose','openssl_x509_check_private_key','openssl_verify','openssl_sign','openssl_seal',
'openssl_public_encrypt','openssl_public_decrypt','openssl_private_encrypt','openssl_private_decrypt','openssl_pkey_new','openssl_pkey_get_public',
'openssl_pkey_get_private','openssl_pkey_free','openssl_pkey_export_to_file','openssl_pkey_export','openssl_pkcs7_verify','openssl_pkcs7_sign',
'openssl_pkcs7_encrypt','openssl_pkcs7_decrypt','openssl_open','openssl_get_publickey','openssl_get_privatekey','openssl_free_key',
'openssl_error_string','openssl_csr_sign','openssl_csr_new','openssl_csr_export_to_file','openssl_csr_export','openlog',
'opendir','octdec','ob_start','ob_list_handlers','ob_implicit_flush','ob_iconv_handler',
'ob_gzhandler','ob_get_status','ob_get_level','ob_get_length','ob_get_flush','ob_get_contents',
'ob_get_clean','ob_flush','ob_end_flush','ob_end_clean','ob_clean','number_format',
'nl_langinfo','nl2br','ngettext','next','natsort','natcasesort',
'mysql_unbuffered_query','mysql_thread_id','mysql_tablename','mysql_table_name','mysql_stat','mysql_selectdb',
'mysql_select_db','mysql_result','mysql_real_escape_string','mysql_query','mysql_ping','mysql_pconnect',
'mysql_numrows','mysql_numfields','mysql_num_rows','mysql_num_fields','mysql_listtables','mysql_listfields',
'mysql_listdbs','mysql_list_tables','mysql_list_processes','mysql_list_fields','mysql_list_dbs','mysql_insert_id',
'mysql_info','mysql_get_server_info','mysql_get_proto_info','mysql_get_host_info','mysql_get_client_info','mysql_freeresult',
'mysql_free_result','mysql_fieldtype','mysql_fieldtable','mysql_fieldname','mysql_fieldlen','mysql_fieldflags',
'mysql_field_type','mysql_field_table','mysql_field_seek','mysql_field_name','mysql_field_len','mysql_field_flags',
'mysql_fetch_row','mysql_fetch_object','mysql_fetch_lengths','mysql_fetch_field','mysql_fetch_assoc','mysql_fetch_array',
'mysql_escape_string','mysql_error','mysql_errno','mysql_dropdb','mysql_drop_db','mysql_dbname',
'mysql_db_query','mysql_db_name','mysql_data_seek','mysql_createdb','mysql_create_db','mysql_connect',
'mysql_close','mysql_client_encoding','mysql_affected_rows','mysql','mt_srand','mt_rand',
'mt_getrandmax','move_uploaded_file','money_format','mktime','mkdir','min',
'microtime','method_exists','metaphone','memory_get_usage','md5_file','md5',
'mbsubstr','mbstrrpos','mbstrpos','mbstrlen','mbstrcut','mbsplit',
'mbregex_encoding','mberegi_replace','mberegi','mbereg_search_setpos','mbereg_search_regs','mbereg_search_pos',
'mbereg_search_init','mbereg_search_getregs','mbereg_search_getpos','mbereg_search','mbereg_replace','mbereg_match',
'mbereg','mb_substr_count','mb_substr','mb_substitute_character','mb_strwidth','mb_strtoupper',
'mb_strtolower','mb_strrpos','mb_strpos','mb_strlen','mb_strimwidth','mb_strcut',
'mb_split','mb_send_mail','mb_regex_set_options','mb_regex_encoding','mb_preferred_mime_name','mb_parse_str',
'mb_output_handler','mb_language','mb_internal_encoding','mb_http_output','mb_http_input','mb_get_info',
'mb_eregi_replace','mb_eregi','mb_ereg_search_setpos','mb_ereg_search_regs','mb_ereg_search_pos','mb_ereg_search_init',
'mb_ereg_search_getregs','mb_ereg_search_getpos','mb_ereg_search','mb_ereg_replace','mb_ereg_match','mb_ereg',
'mb_encode_numericentity','mb_encode_mimeheader','mb_detect_order','mb_detect_encoding','mb_decode_numericentity','mb_decode_mimeheader',
'mb_convert_variables','mb_convert_kana','mb_convert_encoding','mb_convert_case','max','mail',
'magic_quotes_runtime','ltrim','lstat','long2ip','log1p','log10',
'log','localtime','localeconv','linkinfo','link','levenshtein',
'lcg_value','ksort','krsort','key_exists','key','juliantojd',
'join','jewishtojd','jdtounix','jdtojulian','jdtojewish','jdtogregorian',
'jdtofrench','jdmonthname','jddayofweek','is_writeable','is_writable','is_uploaded_file',
'is_subclass_of','is_string','is_scalar','is_resource','is_real','is_readable',
'is_object','is_numeric','is_null','is_nan','is_long','is_link',
'is_integer','is_int','is_infinite','is_float','is_finite','is_file',
'is_executable','is_double','is_dir','is_callable','is_bool','is_array',
'is_a','iptcparse','iptcembed','ip2long','intval','ini_set',
'ini_restore','ini_get_all','ini_get','ini_alter','in_array','import_request_variables',
'implode','image_type_to_mime_type','ignore_user_abort','iconv_set_encoding','iconv_get_encoding','iconv',
'i18n_mime_header_encode','i18n_mime_header_decode','i18n_ja_jp_hantozen','i18n_internal_encoding','i18n_http_output','i18n_http_input',
'i18n_discover_encoding','i18n_convert','hypot','htmlspecialchars','htmlentities','html_entity_decode',
'highlight_string','highlight_file','hexdec','hebrevc','hebrev','headers_sent',
'header','gzwrite','gzuncompress','gztell','gzseek','gzrewind',
'gzread','gzputs','gzpassthru','gzopen','gzinflate','gzgetss',
'gzgets','gzgetc','gzfile','gzeof','gzencode','gzdeflate',
'gzcompress','gzclose','gregoriantojd','gmstrftime','gmmktime','gmdate',
'glob','gettype','gettimeofday','gettext','getservbyport','getservbyname',
'getrusage','getrandmax','getprotobynumber','getprotobyname','getopt','getmyuid',
'getmypid','getmyinode','getmygid','getmxrr','getlastmod','getimagesize',
'gethostbynamel','gethostbyname','gethostbyaddr','getenv','getdate','getcwd',
'getallheaders','get_resource_type','get_required_files','get_parent_class','get_object_vars','get_meta_tags',
'get_magic_quotes_runtime','get_magic_quotes_gpc','get_loaded_extensions','get_included_files','get_include_path','get_html_translation_table',
'get_extension_funcs','get_defined_vars','get_defined_functions','get_defined_constants','get_declared_classes','get_current_user',
'get_class_vars','get_class_methods','get_class','get_cfg_var','get_browser','fwrite',
'function_exists','func_num_args','func_get_args','func_get_arg','ftruncate','ftp_systype',
'ftp_ssl_connect','ftp_size','ftp_site','ftp_set_option','ftp_rmdir','ftp_rename',
'ftp_rawlist','ftp_quit','ftp_pwd','ftp_put','ftp_pasv','ftp_nlist',
'ftp_nb_put','ftp_nb_get','ftp_nb_fput','ftp_nb_fget','ftp_nb_continue','ftp_mkdir',
'ftp_mdtm','ftp_login','ftp_get_option','ftp_get','ftp_fput','ftp_fget',
'ftp_exec','ftp_delete','ftp_connect','ftp_close','ftp_chdir','ftp_cdup',
'ftok','ftell','fstat','fsockopen','fseek','fscanf',
'frenchtojd','fread','fputs','fpassthru','fopen','fnmatch',
'fmod','flush','floor','flock','floatval','filetype',
'filesize','filepro_rowcount','filepro_retrieve','filepro_fieldwidth','filepro_fieldtype','filepro_fieldname',
'filepro_fieldcount','filepro','fileperms','fileowner','filemtime','fileinode',
'filegroup','filectime','fileatime','file_get_contents','file_exists','file',
'fgetss','fgets','fgetcsv','fgetc','fflush','feof',
'fclose','ezmlm_hash','extract','extension_loaded','expm1','explode',
'exp','exif_thumbnail','exif_tagname','exif_read_data','exif_imagetype','exec',
'escapeshellcmd','escapeshellarg','error_reporting','error_log','eregi_replace','eregi',
'ereg_replace','ereg','end','easter_days','easter_date','each',
'doubleval','dngettext','dl','diskfreespace','disk_total_space','disk_free_space',
'dirname','dir','dgettext','deg2rad','defined','define_syslog_variables',
'define','decoct','dechex','decbin','debug_zval_dump','debug_backtrace',
'deaggregate','dcngettext','dcgettext','dba_sync','dba_replace','dba_popen',
'dba_optimize','dba_open','dba_nextkey','dba_list','dba_insert','dba_handlers',
'dba_firstkey','dba_fetch','dba_exists','dba_delete','dba_close','date',
'current','ctype_xdigit','ctype_upper','ctype_space','ctype_punct','ctype_print',
'ctype_lower','ctype_graph','ctype_digit','ctype_cntrl','ctype_alpha','ctype_alnum',
'crypt','create_function','crc32','count_chars','count','cosh',
'cos','copy','convert_cyr_string','constant','connection_status','connection_aborted',
'compact','closelog','closedir','clearstatcache','class_exists','chunk_split',
'chr','chown','chop','chmod','chgrp','checkdnsrr',
'checkdate','chdir','ceil','call_user_method_array','call_user_method','call_user_func_array',
'call_user_func','cal_to_jd','cal_info','cal_from_jd','cal_days_in_month','bzwrite',
'bzread','bzopen','bzflush','bzerrstr','bzerror','bzerrno',
'bzdecompress','bzcompress','bzclose','bindtextdomain','bindec','bind_textdomain_codeset',
'bin2hex','bcsub','bcsqrt','bcscale','bcpow','bcmul',
'bcmod','bcdiv','bccomp','bcadd','basename','base_convert',
'base64_encode','base64_decode','atanh','atan2','atan','assert_options',
'assert','asort','asinh','asin','arsort','array_walk',
'array_values','array_unshift','array_unique','array_sum','array_splice','array_slice',
'array_shift','array_search','array_reverse','array_reduce','array_rand','array_push',
'array_pop','array_pad','array_multisort','array_merge_recursive','array_merge','array_map',
'array_keys','array_key_exists','array_intersect_assoc','array_intersect','array_flip','array_filter',
'array_fill','array_diff_assoc','array_diff','array_count_values','array_chunk','array_change_key_case',
'apache_setenv','apache_response_headers','apache_request_headers','apache_note','apache_lookup_uri','apache_get_version',
'apache_child_terminate','aggregation_info','aggregate_properties_by_regexp','aggregate_properties_by_list','aggregate_properties','aggregate_methods_by_regexp',
'aggregate_methods_by_list','aggregate_methods','aggregate','addslashes','addcslashes','acosh',
'acos','abs','_','echo', 'print', 'global', 'static', 'exit', 'array', 'empty',
'eval', 'isset', 'unset', 'die', 'list'
)
),
'SYMBOLS' => array(
'(', ')', '[', ']', '{', '}',
'!', '@', '%', '&', '|', '/',
'<', '>',
'=', '-', '+', '*',
'.', ':', ',', ';'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #000066;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
2 => 'color: #808080; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
1 => 'color: #006600;',
2 => 'color: #006600;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
0 => 'color: #0000ff;',
1 => 'color: #ff0000'
),
'SCRIPT' => array(
0 => '',
1 => '',
2 => '',
3 => ''
)
),
'URLS' => array(
1 => '',
2 => '',
3 => 'http://www.php.net/{FNAME}',
4 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '-&gt;',
2 => '::'
),
'REGEXPS' => array(
0 => array(
GESHI_SEARCH => "([a-zA-Z]+)(\\n)(.*?)(\\n)(\\1[^a-zA-Z0-9])",
GESHI_REPLACE => '\3',
GESHI_BEFORE => '\1\2',
GESHI_AFTER => '\4\5',
GESHI_MODIFIERS => 'siU'
),
1 => "[\\$]{1,2}[a-zA-Z_][a-zA-Z0-9_]*"
),
'STRICT_MODE_APPLIES' => GESHI_MAYBE,
'SCRIPT_DELIMITERS' => array(
0 => array(
'<?php' => '?>'
),
1 => array(
'<?' => '?>'
),
2 => array(
'<%' => '%>'
),
3 => array(
'<script language="php">' => '</script>'
)
),
'HIGHLIGHT_STRICT_BLOCK' => array(
0 => true,
1 => true,
2 => true,
3 => true
),
'TAB_WIDTH' => 4
);
?>

View file

@ -0,0 +1,141 @@
<?php
/*************************************************************************************
* pic16.php
* -------
* Author: Phil Mattison (mattison@ohmikron.com)
* Copyright: (c) 2008 Ohmikron Corp. (http://www.ohmikron.com/)
* Release Version: 1.0.8.2
* Date Started: 2008/07/30
*
* PIC16 Assembler language file for GeSHi.
*
* CHANGES
* -------
* 2008/07/30 (1.0.8)
* - First Release
*
* TODO (updated 2008/07/30)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'PIC16',
'COMMENT_SINGLE' => array(1 => ';'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
/*Instructions*/
1 => array(
'addcf','adddcf','addlw','addwf','andlw','andwf','bc','bcf','bdc',
'bnc','bndc','bnz','bsf','btfsc','btfss','bz','call','clrc','clrdc',
'clrf','clrw','clrwdt','clrz','comf','decf','goto','incf','incfsz',
'iorlw','iorwf','lcall','lgoto','movf','movfw','movlw','movwf',
'option','negf','nop','retfie','retlw','return','rlf','rrf','setc',
'setdc','setz','skpc','skpdc','skpnc','skpndc','skpnz','skpz',
'sleep','subcf','subdcf','sublw','subwf','swapf','tris','tstf',
'xorlw','xorwf'
),
/*Registers*/
2 => array(
'INDF','TMR0','OPTION','PCL','STATUS','FSR','PORTA','PORTB','PORTC',
'PORTD','PORTE','PORTF','TRISA','TRISB','TRISC','TRISD','TRISE',
'TRISF','PCLATH','INTCON','PIR1','PIE1','PCON','CMCON','VRCON',
'F','W'
),
/*Directives*/
3 => array(
'_BADRAM','BANKISEL','BANKSEL','CBLOCK','CODE','_CONFIG','CONSTANT',
'DA','DATA','DB','DE','#DEFINE','DT','DW','ELSE','END','ENDC',
'ENDIF','ENDM','ENDW','EQU','ERROR','ERRORLEVEL','EXITM','EXPAND',
'EXTERN','FILL','GLOBAL','IDATA','_IDLOCS','IF','IFDEF','IFNDEF',
'INCLUDE','#INCLUDE','LIST','LOCAL','MACRO','_MAXRAM','MESSG',
'NOEXPAND','NOLIST','ORG','PAGE','PAGESEL','PROCESSOR','RADIX',
'RES','SET','SPACE','SUBTITLE','TITLE','UDATA','UDATA_ACS',
'UDATA_OVR','UDATA_SHR','#UNDEFINE','VARIABLE','WHILE',
'D','H','O','B','A'
),
),
'SYMBOLS' => array('=','.',',',':'),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0000a0; font-weight: bold;',
2 => 'color: #aa3300; font-weight: bold;',
3 => 'color: #0000ff;',
),
'COMMENTS' => array(
1 => 'color: #00a000;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #ff0000;'
),
'BRACKETS' => array(
0 => 'color: #0000ff;'
),
'STRINGS' => array(
0 => 'color: #ff7700;'
),
'NUMBERS' => array(
0 => 'color: #ff7700;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #7777ff;'
),
'REGEXPS' => array(),
'SCRIPT' => array()
),
'URLS' => array(
1 => '',
2 => '',
3 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(),
'NUMBERS' =>
GESHI_NUMBER_INT_BASIC |
GESHI_NUMBER_BIN_SUFFIX |
GESHI_NUMBER_HEX_PREFIX |
GESHI_NUMBER_HEX_SUFFIX,
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(),
'HIGHLIGHT_STRICT_BLOCK' => array(),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
'DISALLOWED_BEFORE' => "a-zA-Z0-9\$_\|\#>|^",
'DISALLOWED_AFTER' => "a-zA-Z0-9_<\|%"
)
)
);
?>

View file

@ -0,0 +1,176 @@
<?php
/*************************************************************************************
* pixelbender.php
* ----------------
* Author: Richard Olsson (r@richardolsson.se)
* Copyright: (c) 2008 Richard Olsson (richardolsson.se)
* Release Version: 1.0.8.2
* Date Started: 2008/11/16
*
* Pixel Bender 1.0 language file for GeSHi.
*
*
* Please feel free to modify this file, although I would greatly appreciate
* it if you would then send some feedback on why the file needed to be
* changed, using the e-mail address above.
*
*
* The colors are inspired by those used in the Pixel Bender Toolkit, with
* some slight modifications.
*
* For more info on Pixel Bender, see the Adobe Labs Wiki article at
* http://labs.adobe.com/wiki/index.php/Pixel_Bender_Toolkit.
*
* Keyword groups are defined as follows (groups marked with an asterisk
* inherit their names from terminology used in the language specification
* included with the Pixel Bender Toolkit, see URL above.)
*
* 1. languageVersion & kernel keywords
* 2. Kernel Members *
* 3. Types *
* 4. Statements * & qualifiers (in, out, inout)
* 5. Built-in functions *
* 6. Meta-data names
* 7. Preprocessor & Pre-defined symbols *
*
*
* CHANGES
* -------
* 2008/11/16 (1.0.8.2)
* - Initial release
*
* TODO (updated 2008/11/16)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array(
'LANG_NAME' => 'Pixel Bender 1.0',
'COMMENT_SINGLE' => array(1 => '//'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'languageVersion', 'kernel'
),
2 => array(
'import', 'parameter', 'dependent', 'const', 'input', 'output',
'evaluatePixel', 'evaluateDependents', 'needed', 'changed', 'generated'
),
3 => array(
'bool', 'bool2', 'bool3', 'bool4', 'int', 'int2', 'int3', 'int4',
'float', 'float2', 'float3', 'float4', 'float2x2', 'float3x3', 'float4x4',
'pixel2', 'pixel3', 'pixel4', 'region', 'image1', 'image2', 'image3', 'image4',
'imageRef', 'void'
),
4 => array(
'in', 'out', 'inout', 'if', 'else', 'for', 'while', 'do', 'break',
'continue', 'return'
),
5 => array(
'radians', 'degrees', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'pow',
'exp', 'exp2', 'log', 'log2', 'sqrt', 'inverseSqrt', 'abs', 'sign', 'floor',
'ceil', 'fract', 'mod', 'min', 'max', 'step', 'clamp', 'mix', 'smoothStep',
'length', 'distance', 'dot', 'cross', 'normalize', 'matrixCompMult', 'lessThan',
'lessThanEqual', 'greaterThan', 'greaterThanEqual', 'equal', 'notEqual', 'any',
'all', 'not', 'nowhere', 'everywhere', 'transform', 'union', 'intersect',
'outset', 'inset', 'bounds', 'isEmpty', 'sample', 'sampleLinear', 'sampleNearest',
'outCoord', 'dod', 'pixelSize', 'pixelAspectRatio'
),
6 => array(
'namespace', 'vendor', 'version', 'minValue', 'maxValue', 'defaultValue', 'description'
),
7 => array(
'#if', '#endif', '#ifdef', '#elif', 'defined', '#define',
'AIF_ATI', 'AIF_NVIDIA', 'AIF_FLASH_TARGET'
)
),
'SYMBOLS' => array(
'(', ')', '[', ']', '{', '}', '!', '%', '&', '|', '+', '-', '*', '/', '=', '<', '>', '?', ':'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
4 => true,
5 => true,
6 => true,
7 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0033ff;',
2 => 'color: #0033ff; font-weight: bold;',
3 => 'color: #0033ff;',
4 => 'color: #9900cc; font-weight: bold;',
5 => 'color: #333333;',
6 => 'color: #666666;',
7 => 'color: #990000;',
),
'COMMENTS' => array(
1 => 'color: #009900;',
'MULTI' => 'color: #3f5fbf;'
),
'ESCAPE_CHAR' => array(
0 => ''
),
'BRACKETS' => array(
0 => 'color: #000000;'
),
'STRINGS' => array(
0 => 'color: #990000;'
),
'NUMBERS' => array(
0 => 'color: #000000; font-weight:bold;'
),
'METHODS' => array(
0 => 'color: #000000;',
),
'SYMBOLS' => array(
0 => 'color: #000000; font-weight: bold;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
5 => '',
6 => '',
7 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array('.'),
'REGEXPS' => array(),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(),
'HIGHLIGHT_STRICT_BLOCK' => array()
);
?>

View file

@ -0,0 +1,256 @@
<?php
/*************************************************************************************
* plsql.php
* -------
* Author: Victor Engmark <victor.engmark@gmail.com>
* Copyright: (c) 2006 Victor Engmark (http://l0b0.net/)
* Release Version: 1.0.7.21
* Date Started: 2006/10/26
*
* Oracle 9.2 PL/SQL language file for GeSHi.
* Formatting is based on the default setup of TOAD 8.6.
*
* CHANGES
* -------
* 2006/10/27 (1.0.0)
* - First Release
*
* TODO (updated 2006/10/27)
* -------------------------
* * Add < and > to brackets
* * Remove symbols which are also comment delimiters / quote marks?
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'PL/SQL',
'COMMENT_SINGLE' => array(1 =>'--'), //http://download-uk.oracle.com/docs/cd/B10501_01/appdev.920/a96624/02_funds.htm#2930
'COMMENT_MULTI' => array('/*' => '*/'), //http://download-uk.oracle.com/docs/cd/B10501_01/appdev.920/a96624/02_funds.htm#2950
'CASE_KEYWORDS' => GESHI_CAPS_UPPER,
'QUOTEMARKS' => array("'", '"'), //http://download-uk.oracle.com/docs/cd/B10501_01/appdev.920/a96624/02_funds.htm
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
//PL/SQL reserved keywords (http://download-uk.oracle.com/docs/cd/B10501_01/appdev.920/a96624/f_words.htm#LNPLS019)
1 => array('ZONE', 'YEAR', 'WRITE', 'WORK', 'WITH', 'WHILE', 'WHERE',
'WHENEVER', 'WHEN', 'VIEW', 'VARCHAR2', 'VARCHAR', 'VALUES',
'VALIDATE', 'USE', 'UPDATE', 'UNIQUE', 'UNION', 'TYPE', 'TRUE',
'TRIGGER', 'TO', 'TIMEZONE_REGION', 'TIMEZONE_MINUTE', 'TIMEZONE_HOUR',
'TIMEZONE_ABBR', 'TIMESTAMP', 'TIME', 'THEN', 'TABLE', 'SYNONYM',
'SUCCESSFUL', 'SUBTYPE', 'START', 'SQLERRM', 'SQLCODE', 'SQL', 'SPACE',
'SMALLINT', 'SHARE', 'SET', 'SEPARATE', 'SELECT', 'SECOND',
'SAVEPOINT', 'ROWTYPE', 'ROWNUM', 'ROWID', 'ROW', 'ROLLBACK',
'REVERSE', 'RETURN', 'RELEASE', 'RECORD', 'REAL', 'RAW', 'RANGE',
'RAISE', 'PUBLIC', 'PROCEDURE', 'PRIVATE', 'PRIOR', 'PRAGMA',
'POSITIVEN', 'POSITIVE', 'PLS_INTEGER', 'PCTFREE', 'PARTITION',
'PACKAGE', 'OUT', 'OTHERS', 'ORGANIZATION', 'ORDER', 'OR', 'OPTION',
'OPERATOR', 'OPEN', 'OPAQUE', 'ON', 'OF', 'OCIROWID', 'NUMBER_BASE',
'NUMBER', 'NULL', 'NOWAIT', 'NOT', 'NOCOPY', 'NEXTVAL', 'NEW',
'NATURALN', 'NATURAL', 'MONTH', 'MODE', 'MLSLABEL', 'MINUTE', 'MINUS',
'LOOP', 'LONG', 'LOCK', 'LIMITED', 'LIKE', 'LEVEL', 'JAVA',
'ISOLATION', 'IS', 'INTO', 'INTERVAL', 'INTERSECT', 'INTERFACE',
'INTEGER', 'INSERT', 'INDICATOR', 'INDEX', 'IN', 'IMMEDIATE', 'IF',
'HOUR', 'HEAP', 'HAVING', 'GROUP', 'GOTO', 'FUNCTION', 'FROM',
'FORALL', 'FOR', 'FLOAT', 'FETCH', 'FALSE', 'EXTENDS', 'EXIT',
'EXISTS', 'EXECUTE', 'EXCLUSIVE', 'EXCEPTION', 'END', 'ELSIF', 'ELSE',
'DROP', 'DO', 'DISTINCT', 'DESC', 'DELETE', 'DEFAULT', 'DECLARE',
'DECIMAL', 'DAY', 'DATE', 'CURSOR', 'CURRVAL', 'CURRENT', 'CREATE',
'CONSTANT', 'CONNECT', 'COMPRESS', 'COMMIT', 'COMMENT', 'COLLECT',
'CLUSTER', 'CLOSE', 'CHECK', 'CHAR_BASE', 'CHAR', 'CASE', 'BY', 'BULK',
'BOOLEAN', 'BODY', 'BINARY_INTEGER', 'BETWEEN', 'BEGIN', 'AUTHID',
'AT', 'ASC', 'AS', 'ARRAY', 'ANY', 'AND', 'ALTER', 'ALL'),
//SQL functions (http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96540/toc.htm & http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96540/functions101a.htm#85925)
2 => array('XMLTRANSFORM', 'XMLSEQUENCE', 'XMLFOREST', 'XMLELEMENT',
'XMLCONCAT', 'XMLCOLATTVAL', 'XMLAGG', 'WIDTH_BUCKET', 'VSIZE',
'VARIANCE', 'VAR_SAMP', 'VAR_POP', 'VALUE', 'USERENV', 'USER', 'UPPER',
'UPDATEXML', 'UNISTR', 'UID', 'TZ_OFFSET', 'TRUNC', 'TRIM', 'TREAT',
'TRANSLATE', 'TO_YMINTERVAL', 'TO_TIMESTAMP_TZ', 'TO_TIMESTAMP',
'TO_SINGLE_BYTE', 'TO_NUMBER', 'TO_NCLOB', 'TO_NCHAR', 'TO_MULTI_BYTE',
'TO_LOB', 'TO_DSINTERVAL', 'TO_DATE', 'TO_CLOB', 'TO_CHAR', 'TANH',
'TAN', 'SYSTIMESTAMP', 'SYSDATE', 'SYS_XMLGEN', 'SYS_XMLAGG',
'SYS_TYPEID', 'SYS_GUID', 'SYS_EXTRACT_UTC', 'SYS_DBURIGEN',
'SYS_CONTEXT', 'SYS_CONNECT_BY_PATH', 'SUM', 'SUBSTR', 'STDDEV_SAMP',
'STDDEV_POP', 'STDDEV', 'SQRT', 'SOUNDEX', 'SINH', 'SIN', 'SIGN',
'SESSIONTIMEZONE', 'RTRIM', 'RPAD', 'ROWIDTONCHAR', 'ROWIDTOCHAR',
'ROW_NUMBER', 'ROUND', 'REPLACE', 'REGR_SYY', 'REGR_SXY', 'REGR_SXX',
'REGR_SLOPE', 'REGR_R2', 'REGR_INTERCEPT', 'REGR_COUNT', 'REGR_AVGY',
'REGR_AVGX', 'REFTOHEX', 'REF', 'RAWTONHEX', 'RAWTOHEX',
'RATIO_TO_REPORT', 'RANK', 'POWER', 'PERCENTILE_DISC',
'PERCENTILE_CONT', 'PERCENT_RANK', 'PATH', 'NVL2', 'NVL',
'NUMTOYMINTERVAL', 'NUMTODSINTERVAL', 'NULLIF', 'NTILE', 'NLSSORT',
'NLS_UPPER', 'NLS_LOWER', 'NLS_INITCAP', 'NLS_CHARSET_NAME',
'NLS_CHARSET_ID', 'NLS_CHARSET_DECL_LEN', 'NEXT_DAY', 'NEW_TIME',
'NCHR', 'MONTHS_BETWEEN', 'MOD', 'MIN', 'MAX', 'MAKE_REF', 'LTRIM',
'LPAD', 'LOWER', 'LOG', 'LOCALTIMESTAMP', 'LN', 'LENGTH', 'LEAST',
'LEAD', 'LAST_VALUE', 'LAST_DAY', 'LAST', 'LAG', 'INSTR', 'INITCAP',
'HEXTORAW', 'GROUPING_ID', 'GROUPING', 'GROUP_ID', 'GREATEST',
'FROM_TZ', 'FLOOR', 'FIRST_VALUE', 'FIRST', 'EXTRACTVALUE', 'EXTRACT',
'EXP', 'EXISTSNODE', 'EMPTY_CLOB', 'EMPTY_BLOB', 'DUMP', 'DEREF',
'DEPTH', 'DENSE_RANK', 'DECOMPOSE', 'DECODE', 'DBTIMEZONE',
'CURRENT_TIMESTAMP', 'CURRENT_DATE', 'CUME_DIST', 'COVAR_SAMP',
'COVAR_POP', 'COUNT', 'COSH', 'COS', 'CORR', 'CONVERT', 'CONCAT',
'COMPOSE', 'COALESCE', 'CHR', 'CHARTOROWID', 'CEIL', 'CAST', 'BITAND',
'BIN_TO_NUM', 'BFILENAME', 'AVG', 'ATAN2', 'ATAN', 'ASIN', 'ASCIISTR',
'ASCII', 'ADD_MONTHS', 'ACOS', 'ABS'),
//PL/SQL packages (http://download-uk.oracle.com/docs/cd/B10501_01/appdev.920/a96612/intro2.htm#1025672)
3 => array('UTL_URL', 'UTL_TCP', 'UTL_SMTP', 'UTL_REF', 'UTL_RAW',
'UTL_PG', 'UTL_INADDR', 'UTL_HTTP', 'UTL_FILE', 'UTL_ENCODE',
'UTL_COLL', 'SDO_UTIL', 'SDO_TUNE', 'SDO_MIGRATE', 'SDO_LRS',
'SDO_GEOM', 'SDO_CS', 'DMBS_XMLQUERY', 'DMBS_FLASHBACK',
'DMBS_DEFER_SYS', 'DEBUG_EXTPROC', 'DBMS_XSLPROCESSOR', 'DBMS_XPLAN',
'DBMS_XMLSCHEMA', 'DBMS_XMLSAVE', 'DBMS_XMLPARSER', 'DBMS_XMLGEN',
'DBMS_XMLDOM', 'DBMS_XDBT', 'DBMS_XDB_VERSION', 'DBMS_XDB', 'DBMS_WM',
'DBMS_UTILITY', 'DBMS_TYPES', 'DBMS_TTS', 'DBMS_TRANSFORM',
'DBMS_TRANSACTION', 'DBMS_TRACE', 'DBMS_STRM_A', 'DBMS_STRM',
'DBMS_STORAGE_MAP', 'DBMS_STATS', 'DBMS_SQL', 'DBMS_SPACE_ADMIN',
'DBMS_SPACE', 'DBMS_SHARED_POOL', 'DBMS_SESSION', 'DBMS_RULE_ADM',
'DBMS_RULE', 'DBMS_ROWID', 'DBMS_RLS', 'DBMS_RESUMABLE',
'DBMS_RESOURCE_MANAGER_PRIVS', 'DBMS_RESOURCE_MANAGER', 'DBMS_REPUTIL',
'DBMS_REPCAT_RGT', 'DBMS_REPCAT_INSTATIATE', 'DBMS_REPCAT_ADMIN',
'DBMS_REPCAT', 'DBMS_REPAIR', 'DBMS_REFRESH', 'DBMS_REDEFINITION',
'DBMS_RECTIFIER_DIFF', 'DBMS_RANDOM', 'DBMS_PROPAGATION_ADM',
'DBMS_PROFILER', 'DBMS_PIPE', 'DBMS_PCLXUTIL', 'DBMS_OUTPUT',
'DBMS_OUTLN_EDIT', 'DBMS_OUTLN', 'DBMS_ORACLE_TRACE_USER',
'DBMS_ORACLE_TRACE_AGENT', 'DBMS_OLAP', 'DBMS_OFFLINE_SNAPSHOT',
'DBMS_OFFLINE_OG', 'DBMS_ODCI', 'DBMS_OBFUSCATION_TOOLKIT',
'DBMS_MVIEW', 'DBMS_MGWMSG', 'DBMS_MGWADM', 'DBMS_METADATA',
'DBMS_LOGSTDBY', 'DBMS_LOGMNR_D', 'DBMS_LOGMNR_CDC_SUBSCRIBE',
'DBMS_LOGMNR_CDC_PUBLISH', 'DBMS_LOGMNR', 'DBMS_LOCK', 'DBMS_LOB',
'DBMS_LIBCACHE', 'DBMS_LDAP', 'DBMS_JOB', 'DBMS_IOT',
'DBMS_HS_PASSTHROUGH', 'DBMS_FGA', 'DBMS_DISTRIBUTED_TRUST_ADMIN',
'DBMS_DESCRIBE', 'DBMS_DEFER_QUERY', 'DBMS_DEFER', 'DBMS_DEBUG',
'DBMS_DDL', 'DBMS_CAPTURE_ADM', 'DBMS_AW', 'DBMS_AQELM', 'DBMS_AQADM',
'DBMS_AQ', 'DBMS_APPLY_ADM', 'DBMS_APPLICATION_INFO', 'DBMS_ALERT',
'CWM2_OLAP_AW_ACCESS'),
//PL/SQL predefined exceptions (http://download-uk.oracle.com/docs/cd/B10501_01/appdev.920/a96624/07_errs.htm#784)
4 => array('ZERO_DIVIDE', 'VALUE_ERROR', 'TOO_MANY_ROWS',
'TIMEOUT_ON_RESOURCE', 'SYS_INVALID_ROWID', 'SUBSCRIPT_OUTSIDE_LIMIT',
'SUBSCRIPT_BEYOND_COUNT', 'STORAGE_ERROR', 'SELF_IS_NULL',
'ROWTYPE_MISMATCH', 'PROGRAM_ERROR', 'NOT_LOGGED_ON', 'NO_DATA_FOUND',
'LOGIN_DENIED', 'INVALID_NUMBER', 'INVALID_CURSOR', 'DUP_VAL_ON_INDEX',
'CURSOR_ALREADY_OPEN', 'COLLECTION_IS_NULL', 'CASE_NOT_FOUND',
'ACCESS_INTO_NULL'),
//Static data dictionary views (http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96536/ch2.htm)
5 => array('USER_REPSITES', 'USER_REPSCHEMA',
'USER_REPRESOLUTION_STATISTICS', 'USER_REPRESOLUTION_METHOD',
'USER_REPRESOLUTION', 'USER_REPRESOL_STATS_CONTROL', 'USER_REPPROP',
'USER_REPPRIORITY_GROUP', 'USER_REPPRIORITY',
'USER_REPPARAMETER_COLUMN', 'USER_REPOBJECT', 'USER_REPKEY_COLUMNS',
'USER_REPGROUPED_COLUMN', 'USER_REPGROUP_PRIVILEGES', 'USER_REPGROUP',
'USER_REPGENOBJECTS', 'USER_REPGENERATED', 'USER_REPFLAVORS',
'USER_REPFLAVOR_OBJECTS', 'USER_REPFLAVOR_COLUMNS', 'USER_REPDDL',
'USER_REPCONFLICT', 'USER_REPCOLUMN_GROUP', 'USER_REPCOLUMN',
'USER_REPCATLOG', 'USER_REPCAT_USER_PARM_VALUES',
'USER_REPCAT_USER_AUTHORIZATIONS', 'USER_REPCAT_TEMPLATE_SITES',
'USER_REPCAT_TEMPLATE_PARMS', 'USER_REPCAT_TEMPLATE_OBJECTS',
'USER_REPCAT_REFRESH_TEMPLATES', 'USER_REPCAT', 'USER_REPAUDIT_COLUMN',
'USER_REPAUDIT_ATTRIBUTE', 'DBA_REPSITES_NEW', 'DBA_REPSITES',
'DBA_REPSCHEMA', 'DBA_REPRESOLUTION_STATISTICS',
'DBA_REPRESOLUTION_METHOD', 'DBA_REPRESOLUTION',
'DBA_REPRESOL_STATS_CONTROL', 'DBA_REPPROP', 'DBA_REPPRIORITY_GROUP',
'DBA_REPPRIORITY', 'DBA_REPPARAMETER_COLUMN', 'DBA_REPOBJECT',
'DBA_REPKEY_COLUMNS', 'DBA_REPGROUPED_COLUMN',
'DBA_REPGROUP_PRIVILEGES', 'DBA_REPGROUP', 'DBA_REPGENOBJECTS',
'DBA_REPGENERATED', 'DBA_REPFLAVORS', 'DBA_REPFLAVOR_OBJECTS',
'DBA_REPFLAVOR_COLUMNS', 'DBA_REPEXTENSIONS', 'DBA_REPDDL',
'DBA_REPCONFLICT', 'DBA_REPCOLUMN_GROUP', 'DBA_REPCOLUMN',
'DBA_REPCATLOG', 'DBA_REPCAT_USER_PARM_VALUES',
'DBA_REPCAT_USER_AUTHORIZATIONS', 'DBA_REPCAT_TEMPLATE_SITES',
'DBA_REPCAT_TEMPLATE_PARMS', 'DBA_REPCAT_TEMPLATE_OBJECTS',
'DBA_REPCAT_REFRESH_TEMPLATES', 'DBA_REPCAT_EXCEPTIONS', 'DBA_REPCAT',
'DBA_REPAUDIT_COLUMN', 'DBA_REPAUDIT_ATTRIBUTE', 'ALL_REPSITES',
'ALL_REPSCHEMA', 'ALL_REPRESOLUTION_STATISTICS',
'ALL_REPRESOLUTION_METHOD', 'ALL_REPRESOLUTION',
'ALL_REPRESOL_STATS_CONTROL', 'ALL_REPPROP', 'ALL_REPPRIORITY_GROUP',
'ALL_REPPRIORITY', 'ALL_REPPARAMETER_COLUMN', 'ALL_REPOBJECT',
'ALL_REPKEY_COLUMNS', 'ALL_REPGROUPED_COLUMN',
'ALL_REPGROUP_PRIVILEGES', 'ALL_REPGROUP', 'ALL_REPGENOBJECTS',
'ALL_REPGENERATED', 'ALL_REPFLAVORS', 'ALL_REPFLAVOR_OBJECTS',
'ALL_REPFLAVOR_COLUMNS', 'ALL_REPDDL', 'ALL_REPCONFLICT',
'ALL_REPCOLUMN_GROUP', 'ALL_REPCOLUMN', 'ALL_REPCATLOG',
'ALL_REPCAT_USER_PARM_VALUES', 'ALL_REPCAT_USER_AUTHORIZATIONS',
'ALL_REPCAT_TEMPLATE_SITES', 'ALL_REPCAT_TEMPLATE_PARMS',
'ALL_REPCAT_TEMPLATE_OBJECTS', 'ALL_REPCAT_REFRESH_TEMPLATES',
'ALL_REPCAT', 'ALL_REPAUDIT_COLUMN', 'ALL_REPAUDIT_ATTRIBUTE')
),
'SYMBOLS' => array(
//PL/SQL delimiters (http://download-uk.oracle.com/docs/cd/B10501_01/appdev.920/a96624/02_funds.htm#2732)
'+', '%', "'", '.', '/', '(', ')', ':', ',', '*', '"', '=', '<', '>', '@', ';', '-', ':=', '=>', '||', '**', '<<', '>>', '/*', '*/', '..', '<>', '!=', '~=', '^=', '<=', '>='
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false,
5 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #00F;',
2 => 'color: #000;',
3 => 'color: #00F;',
4 => 'color: #F00;',
5 => 'color: #800;'
),
'COMMENTS' => array(
1 => 'color: #080; font-style: italic;',
'MULTI' => 'color: #080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #00F;'
),
'STRINGS' => array(
0 => 'color: #F00;'
),
'NUMBERS' => array(
0 => 'color: #800;'
),
'METHODS' => array(
0 => 'color: #0F0;'
),
'SYMBOLS' => array(
0 => 'color: #00F;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
0 => 'color: #0F0;'
)
),
'URLS' => array(
1 => 'http://www.oracle.com/pls/db92/db92.drilldown?word={FNAME}',
2 => 'http://www.oracle.com/pls/db92/db92.drilldown?word={FNAME}',
3 => 'http://www.oracle.com/pls/db92/db92.drilldown?word={FNAME}',
4 => 'http://www.oracle.com/pls/db92/db92.drilldown?word={FNAME}',
5 => 'http://www.oracle.com/pls/db92/db92.drilldown?word={FNAME}'
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(),
'REGEXPS' => array(),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(),
'HIGHLIGHT_STRICT_BLOCK' => array()
);
?>

View file

@ -0,0 +1,199 @@
<?php
/*************************************************************************************
* povray.php
* --------
* Author: Carl Fürstenberg (azatoth@gmail.com)
* Copyright: © 2007 Carl Fürstenberg
* Release Version: 1.0.8.2
* Date Started: 2008/07/11
*
* Povray language file for GeSHi.
*
* CHANGES
* -------
* 2008/07/11 (1.0.8)
* - initial import to GeSHi SVN
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'POVRAY',
'COMMENT_SINGLE' => array(1 => '//'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'yes', 'wrinkles', 'wood', 'width', 'waves', 'water_level', 'warp', 'vturbulence',
'vstr', 'vrotate', 'vnormalize', 'vlength', 'vcross', 'vaxis_rotate', 'variance', 'v_steps',
'uv_mapping', 'utf8', 'use_index', 'use_colour', 'use_color', 'use_alpha', 'up', 'undef',
'ultra_wide_angle', 'u_steps', 'type', 'turbulence', 'turb_depth', 'ttf', 'true', 'triangle_wave',
'translate', 'transform', 'trace', 'toroidal', 'tolerance', 'tiles', 'tile2', 'tightness',
'tiff', 'threshold', 'thickness', 'tga', 'texture_map', 'target', 'sys', 'sum',
'substr', 'sturm', 'strupr', 'strlwr', 'strength', 'str', 'statistics', 'sqr',
'spotted', 'spotlight', 'split_union', 'spline', 'spiral2', 'spiral1', 'spherical', 'specular',
'spacing', 'solid', 'smooth', 'slope', 'slice', 'sky', 'size', 'sine_wave',
'shadowless', 'scattering', 'scallop_wave', 'scale', 'save_file', 'samples', 'roughness', 'rotate',
'ripples', 'right', 'rgbt', 'rgbft', 'rgbf', 'rgb', 'repeat', 'render',
'refraction', 'reflection_exponent', 'recursion_limit', 'reciprocal', 'ratio', 'ramp_wave', 'radius', 'radial',
'quilted', 'quick_colour', 'quick_color', 'quaternion', 'quadratic_spline', 'pwr', 'projected_through', 'prod',
'pretrace_start', 'pretrace_end', 'precompute', 'precision', 'ppm', 'pow', 'pot', 'poly_wave',
'point_at', 'png', 'planar', 'pigment_pattern', 'pi', 'phong_size', 'phong', 'phase',
'pgm', 'perspective', 'pattern', 'pass_through', 'parallel', 'panoramic', 'orthographic', 'orientation',
'orient', 'open', 'onion', 'once', 'on', 'omnimax', 'omega', 'offset',
'off', 'octaves', 'number_of_waves', 'noise_generator', 'no_shadow', 'no_reflection', 'no_image', 'no_bump_scale',
'no', 'nearest_count', 'natural_spline', 'mortar', 'minimum_reuse', 'min_extent', 'metric', 'method',
'metallic', 'media_interaction', 'media_attenuation', 'media', 'max_trace_level', 'max_trace', 'max_sample', 'max_iteration',
'max_intersections', 'max_gradient', 'max_extent', 'matrix', 'material_map', 'marble', 'map_type', 'mandel',
'major_radius', 'magnet', 'low_error_factor', 'look_at', 'location', 'load_file', 'linear_sweep', 'linear_spline',
'leopard', 'lambda', 'julia', 'jpeg', 'jitter', 'irid_wavelength', 'ior', 'inverse',
'intervals', 'interpolate', 'internal', 'inside_vector', 'inside', 'initial_frame', 'initial_clock', 'image_width',
'image_pattern', 'image_height', 'iff', 'hypercomplex', 'hollow', 'hierarchy', 'hf_gray_16', 'hexagon',
'gray_threshold', 'granite', 'gradient', 'global_lights', 'gif', 'gather', 'fresnel', 'frequency',
'frame_number', 'form', 'fog_type', 'fog_offset', 'fog_alt', 'focal_point', 'flip', 'flatness',
'fisheye', 'final_frame', 'final_clock', 'false', 'falloff_angle', 'falloff', 'fade_power', 'fade_distance',
'fade_colour', 'fade_color', 'facets', 'extinction', 'exterior', 'exponent', 'expand_thresholds', 'evaluate',
'error_bound', 'emission', 'eccentricity', 'double_illuminate', 'distance', 'dist_exp', 'dispersion_samples', 'dispersion',
'direction', 'diffuse', 'df3', 'dents', 'density_map', 'density_file', 'density', 'cylindrical',
'cutaway_textures', 'cubic_wave', 'cubic_spline', 'cube', 'crand', 'crackle', 'count', 'coords',
'control1', 'control0', 'conserve_energy', 'conic_sweep', 'confidence', 'concat', 'composite', 'component',
'colour_map', 'colour', 'color', 'collect', 'clock_on', 'clock_delta', 'clock', 'circular',
'chr', 'checker', 'charset', 'cells', 'caustics', 'bumps', 'bump_size', 'brilliance',
'brightness', 'brick_size', 'brick', 'bozo', 'boxed', 'blur_samples', 'black_hole', 'bezier_spline',
'b_spline', 'average', 'autostop', 'assumed_gamma', 'ascii', 'array', 'area_light', 'arc_angle',
'append', 'aperture', 'angle', 'ambient_light', 'ambient', 'always_sample', 'altitude', 'alpha',
'all_intersections', 'all', 'agate_turb', 'agate', 'adc_bailout', 'adaptive', 'accuracy', 'absorption',
'aa_threshold', 'aa_level', 'reflection'
),
2 => array(
'abs', 'acos', 'acosh', 'asc', 'asin', 'asinh', 'atan', 'atanh',
'atan2', 'ceil', 'cos', 'cosh', 'defined', 'degrees', 'dimensions', 'dimension_size',
'div', 'exp', 'file_exists', 'floor', 'int', 'ln', 'log', 'max',
'min', 'mod', 'pov', 'radians', 'rand', 'seed', 'select', 'sin',
'sinh', 'sqrt', 'strcmp', 'strlen', 'tan', 'tanh', 'val', 'vdot',
'vlenght',
),
3 => array (
'x', 'y', 'z', 't', 'u', 'v', 'red', 'blue',
'green', 'filter', 'transmit', 'gray', 'e',
),
4 => array (
'camera', 'background', 'fog', 'sky_sphere', 'rainbow', 'global_settings', 'radiosity', 'photon',
'object', 'blob', 'sphere', 'cylinder', 'box', 'cone', 'height_field', 'julia_fractal',
'lathe', 'prism', 'sphere_sweep', 'superellipsoid', 'sor', 'text', 'torus', 'bicubic_patch',
'disc', 'mesh', 'triangle', 'smooth_triangle', 'mesh2', 'vertex_vectors', 'normal_vectors', 'uv_vectors',
'texture_list', 'face_indices', 'normal_indices', 'uv_indices', 'texture', 'polygon', 'plane', 'poly',
'cubic', 'quartic', 'quadric', 'isosurface', 'function', 'contained_by', 'parametric', 'pigment',
'union', 'intersection', 'difference', 'merge', 'light_source', 'looks_like', 'light_group', 'clipped_by',
'bounded_by', 'interior', 'material', 'interior_texture', 'normal', 'finish', 'color_map', 'pigment_map',
'image_map', 'bump_map', 'slope_map', 'normal_map', 'irid', 'photons',
)
),
'SYMBOLS' => array(
'(', ')', '[', ']', '{', '}', '!',
'@', '%', '&', '*', '|', '/', '<',
'>', '+', '-', '.', '=', '<=', '>=',
'!=',
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #a63123;',
2 => 'color: #2312bc;',
3 => 'color: #cc1122; font-weight: bold;',
4 => 'color: #116688; font-weight: bold;',
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
// 2 => 'color: #808080; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66aa;'
),
'METHODS' => array(
1 => 'color: #006600;',
2 => 'color: #006600;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
0 => 'color: #6666cc; font-weight: bold;',
1 => 'color: #66cc66; font-weight: bold;',
2 => 'color: #66cc66; font-weight: bold;'
),
'SCRIPT' => array(
0 => '',
1 => '',
2 => '',
3 => ''
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
# normal hash lines
0 => '\#(?!(include|declare|local|fopen|fclose|read|write|default|version|if|else|end|ifdef|ifndef|switch|case|range|break|while|debug|error|warning|macro) )[[:word:]]*',
# syntax functions hash thingis
1 => "\#(include|declare|local|fopen|fclose|read|write|default|version|if|else|end|ifdef|ifndef|switch|case|range|break|while|debug|error|warning|macro)",
2 => array(
GESHI_SEARCH => "([a-zA-Z]+)(\n)(.*)(\n)(\\1;?)",
GESHI_REPLACE => '\3',
GESHI_BEFORE => '\1\2',
GESHI_AFTER => '\4\5',
GESHI_MODIFIERS => 'siU'
)
),
'STRICT_MODE_APPLIES' => GESHI_MAYBE,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
0 => true,
1 => true,
2 => true,
3 => true
),
'TAB_WIDTH' => 4
);
?>

View file

@ -0,0 +1,250 @@
<?php
/*************************************************************************************
* powershell.php
* ---------------------------------
* Author: Frode Aarebrot (frode@aarebrot.net)
* Copyright: (c) 2008 Frode Aarebrot (http://www.aarebrot.net)
* Release Version: 1.0.8.2
* Date Started: 2008/06/20
*
* PowerShell language file for GeSHi.
*
* I've tried to make this language file as true to the highlighting in PowerGUI as
* possible. Unfortunately it's not 100% complete, although it is pretty close.
*
* I've included some classes and their members, but there's tons and tons of these.
* I suggest you add the ones you need yourself. I've included a few Sharepoint ones
* in this language file.
*
* CHANGES
* -------
* 2008/06/20 (1.0.8)
* - First Release
*
* TODO (updated 2008/06/20)
* -------------------------
* - Color text between Cmdlets/Aliases and pipe/end-of-line
* - Try and get -- and ++ to work in the KEYWORDS array with the other operators
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'posh',
'COMMENT_SINGLE' => array(1 => '#'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '`',
'KEYWORDS' => array(
1 => array(
// Cmdlets
'Add-Content', 'Add-History', 'Add-Member', 'Add-PSSnapin', 'Clear-Content', 'Clear-Item',
'Clear-ItemProperty', 'Clear-Variable', 'Compare-Object', 'ConvertFrom-SecureString',
'Convert-Path', 'ConvertTo-Html', 'ConvertTo-SecureString', 'Copy-Item', 'Copy-ItemProperty',
'Export-Alias', 'Export-Clixml', 'Export-Console', 'Export-Csv', 'ForEach-Object',
'Format-Custom', 'Format-List', 'Format-Table', 'Format-Wide', 'Get-Acl', 'Get-Alias',
'Get-AuthenticodeSignature', 'Get-ChildItem', 'Get-Command', 'Get-Content', 'Get-Credential',
'Get-Culture', 'Get-Date', 'Get-EventLog', 'Get-ExecutionPolicy', 'Get-Help', 'Get-History',
'Get-Host', 'Get-Item', 'Get-ItemProperty', 'Get-Location', 'Get-Member',
'Get-PfxCertificate', 'Get-Process', 'Get-PSDrive', 'Get-PSProvider', 'Get-PSSnapin',
'Get-Service', 'Get-TraceSource', 'Get-UICulture', 'Get-Unique', 'Get-Variable',
'Get-WmiObject', 'Group-Object', 'Import-Alias', 'Import-Clixml', 'Import-Csv',
'Invoke-Expression', 'Invoke-History', 'Invoke-Item', 'Join-Path', 'Measure-Command',
'Measure-Object', 'Move-Item', 'Move-ItemProperty', 'New-Alias', 'New-Item',
'New-ItemProperty', 'New-Object', 'New-PSDrive', 'New-Service', 'New-TimeSpan',
'New-Variable', 'Out-Default', 'Out-File', 'Out-Host', 'Out-Null', 'Out-Printer',
'Out-String', 'Pop-Location', 'Push-Location', 'Read-Host', 'Remove-Item',
'Remove-ItemProperty', 'Remove-PSDrive', 'Remove-PSSnapin', 'Remove-Variable', 'Rename-Item',
'Rename-ItemProperty', 'Resolve-Path', 'Restart-Service', 'Resume-Service', 'Select-Object',
'Select-String', 'Set-Acl', 'Set-Alias', 'Set-AuthenticodeSignature', 'Set-Content',
'Set-Date', 'Set-ExecutionPolicy', 'Set-Item', 'Set-ItemProperty', 'Set-Location',
'Set-PSDebug', 'Set-Service', 'Set-TraceSource', 'Set-Variable', 'Sort-Object', 'Split-Path',
'Start-Service', 'Start-Sleep', 'Start-Transcript', 'Stop-Process', 'Stop-Service',
'Stop-Transcript', 'Suspend-Service', 'Tee-Object', 'Test-Path', 'Trace-Command',
'Update-FormatData', 'Update-TypeData', 'Where-Object', 'Write-Debug', 'Write-Error',
'Write-Host', 'Write-Output', 'Write-Progress', 'Write-Verbose', 'Write-Warning'
),
2 => array(
// Aliases
'ac', 'asnp', 'clc', 'cli', 'clp', 'clv', 'cpi', 'cpp', 'cvpa', 'diff', 'epal', 'epcsv', 'fc',
'fl', 'ft', 'fw', 'gal', 'gc', 'gci', 'gcm', 'gdr', 'ghy', 'gi', 'gl', 'gm',
'gp', 'gps', 'group', 'gsv', 'gsnp', 'gu', 'gv', 'gwmi', 'iex', 'ihy', 'ii', 'ipal', 'ipcsv',
'mi', 'mp', 'nal', 'ndr', 'ni', 'nv', 'oh', 'rdr', 'ri', 'rni', 'rnp', 'rp', 'rsnp', 'rv',
'rvpa', 'sal', 'sasv', 'sc', 'select', 'si', 'sl', 'sleep', 'sort', 'sp', 'spps', 'spsv', 'sv',
'tee', 'write', 'cat', 'cd', 'clear', 'cp', 'h', 'history', 'kill', 'lp', 'ls',
'mount', 'mv', 'popd', 'ps', 'pushd', 'pwd', 'r', 'rm', 'rmdir', 'echo', 'cls', 'chdir',
'copy', 'del', 'dir', 'erase', 'move', 'rd', 'ren', 'set', 'type'
),
3 => array(
// Reserved words
'break', 'continue', 'do', 'for', 'foreach', 'while', 'if', 'switch', 'until', 'where',
'function', 'filter', 'else', 'elseif', 'in', 'return', 'param', 'throw', 'trap'
),
4 => array(
// Operators
'-eq', '-ne', '-gt', '-ge', '-lt', '-le', '-ieq', '-ine', '-igt', '-ige', '-ilt', '-ile',
'-ceq', '-cne', '-cgt', '-cge', '-clt', '-cle', '-like', '-notlike', '-match', '-notmatch',
'-ilike', '-inotlike', '-imatch', '-inotmatch', '-clike', '-cnotlike', '-cmatch', '-cnotmatch',
'-contains', '-notcontains', '-icontains', '-inotcontains', '-ccontains', '-cnotcontains',
'-isnot', '-is', '-as', '-replace', '-ireplace', '-creplace', '-and', '-or', '-band', '-bor',
'-not', '-bnot', '-f', '-casesensitive', '-exact', '-file', '-regex', '-wildcard'
),
5 => array(
// Options
'-Year', '-Wrap', '-Word', '-Width', '-WhatIf', '-Wait', '-View', '-Verbose', '-Verb',
'-Variable', '-ValueOnly', '-Value', '-Unique', '-UFormat', '-TypeName', '-Trace', '-TotalCount',
'-Title', '-TimestampServer', '-TargetObject', '-Syntax', '-SyncWindow', '-Sum', '-String',
'-Strict', '-Stream', '-Step', '-Status', '-Static', '-StartupType', '-Start', '-StackName',
'-Stack', '-SourceId', '-SimpleMatch', '-ShowError', '-Separator', '-SecureString', '-SecureKey',
'-SecondValue', '-SecondsRemaining', '-Seconds', '-Second', '-Scope', '-Root', '-Role',
'-Resolve', '-RemoveListener', '-RemoveFileListener', '-Registered', '-ReferenceObject',
'-Recurse', '-RecommendedAction', '-ReadCount', '-Quiet', '-Query', '-Qualifier', '-PSSnapin',
'-PSProvider', '-PSHost', '-PSDrive', '-PropertyType', '-Property', '-Prompt', '-Process',
'-PrependPath', '-PercentComplete', '-Pattern', '-PathType', '-Path', '-PassThru', '-ParentId',
'-Parent', '-Parameter', '-Paging', '-OutVariable', '-OutBuffer', '-Option', '-OnType', '-Off',
'-Object', '-Noun', '-NoTypeInformation', '-NoQualifier', '-NoNewline', '-NoElement',
'-NoClobber', '-NewName', '-Newest', '-Namespace', '-Name', '-Month', '-Minutes', '-Minute',
'-Minimum', '-Milliseconds', '-Message', '-MemberType', '-Maximum', '-LogName', '-LiteralPath',
'-LiteralName', '-ListenerOption', '-List', '-Line', '-Leaf', '-Last', '-Key', '-ItemType',
'-IsValid', '-IsAbsolute', '-InputObject', '-IncludeEqual', '-IncludeChain', '-Include',
'-IgnoreWhiteSpace', '-Id', '-Hours', '-Hour', '-HideTableHeaders', '-Head', '-GroupBy',
'-Functionality', '-Full', '-Format', '-ForegroundColor', '-Force', '-First', '-FilterScript',
'-Filter', '-FilePath', '-Expression', '-ExpandProperty', '-Expand', '-ExecutionPolicy',
'-ExcludeProperty', '-ExcludeDifferent', '-Exclude', '-Exception', '-Examples', '-ErrorVariable',
'-ErrorRecord', '-ErrorId', '-ErrorAction', '-End', '-Encoding', '-DisplayName', '-DisplayHint',
'-DisplayError', '-DifferenceObject', '-Detailed', '-Destination', '-Description', '-Descending',
'-Depth', '-DependsOn', '-Delimiter', '-Debugger', '-Debug', '-Days', '-Day', '-Date',
'-CurrentOperation', '-Culture', '-Credential', '-Count', '-Container', '-Confirm',
'-ComputerName', '-Component', '-Completed', '-ComObject', '-CommandType', '-Command',
'-Column', '-Class', '-ChildPath', '-Character', '-Certificate', '-CategoryTargetType',
'-CategoryTargetName', '-CategoryReason', '-CategoryActivity', '-Category', '-CaseSensitive',
'-Body', '-BinaryPathName', '-Begin', '-BackgroundColor', '-Average', '-AutoSize', '-Audit',
'-AsString', '-AsSecureString', '-AsPlainText', '-As', '-ArgumentList', '-AppendPath', '-Append',
'-Adjust', '-Activity', '-AclObject'
)
),
'SYMBOLS' => array(
'(', ')', '[', ']', '{', '}', '=', '<', '>', '@', '|', '&', ',', '?',
'+=', '-=', '*=', '/=', '%=', '*', '/', '%', '!', '+', '-', '++', '--'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false,
5 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #008080; font-weight: bold;',
2 => 'color: #008080; font-weight: bold;',
3 => 'color: #0000FF;',
4 => 'color: #FF0000;',
5 => 'color: #008080; font-style: italic;',
),
'COMMENTS' => array(
1 => 'color: #008000;',
'MULTI' => 'color: #008000;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #008080; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #000000;'
),
'STRINGS' => array(
0 => 'color: #800000;'
),
'NUMBERS' => array(
0 => 'color: #000000;'
),
'METHODS' => array(
0 => 'color: pink;'
),
'SYMBOLS' => array(
0 => 'color: pink;'
),
'REGEXPS' => array(
0 => 'color: #800080;',
3 => 'color: #008080;',
4 => 'color: #008080;',
5 => 'color: #800000;',
6 => 'color: #000080;'
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
5 => '',
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
// variables
0 => "[\\$][a-zA-Z0-9_]*",
// special after pipe
3 => array(
GESHI_SEARCH => '(\[)(int|long|string|char|bool|byte|double|decimal|float|single|regex|array|xml|scriptblock|switch|hashtable|type|ref|psobject|wmi|wmisearcher|wmiclass|object)((\[.*\])?\])',
GESHI_REPLACE => '\2',
GESHI_MODIFIERS => 'si',
GESHI_BEFORE => '\1',
GESHI_AFTER => '\3'
),
// Classes
4 => array(
GESHI_SEARCH => '(\[)(System\.Reflection\.Assembly|System\.Net\.CredentialCache|Microsoft\.SharePoint\.SPFileLevel|Microsoft\.SharePoint\.Publishing\.PublishingWeb|Microsoft\.SharePoint\.Publishing|Microsoft\.SharePoint\.SPWeb)(\])',
GESHI_REPLACE => '\2',
GESHI_MODIFIERS => 'i',
GESHI_BEFORE => '\1',
GESHI_AFTER => '\3'
),
// Members
// There's about a hundred million of these, add the ones you need as you need them
5 => array (
GESHI_SEARCH => '(::)(ReflectionOnlyLoadFrom|ReflectionOnlyLoad|ReferenceEquals|LoadWithPartialName|LoadFrom|LoadFile|Load|GetExecutingAssembly|GetEntryAssembly|GetCallingAssembly|GetAssembly|Equals|DefaultNetworkCredentials|DefaultCredentials|CreateQualifiedName|Checkout|Draft|Published|IsPublishingWeb)',
GESHI_REPLACE => '\2',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '\1',
GESHI_AFTER => ''
),
// Special variables
6 => array(
GESHI_SEARCH => '(\$)(\$|\?|\$\^|_|args|DebugPreference|Error|ErrorActionPreference|foreach|Home|Input|LASTEXITCODE|MaximumAliasCount|MaximumDriveCount|MaximumFunctionCount|MaximumHistoryCount|MaximumVariableCount|PsHome|Host|OFS|ReportErrorShowExceptionClass|ReportErrorShowInnerException|ReportErrorShowSource|ReportErrorShowStackTrace|ShouldProcessPreference|ShouldProcessReturnPreference|StackTrace|VerbosePreference|WarningPreference|PWD)',
GESHI_REPLACE => '\1\2',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '',
GESHI_AFTER => '\3'
),
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
);
?>

View file

@ -0,0 +1,479 @@
<?php
/*************************************************************************************
* progress.php
* --------
* Author: Marco Aurelio de Pasqual (marcop@hdi.com.br)
* Copyright: (c) 2008 Marco Aurelio de Pasqual, Benny Baumann (http://qbnz.com/highlighter)
* Release Version: 1.0.8.2
* Date Started: 2008/07/11
*
* Progress language file for GeSHi.
*
* CHANGES
* -------
* 2008/07/11 (1.0.8)
* - First Release
*
* TODO (updated 2008/07/11)
* -------------------------
* * Clean up the keyword list
* * Sort Keyword lists by Control Structures, Predefined functions and other important keywords
* * Complete language support
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array(
'LANG_NAME' => 'Progress',
'COMMENT_SINGLE' => array(),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_UPPER,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array (
1 => array(
'ACCUMULATE','APPLY','ASSIGN','BELL','QUERY',
'BUFFER-COMPARE','BUFFER-COPY','CALL','CASE',
'CHOOSE','CLASS','CLEAR','CLOSE QUERY','each','WHERE',
'CLOSE STORED-PROCEDURE','COLOR','COMPILE','CONNECT',
'CONSTRUCTOR','COPY-LOB','CREATE','CREATE ALIAS',
'CREATE BROWSE','CREATE BUFFER','CREATE CALL','CREATE CLIENT-PRINCIPAL',
'CREATE DATABASE','CREATE DATASET','CREATE DATA-SOURCE','CREATE QUERY',
'CREATE SAX-attributeS','CREATE SAX-READER','CREATE SAX-WRITER','CREATE SERVER',
'CREATE SERVER-SOCKET','CREATE SOAP-HEADER','CREATE SOAP-HEADER-ENTRYREF','CREATE SOCKET',
'CREATE TEMP-TABLE','CREATE WIDGET','CREATE widget-POOL','CREATE X-DOCUMENT',
'CREATE X-NODEREF','CURRENT-LANGUAGE','CURRENT-VALUE','DDE ADVISE',
'DDE EXECUTE','DDE GET','DDE INITIATE','DDE REQUEST',
'DDE SEND','DDE TERMINATE','DEFINE BROWSE','DEFINE BUFFER','DEFINE',
'DEFINE BUTTON','DEFINE DATASET','DEFINE DATA-SOURCE','DEFINE FRAME','DEF','VAR',
'DEFINE IMAGE','DEFINE MENU','DEFINE PARAMETER','DEFINE property','PARAM',
'DEFINE QUERY','DEFINE RECTANGLE','DEFINE STREAM','DEFINE SUB-MENU',
'DEFINE TEMP-TABLE','DEFINE WORKFILE','DEFINE WORK-TABLE',
'DELETE','DELETE ALIAS','DELETE object','DELETE PROCEDURE',
'DELETE widget','DELETE widget-POOL','DESTRUCTOR','DICTIONARY',
'DISABLE','DISABLE TRIGGERS','DISCONNECT','DISPLAY',
'DO','DOS','DOWN','DYNAMIC-CURRENT-VALUE',
'ELSE','EMPTY TEMP-TABLE','ENABLE','END',
'ENTRY','EXPORT','FIND','AND',
'FIX-CODEPAGE','FOR','FORM','FRAME-VALUE',
'GET','GET-KEY-VALUE','HIDE','IF',
'IMPORT','INPUT CLEAR','INPUT CLOSE','INPUT FROM','input',
'INPUT THROUGH','INPUT-OUTPUT CLOSE','INPUT-OUTPUT THROUGH','INSERT',
'INTERFACE','LEAVE','LOAD','BREAK',
'LOAD-PICTURE','MESSAGE','method','NEXT','prev',
'NEXT-PROMPT','ON','OPEN QUERY','OS-APPEND',
'OS-COMMAND','OS-COPY','OS-CREATE-DIR','OS-DELETE',
'OS-RENAME','OUTPUT CLOSE','OUTPUT THROUGH','OUTPUT TO',
'OVERLAY','PAGE','PAUSE','PROCEDURE',
'PROCESS EVENTS','PROMPT-FOR','PROMSGS','PROPATH',
'PUBLISH','PUT','PUT CURSOR','PUT SCREEN',
'PUT-BITS','PUT-BYTE','PUT-BYTES','PUT-DOUBLE',
'PUT-FLOAT','PUT-INT64','PUT-KEY-VALUE','PUT-LONG',
'PUT-SHORT','PUT-STRING','PUT-UNSIGNED-LONG','PUT-UNSIGNED-SHORT',
'QUIT','RAW-TRANSFER','READKEY','RELEASE',
'RELEASE EXTERNAL','RELEASE object','REPEAT','REPOSITION',
'RUN','RUN STORED-PROCEDURE','RUN SUPER',
'SAVE CACHE','SCROLL','SEEK','SET',
'SET-BYTE-ORDER','SET-POINTER-VALUE','SET-SIZE','SHOW-STATS',
'STATUS','STOP','SUBSCRIBE','SUBSTRING',
'system-DIALOG COLOR','system-DIALOG FONT','system-DIALOG GET-DIR','system-DIALOG GET-FILE',
'system-DIALOG PRINTER-SETUP','system-HELP','THEN','THIS-object',
'TRANSACTION-MODE AUTOMATIC','TRIGGER PROCEDURE','UNDERLINE','UNDO',
'UNIX','UNLOAD','UNSUBSCRIBE','UP','STRING',
'UPDATE','USE','USING','VALIDATE','substr','SKIP','CLOSE',
'VIEW','WAIT-FOR','MODULO','NE','AVAIL',
'NOT','OR','&GLOBAL-DEFINE','&IF','UNFORMATTED','NO-PAUSE',
'&THEN','&ELSEIF','&ELSE','&ENDIF','OPEN','NO-WAIT',
'&MESSAGE','&SCOPED-DEFINE','&UNDEFINE','DEFINED',
'BROWSE','BUTTON','COMBO-BOX','CONTROL-FRAME',
'DIALOG-BOX','EDITOR','FIELD-GROUP','FILL-IN',
'FRAME','IMAGE','LITERAL','MENU',
'MENU-ITEM','RADIO-SET','RECTANGLE','SELECTION-LIST',
'SLIDER','SUB-MENU','TEXT','TOGGLE-BOX',
'WINDOW','WITH','AT','OF','EDITING','ON ENDKEY','output',
'ON ERROR','ON QUIT','ON STOP','PRESELECT',
'QUERY-TUNING','SIZE','Trigger','VIEW-AS','ALERT-BOX',
'Buffer','Data-relation','ProDataSet','SAX-attributes',
'SAX-reader','SAX-writer','Server socket','SOAP-fault',
'SOAP-header','SOAP-header-entryref','Socket','Temp-table',
'X-noderef','Height','Left','Top','TO',
'Width','ACTIVE-WINDOW','AUDIT-CONTROL','FIRST','LAST',
'AUDIT-POLICY','CLIPBOARD','CODEBASE-LOCATOR','COLOR-TABLE',
'COMPILER','COM-SELF','DEBUGGER','DEFAULT-WINDOW',
'ERROR-STATUS','FILE-INFO','FOCUS','FONT-TABLE',
'LAST-EVENT','LOG-MANAGER','RCODE-INFO','SECURITY-POLICY',
'SELF','SESSION','SOURCE-PROCEDURE','TARGET-PROCEDURE','NO-LOCK','NO-error',
'THIS-PROCEDURE','WEB-CONTEXT','FUNCTION','RETURNS','NO-UNDO'
),
2 => array(
'ACCEPT-CHANGES','ACCEPT-ROW-CHANGES','ADD-BUFFER','ADD-CALC-COLUMN',
'ADD-COLUMNS-FROM','ADD-EVENTS-PROCEDURE','ADD-FIELDS-FROM','ADD-FIRST',
'ADD-HEADER-ENTRY','ADD-INDEX-FIELD','ADD-LAST','ADD-LIKE-COLUMN',
'ADD-LIKE-FIELD','ADD-LIKE-INDEX','ADD-NEW-FIELD','ADD-NEW-INDEX',
'ADD-RELATION','ADD-SCHEMA-LOCATION','ADD-SOURCE-BUFFER','ADD-SUPER-PROCEDURE',
'APPEND-CHILD','APPLY-CALLBACK','ATTACH-DATA-SOURCE','AUTHENTICATION-FAILED',
'BEGIN-EVENT-GROUP','BUFFER-COMPARE','BUFFER-COPY','BUFFER-CREATE',
'BUFFER-DELETE','BUFFER-FIELD','BUFFER-RELEASE','BUFFER-VALIDATE',
'CANCEL-BREAK','CANCEL-REQUESTS','CLEAR','CLEAR-APPL-CONTEXT',
'CLEAR-LOG','CLEAR-SELECTION','CLEAR-SORT-ARROWS','CLONE-NODE',
'CLOSE-LOG','CONNECT','CONNECTED','CONVERT-TO-OFFSET',
'COPY-DATASET','COPY-SAX-attributeS','COPY-TEMP-TABLE','CREATE-LIKE',
'CREATE-NODE','CREATE-NODE-NAMESPACE','CREATE-RESULT-LIST-ENTRY','DEBUG',
'DECLARE-NAMESPACE','DELETE-CHAR','DELETE-CURRENT-ROW',
'DELETE-HEADER-ENTRY','DELETE-LINE','DELETE-NODE','DELETE-RESULT-LIST-ENTRY',
'DELETE-SELECTED-ROW','DELETE-SELECTED-ROWS','DESELECT-FOCUSED-ROW','DESELECT-ROWS',
'DESELECT-SELECTED-ROW','DETACH-DATA-SOURCE','DISABLE','DISABLE-CONNECTIONS',
'DISABLE-DUMP-TRIGGERS','DISABLE-LOAD-TRIGGERS','DISCONNECT','DISPLAY-MESSAGE',
'DUMP-LOGGING-NOW','EDIT-CLEAR','EDIT-COPY','EDIT-CUT',
'EDIT-PASTE','EDIT-UNDO','EMPTY-DATASET','EMPTY-TEMP-TABLE',
'ENABLE','ENABLE-CONNECTIONS','ENABLE-EVENTS','ENCRYPT-AUDIT-MAC-KEY',
'END-DOCUMENT','END-ELEMENT','END-EVENT-GROUP','END-FILE-DROP',
'EXPORT','EXPORT-PRINCIPAL','FETCH-SELECTED-ROW',
'FILL','FIND-BY-ROWID','FIND-CURRENT','FIND-FIRST',
'FIND-LAST','FIND-UNIQUE','GET-attribute','GET-attribute-NODE',
'GET-BINARY-DATA','GET-BLUE-VALUE','GET-BROWSE-COLUMN','GET-BUFFER-HANDLE',
'GET-BYTES-AVAILABLE','GET-CALLBACK-PROC-CONTEXT','GET-CALLBACK-PROC-NAME','GET-CGI-LIST',
'GET-CGI-LONG-VALUE','GET-CGI-VALUE','GET-CHANGES','GET-CHILD',
'GET-CHILD-RELATION','GET-CONFIG-VALUE','GET-CURRENT','GET-DATASET-BUFFER',
'GET-DOCUMENT-ELEMENT','GET-DROPPED-FILE','GET-DYNAMIC','GET-ERROR-COLUMN ',
'GET-ERROR-ROW ','GET-FILE-NAME ','GET-FILE-OFFSET ','GET-FIRST',
'GET-GREEN-VALUE','GET-HEADER-ENTRY','GET-INDEX-BY-NAMESPACE-NAME','GET-INDEX-BY-QNAME',
'GET-ITERATION','GET-LAST','GET-LOCALNAME-BY-INDEX','GET-MESSAGE',
'GET-NEXT','GET-NODE','GET-NUMBER','GET-PARENT',
'GET-PREV','GET-PRINTERS','GET-property','GET-QNAME-BY-INDEX',
'GET-RED-VALUE','GET-RELATION','GET-REPOSITIONED-ROW','GET-RGB-VALUE',
'GET-SELECTED-widget','GET-SERIALIZED','GET-SIGNATURE','GET-SOCKET-OPTION',
'GET-SOURCE-BUFFER','GET-TAB-ITEM','GET-TEXT-HEIGHT-CHARS','GET-TEXT-HEIGHT-PIXELS',
'GET-TEXT-WIDTH-CHARS','GET-TEXT-WIDTH-PIXELS','GET-TOP-BUFFER','GET-TYPE-BY-INDEX',
'GET-TYPE-BY-NAMESPACE-NAME','GET-TYPE-BY-QNAME','GET-URI-BY-INDEX','GET-VALUE-BY-INDEX',
'GET-VALUE-BY-NAMESPACE-NAME','GET-VALUE-BY-QNAME','GET-WAIT-STATE','IMPORT-NODE',
'IMPORT-PRINCIPAL','INCREMENT-EXCLUSIVE-ID','INDEX-INFORMATION','INITIALIZE-DOCUMENT-TYPE',
'INITIATE','INSERT','INSERT-attribute','INSERT-BACKTAB',
'INSERT-BEFORE','INSERT-FILE','INSERT-ROW','INSERT-STRING',
'INSERT-TAB','INVOKE','IS-ROW-SELECTED','IS-SELECTED',
'LIST-property-NAMES','LOAD','LoadControls','LOAD-DOMAINS',
'LOAD-ICON','LOAD-IMAGE','LOAD-IMAGE-DOWN','LOAD-IMAGE-INSENSITIVE',
'LOAD-IMAGE-UP','LOAD-MOUSE-POINTER','LOAD-SMALL-ICON','LOCK-REGISTRATION',
'LOG-AUDIT-EVENT','LOGOUT','LONGCHAR-TO-NODE-VALUE','LOOKUP',
'MEMPTR-TO-NODE-VALUE','MERGE-CHANGES','MERGE-ROW-CHANGES','MOVE-AFTER-TAB-ITEM',
'MOVE-BEFORE-TAB-ITEM','MOVE-COLUMN','MOVE-TO-BOTTOM','MOVE-TO-EOF',
'MOVE-TO-TOP','NODE-VALUE-TO-LONGCHAR','NODE-VALUE-TO-MEMPTR','NORMALIZE',
'QUERY-CLOSE','QUERY-OPEN','QUERY-PREPARE','RAW-TRANSFER',
'READ','READ-FILE','READ-XML','READ-XMLSCHEMA',
'REFRESH','REFRESH-AUDIT-POLICY','REGISTER-DOMAIN','REJECT-CHANGES',
'REJECT-ROW-CHANGES','REMOVE-attribute','REMOVE-CHILD','REMOVE-EVENTS-PROCEDURE',
'REMOVE-SUPER-PROCEDURE','REPLACE','REPLACE-CHILD','REPLACE-SELECTION-TEXT',
'REPOSITION-BACKWARD','REPOSITION-FORWARD','REPOSITION-TO-ROW','REPOSITION-TO-ROWID',
'RESET','SAVE','SAVE-FILE','SAVE-ROW-CHANGES',
'SAX-PARSE','SAX-PARSE-FIRST','SAX-PARSE-NEXT','SCROLL-TO-CURRENT-ROW',
'SCROLL-TO-ITEM','SCROLL-TO-SELECTED-ROW','SEAL','SEARCH',
'SELECT-ALL','SELECT-FOCUSED-ROW','SELECT-NEXT-ROW','SELECT-PREV-ROW',
'SELECT-ROW','SET-ACTOR','SET-APPL-CONTEXT','SET-attribute',
'SET-attribute-NODE','SET-BLUE-VALUE','SET-BREAK','SET-BUFFERS',
'SET-CALLBACK','SET-CALLBACK-PROCEDURE','SET-CLIENT','SET-COMMIT',
'SET-CONNECT-PROCEDURE','SET-DYNAMIC','SET-GREEN-VALUE','SET-INPUT-SOURCE',
'SET-MUST-UNDERSTAND','SET-NODE','SET-NUMERIC-FORMAT','SET-OUTPUT-DESTINATION',
'SET-PARAMETER','SET-property','SET-READ-RESPONSE-PROCEDURE','SET-RED-VALUE',
'SET-REPOSITIONED-ROW','SET-RGB-VALUE','SET-ROLLBACK','SET-SELECTION',
'SET-SERIALIZED','SET-SOCKET-OPTION','SET-SORT-ARROW','SET-WAIT-STATE',
'START-DOCUMENT','START-ELEMENT','STOP-PARSING','SYNCHRONIZE',
'TEMP-TABLE-PREPARE','UPDATE-attribute','URL-DECODE','URL-ENCODE',
'VALIDATE','VALIDATE-SEAL','WRITE','WRITE-CDATA','USE-INDEX',
'WRITE-CHARACTERS','WRITE-COMMENT','WRITE-DATA-ELEMENT','WRITE-EMPTY-ELEMENT',
'WRITE-ENTITY-REF','WRITE-EXTERNAL-DTD','WRITE-FRAGMENT','WRITE-MESSAGE',
'WRITE-PROCESSING-INSTRUCTION','WRITE-XML','WRITE-XMLSCHEMA','FALSE','true'
),
3 => array(
'ABSOLUTE','ACCUM','ADD-INTERVAL','ALIAS','mod',
'AMBIGUOUS','ASC','AUDIT-ENABLED','AVAILABLE',
'BASE64-DECODE','BASE64-ENCODE','CAN-DO','CAN-FIND',
'CAN-QUERY','CAN-SET','CAPS','CAST','OS-DIR',
'CHR','CODEPAGE-CONVERT','COMPARE','CONNECTED',
'COUNT-OF','CURRENT-CHANGED','CURRENT-RESULT-ROW','DATASERVERS',
'DATA-SOURCE-MODIFIED','DATETIME','DATETIME-TZ',
'DAY','DBCODEPAGE','DBCOLLATION','DBNAME',
'DBPARAM','DBRESTRICTIONS','DBTASKID','DBTYPE',
'DBVERSION','DECIMAL','DECRYPT','DYNAMIC-function',
'DYNAMIC-NEXT-VALUE','ENCODE','ENCRYPT','ENTERED',
'ERROR','ETIME','EXP','FILL','ENDKEY','END-error',
'FIRST-OF','FRAME-DB','FRAME-DOWN',
'FRAME-FIELD','FRAME-FILE','FRAME-INDEX','FRAME-LINE',
'GATEWAYS','GENERATE-PBE-KEY','GENERATE-PBE-SALT','GENERATE-RANDOM-KEY',
'GENERATE-UUID','GET-BITS','GET-BYTE','GET-BYTE-ORDER',
'GET-BYTES','GET-CODEPAGE','GET-CODEPAGES','GET-COLLATION',
'GET-COLLATIONS','GET-DOUBLE','GET-FLOAT','GET-INT64',
'GET-LONG','GET-POINTER-VALUE','GET-SHORT','GET-SIZE',
'GET-STRING','GET-UNSIGNED-LONG','GET-UNSIGNED-SHORT','GO-PENDING',
'GUID','HEX-DECODE','INDEX',
'INT64','INTEGER','INTERVAL','IS-ATTR-SPACE',
'IS-CODEPAGE-FIXED','IS-COLUMN-CODEPAGE','IS-LEAD-BYTE','ISO-DATE',
'KBLABEL','KEYCODE','KEYFUNCTION','KEYLABEL',
'KEYWORD','KEYWORD-ALL','LASTKEY',
'LAST-OF','LC','LDBNAME','LEFT-TRIM',
'LIBRARY','LINE-COUNTER','LIST-EVENTS','LIST-QUERY-ATTRS',
'LIST-SET-ATTRS','LIST-widgetS','LOCKED','LOG',
'LOGICAL','LOOKUP','MAXIMUM','MD5-DIGEST',
'MEMBER','MESSAGE-LINES','MINIMUM','MONTH',
'MTIME','NEW','NEXT-VALUE','NORMALIZE','SHARED',
'NOT ENTERED','NOW','NUM-ALIASES','NUM-DBS',
'NUM-ENTRIES','NUM-RESULTS','OPSYS','OS-DRIVES',
'OS-ERROR','OS-GETENV','PAGE-NUMBER','PAGE-SIZE',
'PDBNAME','PROC-HANDLE','PROC-STATUS','PROGRAM-NAME',
'PROGRESS','PROVERSION','QUERY-OFF-END','QUOTER',
'RANDOM','RAW','RECID','REJECTED',
'REPLACE','RETRY','RETURN-VALUE','RGB-VALUE',
'RIGHT-TRIM','R-INDEX','ROUND','ROWID','LENGTH',
'SDBNAME','SEARCH','SET-DB-CLIENT','SETUSERID',
'SHA1-DIGEST','SQRT','SUBSTITUTE','VARIABLE',
'SUPER','TERMINAL','TIME','TIMEZONE','external','ENTRY',
'TODAY','TO-ROWID','TRIM','TRUNCATE','return',
'TYPE-OF','USERID','VALID-EVENT','VALID-HANDLE',
'VALID-object','WEEKDAY','YEAR','BEGINS','VALUE',
'EQ','GE','GT','LE','LT','MATCHES','AS','BY','LIKE'
),
4 => array(
'ACCELERATOR','ACTIVE','ACTOR','ADM-DATA',
'AFTER-BUFFER','AFTER-ROWID','AFTER-TABLE','ALLOW-COLUMN-SEARCHING',
'ALWAYS-ON-TOP','APPL-ALERT-BOXES','APPL-CONTEXT-ID','APPSERVER-INFO',
'APPSERVER-PASSWORD','APPSERVER-USERID','ASYNCHRONOUS','ASYNC-REQUEST-COUNT',
'ASYNC-REQUEST-HANDLE','ATTACHED-PAIRLIST','attribute-NAMES','ATTR-SPACE',
'AUDIT-EVENT-CONTEXT','AUTO-COMPLETION','AUTO-DELETE','AUTO-DELETE-XML',
'AUTO-END-KEY','AUTO-GO','AUTO-INDENT','AUTO-RESIZE',
'AUTO-RETURN','AUTO-SYNCHRONIZE','AUTO-VALIDATE','AUTO-ZAP',
'AVAILABLE-FORMATS','BACKGROUND','BASE-ADE','BASIC-LOGGING',
'BATCH-MODE','BATCH-SIZE','BEFORE-BUFFER','BEFORE-ROWID',
'BEFORE-TABLE','BGCOLOR','BLANK','BLOCK-ITERATION-DISPLAY',
'BORDER-BOTTOM-CHARS','BORDER-BOTTOM-PIXELS','BORDER-LEFT-CHARS','BORDER-LEFT-PIXELS',
'BORDER-RIGHT-CHARS','BORDER-RIGHT-PIXELS','BORDER-TOP-CHARS','BORDER-TOP-PIXELS',
'BOX','BOX-SELECTABLE','BUFFER-CHARS','BUFFER-FIELD',
'BUFFER-HANDLE','BUFFER-LINES','BUFFER-NAME','BUFFER-VALUE',
'BYTES-READ','BYTES-WRITTEN','CACHE','CALL-NAME',
'CALL-TYPE','CANCEL-BUTTON','CANCELLED','CAN-CREATE',
'CAN-DELETE','CAN-READ','CAN-WRITE','CAREFUL-PAINT',
'CASE-SENSITIVE','CENTERED','CHARSET','CHECKED',
'CHILD-BUFFER','CHILD-NUM','CLASS-TYPE','CLIENT-CONNECTION-ID',
'CLIENT-TTY','CLIENT-TYPE','CLIENT-WORKSTATION','CODE',
'CODEPAGE','COLUMN','COLUMN-BGCOLOR','COLUMN-DCOLOR',
'COLUMN-FGCOLOR','COLUMN-FONT','COLUMN-LABEL','COLUMN-MOVABLE',
'COLUMN-PFCOLOR','COLUMN-READ-ONLY','COLUMN-RESIZABLE','COLUMN-SCROLLING',
'COM-HANDLE','COMPLETE','CONFIG-NAME','CONTEXT-HELP',
'CONTEXT-HELP-FILE','CONTEXT-HELP-ID','CONTROL-BOX','CONVERT-3D-COLORS',
'CPCASE','CPCOLL','CPINTERNAL','CPLOG',
'CPPRINT','CPRCODEIN','CPRCODEOUT','CPSTREAM',
'CPTERM','CRC-VALUE','CURRENT-COLUMN','CURRENT-ENVIRONMENT',
'CURRENT-ITERATION','CURRENT-ROW-MODIFIED','CURRENT-WINDOW','CURSOR-CHAR',
'CURSOR-LINE','CURSOR-OFFSET','DATA-ENTRY-RETURN','DATASET',
'DATA-SOURCE','DATA-SOURCE-COMPLETE-MAP','DATA-TYPE','DATE-FORMAT',
'DB-REFERENCES','DCOLOR','DDE-ERROR','DDE-ID',
'DDE-ITEM','DDE-NAME','DDE-TOPIC','DEBLANK',
'DEBUG-ALERT','DECIMALS','DEFAULT','DEFAULT-BUFFER-HANDLE',
'DEFAULT-BUTTON','DEFAULT-COMMIT','DELIMITER','DISABLE-AUTO-ZAP',
'DISPLAY-TIMEZONE','DISPLAY-TYPE','DOMAIN-DESCRIPTION','DOMAIN-NAME',
'DOMAIN-TYPE','DRAG-ENABLED','DROP-TARGET','DYNAMIC',
'EDGE-CHARS','EDGE-PIXELS','EDIT-CAN-PASTE','EDIT-CAN-UNDO',
'EMPTY','ENCODING','ENCRYPTION-SALT','END-USER-PROMPT',
'ENTRY-TYPES-LIST','ERROR-COLUMN','ERROR-object-DETAIL','ERROR-ROW',
'ERROR-STRING','EVENT-GROUP-ID','EVENT-PROCEDURE','EVENT-PROCEDURE-CONTEXT',
'EVENT-TYPE','EXCLUSIVE-ID','EXECUTION-LOG','EXPAND',
'EXPANDABLE','FGCOLOR','FILE-CREATE-DATE','FILE-CREATE-TIME',
'FILE-MOD-DATE','FILE-MOD-TIME','FILE-NAME','FILE-OFFSET',
'FILE-SIZE','FILE-TYPE','FILLED','FILL-MODE',
'FILL-WHERE-STRING','FIRST-ASYNC-REQUEST','FIRST-BUFFER','FIRST-CHILD',
'FIRST-COLUMN','FIRST-DATASET','FIRST-DATA-SOURCE','FIRST-object',
'FIRST-PROCEDURE','FIRST-QUERY','FIRST-SERVER','FIRST-SERVER-SOCKET',
'FIRST-SOCKET','FIRST-TAB-ITEM','FIT-LAST-COLUMN','FLAT-BUTTON',
'FOCUSED-ROW','FOCUSED-ROW-SELECTED','FONT','FOREGROUND',
'FORMAT','FORMATTED','FORM-INPUT','FORM-LONG-INPUT',
'FORWARD-ONLY','FRAGMENT','FRAME-COL','FRAME-NAME',
'FRAME-ROW','FRAME-SPACING','FRAME-X','FRAME-Y',
'FREQUENCY','FULL-HEIGHT-CHARS','FULL-HEIGHT-PIXELS','FULL-PATHNAME',
'FULL-WIDTH-CHARS','FULL-WIDTH-PIXELS','GRAPHIC-EDGE',
'GRID-FACTOR-HORIZONTAL','GRID-FACTOR-VERTICAL','GRID-SNAP','GRID-UNIT-HEIGHT-CHARS',
'GRID-UNIT-HEIGHT-PIXELS','GRID-UNIT-WIDTH-CHARS','GRID-UNIT-WIDTH-PIXELS','GRID-VISIBLE',
'GROUP-BOX','HANDLE','HANDLER','HAS-LOBS',
'HAS-RECORDS','HEIGHT-CHARS','HEIGHT-PIXELS','HELP',
'HIDDEN','HORIZONTAL','HTML-CHARSET','HTML-END-OF-LINE',
'HTML-END-OF-PAGE','HTML-FRAME-BEGIN','HTML-FRAME-END','HTML-HEADER-BEGIN',
'HTML-HEADER-END','HTML-TITLE-BEGIN','HTML-TITLE-END','HWND',
'ICFPARAMETER','ICON','IGNORE-CURRENT-MODIFIED','IMAGE-DOWN',
'IMAGE-INSENSITIVE','IMAGE-UP','IMMEDIATE-DISPLAY','INDEX-INFORMATION',
'IN-HANDLE','INHERIT-BGCOLOR','INHERIT-FGCOLOR','INITIAL','INIT',
'INNER-CHARS','INNER-LINES','INPUT-VALUE','INSTANTIATING-PROCEDURE',
'INTERNAL-ENTRIES','IS-CLASS','IS-OPEN','IS-PARAMETER-SET',
'IS-XML','ITEMS-PER-ROW','KEEP-CONNECTION-OPEN','KEEP-FRAME-Z-ORDER',
'KEEP-SECURITY-CACHE','KEY','KEYS','LABEL',
'LABEL-BGCOLOR','LABEL-DCOLOR','LABEL-FGCOLOR','LABEL-FONT',
'LABELS','LANGUAGES','LARGE','LARGE-TO-SMALL',
'LAST-ASYNC-REQUEST','LAST-BATCH','LAST-CHILD','LAST-object',
'LAST-PROCEDURE','LAST-SERVER','LAST-SERVER-SOCKET','LAST-SOCKET',
'LAST-TAB-ITEM','LINE','LIST-ITEM-PAIRS','LIST-ITEMS',
'LITERAL-QUESTION','LOCAL-HOST','LOCAL-NAME','LOCAL-PORT',
'LOCATOR-COLUMN-NUMBER','LOCATOR-LINE-NUMBER','LOCATOR-PUBLIC-ID','LOCATOR-system-ID',
'LOCATOR-TYPE','LOG-ENTRY-TYPES','LOGFILE-NAME','LOGGING-LEVEL',
'LOGIN-EXPIRATION-TIMESTAMP','LOGIN-HOST','LOGIN-STATE','LOG-THRESHOLD',
'MANDATORY','MANUAL-HIGHLIGHT','MAX-BUTTON','MAX-CHARS',
'MAX-DATA-GUESS','MAX-HEIGHT-CHARS','MAX-HEIGHT-PIXELS','MAX-VALUE',
'MAX-WIDTH-CHARS','MAX-WIDTH-PIXELS','MD5-VALUE','MENU-BAR',
'MENU-KEY','MENU-MOUSE','MERGE-BY-FIELD','MESSAGE-AREA',
'MESSAGE-AREA-FONT','MIN-BUTTON','MIN-COLUMN-WIDTH-CHARS','MIN-COLUMN-WIDTH-PIXELS',
'MIN-HEIGHT-CHARS','MIN-HEIGHT-PIXELS','MIN-SCHEMA-MARSHAL','MIN-VALUE',
'MIN-WIDTH-CHARS','MIN-WIDTH-PIXELS','MODIFIED','MOUSE-POINTER',
'MOVABLE','MULTI-COMPILE','MULTIPLE','MULTITASKING-INTERVAL',
'MUST-UNDERSTAND','NAME','NAMESPACE-PREFIX','NAMESPACE-URI',
'NEEDS-APPSERVER-PROMPT','NEEDS-PROMPT','NESTED','NEW-ROW',
'NEXT-COLUMN','NEXT-ROWID','NEXT-SIBLING','NEXT-TAB-ITEM', 'NO-BOX',
'NO-CURRENT-VALUE','NODE-VALUE','NO-EMPTY-SPACE','NO-FOCUS',
'NONAMESPACE-SCHEMA-LOCATION','NO-SCHEMA-MARSHAL','NO-VALIDATE','NUM-BUFFERS',
'NUM-BUTTONS','NUM-CHILD-RELATIONS','NUM-CHILDREN','NUM-COLUMNS',
'NUM-DROPPED-FILES','NUMERIC-DECIMAL-POINT','NUMERIC-FORMAT','NUMERIC-SEPARATOR',
'NUM-FIELDS','NUM-FORMATS','NUM-HEADER-ENTRIES','NUM-ITEMS',
'NUM-ITERATIONS','NUM-LINES','NUM-LOCKED-COLUMNS','NUM-LOG-FILES',
'NUM-MESSAGES','NUM-PARAMETERS','NUM-REFERENCES','NUM-RELATIONS',
'NUM-REPLACED','NUM-SELECTED-ROWS','NUM-SELECTED-WIDGETS','NUM-SOURCE-BUFFERS',
'NUM-TABS','NUM-TOP-BUFFERS','NUM-TO-RETAIN','NUM-VISIBLE-COLUMNS',
'ON-FRAME-BORDER','ORIGIN-HANDLE','ORIGIN-ROWID','OWNER',
'OWNER-DOCUMENT','PAGE-BOTTOM','PAGE-TOP','PARAMETER',
'PARENT','PARENT-BUFFER','PARENT-RELATION','PARSE-STATUS',
'PASSWORD-FIELD','PATHNAME','PBE-HASH-ALGORITHM','PBE-KEY-ROUNDS',
'PERSISTENT','PERSISTENT-CACHE-DISABLED','PERSISTENT-PROCEDURE','PFCOLOR',
'PIXELS-PER-COLUMN','PIXELS-PER-ROW','POPUP-MENU','POPUP-ONLY',
'POSITION','PREFER-DATASET','PREPARED','PREPARE-STRING',
'PREV-COLUMN','PREV-SIBLING','PREV-TAB-ITEM','PRIMARY',
'PRINTER-CONTROL-HANDLE','PRINTER-HDC','PRINTER-NAME','PRINTER-PORT',
'PRIVATE-DATA','PROCEDURE-NAME','PROGRESS-SOURCE','PROXY',
'PROXY-PASSWORD','PROXY-USERID','PUBLIC-ID','PUBLISHED-EVENTS',
'RADIO-BUTTONS','READ-ONLY','RECORD-LENGTH',
'REFRESHABLE','RELATION-FIELDS','RELATIONS-ACTIVE','REMOTE',
'REMOTE-HOST','REMOTE-PORT','RESIZABLE','RESIZE',
'RESTART-ROWID','RETAIN-SHAPE','RETURN-INSERTED','RETURN-VALUE-DATA-TYPE',
'ROLES','ROUNDED','COL','ROW','ROW-HEIGHT-CHARS',
'ROW-HEIGHT-PIXELS','ROW-MARKERS','ROW-RESIZABLE','ROW-STATE',
'SAVE-WHERE-STRING','SCHEMA-CHANGE','SCHEMA-LOCATION','SCHEMA-MARSHAL',
'SCHEMA-PATH','SCREEN-LINES','SCREEN-VALUE','SCROLLABLE',
'SCROLLBAR-HORIZONTAL','SCROLL-BARS','SCROLLBAR-VERTICAL','SEAL-TIMESTAMP',
'SELECTABLE','SELECTED','SELECTION-END','SELECTION-START',
'SELECTION-TEXT','SENSITIVE','SEPARATOR-FGCOLOR','SEPARATORS',
'SERVER','SERVER-CONNECTION-BOUND','SERVER-CONNECTION-BOUND-REQUEST','SERVER-CONNECTION-CONTEXT',
'SERVER-CONNECTION-ID','SERVER-OPERATING-MODE','SESSION-END','SESSION-ID',
'SHOW-IN-TASKBAR','SIDE-LABEL-HANDLE','SIDE-LABELS','SKIP-DELETED-RECORD',
'SMALL-ICON','SMALL-TITLE','SOAP-FAULT-ACTOR','SOAP-FAULT-CODE',
'SOAP-FAULT-DETAIL','SOAP-FAULT-STRING','SORT','SORT-ASCENDING',
'SORT-NUMBER','SSL-SERVER-NAME','STANDALONE','STARTUP-PARAMETERS',
'STATE-DETAIL','STATUS-AREA','STATUS-AREA-FONT','STOPPED',
'STREAM','STRETCH-TO-FIT','STRICT','STRING-VALUE',
'SUBTYPE','SUPER-PROCEDURES','SUPPRESS-NAMESPACE-PROCESSING','SUPPRESS-WARNINGS',
'SYMMETRIC-ENCRYPTION-ALGORITHM','SYMMETRIC-ENCRYPTION-IV','SYMMETRIC-ENCRYPTION-KEY','SYMMETRIC-SUPPORT',
'system-ALERT-BOXES','system-ID','TABLE','TABLE-CRC-LIST',
'TABLE-HANDLE','TABLE-LIST','TABLE-NUMBER','TAB-POSITION',
'TAB-STOP','TEMP-DIRECTORY','TEXT-SELECTED','THREE-D',
'TIC-MARKS','TIME-SOURCE','TITLE','TITLE-BGCOLOR','FIELD',
'TITLE-DCOLOR','TITLE-FGCOLOR','TITLE-FONT','TOOLTIP',
'TOOLTIPS','TOP-ONLY','TRACKING-CHANGES','TRANSACTION',
'TRANS-INIT-PROCEDURE','TRANSPARENT','TYPE','UNIQUE-ID',
'UNIQUE-MATCH','URL','URL-PASSWORD','URL-USERID','EXTENT',
'USER-ID','V6DISPLAY','VALIDATE-EXPRESSION','VALIDATE-MESSAGE',
'VALIDATE-XML','VALIDATION-ENABLED','VIEW-FIRST-COLUMN-ON-REOPEN',
'VIRTUAL-HEIGHT-CHARS','VIRTUAL-HEIGHT-PIXELS','VIRTUAL-WIDTH-CHARS','VIRTUAL-WIDTH-PIXELS',
'VISIBLE','WARNING','WHERE-STRING','widget-ENTER','DATE',
'widget-LEAVE','WIDTH-CHARS','WIDTH-PIXELS','WINDOW-STATE',
'WINDOW-system','WORD-WRAP','WORK-AREA-HEIGHT-PIXELS','WORK-AREA-WIDTH-PIXELS',
'WORK-AREA-X','WORK-AREA-Y','WRITE-STATUS','X','widget-Handle',
'X-DOCUMENT','XML-DATA-TYPE','XML-NODE-TYPE','XML-SCHEMA-PATH',
'XML-SUPPRESS-NAMESPACE-PROCESSING','Y','YEAR-OFFSET','CHARACTER','INTEGER','LOGICAL',
'LONGCHAR','MEMPTR','DECIMAL','CHAR','DEC','INT','LOG','DECI','INTE','LOGI','long'
)
),
'SYMBOLS' => array(
'(', ')', '[', ']', '{', '}',
'<', '>', '=',
'+', '-', '*', '/',
'!', '@', '%', '|', '$',
':', '.', ';', ',',
'?', '<=','<>','>=', '\\'
),
'CASE_SENSITIVE' => array (
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false
),
'STYLES' => array (
'KEYWORDS' => array (
1 => 'color: #0000ff; font-weight: bold;',
2 => 'color: #1D16B2;',
3 => 'color: #993333;',
4 => 'color: #0000ff;'
),
'COMMENTS' => array (
// 1 => 'color: #808080; font-style: italic;',
// 2 => 'color: #808080; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array (
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array (
0 => 'color: #66cc66;'
),
'STRINGS' => array (
0 => 'color: #ff0000;'
),
'NUMBERS' => array (
0 => 'color: #cc66cc;'
),
'METHODS' => array (
0 => 'color: #006600;'
),
'SYMBOLS' => array (
0 => 'color: #66cc66;'
),
'REGEXPS' => array (
),
'SCRIPT' => array (
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
0 => ':'
),
'REGEXPS' => array (
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array (
),
'HIGHLIGHT_STRICT_BLOCK' => array (
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
'DISALLOWED_BEFORE' => "(?<![\.\-a-zA-Z0-9_\$\#&])",
'DISALLOWED_AFTER' => "(?![\-a-zA-Z0-9_%])"
)
)
);
?>

View file

@ -0,0 +1,143 @@
<?php
/*************************************************************************************
* prolog.php
* --------
* Author: Benny Baumann (BenBE@geshi.org)
* Copyright: (c) 2008 Benny Baumann (http://qbnz.com/highlighter/)
* Release Version: 1.0.8.2
* Date Started: 2008/10/02
*
* Prolog language file for GeSHi.
*
* CHANGES
* -------
* 2008/10/02 (1.0.8.1)
* - First Release
*
* TODO (updated 2008/10/02)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Prolog',
'COMMENT_SINGLE' => array(1 => '%'),
'COMMENT_MULTI' => array('/*' => '*/'),
'HARDQUOTE' => array("'", "'"),
'HARDESCAPE' => array("\'"),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array(),
'ESCAPE_CHAR' => '',
'NUMBERS' =>
GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_FLT_SCI_ZERO,
'KEYWORDS' => array(
1 => array(
'abolish','abs','arg','asserta','assertz','at_end_of_stream','atan',
'atom','atom_chars','atom_codes','atom_concat','atom_length',
'atomic','bagof','call','catch','ceiling','char_code',
'char_conversion','clause','close','compound','consult','copy_term',
'cos','current_char_conversion','current_input','current_op',
'current_output','current_predicate','current_prolog_flag',
'discontiguous','dynamic','ensure_loaded','exp','fail','findall',
'float','float_fractional_part','float_integer_part','floor',
'flush_output','functor','get_byte','get_char','get_code','halt',
'include','initialization','integer','is','listing','log','mod',
'multifile','nl','nonvar','notrace','number','number_chars',
'number_codes','once','op','open','peek_byte','peek_char',
'peek_code','put_byte','put_char','put_code','read','read_term',
'rem','repeat','retract','round','set_input','set_output',
'set_prolog_flag','set_stream_position','setof','sign','sin','sqrt',
'stream_property','sub_atom','throw','trace','true','truncate',
'unify_with_occurs_check','univ','var','write','write_canonical',
'write_term','writeq'
)
),
'SYMBOLS' => array(
0 => array('(', ')', '[', ']', '{', '}',),
1 => array('?-', ':-', '=:='),
2 => array('\-', '\+', '\*', '\/'),
3 => array('-', '+', '*', '/'),
4 => array('.', ':', ',', ';'),
5 => array('!', '@', '&', '|'),
6 => array('<', '>', '=')
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #990000;'
),
'COMMENTS' => array(
1 => 'color: #666666; font-style: italic;',
'MULTI' => 'color: #666666; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;',
'HARD' => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #009900;'
),
'STRINGS' => array(
0 => 'color: #0000ff;',
'HARD' => 'color: #0000ff;'
),
'NUMBERS' => array(
0 => 'color: #800080;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #339933;',
1 => 'color: #339933;',
2 => 'color: #339933;',
3 => 'color: #339933;',
4 => 'color: #339933;',
5 => 'color: #339933;',
6 => 'color: #339933;'
),
'REGEXPS' => array(
0 => 'color: #008080;'
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => 'http://pauillac.inria.fr/~deransar/prolog/bips.html'
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
//Variables
0 => "(?<![A-Z_])(?!(?:PIPE|SEMI)[^a-zA-Z0-9_])[A-Z_][a-zA-Z0-9_]*(?![a-zA-Z0-9_])"
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4
);
?>

View file

@ -0,0 +1,299 @@
<?php
/******************************************************************************
* providex.php
* ----------
* Author: Jeff Wilder (jeff@coastallogix.com)
* Copyright: (c) 2008 Coastal Logix (http://www.coastallogix.com)
* Release Version: 1.0.8.2
* Date Started: 2008/10/18
*
* ProvideX language file for GeSHi.
*
* CHANGES
* -------
* 2008/10/21 (1.0.0)
* - First Release
*
* TODO
* -------------------------
* 1. Create a regexp for numeric global variables (ex: %VarName = 3)
* 2. Add standard object control properties
*
******************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*****************************************************************************/
$language_data = array (
'LANG_NAME' => 'ProvideX',
'COMMENT_SINGLE' => array(1 => '!'),
'COMMENT_MULTI' => array('/*' => '*/'),
'COMMENT_REGEXP' => array(
// Single-Line Comments using REM command
2 => "/\bREM\b.*?$/i"
),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
// Directives
'*break', '*continue', '*end', '*escape', '*next', '*proceed',
'*retry', '*return', '*same', 'accept', 'add index', 'addr',
'auto', 'begin', 'break', 'button', 'bye', 'call', 'case',
'chart', 'check_box', 'class', 'clear', 'clip_board', 'close',
'continue', 'control', 'create required', 'create table',
'cwdir', 'data', 'day_format', 'def', 'default', 'defctl',
'defprt', 'deftty', 'delete required', 'dictionary', 'dim', 'direct',
'directory', 'disable', 'drop', 'drop_box', 'dump', 'edit',
'else', 'enable', 'end switch', 'end', 'end_if', 'endtrace',
'enter', 'erase', 'error_handler', 'escape', 'event', 'execute',
'exit', 'exitto', 'extract', 'file', 'find', 'floating point',
'for', 'function', 'get_file_box', 'gosub', 'goto', 'grid',
'h_scrollbar', 'hide', 'if', 'index', 'indexed', 'input',
'insert', 'invoke', 'iolist', 'keyed', 'let', 'like',
'line_switch', 'list', 'list_box', 'load', 'local', 'lock',
'long_form', 'menu_bar', 'merge', 'message_lib', 'mnemonic',
'msgbox', 'multi_line', 'multi_media', 'next', 'object', 'obtain',
'on', 'open', 'password', 'perform', 'pop', 'popup_menu',
'precision', 'prefix', 'preinput', 'print', 'process', 'program',
'property', 'purge', 'quit', 'radio_button', 'randomize',
'read', 'record', 'redim', 'refile', 'release', 'rem', 'remove',
'rename', 'renumber', 'repeat', 'reset', 'restore', 'retry',
'return', 'round', 'run', 'save', 'select', 'serial', 'server',
'set_focus', 'set_nbf', 'set_param', 'setctl', 'setday', 'setdev',
'setdrive', 'seterr', 'setesc', 'setfid', 'setmouse', 'settime',
'settrace', 'short_form', 'show', 'sort', 'start', 'static',
'step', 'stop', 'switch', 'system_help', 'system_jrnl', 'table',
'then', 'to', 'translate', 'tristate_box', 'unlock', 'until',
'update', 'user_lex', 'v_scrollbar', 'vardrop_box', 'varlist_box',
'via', 'video_palette', 'wait', 'wend', 'while', 'winprt_setup',
'with', 'write'
),
2 => array(
// System Functions
'@x', '@y', 'abs', 'acs', 'and', 'arg', 'asc', 'asn', 'ath',
'atn', 'bin', 'bsz', 'chg', 'chr', 'cmp', 'cos', 'cpl',
'crc', 'cse', 'ctl', 'cvs', 'dec', 'dir', 'dll', 'dsk',
'dte', 'env', 'ept', 'err', 'evn', 'evs', 'exp', 'ffn',
'fib', 'fid', 'fin', 'fpt', 'gap', 'gbl', 'gep', 'hsa',
'hsh', 'hta', 'hwn', 'i3e', 'ind', 'int', 'iol', 'ior',
'jul', 'jst', 'kec', 'kef', 'kel', 'ken', 'kep', 'key',
'kgn', 'lcs', 'len', 'lno', 'log', 'lrc', 'lst', 'max',
'mem', 'mid', 'min', 'mnm', 'mod', 'msg', 'msk', 'mxc',
'mxl', 'new', 'not', 'nul', 'num', 'obj', 'opt', 'pad',
'pck', 'pfx', 'pgm', 'pos', 'prc', 'prm', 'pth', 'pub',
'rcd', 'rdx', 'rec', 'ref', 'rnd', 'rno', 'sep', 'sgn',
'sin', 'sqr', 'srt', 'ssz', 'stk', 'stp', 'str', 'sub',
'swp', 'sys', 'tan', 'tbl', 'tcb', 'tmr', 'trx', 'tsk',
'txh', 'txw', 'ucp', 'ucs', 'upk', 'vin', 'vis', 'xeq',
'xfa', 'xor', '_obj'
),
3 => array(
// System Variables
// Vars that are duplicates of functions
// 'ctl', 'err', 'pfx', 'prm', 'rnd', 'sep', 'sys',
'bkg', 'chn', 'day', 'dlm', 'dsz', 'eom', 'ers', 'esc',
'gfn', 'gid', 'hfn', 'hlp', 'hwd', 'lfa', 'lfo', 'lip',
'lpg', 'lwd', 'mse', 'msl', 'nar', 'nid', 'pgn', 'psz',
'quo', 'ret', 'sid', 'ssn', 'tim', 'tme', 'tms', 'tsm',
'uid', 'unt', 'who'
),
4 => array(
// Nomads Variables
'%Flmaint_Lib$', '%Flmaint_Msg$', '%Nomads_Activation_Ok',
'%Nomads_Auto_Qry', '%Nomads_Disable_Debug',
'%Nomads_Disable_Trace', '%Nomads_Fkey_Handler$',
'%Nomads_Fkey_Tbl$', '%Nomads_Notest', '%Nomads_Onexit$',
'%Nomads_Post_Display', '%Nomads_Pre_Display$',
'%Nomads_Process$', '%Nomads_Trace_File$',
'%Nomad_Actv_Folder_Colors$', '%Nomad_Automation_Enabled',
'%Nomad_Auto_Close', '%Nomad_Center_Wdw', '%Nomad_Concurrent_Wdw',
'%Nomad_Custom_Define', '%Nomad_Custom_Dir$',
'%Nomad_Custom_Genmtc', '%Nomad_Custom_Skip_Definition',
'%Nomad_Def_Sfx$', '%Nomad_Enter_Tab', '%Nomad_Esc_Sel',
'%Nomad_Isjavx', '%Nomad_Iswindx', '%Nomad_Iswindx$',
'%Nomad_Menu$', '%Nomad_Menu_Leftedge_Clr$',
'%Nomad_Menu_Textbackground_Clr$', '%Nomad_Mln_Sep$',
'%Nomad_Msgmnt$', '%Nomad_Noplusw', '%Nomad_No_Customize',
'%Nomad_Object_Persistence', '%Nomad_Object_Resize',
'%Nomad_Open_Load', '%Nomad_Override_Font$',
'%Nomad_Palette_Loaded', '%Nomad_Panel_Info_Force',
'%Nomad_Panel_Info_Prog$', '%Nomad_Pnl_Def_Colour$',
'%Nomad_Pnl_Def_Font$', '%Nomad_Prg_Cache', '%Nomad_Qry_Attr$',
'%Nomad_Qry_Btn$', '%Nomad_Qry_Clear_Start', '%Nomad_Qry_Tip$',
'%Nomad_Qry_Wide', '%Nomad_Query_Clear_Status', '%Nomad_Query_Kno',
'%Nomad_Query_No_Gray', '%Nomad_Query_Odb_Ignore',
'%Nomad_Query_Retkno', '%Nomad_Query_Sbar_Max',
'%Nomad_Relative_Wdw', '%Nomad_Save_Qry_Path', '%Nomad_Script_Fn',
'%Nomad_Script_Log', '%Nomad_Script_Wdw',
'%Nomad_Skip_Change_Logic', '%Nomad_Skip_Onselect_Logic',
'%Nomad_Stk$', '%Nomad_Tab_Dir', '%Nomad_Timeout',
'%Nomad_Turbo_Off', '%Nomad_Visual_Effect',
'%Nomad_Visual_Override', '%Nomad_Win_Ver', '%Nomad_Xchar',
'%Nomad_Xmax', '%Nomad_Ychar', '%Nomad_Ymax', '%Scr_Def_Attr$',
'%Scr_Def_H_Fl$', '%Scr_Def_H_Id$', '%Scr_Lib', '%Scr_Lib$',
'%Z__Usr_Sec$', 'Alternate_Panel$', 'Alternate_Panel_Type$',
'Arg_1$', 'Arg_10$', 'Arg_11$', 'Arg_12$', 'Arg_13$', 'Arg_14$',
'Arg_15$', 'Arg_16$', 'Arg_17$', 'Arg_18$', 'Arg_19$', 'Arg_2$',
'Arg_20$', 'Arg_3$', 'Arg_4$', 'Arg_5$', 'Arg_6$', 'Arg_7$',
'Arg_8$', 'Arg_9$', 'Change_Flg', 'Cmd_Str$', 'Default_Prog$',
'Disp_Cmd$', 'Entire_Record$', 'Exit_Cmd$', 'Fldr_Default_Prog$',
'Folder_Id$', 'Id', 'Id$', 'Ignore_Exit', 'Initialize_Flg',
'Init_Text$', 'Init_Val$', 'Main_Scrn_K$', 'Mnu_Ln$',
'Next_Folder', 'Next_Id', 'Next_Id$', 'No_Flush', 'Prime_Key$',
'Prior_Val', 'Prior_Val$', 'Qry_Val$', 'Refresh_Flg',
'Replacement_Folder$', 'Replacement_Lib$', 'Replacement_Scrn$',
'Scrn_Id$', 'Scrn_K$', 'Scrn_Lib$', 'Tab_Table$', '_Eom$'
),
5 => array(
// Mnemonics
"'!w'", "'*c'", "'*h'", "'*i'", "'*o'", "'*r'", "'*x'",
"'+b'", "'+d'", "'+e'", "'+f'", "'+i'", "'+n'",
"'+p'", "'+s'", "'+t'", "'+u'", "'+v'", "'+w'", "'+x'",
"'+z'", "'-b'", "'-d'", "'-e'", "'-f'", "'-i'",
"'-n'", "'-p'", "'-s'", "'-t'", "'-u'", "'-v'", "'-w'",
"'-x'", "'-z'", "'2d'", "'3d'", "'4d'", "'@@'", "'ab'",
"'arc'", "'at'", "'backgr'", "'bb'", "'be'", "'beep'",
"'bg'", "'bi'", "'bj'", "'bk'", "'black'", "'blue'",
"'bm'", "'bo'", "'box'", "'br'", "'bs'", "'bt'", "'bu'",
"'bw'", "'bx'", "'caption'", "'ce'", "'cf'", "'ch'",
"'ci'", "'circle'", "'cl'", "'colour'", "'cp'", "'cpi'",
"'cr'", "'cs'", "'cursor'", "'cyan''_cyan'", "'dc'",
"'default'", "'df'", "'dialogue'", "'dn'", "'do'",
"'drop'", "'eb'", "'ee'", "'ef'", "'eg'", "'ei'", "'ej'",
"'el'", "'em'", "'eo'", "'ep'", "'er'", "'es'", "'et'",
"'eu'", "'ew'", "'ff'", "'fill'", "'fl'", "'font'",
"'frame'", "'gd'", "'ge'", "'gf'", "'goto'", "'green'",
"'gs'", "'hide'", "'ic'", "'image'", "'jc'",
"'jd'", "'jl'", "'jn'", "'jr'", "'js'", "'l6'", "'l8'",
"'lc'", "'ld'", "'lf'", "'li'", "'line'", "'lm'",
"'lpi'", "'lt'", "'magenta'", "'maxsize'", "'me'",
"'message'", "'minsize'", "'mn'", "'mode'",
"'move'", "'mp'", "'ms'", "'ni'", "'offset'", "'option'",
"'pe'", "'pen'", "'picture'", "'pie'", "'pm'", "'polygon'",
"'pop'", "'ps'", "'push'", "'rb'", "'rc'", "'rectangle'",
"'red'", "'rl'", "'rm'", "'rp'", "'rs'", "'rt'", "'sb'",
"'scroll'", "'sd'", "'se'", "'sf'", "'show'", "'size'",
"'sl'", "'sn'", "'sp'", "'sr'", "'swap'", "'sx'", "'text'",
"'textwdw'", "'tr'", "'tw'", "'uc'", "'up'", "'vt'", "'wa'",
"'wc'", "'wd'", "'wg'", "'white'", "'window'", "'wm'",
"'wp'", "'wr'", "'wrap'", "'ws'", "'wx'", "'xp'", "'yellow'",
"'zx'", "'_black'", "'_blue'", "'_colour'", "'_green'",
"'_magenta'", "'_red'", "'_white'", "'_yellow'"
),
),
'SYMBOLS' => array(
0 => array('+', '-', '*', '/', '^', '|'),
1 => array('++', '--', '+=', '-=', '*=', '/=', '^=', '|='),
2 => array('&lt;', '&gt;', '='),
3 => array('(', ')', '[', ']', '{', '}'),
4 => array(',', '@', ';', '\\')
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false,
5 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: navy;', // Directives
2 => 'color: blue;', // System Functions
3 => 'color: blue;', // System Variables
4 => 'color: #6A5ACD; font-style: italic;', // Nomads Global Variables
5 => 'color: #BDB76B;', // Mnemonics
),
'COMMENTS' => array(
1 => 'color: #008080; font-style: italic;',
2 => 'color: #008080;',
'MULTI' => 'color: #008080; font-style: italic;'
),
'BRACKETS' => array(
0 => 'color: #000066;'
),
'STRINGS' => array(
0 => 'color: green;'
),
'NUMBERS' => array(
0 => 'color: #00008B;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #008000;',
1 => 'color: #000099;',
2 => 'color: #000099;',
3 => 'color: #0000C9;',
4 => 'color: #000099;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099;'
),
'SCRIPT' => array(
),
'REGEXPS' => array(
1 => 'color: #006400; font-weight: bold',
2 => 'color: #6A5ACD;'
)
),
'URLS' => array(
1 => 'http://www.allbasic.info./wiki/index.php/PX:Directive_{FNAME}',
2 => 'http://www.allbasic.info./wiki/index.php/PX:System_function_{FNAME}',
3 => 'http://www.allbasic.info./wiki/index.php/PX:System_variable_{FNAME}',
4 => 'http://www.allbasic.info./wiki/index.php/PX:Nomads_{FNAME}',
5 => 'http://www.allbasic.info./wiki/index.php/PX:Mnemonic_{FNAMEU}'
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => "'"
),
'REGEXPS' => array(
1 => array(
// Line Labels
GESHI_SEARCH => '([[:space:]])([a-zA-Z_][a-zA-Z0-9_]+)(:)',
GESHI_REPLACE => '\\2',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '\\1',
GESHI_AFTER => '\\3'
),
2 => array(
// Global String Variables
GESHI_SEARCH => '(\%)([a-zA-Z_][a-zA-Z0-9_]+)(\$)',
GESHI_REPLACE => '\\1\\2\\3',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '',
GESHI_AFTER => ''
)
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'PARSER_CONTROL' => array(
'ENABLE_FLAGS' => array(
'NUMBERS' => GESHI_NEVER
)
),
'TAB_WIDTH' => 4
);
?>

View file

@ -0,0 +1,227 @@
<?php
/*************************************************************************************
* python.php
* ----------
* Author: Roberto Rossi (rsoftware@altervista.org)
* Copyright: (c) 2004 Roberto Rossi (http://rsoftware.altervista.org), Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.7.21
* Date Started: 2004/08/30
*
* Python language file for GeSHi.
*
* CHANGES
* -------
* 2005/05/26
* - Modifications by Tim (tim@skreak.com): added more keyword categories, tweaked colors
* 2004/11/27 (1.0.1)
* - Added support for multiple object splitters
* 2004/08/30 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Python',
'COMMENT_SINGLE' => array(1 => '#'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"', "'", '"""'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
/*
** Set 1: reserved words
** http://python.org/doc/current/ref/keywords.html
*/
1 => array(
'and', 'del', 'for', 'is', 'raise', 'assert', 'elif', 'from', 'lambda', 'return', 'break',
'else', 'global', 'not', 'try', 'class', 'except', 'if', 'or', 'while', 'continue', 'exec',
'import', 'pass', 'yield', 'def', 'finally', 'in', 'print'
),
/*
** Set 2: builtins
** http://python.org/doc/current/lib/built-in-funcs.html
*/
2 => array(
'__import__', 'abs', 'basestring', 'bool', 'callable', 'chr', 'classmethod', 'cmp',
'compile', 'complex', 'delattr', 'dict', 'dir', 'divmod', 'enumerate', 'eval', 'execfile',
'file', 'filter', 'float', 'frozenset', 'getattr', 'globals', 'hasattr', 'hash', 'help',
'hex', 'id', 'input', 'int', 'isinstance', 'issubclass', 'iter', 'len', 'list', 'locals',
'long', 'map', 'max', 'min', 'object', 'oct', 'open', 'ord', 'pow', 'property', 'range',
'raw_input', 'reduce', 'reload', 'repr', 'reversed', 'round', 'set', 'setattr', 'slice',
'sorted', 'staticmethod', 'str', 'sum', 'super', 'tuple', 'type', 'unichr', 'unicode',
'vars', 'xrange', 'zip',
// Built-in constants: http://python.org/doc/current/lib/node35.html
'False', 'True', 'None', 'NotImplemented', 'Ellipsis',
// Built-in Exceptions: http://python.org/doc/current/lib/module-exceptions.html
'Exception', 'StandardError', 'ArithmeticError', 'LookupError', 'EnvironmentError',
'AssertionError', 'AttributeError', 'EOFError', 'FloatingPointError', 'IOError',
'ImportError', 'IndexError', 'KeyError', 'KeyboardInterrupt', 'MemoryError', 'NameError',
'NotImplementedError', 'OSError', 'OverflowError', 'ReferenceError', 'RuntimeError',
'StopIteration', 'SyntaxError', 'SystemError', 'SystemExit', 'TypeError',
'UnboundlocalError', 'UnicodeError', 'UnicodeEncodeError', 'UnicodeDecodeError',
'UnicodeTranslateError', 'ValueError', 'WindowsError', 'ZeroDivisionError', 'Warning',
'UserWarning', 'DeprecationWarning', 'PendingDeprecationWarning', 'SyntaxWarning',
'RuntimeWarning', 'FutureWarning',
// self: this is a common python convention (but not a reserved word)
'self'
),
/*
** Set 3: standard library
** http://python.org/doc/current/lib/modindex.html
*/
3 => array(
'__builtin__', '__future__', '__main__', '_winreg', 'aifc', 'AL', 'al', 'anydbm',
'array', 'asynchat', 'asyncore', 'atexit', 'audioop', 'base64', 'BaseHTTPServer',
'Bastion', 'binascii', 'binhex', 'bisect', 'bsddb', 'bz2', 'calendar', 'cd', 'cgi',
'CGIHTTPServer', 'cgitb', 'chunk', 'cmath', 'cmd', 'code', 'codecs', 'codeop',
'collections', 'colorsys', 'commands', 'compileall', 'compiler', 'compiler',
'ConfigParser', 'Cookie', 'cookielib', 'copy', 'copy_reg', 'cPickle', 'crypt',
'cStringIO', 'csv', 'curses', 'datetime', 'dbhash', 'dbm', 'decimal', 'DEVICE',
'difflib', 'dircache', 'dis', 'distutils', 'dl', 'doctest', 'DocXMLRPCServer', 'dumbdbm',
'dummy_thread', 'dummy_threading', 'email', 'encodings', 'errno', 'exceptions', 'fcntl',
'filecmp', 'fileinput', 'FL', 'fl', 'flp', 'fm', 'fnmatch', 'formatter', 'fpectl',
'fpformat', 'ftplib', 'gc', 'gdbm', 'getopt', 'getpass', 'gettext', 'GL', 'gl', 'glob',
'gopherlib', 'grp', 'gzip', 'heapq', 'hmac', 'hotshot', 'htmlentitydefs', 'htmllib',
'HTMLParser', 'httplib', 'imageop', 'imaplib', 'imgfile', 'imghdr', 'imp', 'inspect',
'itertools', 'jpeg', 'keyword', 'linecache', 'locale', 'logging', 'mailbox', 'mailcap',
'marshal', 'math', 'md5', 'mhlib', 'mimetools', 'mimetypes', 'MimeWriter', 'mimify',
'mmap', 'msvcrt', 'multifile', 'mutex', 'netrc', 'new', 'nis', 'nntplib', 'operator',
'optparse', 'os', 'ossaudiodev', 'parser', 'pdb', 'pickle', 'pickletools', 'pipes',
'pkgutil', 'platform', 'popen2', 'poplib', 'posix', 'posixfile', 'pprint', 'profile',
'pstats', 'pty', 'pwd', 'py_compile', 'pyclbr', 'pydoc', 'Queue', 'quopri', 'random',
're', 'readline', 'repr', 'resource', 'rexec', 'rfc822', 'rgbimg', 'rlcompleter',
'robotparser', 'sched', 'ScrolledText', 'select', 'sets', 'sgmllib', 'sha', 'shelve',
'shlex', 'shutil', 'signal', 'SimpleHTTPServer', 'SimpleXMLRPCServer', 'site', 'smtpd',
'smtplib', 'sndhdr', 'socket', 'SocketServer', 'stat', 'statcache', 'statvfs', 'string',
'StringIO', 'stringprep', 'struct', 'subprocess', 'sunau', 'SUNAUDIODEV', 'sunaudiodev',
'symbol', 'sys', 'syslog', 'tabnanny', 'tarfile', 'telnetlib', 'tempfile', 'termios',
'test', 'textwrap', 'thread', 'threading', 'time', 'timeit', 'Tix', 'Tkinter', 'token',
'tokenize', 'traceback', 'tty', 'turtle', 'types', 'unicodedata', 'unittest', 'urllib2',
'urllib', 'urlparse', 'user', 'UserDict', 'UserList', 'UserString', 'uu', 'warnings',
'wave', 'weakref', 'webbrowser', 'whichdb', 'whrandom', 'winsound', 'xdrlib', 'xml',
'xmllib', 'xmlrpclib', 'zipfile', 'zipimport', 'zlib'
),
/*
** Set 4: special methods
** http://python.org/doc/current/ref/specialnames.html
*/
4 => array(
/*
// Iterator types: http://python.org/doc/current/lib/typeiter.html
'__iter__', 'next',
// String types: http://python.org/doc/current/lib/string-methods.html
'capitalize', 'center', 'count', 'decode', 'encode', 'endswith', 'expandtabs',
'find', 'index', 'isalnum', 'isalpha', 'isdigit', 'islower', 'isspace', 'istitle',
'isupper', 'join', 'ljust', 'lower', 'lstrip', 'replace', 'rfind', 'rindex', 'rjust',
'rsplit', 'rstrip', 'split', 'splitlines', 'startswith', 'strip', 'swapcase', 'title',
'translate', 'upper', 'zfill',
*/
// Basic customization: http://python.org/doc/current/ref/customization.html
'__new__', '__init__', '__del__', '__repr__', '__str__',
'__lt__', '__le__', '__eq__', '__ne__', '__gt__', '__ge__', '__cmp__', '__rcmp__',
'__hash__', '__nonzero__', '__unicode__', '__dict__',
// Attribute access: http://python.org/doc/current/ref/attribute-access.html
'__setattr__', '__delattr__', '__getattr__', '__getattribute__', '__get__', '__set__',
'__delete__', '__slots__',
// Class creation, callable objects
'__metaclass__', '__call__',
// Container types: http://python.org/doc/current/ref/sequence-types.html
'__len__', '__getitem__', '__setitem__', '__delitem__', '__iter__', '__contains__',
'__getslice__', '__setslice__', '__delslice__',
// Numeric types: http://python.org/doc/current/ref/numeric-types.html
'__abs__','__add__','__and__','__coerce__','__div__','__divmod__','__float__',
'__hex__','__iadd__','__isub__','__imod__','__idiv__','__ipow__','__iand__',
'__ior__','__ixor__', '__ilshift__','__irshift__','__invert__','__int__',
'__long__','__lshift__',
'__mod__','__mul__','__neg__','__oct__','__or__','__pos__','__pow__',
'__radd__','__rdiv__','__rdivmod__','__rmod__','__rpow__','__rlshift__','__rrshift__',
'__rshift__','__rsub__','__rmul__','__repr__','__rand__','__rxor__','__ror__',
'__sub__','__xor__'
)
),
'SYMBOLS' => array(
'(', ')', '[', ']', '{', '}', '*', '&', '%', '!', ';', '<', '>', '?', '`'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => true,
2 => true,
3 => true,
4 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #ff7700;font-weight:bold;', // Reserved
2 => 'color: #008000;', // Built-ins + self
3 => 'color: #dc143c;', // Standard lib
4 => 'color: #0000cd;' // Special methods
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: black;'
),
'STRINGS' => array(
0 => 'color: #483d8b;'
),
'NUMBERS' => array(
0 => 'color: #ff4500;'
),
'METHODS' => array(
1 => 'color: black;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View file

@ -0,0 +1,146 @@
<?php
/*************************************************************************************
* qbasic.php
* ----------
* Author: Nigel McNie (nigel@geshi.org)
* Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
* Release Version: 1.0.7.21
* Date Started: 2004/06/20
*
* QBasic/QuickBASIC language file for GeSHi.
*
* CHANGES
* -------
* 2004/11/27 (1.0.3)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.2)
* - Added support for URLs
* 2004/08/05 (1.0.1)
* - Added support for symbols
* - Removed unnessecary slashes from some keywords
* 2004/07/14 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
* * Make sure all possible combinations of keywords with
* a space in them (EXIT FOR, END SELECT) are added
* to the first keyword group
* * Update colours, especially for the first keyword group
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'QBasic/QuickBASIC',
'COMMENT_SINGLE' => array(1 => "'", 2 => ' REM', 3 => "\tREM"),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_UPPER,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
'DO', 'LOOP', 'WHILE', 'WEND', 'THEN', 'ELSE', 'ELSEIF', 'IF',
'FOR', 'TO', 'NEXT', 'STEP', 'GOTO', 'GOSUB', 'RETURN', 'RESUME', 'SELECT',
'CASE', 'UNTIL'
),
3 => array(
'ABS', 'ABSOLUTE', 'ACCESS', 'ALIAS', 'AND', 'ANY', 'APPEND', 'AS', 'ASC', 'ATN',
'BASE', 'BEEP', 'BINARY', 'BLOAD', 'BSAVE', 'BYVAL', 'CALL', 'CALLS', 'CASE',
'CDBL', 'CDECL', 'CHAIN', 'CHDIR', 'CHDIR', 'CHR$', 'CINT', 'CIRCLE', 'CLEAR',
'CLNG', 'CLOSE', 'CLS', 'COM', 'COMMAND$', 'COMMON', 'CONST', 'COS', 'CSNG',
'CSRLIN', 'CVD', 'CVDMBF', 'CVI', 'CVL', 'CVS', 'CVSMDF', 'DATA', 'DATE$',
'DECLARE', 'DEF', 'FN', 'SEG', 'DEFDBL', 'DEFINT', 'DEFLNG', 'DEFSNG', 'DEFSTR',
'DIM', 'DOUBLE', 'DRAW', 'END', 'ENVIRON', 'ENVIRON$', 'EOF', 'EQV', 'ERASE',
'ERDEV', 'ERDEV$', 'ERL', 'ERR', 'ERROR', 'EXIT', 'EXP', 'FIELD', 'FILEATTR',
'FILES', 'FIX', 'FRE', 'FREEFILE', 'FUNCTION', 'GET', 'HEX$', 'IMP', 'INKEY$',
'INP', 'INPUT', 'INPUT$', 'INSTR', 'INT', 'INTEGER', 'IOCTL', 'IOCTL$', 'IS',
'KEY', 'KILL', 'LBOUND', 'LCASE$', 'LEFT$', 'LEN', 'LET', 'LINE', 'LIST', 'LOC',
'LOCAL', 'LOCATE', 'LOCK', 'LOF', 'LOG', 'UNLOCK', 'LONG', 'LPOS', 'LPRINT',
'LSET', 'LTRIM$', 'MID$', 'MKD$', 'MKDIR', 'MKDMBF$', 'MKI$', 'MKL$',
'MKS$', 'MKSMBF$', 'MOD', 'NAME', 'NOT', 'OCT$', 'OFF', 'ON', 'PEN', 'PLAY',
'STRIG', 'TIMER', 'UEVENT', 'OPEN', 'OPTION', 'BASE', 'OR', 'OUT', 'OUTPUT',
'PAINT', 'PALETTE', 'PCOPY', 'PEEK', 'PMAP', 'POINT', 'POKE', 'POS', 'PRESET',
'PRINT', 'USING', 'PSET', 'PUT', 'RANDOM', 'RANDOMIZE', 'READ', 'REDIM', 'RESET',
'RESTORE', 'RIGHT$', 'RMDIR', 'RND', 'RSET', 'RTRIM$', 'RUN', 'SADD', 'SCREEN',
'SEEK', 'SETMEM', 'SGN', 'SHARED', 'SHELL', 'SIGNAL', 'SIN', 'SINGLE', 'SLEEP',
'SOUND', 'SPACE$', 'SPC', 'SQR', 'STATIC', 'STICK', 'STOP', 'STR$', 'STRIG',
'STRING', 'STRING$', 'SUB', 'SWAP', 'SYSTEM', 'TAB', 'TAN', 'TIME$', 'TIMER',
'TROFF', 'TRON', 'TYPE', 'UBOUND', 'UCASE$', 'UEVENT', 'UNLOCK', 'USING', 'VAL',
'VARPTR', 'VARPTR$', 'VARSEG', 'VIEW', 'WAIT', 'WIDTH', 'WINDOW', 'WRITE', 'XOR'
)
),
'SYMBOLS' => array(
'(', ')'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
3 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #a1a100;',
3 => 'color: #000066;'
),
'COMMENTS' => array(
1 => 'color: #808080;',
2 => 'color: #808080;',
3 => 'color: #808080;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099;'
),
'SCRIPT' => array(
),
'REGEXPS' => array(
)
),
'URLS' => array(
1 => '',
3 => 'http://www.qbasicnews.com/qboho/qck{FNAMEL}.shtml'
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 8
);
?>

View file

@ -0,0 +1,404 @@
<?php
/*************************************************************************************
* rails.php
* ---------
* Author: Moises Deniz
* Copyright: (c) 2005 Moises Deniz
* Release Version: 1.0.7.21
* Date Started: 2007/03/21
*
* Ruby language and Ruby on Rails Framework file for GeSHi
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Rails',
'COMMENT_SINGLE' => array(1 => "#"),
'COMMENT_MULTI' => array("=begin" => "=end"),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"', '`','\''),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'alias', 'and', 'begin', 'break', 'case', 'class',
'def', 'defined', 'do', 'else', 'elsif', 'end',
'ensure', 'for', 'if', 'in', 'module', 'while',
'next', 'not', 'or', 'redo', 'rescue', 'yield',
'retry', 'super', 'then', 'undef', 'unless',
'until', 'when', 'BEGIN', 'END', 'include'
),
2 => array(
'__FILE__', '__LINE__', 'false', 'nil', 'self', 'true',
'return'
),
3 => array(
'Array', 'Float', 'Integer', 'String', 'at_exit',
'autoload', 'binding', 'caller', 'catch', 'chop', 'chop!',
'chomp', 'chomp!', 'eval', 'exec', 'exit', 'exit!', 'fail',
'fork', 'format', 'gets', 'global_variables', 'gsub', 'gsub!',
'iterator?', 'lambda', 'load', 'local_variables', 'loop',
'open', 'p', 'print', 'printf', 'proc', 'putc', 'puts',
'raise', 'rand', 'readline', 'readlines', 'require', 'select',
'sleep', 'split', 'sprintf', 'srand', 'sub', 'sub!', 'syscall',
'system', 'trace_var', 'trap', 'untrace_var'
),
4 => array(
'Abbrev', 'ArgumentError', 'Base64', 'Benchmark',
'Benchmark::Tms', 'Bignum', 'Binding', 'CGI', 'CGI::Cookie',
'CGI::HtmlExtension', 'CGI::QueryExtension',
'CGI::Session', 'CGI::Session::FileStore',
'CGI::Session::MemoryStore', 'Class', 'Comparable', 'Complex',
'ConditionVariable', 'Continuation', 'Data',
'Date', 'DateTime', 'Delegator', 'Dir', 'EOFError', 'ERB',
'ERB::Util', 'Enumerable', 'Enumerable::Enumerator', 'Errno',
'Exception', 'FalseClass', 'File',
'File::Constants', 'File::Stat', 'FileTest', 'FileUtils',
'FileUtils::DryRun', 'FileUtils::NoWrite',
'FileUtils::StreamUtils_', 'FileUtils::Verbose', 'Find',
'Fixnum', 'FloatDomainError', 'Forwardable', 'GC', 'Generator',
'Hash', 'IO', 'IOError', 'Iconv', 'Iconv::BrokenLibrary',
'Iconv::Failure', 'Iconv::IllegalSequence',
'Iconv::InvalidCharacter', 'Iconv::InvalidEncoding',
'Iconv::OutOfRange', 'IndexError', 'Interrupt', 'Kernel',
'LoadError', 'LocalJumpError', 'Logger', 'Logger::Application',
'Logger::Error', 'Logger::Formatter', 'Logger::LogDevice',
'Logger::LogDevice::LogDeviceMutex', 'Logger::Severity',
'Logger::ShiftingError', 'Marshal', 'MatchData',
'Math', 'Matrix', 'Method', 'Module', 'Mutex', 'NameError',
'NameError::message', 'NilClass', 'NoMemoryError',
'NoMethodError', 'NotImplementedError', 'Numeric', 'Object',
'ObjectSpace', 'Observable', 'PStore', 'PStore::Error',
'Pathname', 'Precision', 'Proc', 'Process', 'Process::GID',
'Process::Status', 'Process::Sys', 'Process::UID', 'Queue',
'Range', 'RangeError', 'Rational', 'Regexp', 'RegexpError',
'RuntimeError', 'ScriptError', 'SecurityError', 'Set',
'Shellwords', 'Signal', 'SignalException', 'SimpleDelegator',
'SingleForwardable', 'Singleton', 'SingletonClassMethods',
'SizedQueue', 'SortedSet', 'StandardError', 'StringIO',
'StringScanner', 'StringScanner::Error', 'Struct', 'Symbol',
'SyncEnumerator', 'SyntaxError', 'SystemCallError',
'SystemExit', 'SystemStackError', 'Tempfile',
'Test::Unit::TestCase', 'Test::Unit', 'Test', 'Thread',
'ThreadError', 'ThreadGroup',
'ThreadsWait', 'Time', 'TrueClass', 'TypeError', 'URI',
'URI::BadURIError', 'URI::Error', 'URI::Escape', 'URI::FTP',
'URI::Generic', 'URI::HTTP', 'URI::HTTPS',
'URI::InvalidComponentError', 'URI::InvalidURIError',
'URI::LDAP', 'URI::MailTo', 'URI::REGEXP',
'URI::REGEXP::PATTERN', 'UnboundMethod', 'Vector', 'YAML',
'ZeroDivisionError', 'Zlib',
'Zlib::BufError', 'Zlib::DataError', 'Zlib::Deflate',
'Zlib::Error', 'Zlib::GzipFile', 'Zlib::GzipFile::CRCError',
'Zlib::GzipFile::Error', 'Zlib::GzipFile::LengthError',
'Zlib::GzipFile::NoFooter', 'Zlib::GzipReader',
'Zlib::GzipWriter', 'Zlib::Inflate', 'Zlib::MemError',
'Zlib::NeedDict', 'Zlib::StreamEnd', 'Zlib::StreamError',
'Zlib::VersionError',
'Zlib::ZStream',
'ActionController::AbstractRequest',
'ActionController::Assertions::DomAssertions',
'ActionController::Assertions::ModelAssertions',
'ActionController::Assertions::ResponseAssertions',
'ActionController::Assertions::RoutingAssertions',
'ActionController::Assertions::SelectorAssertions',
'ActionController::Assertions::TagAssertions',
'ActionController::Base',
'ActionController::Benchmarking::ClassMethods',
'ActionController::Caching',
'ActionController::Caching::Actions',
'ActionController::Caching::Actions::ActionCachePath',
'ActionController::Caching::Fragments',
'ActionController::Caching::Pages',
'ActionController::Caching::Pages::ClassMethods',
'ActionController::Caching::Sweeping',
'ActionController::Components',
'ActionController::Components::ClassMethods',
'ActionController::Components::InstanceMethods',
'ActionController::Cookies',
'ActionController::Filters::ClassMethods',
'ActionController::Flash',
'ActionController::Flash::FlashHash',
'ActionController::Helpers::ClassMethods',
'ActionController::Integration::Session',
'ActionController::IntegrationTest',
'ActionController::Layout::ClassMethods',
'ActionController::Macros',
'ActionController::Macros::AutoComplete::ClassMethods',
'ActionController::Macros::InPlaceEditing::ClassMethods',
'ActionController::MimeResponds::InstanceMethods',
'ActionController::Pagination',
'ActionController::Pagination::ClassMethods',
'ActionController::Pagination::Paginator',
'ActionController::Pagination::Paginator::Page',
'ActionController::Pagination::Paginator::Window',
'ActionController::Rescue', 'ActionController::Resources',
'ActionController::Routing',
'ActionController::Scaffolding::ClassMethods',
'ActionController::SessionManagement::ClassMethods',
'ActionController::Streaming', 'ActionController::TestProcess',
'ActionController::TestUploadedFile',
'ActionController::UrlWriter',
'ActionController::Verification::ClassMethods',
'ActionMailer::Base', 'ActionView::Base',
'ActionView::Helpers::ActiveRecordHelper',
'ActionView::Helpers::AssetTagHelper',
'ActionView::Helpers::BenchmarkHelper',
'ActionView::Helpers::CacheHelper',
'ActionView::Helpers::CaptureHelper',
'ActionView::Helpers::DateHelper',
'ActionView::Helpers::DebugHelper',
'ActionView::Helpers::FormHelper',
'ActionView::Helpers::FormOptionsHelper',
'ActionView::Helpers::FormTagHelper',
'ActionView::Helpers::JavaScriptHelper',
'ActionView::Helpers::JavaScriptMacrosHelper',
'ActionView::Helpers::NumberHelper',
'ActionView::Helpers::PaginationHelper',
'ActionView::Helpers::PrototypeHelper',
'ActionView::Helpers::PrototypeHelper::JavaScriptGenerator::GeneratorMethods',
'ActionView::Helpers::ScriptaculousHelper',
'ActionView::Helpers::TagHelper',
'ActionView::Helpers::TextHelper',
'ActionView::Helpers::UrlHelper', 'ActionView::Partials',
'ActionWebService::API::Method', 'ActionWebService::Base',
'ActionWebService::Client::Soap',
'ActionWebService::Client::XmlRpc',
'ActionWebService::Container::ActionController::ClassMethods',
'ActionWebService::Container::Delegated::ClassMethods',
'ActionWebService::Container::Direct::ClassMethods',
'ActionWebService::Invocation::ClassMethods',
'ActionWebService::Scaffolding::ClassMethods',
'ActionWebService::SignatureTypes', 'ActionWebService::Struct',
'ActiveRecord::Acts::List::ClassMethods',
'ActiveRecord::Acts::List::InstanceMethods',
'ActiveRecord::Acts::NestedSet::ClassMethods',
'ActiveRecord::Acts::NestedSet::InstanceMethods',
'ActiveRecord::Acts::Tree::ClassMethods',
'ActiveRecord::Acts::Tree::InstanceMethods',
'ActiveRecord::Aggregations::ClassMethods',
'ActiveRecord::Associations::ClassMethods',
'ActiveRecord::AttributeMethods::ClassMethods',
'ActiveRecord::Base',
'ActiveRecord::Calculations::ClassMethods',
'ActiveRecord::Callbacks',
'ActiveRecord::ConnectionAdapters::AbstractAdapter',
'ActiveRecord::ConnectionAdapters::Column',
'ActiveRecord::ConnectionAdapters::DB2Adapter',
'ActiveRecord::ConnectionAdapters::DatabaseStatements',
'ActiveRecord::ConnectionAdapters::FirebirdAdapter',
'ActiveRecord::ConnectionAdapters::FrontBaseAdapter',
'ActiveRecord::ConnectionAdapters::MysqlAdapter',
'ActiveRecord::ConnectionAdapters::OpenBaseAdapter',
'ActiveRecord::ConnectionAdapters::OracleAdapter',
'ActiveRecord::ConnectionAdapters::PostgreSQLAdapter',
'ActiveRecord::ConnectionAdapters::Quoting',
'ActiveRecord::ConnectionAdapters::SQLServerAdapter',
'ActiveRecord::ConnectionAdapters::SQLiteAdapter',
'ActiveRecord::ConnectionAdapters::SchemaStatements',
'ActiveRecord::ConnectionAdapters::SybaseAdapter::ColumnWithIdentity',
'ActiveRecord::ConnectionAdapters::SybaseAdapterContext',
'ActiveRecord::ConnectionAdapters::TableDefinition',
'ActiveRecord::Errors', 'ActiveRecord::Locking',
'ActiveRecord::Locking::Optimistic',
'ActiveRecord::Locking::Optimistic::ClassMethods',
'ActiveRecord::Locking::Pessimistic',
'ActiveRecord::Migration', 'ActiveRecord::Observer',
'ActiveRecord::Observing::ClassMethods',
'ActiveRecord::Reflection::ClassMethods',
'ActiveRecord::Reflection::MacroReflection',
'ActiveRecord::Schema', 'ActiveRecord::Timestamp',
'ActiveRecord::Transactions::ClassMethods',
'ActiveRecord::Validations',
'ActiveRecord::Validations::ClassMethods',
'ActiveRecord::XmlSerialization',
'ActiveSupport::CachingTools::HashCaching',
'ActiveSupport::CoreExtensions::Array::Conversions',
'ActiveSupport::CoreExtensions::Array::Grouping',
'ActiveSupport::CoreExtensions::Date::Conversions',
'ActiveSupport::CoreExtensions::Hash::Conversions',
'ActiveSupport::CoreExtensions::Hash::Conversions::ClassMethods',
'ActiveSupport::CoreExtensions::Hash::Diff',
'ActiveSupport::CoreExtensions::Hash::Keys',
'ActiveSupport::CoreExtensions::Hash::ReverseMerge',
'ActiveSupport::CoreExtensions::Integer::EvenOdd',
'ActiveSupport::CoreExtensions::Integer::Inflections',
'ActiveSupport::CoreExtensions::Numeric::Bytes',
'ActiveSupport::CoreExtensions::Numeric::Time',
'ActiveSupport::CoreExtensions::Pathname::CleanWithin',
'ActiveSupport::CoreExtensions::Range::Conversions',
'ActiveSupport::CoreExtensions::String::Access',
'ActiveSupport::CoreExtensions::String::Conversions',
'ActiveSupport::CoreExtensions::String::Inflections',
'ActiveSupport::CoreExtensions::String::Iterators',
'ActiveSupport::CoreExtensions::String::StartsEndsWith',
'ActiveSupport::CoreExtensions::String::Unicode',
'ActiveSupport::CoreExtensions::Time::Calculations',
'ActiveSupport::CoreExtensions::Time::Calculations::ClassMethods',
'ActiveSupport::CoreExtensions::Time::Conversions',
'ActiveSupport::Multibyte::Chars',
'ActiveSupport::Multibyte::Handlers::UTF8Handler', 'Binding',
'Breakpoint', 'Builder::BlankSlate', 'Builder::XmlMarkup',
'Enumerable', 'Fixtures',
'HTML::Selector', 'HashWithIndifferentAccess', 'Inflector',
'Inflector::Inflections', 'Mime', 'Mime::Type',
'OCI8AutoRecover', 'Symbol', 'TimeZone', 'XmlSimple'
),
5 => array(
'image_tag', 'link_to', 'link_to_remote', 'javascript_include_tag',
'assert_equal', 'assert_not_equal', 'before_filter',
'after_filter', 'render', 'redirect_to', 'hide_action',
'render_to_string', 'url_for', 'controller_name',
'controller_class_name', 'controller_path', 'session',
'render_component', 'render_component_as_string', 'cookie',
'layout', 'flash', 'auto_complete_for', 'in_place_editor_for',
'respond_to', 'paginate', 'current_page', 'each', 'first',
'first_page', 'last_page', 'last', 'length', 'new', 'page_count',
'previous', 'next', 'scaffold', 'session', 'send_data',
'send_file', 'deliver', 'receive', 'error_messages_for',
'error_message_on', 'form', 'input', 'stylesheet_link_tag',
'stylesheet_path', 'content_for', 'select_date', 'select', 'ago',
'month', 'day', 'check_box', 'fields_for', 'file_field',
'form_for', 'hidden_field', 'text_area', 'password_field',
'collection_select', 'options_for_select',
'options_from_collection_for_select', 'file_field_tag',
'form_for_tag', 'hidden_field_tag', 'text_area_tag',
'password_field_tag', 'link_to_function', 'javascript_tag',
'human_size', 'number_to_currency', 'pagination_links',
'form_remote_tag', 'form_remote_for', 'link_to_remote',
'submit_to_remote', 'remote_function', 'observe_form',
'observe_field', 'remote_form_for', 'options_for_ajax', 'alert',
'call', 'assign', 'show', 'hide', 'insert_html', 'sortable',
'toggle', 'visual_effect', 'replace', 'replace_html', 'remove',
'save', 'save!', 'draggable', 'drop_receiving', 'literal',
'draggable_element', 'drop_receiving_element', 'sortable_element',
'content_tag', 'tag', 'link_to_image', 'link_to_if',
'link_to_unless', 'mail_to', 'link_image_to', 'button_to',
'current_page?', 'act_as_list', 'act_as_nested', 'act_as_tree',
'has_many', 'has_one', 'belongs_to', 'has_many_and_belogns_to',
'delete', 'destroy', 'destroy_all', 'clone', 'deep_clone', 'copy',
'update', 'table_name', 'primary_key', 'sum', 'maximun', 'minimum',
'count', 'size', 'after_save', 'after_create', 'before_save',
'before_create', 'add_to_base', 'errors', 'add', 'validate',
'validate', 'validates_presence_of', 'validates_format_of',
'validates_numericality_of', 'validates_uniqueness_of',
'validates_length_of', 'validates_format_of', 'validates_size_of',
'to_a', 'to_s', 'to_xml', 'to_i'
)
),
'SYMBOLS' => array(
'(', ')', '[', ']', '{', '}', '%', '&', '*', '|', '/', '<', '>',
'+', '-', '=&gt;', '=>', '<<'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
4 => true,
5 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color:#9966CC; font-weight:bold;',
2 => 'color:#0000FF; font-weight:bold;',
3 => 'color:#CC0066; font-weight:bold;',
4 => 'color:#CC00FF; font-weight:bold;',
5 => 'color:#5A0A0A; font-weight:bold;'
),
'COMMENTS' => array(
1 => 'color:#008000; font-style:italic;',
'MULTI' => 'color:#000080; font-style:italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color:#000099;'
),
'BRACKETS' => array(
0 => 'color:#006600; font-weight:bold;'
),
'STRINGS' => array(
0 => 'color:#996600;'
),
'NUMBERS' => array(
0 => 'color:#006666;'
),
'METHODS' => array(
1 => 'color:#9900CC;'
),
'SYMBOLS' => array(
0 => 'color:#006600; font-weight:bold;'
),
'REGEXPS' => array(
0 => 'color:#ff6633; font-weight:bold;',
1 => 'color:#0066ff; font-weight:bold;',
2 => 'color:#6666ff; font-weight:bold;',
3 => 'color:#ff3333; font-weight:bold;'
),
'SCRIPT' => array(
0 => '',
1 => '',
2 => '',
)
),
'URLS' => array(
1 => '',
2 => '',
3 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
0 => array(
GESHI_SEARCH => "([[:space:]])(\\$[a-zA-Z_][a-zA-Z0-9_]*)",
GESHI_REPLACE => '\\2',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '\\1',
GESHI_AFTER => ''
),
1 => array(
GESHI_SEARCH => "([[:space:]])(@[a-zA-Z_][a-zA-Z0-9_]*)",
GESHI_REPLACE => '\\2',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '\\1',
GESHI_AFTER => ''
),
2 => "([A-Z][a-zA-Z0-9_]*::)+[A-Z][a-zA-Z0-9_]*",
3 => array(
GESHI_SEARCH => "([[:space:]]|\[|\()(:[a-zA-Z_][a-zA-Z0-9_]*)",
GESHI_REPLACE => '\\2',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '\\1',
GESHI_AFTER => ''
)
),
'STRICT_MODE_APPLIES' => GESHI_MAYBE,
'SCRIPT_DELIMITERS' => array(
0 => array(
'<%' => '%>'
)
),
'HIGHLIGHT_STRICT_BLOCK' => array(
0 => true,
)
);
?>

View file

@ -0,0 +1,214 @@
<?php
/*************************************************************************************
* reg.php
* -------
* Author: Sean Hanna (smokingrope@gmail.com)
* Copyright: (c) 2006 Sean Hanna
* Release Version: 1.0.7.21
* Date Started: 03/15/2006
*
* Microsoft Registry Editor Language File.
*
* CHANGES
* -------
* 03/15/2006 (0.5.0)
* - Syntax File Created
* 04/27/2006 (0.9.5)
* - Syntax Coloring Cleaned Up
* - First Release
* 04/29/2006 (1.0.0)
* - Updated a few coloring settings
*
* TODO (updated 4/27/2006)
* -------------------------
* - Add a verification to the multi-line portion of the hex field regex
* for a '\' character on the line preceding the line of the multi-line
* hex field.
*
* KNOWN ISSUES (updated 4/27/2006)
* ---------------------------------
*
* - There are two regexes for the multiline hex value regex. The regex for
* all lines after the first does not verify that the previous line contains
* a line continuation character '\'. This regex also does not check for
* end of line as it should.
*
* - If number_highlighting is enabled during processing of this syntax file
* many of the regexps used will appear slightly incorrect.
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Microsoft Registry',
'COMMENT_SINGLE' => array(1 =>';'),
'COMMENT_MULTI' => array( ),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array(),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(),
2 => array()
/* Registry Key Constants Not Used
3 => array(
'HKEY_LOCAL_MACHINE',
'HKEY_CLASSES_ROOT',
'HKEY_CURRENT_USER',
'HKEY_USERS',
'HKEY_CURRENT_CONFIG',
'HKEY_DYN_DATA',
'HKLM', 'HKCR', 'HKCU', 'HKU', 'HKCC', 'HKDD'
)/***/
),
'SYMBOLS' => array( ),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false
),
'STYLES' => array(
'KEYWORDS' => array( 1 => 'color: #00CCFF;',
2 => 'color: #0000FF;' ),
'COMMENTS' => array( 1 => 'color: #009900;' ),
'ESCAPE_CHAR' => array(),
'BRACKETS' => array(0 => 'color: #000000;'),
'STRINGS' => array( 0 => 'color: #009900;' ),
'NUMBERS' => array(),
'METHODS' => array(),
'SYMBOLS' => array(0 => 'color: #000000;'),
'SCRIPT' => array(),
'REGEXPS' => array(
0 => '',
1 => 'color: #0000FF;',
2 => '',
3 => '',
4 => 'color: #0000FF;',
5 => '',
6 => '',
7 => '',
8 => '',
9 => 'color: #FF6600;',
)
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
// Highlight Key Delimiters
0 => array(
GESHI_SEARCH => '((^|\\n)\\s*)(\\\\\\[(.*)\\\\\\])(\\s*(\\n|$))',
GESHI_REPLACE => '\\3',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '\\1',
GESHI_AFTER => '\\5',
GESHI_CLASS => 'kw1'
),
// Highlight File Format Header Version 5
1 => array(
GESHI_SEARCH => '((\\n|^)\\s*)(Windows Registry Editor Version [0-9]+(.)+([0-9]+))((\\n|$)\\s*)',
GESHI_REPLACE => '\\3',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '\\1',
GESHI_AFTER => '\\6',
GESHI_CLASS => 'geshi_registry_header'
),
// Highlight File Format Header Version 4
2 => array(
GESHI_SEARCH => '((\\n|^)\\s*)(REGEDIT [0-9]+)(\\s*(\\n|$))',
GESHI_REPLACE => '\\3',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '\\1',
GESHI_AFTER => '\\4',
GESHI_CLASS => 'geshi_registry_header'
),
// Highlight dword: 32 bit integer values
3 => array(
GESHI_SEARCH => '(=\\s*)(dword:[0-9]{8})(\\s*(\\n|$))',
GESHI_REPLACE => '\\2',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '\\1',
GESHI_AFTER => '\\3',
GESHI_CLASS => 'kw2'
),
// Highlight variable names
4 => array(
GESHI_SEARCH => '((\\n|^)\\s*\\&quot\\;)(.*)(\\&quot\\;\\s*=)',
GESHI_REPLACE => '\\3',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '\\1',
GESHI_AFTER => '\\4',
GESHI_CLASS => 'geshi_variable'
),
// Highlight String Values
5 => array(
GESHI_SEARCH => '(=\\s*)(\\&quot\\;.*\\&quot\\;)(\\s*(\\n|$))',
GESHI_REPLACE => '\\2',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '\\1',
GESHI_AFTER => '\\3',
GESHI_CLASS => 'st0'
),
// Highlight Hexadecimal Values
6 => array(
GESHI_SEARCH => '(=\\s*)(hex((\\\\\\([0-9]{1,2}\\\\\\))|()):(([0-9a-fA-F]{2},)|(\\s))*(([0-9a-fA-F]{2})|(\\\\\\\\)))(\\s*(\\n|$))',
GESHI_REPLACE => '\\2',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '\\1',
GESHI_AFTER => '\\12',
GESHI_CLASS => 'kw2'
),
// Highlight Hexadecimal Values (Multi-Line)
7 => array(
GESHI_SEARCH => '((\\n|^)\\s*)((([0-9a-fA-F]{2},)|(\\s))*(([0-9a-fA-F]{2})|(\\\\\\\\)))',
GESHI_REPLACE => '\\3',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '\\1',
GESHI_AFTER => '\\10',
GESHI_CLASS => 'kw2'
),
// Highlight Default Variable
8 => array(
GESHI_SEARCH => '((\\n|^)\\s*)(@)(\\s*=)',
GESHI_REPLACE => '\\3',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '\\1',
GESHI_AFTER => '\\4',
GESHI_CLASS => 'geshi_variable'
),
// Highlight GUID's found anywhere.
9 => array(
GESHI_SEARCH => '(\\{[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}\\})',
GESHI_REPLACE => '\\1',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '',
GESHI_AFTER => '',
GESHI_CLASS => 'geshi_guid'
)
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
if (isset($this) && is_a($this, 'GeSHi')) {
$this->set_numbers_highlighting(false);
}
?>

View file

@ -0,0 +1,98 @@
<?php
/*************************************************************************************
* robots.php
* --------
* Author: Christian Lescuyer (cl@goelette.net)
* Copyright: (c) 2006 Christian Lescuyer http://xtian.goelette.info
* Release Version: 1.0.7.21
* Date Started: 2006/02/17
*
* robots.txt language file for GeSHi.
*
* 2006/02/17 (1.0.0)
* - First Release
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'robots.txt',
'COMMENT_SINGLE' => array(1 => '#'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array(),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
'User-agent', 'Disallow'
)
),
'SYMBOLS' => array(
':'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => 'http://www.robotstxt.org/wc/norobots.html'
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

Some files were not shown because too many files have changed in this diff Show more