Advertisement
drdanielfc

RobotC Highlighting

Oct 11th, 2013
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 17.22 KB | None | 0 0
  1. <?php
  2. /*************************************************************************************
  3.  * c.php
  4.  * -----
  5.  * Author: Nigel McNie (nigel@geshi.org)
  6.  * Contributors:
  7.  *  - Jack Lloyd (lloyd@randombit.net)
  8.  * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
  9.  * Release Version: 1.0.7.20
  10.  * Date Started: 2004/06/04
  11.  *
  12.  * C language file for GeSHi.
  13.  *
  14.  * CHANGES
  15.  * -------
  16.  * 2004/XX/XX (1.0.4)
  17.  *   -  Added a couple of new keywords (Jack Lloyd)
  18.  * 2004/11/27 (1.0.3)
  19.  *   -  Added support for multiple object splitters
  20.  * 2004/10/27 (1.0.2)
  21.  *   -  Added support for URLs
  22.  * 2004/08/05 (1.0.1)
  23.  *   -  Added support for symbols
  24.  * 2004/07/14 (1.0.0)
  25.  *   -  First Release
  26.  *
  27.  * TODO (updated 2004/11/27)
  28.  * -------------------------
  29.  *  -  Get a list of inbuilt functions to add (and explore C more
  30.  *     to complete this rather bare language file
  31.  *
  32.  *************************************************************************************
  33.  *
  34.  *     This file is part of GeSHi.
  35.  *
  36.  *   GeSHi is free software; you can redistribute it and/or modify
  37.  *   it under the terms of the GNU General Public License as published by
  38.  *   the Free Software Foundation; either version 2 of the License, or
  39.  *   (at your option) any later version.
  40.  *
  41.  *   GeSHi is distributed in the hope that it will be useful,
  42.  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  43.  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  44.  *   GNU General Public License for more details.
  45.  *
  46.  *   You should have received a copy of the GNU General Public License
  47.  *   along with GeSHi; if not, write to the Free Software
  48.  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  49.  *
  50.  ************************************************************************************/
  51.  
  52. $language_data = array (
  53.     'LANG_NAME' => 'robotc',
  54.     'COMMENT_SINGLE' => array(1 => '//'),
  55.     'COMMENT_MULTI' => array('/*' => '*/'),
  56.     'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  57.     'QUOTEMARKS' => array("'", '"'),
  58.     'ESCAPE_CHAR' => '\\',
  59.     'KEYWORDS' => array(
  60.         1 => array(
  61.                 'for', 'if', 'else', 'while', 'case', 'default', 'do', 'switch', 'deprecated', 'autorun', 'bool', 'int',
  62.                 'short', 'long', 'float', 'char', 'double', 'void', 'string', 'noinit', 'false', 'true', 'extern', 'static',
  63.                 'inline', 'const', 'compileConst', 'unsigned', 'signed', 'volatile', 'static', 'intrinsic', 'rom', 'typedef',
  64.                 'struct', 'enum', 'union', 'class', 'this', 'try', 'new', 'main', 'typeid', 'register', 'inline', 'intrinsic',
  65.                 'sizeof', 'continue', 'break', 'return', 'goto', '#include', '#ifdef', '#ifndef', '#if', '#else', '#elif',
  66.                 '#endif', '#define', '#undef', '#pragma', '#warning', '#warn', '#error', 'byte', 'asm', 'word', 'taskNameConstant',
  67.                 'taskNameVariable', 'functionReturn', 'variable', 'variableRefByte', 'variableRefWord', 'variableRefLong',
  68.                 'variableRefFloat', 'variableRefString', 'variableRefFNExists', 'variableRefRAM', 'variableRefPointer', 'varArgList',
  69.                 'startTask', 'StartTask', 'StopTask', 'validNxtFileName', 'filenameExists', 'voidPtr', 'stringConstant', 'byteArray',
  70.                 'function', 'shortVariable', 'variableIndex', 'program', 'task', 'thread', 'monitor', 'acquire', 'catch',
  71.                 'start', 'sub', 'stop', 'repeat', 'loop', 'StartTask', 'StopTask'
  72.             ),
  73.         2 => array(
  74.             'motor', 'wait1Msec', 'wait10Msec', 'alive', 'powerOff', 'bNoPowerDownOnACAdaptor',
  75.             'bNxtRechargable', 'LowVoltageBatteryCountLimits', 'nAvgBatteryLevel', 'nImmediateBatteryLevel',
  76.             'externalBattery', 'externalBatteryAvg', 'nPowerDownDelayMinutes ', 'nPowerDownDelayMinutesDefault',
  77.             'btConnect', 'btDisconnect', 'btFactoryReset', 'btRemoveDevice', 'btRequestLinkQuality', 'btSearch',
  78.             'cCmdBTCheckStatus', 'cCmdBTPurgeRcvBuffer', 'cCmdMessageAddToQueue', 'cCmdMessageGetSize',
  79.             'cCmdMessageRead', 'cCmdMessageWriteToBluetooth', 'cCmdMessageWriteToBluetooth', 'getDefaultPIN',
  80.             'getSessionPIN', 'nxtReadRawBluetooth', 'nxtWriteRawBluetooth', 'resetSessionPIN', 'setBluetoothOff',
  81.             'setBluetoothOn', 'setBluetoothRawDataMode', 'setBluetoothVisibility', 'setDefaultPIN', 'setFriendlyName',
  82.             'setSessionPIN', 'transferFile', 'bBTBusy', 'bBTDebugTrace', 'bBTHasProgressSounds', 'bBTRawMode',
  83.             'bBTSkipPswdPrompt', 'bBTVisble', 'nBluetoothCmdStatus', 'nBTCurrentStreamIndex', 'nLastBTCommand',
  84.             'btDisconnectAll', 'btStopSearch', 'nBTCurrentStreamIndex', 'ubyte', 'TMailboxIDs', 'TFileIOResult',
  85.             'nxtDisplayCenteredBigTextLine', 'eraseDisplay', 'nNxtButtonPressed', 'nNxtButtonTask', 'nNxtExitClicks',
  86.             'writeDebugStream', 'writeDebugStreamLine', 'bNxtLCDStatusDisplay', 'eraseDisplay', 'nxtClearPixel',
  87.             'nxtDisplayBigStringAt', 'nxtDisplayBigTextLine', 'nxtDisplayCenteredBigTextLine', 'nxtDisplayCenteredTextLine',
  88.             'nxtDisplayClearTextLine', 'nxtDisplayRICFile', 'nxtDisplayString', 'nxtDisplayStringAt', 'nxtDisplayTextLine',
  89.             'nxtDrawCircle', 'nxtDrawEllipse', 'nxtDrawLine', 'nxtDrawRect', 'nxtEraseEllipse', 'nxtEraseLine', 'nxtEraseRect',
  90.             'nxtFillEllipse', 'nxtFillRect', 'nxtInvertLine', 'nxtScrollText', 'nxtSetPixel', 'Close', 'Delete',
  91.             'FindFirstFile', 'FindNextFile', 'OpenRead', 'OpenWrite', 'ReadByte', 'ReadFloat', 'ReadLong', 'ReadShort',        
  92.             'Rename', 'WriteByte', 'WriteFloat', 'WriteLong', 'WriteShort', 'WriteString', 'WriteText', 'nAvailFlash',
  93.             'TFileHandle', 'AddToDatalog', 'bHideDataFiles ',  'nDatalogSize', 'nMaxDataFiles', 'nMaxDataFileSize',
  94.             'nUsedDatalogBytes', 'SaveNxtDatalog', 'SensorValue', 'cos', 'sin', 'tan', 'acos', 'asin', 'atan', 'cosDegrees',
  95.             'sinDegrees', 'tanDegrees', 'degreesToRadians', 'radiansToDegrees', 'abs', 'ceil', 'floor', 'exp', 'pow', 'sgn',
  96.             'sqrt', 'log', 'log10', 'message', 'messageParm', 'sendMessage', 'sendMessageWithParm', 'messageParm',
  97.             'memcpy', 'memset', 'version', 'PI', 'bFloatDuringInactiveMotorPWM', 'bMotorReflected', 'nMaxRegulatedSpeedNXT',
  98.             'nMaxRegulatedSpeed12V', 'nMotorEncoderTarget', 'nMotorEncoder', 'nMotorPIDSpeedCtrl', 'nMotorRunState',
  99.             'nPidUpdateInterval', 'nSyncedMotors', 'nSyncedTurnRatio', 'servo', 'servoChangeRate', 'servoMaxPos',
  100.             'servoMinPos', 'servoTarget', 'ServoType', 'ServoValue', 'getJoystickSettings', 'SensorRaw', 'SensorType',
  101.             'readI2CReply', 'sendI2CMsg', 'nI2CBytesReady', 'nI2CRetries', 'nI2CStatus', 'TI2CStatus', 'ClearSounds',
  102.             'MuteSound', 'PlayImmediateTone', 'PlaySound', 'PlaySoundFile', 'PlayTone', 'UnmuteSound', 'bPlaySounds',
  103.             'bSoundActive', 'bSoundQueueAvailable', 'nVolume', 'TSounds', 'strcat', 'strcmp', 'strcpy', 'StringDelete',
  104.             'StringFind', 'StringFormat', 'StringFromChars', 'strncat', 'strncmp', 'AbortTimeslice', 'hogCPU',
  105.             'kDefaultTaskPriority', 'kLowPriority', 'kHighPriority', 'nSchedulePriority', 'releaseCPU', 'StopAllTasks',
  106.             'ClearTimer', 'time1', 'time10', 'time100', 'nSysTime', 'nPgmTime', 'nClockMinutes', 'TTimers', 'robotType',
  107.             'tRobotType', 'tDirections', 'tNxtButtons', 'startMotor', 'stopMotor', 'wait', 'waitInMilliseconds',
  108.             'untilTouch', 'untilRelease', 'untilBump', 'untilSonarLessThan', 'untilSonarGreaterThan', 'untilButtonPress',
  109.             'untilDark', 'untilLight', 'untilSoundGreaterThan', 'untilSoundLessThan', 'untilRotations', 'untilEncoderCounts',
  110.             'forward', 'backward', 'swingTurn', 'pointTurn', 'stop', 'lineTrackForTime', 'lineTrackForRotations',
  111.             'tankControl', 'arcadeControl', 'moveStraightForRotations', 'moveStraightForTime', 'clearLCDLine',
  112.             'displayLCDCenteredString', 'displayLCDChar', 'displayLCDNumber', 'displayLCDPos', 'displayLCDString',
  113.             'displayNextLCDChar', 'displayNextLCDNumber', 'displayNextLCDString', 'setLCDPosition', 'bIfiAutonomousMode',
  114.             'bIfiAutonomousMode', 'nVEXDurationAutonomous', 'nVEXDurationUserControl', 'nVexRCReceiveState',
  115.             'bVexBlackEye', 'nVexMasterVersion', 'vexRT', 'TVexReceiverState', 'nVexRCReceiveState', 'bVEXNETActive',
  116.             'nIfiSPIMsgCounts', 'TUARTs', 'getChar', 'sendChar', 'setBaudRate', 'setServo', 'untilPotentiometerGreaterThan',
  117.             'untilPotentiometerLessThan', 'turnLEDOn', 'turnLEDOff', 'turnFlashlightOn', 'turnFlashlightOff',
  118.             'getEncoderForMotor', 'mapEncoderToMotor', 'motorType', 'memmove', 'memcmp', 'SensorBoolean',
  119.             'bFloatConversionErrors', 'getAvailSpaceInDebugStream', 'atoi', 'atof', 'getPCJoystickSettings',
  120.             'configureSerialPort', 'bXmitComplete', 'TPCJoystick', 'rand', 'randLong', 'random', 'srand', 'BackupBatteryLevel',
  121.             'moveMotorToPosition','driveStraight','driveSynchronized','stopDriveSynchronized','slaveMotor','driveStraightToPosition',
  122.             'driveSynchronizedToPosition','moveMotorToPosition','driveStraight','driveSynchronized','stopDriveSynchronized','slaveMotor',
  123.             'driveStraightToPosition','driveSynchronizedToPosition'
  124.             ),
  125.         3 => array(
  126.         'mailbox1', 'mailbox2', 'mailbox3', 'mailbox4', 'mailbox5', 'mailbox6', 'mailbox7', 'mailbox8', 'mailbox9',
  127.         'mailbox10', 'mailbox11', 'mailbox12', 'mailbox13', 'mailbox14', 'mailbox15', 'mailbox16', 'mailbox17',
  128.         'mailbox18', 'mailbox19', 'mailbox20', 'mtrNoReg', 'mtrSpeedReg', 'mtrSyncRegMaster', 'mtrSyncRegSlave',
  129.         'mtrEncoderReg', 'mtr_S1_C1_1', 'mtr_S1_C1_2', 'mtr_S1_C2_1', 'mtr_S1_C2_2', 'mtr_S1_C3_1', 'mtr_S1_C3_2',
  130.         'mtr_S1_C4_1', 'mtr_S1_C4_2', 'mtr_S2_C1_1', 'mtr_S2_C1_2', 'mtr_S2_C2_1', 'mtr_S2_C2_2', 'mtr_S2_C3_1',
  131.         'mtr_S2_C3_2', 'mtr_S2_C4_1', 'mtr_S2_C4_2', 'mtr_S3_C1_1', 'mtr_S3_C1_2', 'mtr_S3_C2_1', 'mtr_S3_C2_2',
  132.         'mtr_S3_C3_1', 'mtr_S3_C3_2', 'mtr_S3_C4_1', 'mtr_S3_C4_2', 'mtr_S4_C1_1', 'mtr_S4_C1_2', 'mtr_S4_C2_1',
  133.         'mtr_S4_C2_2', 'mtr_S4_C3_1', 'mtr_S4_C3_2', 'mtr_S4_C4_1', 'mtr_S4_C4_2', 'motorA', 'motorB', 'motorC',
  134.         'runStateIdle', 'runStateRampUp', 'runStateRunning', 'runStateRampDown', 'runStateHoldPosition',
  135.         'synchNone', 'synchAB', 'synchAC', 'synchBA', 'synchBC', 'synchCA', 'synchCB', 'kButtonNone', 'kButtonLeft',
  136.         'kButtonCenter', 'kButtonRight', 'kButtonExit', 'motorD', 'motorE', 'motorF', 'motorG', 'servo1', 'servo2', 'servo3', 'servo4', 'servo5', 'servo6',
  137.         'soundBlip', 'soundBeepBeep', 'soundDownwardTones', 'soundUpwardTones', 'soundLowBuzz', 'soundFastUpwardTones',
  138.         'soundShortBlip', 'soundException', 'soundLowBuzzShort', 'T1', 'T2', 'T3', 'T4', 'none', 'rembot', 'cancelBtnNXT',
  139.         'rightBtnNXT', 'leftBtnNXT', 'centerBtnNXT', 'ioRsltSuccess', 'ioRsltInProgress',
  140.         'ioRsltReqPIN', 'ioRsltNoMoreHandles', 'ioRsltNoSpace', 'ioRsltNoMoreFiles', 'ioRsltEofExpected',
  141.         'ioRsltEndOfFile', 'ioRsltNotLinearFile', 'ioRsltFileNotFound', 'ioRsltHandleAlreadyClosed', 'ioRsltNoLinearSpace',
  142.         'ioRsltUndefinedError', 'ioRsltFileIsBusy', 'ioRsltNoWriteBuffers', 'ioRsltAppendNotPossible', 'ioRsltFileIsFull',
  143.         'ioRsltFileExists', 'ioRsltModuleNotFound', 'ioRsltOutOfBoundery', 'ioRsltIllegalFilename', 'ioRsltIllegalHandle',
  144.         'ioRsltBTBusy', 'ioRsltBTConnectFail', 'ioRsltBTTimeout', 'ioRsltFileTxTimeout', 'ioRsltFileTxDSTExists',
  145.         'ioRsltFileTxSRCMissing', 'ioRsltFileTxStreamError', 'ioRsltFileTxCloseError', 'ioRsltCommChannelBusError',
  146.         'ioRsltCommBufferFull', 'ioRsltCommChannelBad', 'ioRsltCommChannelNotReady', 'define ERR_COMM_BUS_ERR',
  147.         'ERR_COMM_BUFFER_FULL', 'ERR_COMM_CHAN_INVALID', 'ERR_COMM_CHAN_NOT_READY', 'ERR_INVALID_PORT', 'ERR_INVALID_FIELD',
  148.         'ERR_INVALID_QUEUE', 'ERR_INVALID_SIZE', 'ioRsltCommPending', 'ioRsltEmptyMailbox', 'ioRsltBadArgs', 'kNoButton',
  149.         'kExitButton', 'kRightButton', 'kLeftButton', 'kEnterButton', 'SENDFILE', 'SENDFILE', 'SEARCH', 'STOPSEARCH',
  150.         'CONNECT', 'DISCONNECT', 'DISCONNECTALL', 'REMOVEDEVICE', 'VISIBILITY', 'SETCMDMODE', 'OPENSTREAM',
  151.         'SENDDATA', 'FACTORYRESET', 'BTON', 'BTOFF', 'SETBTNAME', 'EXTREAD', 'PinReq', 'CONNECTREQ', 'IDLE',
  152.         'LinkQualityReq', 'opSetRawDataMode', 'opSetDefaultPIN', 'opGetDefaultPIN', 'opSetSessionPIN',
  153.         'opGetSessionPIN', 'opResetSessionPIN', 'opGetFriendlyName', 'opGetBTAddress', 'opGetMyContactInfo',
  154.         'vrNoXmiters','Ch1', 'Ch2', 'Ch3', 'Ch4', 'Btn5U', 'Btn5D', 'Btn6U', 'Btn6D', 'Btn7U', 'Btn7D',
  155.         'Btn7L', 'Btn7R', 'Btn8U', 'Btn8D', 'Btn8L', 'Btn8R', 'Ch1Xmtr2', 'Ch2Xmtr2', 'Ch3Xmtr2',
  156.         'Ch4Xmtr2', 'Btn5UXmtr2', 'Btn5DXmtr2', 'Btn6UXmtr2', 'Btn6DXmtr2', 'Btn7UXmtr2', 'Btn7DXmtr2',
  157.         'Btn7LXmtr2', 'Btn7RXmtr2', 'Btn8UXmtr2', 'Btn8DXmtr2', 'Btn8LXmtr2', 'Btn8RXmtr2', 'AccelX',
  158.         'AccelY', 'AccelZ', 'AccelXXmtr2', 'AccelYXmtr2', 'AccelZXmtr2', 'port1', 'port2', 'port3', 'port4',
  159.         'port5', 'port6', 'port7', 'port8', 'port9', 'port10', 'Ch5', 'Ch6', 'Ch5Xmtr2', 'Ch6Xmtr2',
  160.         'sensorNone', 'sensorRawValue', 'sensorTouch', 'sensorTemperature', 'sensorReflection', 'sensorRotation', 'sensorLightActive',
  161.         'sensorLightInactive', 'sensorSoundDB', 'sensorSoundDBA', 'sensorCustom', 'sensorI2CCustom', 'sensorI2CCustom9V',
  162.         'sensorHighSpeed', 'sensorCOLORFULL', 'sensorCOLORRED', 'sensorCOLORGREEN', 'sensorCOLORBLUE', 'sensorCOLORNONE',
  163.         'sensorCOLOREXIT', 'sensorI2CCustomFast', 'sensorI2CCustomFast9V', 'sensorI2CCustomFastSkipStates9V', 'sensorI2CCustomFastSkipStates',
  164.         'sensorActiveRawValue', 'sensorAnalogActive', 'sensorAnalogInactive', 'sensorI2CMuxController', 'sensorI2CMuxControllerFast',
  165.         'sensorI2CHiTechnicColor', 'sensorI2CHiTechnicGyro', 'sensorI2CHiTechnicAccel', 'sensorI2CHiTechnicCompass', 'sensorHiTechnicTouchMux',
  166.         'sensorI2CMindsensorsCompass', 'sensorI2CMindsensorsAccel', 'sensorI2CMindsensorsDist', 'sensorI2CodatexRFID', 'sensorHiTechnicIRSeeker600',
  167.         'sensorHiTechnicIRSeeker1200', 'sensorI2CMindsensorsLineFollow', 'sensorSONAR', 'sensorSONAR9V', 'sensorI2CLegoTempC', 'sensorI2CLegoTempF',
  168.         'sensorHiTechnicMagnetic', 'sensorDigitalIn', 'sensorGyro', 'sensorAccelerometer', 'sensorQuadEncoder', 'sensorPotentiometer',
  169.         'sensorLineFollower', 'sensorDigitalOut', 'sensorSONAR_TwoPins_cm', 'sensorSONAR_TwoPins_inch', 'sensorSONAR_TwoPins_mm', 'sensorSONAR_TwoPins_raw',
  170.         'sensorSONAR_TwoPins_SecondPort', 'sensorMotorPWMCtrlPin', 'sensorMotorDirCtrlPin', 'sensorServoCtrlPin', 'sensorUARTCtrlPin', 'sensorI2CCtrlPin',
  171.         'sensorSPICtrlPin', 'sensorAudioSpeaker', 'sensorInternalButton', 'sensorStatusLED', 'sensorBatteryMonitor', 'sensorQuadEncoderOnI2CPort',
  172.         'sensorLineFollowArrayOnI2CPort', 'sensorCustomDaisyChainedI2C', 'sensorSpare2OnI2CPort', 'sensorSpare3OnI2CPort', 'sensorSpare4OnI2CPort',
  173.         'sensorVirtualCompass', 'sensorLEDtoVCC', 'sensorDigitalHighImpedance', 'sensorSONAR_Ping_cm', 'sensorSONAR_Ping_inch', 'sensorSONAR_Ping_mm',
  174.         'sensorSONAR_Ping_raw', 'sensorQuadEncoderSecondPort', 'S1', 'S2', 'S3', 'S4', 'in1', 'in2', 'in3', 'in4', 'in5', 'in6', 'in7', 'in8', 'in9',
  175.         'in10', 'in11', 'in12', 'in13', 'in14', 'in15', 'in16', 'dgtl1', 'dgtl2', 'dgtl3', 'dgtl4', 'dgtl5', 'dgtl6', 'dgtl7', 'dgtl8', 'dgtl9',
  176.         'dgtl10', 'dgtl11', 'dgtl12', 'I2C_1', 'I2C_2', 'I2C_3', 'I2C_4', 'I2C_5', 'I2C_6', 'I2C_7', 'I2C_8',
  177.         'centerBtnVEX', 'rightBtnVEX', 'leftBtnVEX', 'baudRate1200', 'baudRate2400', 'baudRate4800', 'baudRate9600', 'baudRate14400', 'baudRate19200',
  178.         'baudRate28800', 'baudRate38400', 'baudRate57600', 'baudRate76800', 'baudRate100000', 'baudRate115200', 'baudRate200000', 'baudRate230400',
  179.         'baudRate250000', 'baudRateUndefined', 'uartOne', 'uartTwo', 'uartThree', 'tmotorNone', 'tmotorNormal', 'tmotorAudio', 'tmotorServoStandard',
  180.         'tmotorServoContinuousRotation', 'tmotorHBridgeSinglePWM', 'tmotorHBridgeDualPWM', 'tmotorVexFlashlight', 'tmotorVex269', 'tmotorVex393',
  181.         'tmotorVex393HighSpeed', 'squarebot', 'recbot', 'swervebot','motorPWMLevel','mtrPid_Period','mtrPid_kP','mtrPid_kI','mtrPid_kD','mtrPid_Deadband',
  182.         'mtrPid_PowerLimit','mtrPid_SlewUp','mtrPid_SlewDown','mtrPid_Slop','mtrPid_PowerSlew','mtrPid_ErrorP','mtrPid_ErrorI','mtrPid_ErrorD','mtrPid_SyncErr',
  183.         'mtrPid_DriveStraightErr'
  184.         ),
  185.         4 => array(
  186.            
  187.             ),
  188.         ),
  189.     'SYMBOLS' => array(
  190.                         ':', ';', ',', '=', '+=', '-=', '*=', '/=', '%=', '==', '!=', '^=', '&=', '|=', '<>', '>',
  191.                         '>=', '<', '<=', '(', ')', '{', '}', '[', ']', '+', '-', '*', '/', '%', '?', '~', '!', '^',
  192.                         '|', '||', '&', '&&', '++', '--', '<<', '>>', '::', "'", '"'
  193.                         ),
  194.     'CASE_SENSITIVE' => array(
  195.         GESHI_COMMENTS => true,
  196.         1 => false,
  197.         2 => false,
  198.         3 => false,
  199.         4 => false,
  200.         ),
  201.     'STYLES' => array(
  202.         'KEYWORDS' => array(
  203.             1 => 'color: #0000ff; font-weight: bold; font-style: italic;',  // royal blue bold italic
  204.             2 => 'color: #0000b3; font-weight: bold;',                      // navy blue bold
  205.             3 => 'color: #8b0000; font-weight: normal;',                    // dark-red
  206.             4 => 'color: #0000b3; font-weight: normal; font-style: italic;' // dark blue italic
  207.             ),
  208.         'COMMENTS' => array(
  209.             1 => 'color: #008000;',
  210.             'MULTI' => 'color: #008000;'
  211.             ),
  212.         'ESCAPE_CHAR' => array(
  213.             0 => 'color: #ff0000;'
  214.             ),
  215.         'BRACKETS' => array(
  216.             0 => 'color: #ff0000;'
  217.             ),
  218.         'STRINGS' => array(
  219.             0 => 'color: #8b0000;'
  220.             ),
  221.         'QUOTEMARKS' => array(
  222.             0 => 'color: $ff0000;'
  223.             ),
  224.         'NUMBERS' => array(
  225.             0 => 'color: #8b0000;'
  226.             ),
  227.         'METHODS' => array(
  228.             1 => 'color: #00008b; font-weight: bold;',
  229.             2 => 'color: #00008b; font-weight: bold;'
  230.             ),
  231.         'SYMBOLS' => array(
  232.             0 => 'color: #ff0000;'
  233.             ),
  234.         'REGEXPS' => array(
  235.             ),
  236.         'SCRIPT' => array(
  237.             )
  238.         ),
  239.     'URLS' => array(
  240.         1 => '',
  241.         2 => '',
  242.         3 => 'http://www.opengroup.org/onlinepubs/009695399/functions/{FNAME}.html',
  243.         4 => ''
  244.         ),
  245.     'OOLANG' => true,
  246.     'OBJECT_SPLITTERS' => array(
  247.         1 => '.',
  248.         2 => '::'
  249.         ),
  250.     'REGEXPS' => array(
  251.         ),
  252.     'STRICT_MODE_APPLIES' => GESHI_NEVER,
  253.     'SCRIPT_DELIMITERS' => array(
  254.         ),
  255.     'HIGHLIGHT_STRICT_BLOCK' => array(
  256.         ),
  257.     'TAB_WIDTH' => 2
  258. );
  259.  
  260. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement