Adam Zaius
Deus
Join date: 9 Jan 2004
Posts: 1,483
|
01-18-2005 20:37
Naah, I'm using a LSL language extension on GeSHi I added. Geshi - geshi.sf.net Here's the code for the extension. <?php /************************************************************************************* * lsl.php * ----- * Author: Adam Frisby * Contributors: * - None * Copyright: (c) 2005 Adam Frisby (http://www.adamzaius.net) * Release Version: 1.0.0 * * LSL 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' => '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', 'default', 'do', 'else', 'for', 'jump','state','state_entry','state_exit','touch_start','touch','touch_end' ), 2 => array( 'NULL', 'false', 'break', 'true','NULL_KEY','ZERO_ROTATION','ZERO_VECTOR','ALL_SIDES' ), 3 => array( "llAbs","llAcos","llAddToLandPassList","llAdjustSoundVolume","llAllowInventoryDrop","llAngleBetween","llApplyImpulse","llApplyRotationalImpulse","llAsin","llAtan2","llAttachToAvatar","llAvatarOnSitTarget","llAxes2Rot","llAxisAngle2Rot","llBase64ToInteger","llBase64ToString","llBreakAllLinks","llBreakLink","llCSV2List","llCeil","llCloseRemoteDataChannel","llCloud","llCollisionFilter","llCollisionSound","llCollisionSprite","llCos","llCreateLink","llDeleteSubList","llDeleteSubString","llDetachFromAvatar","llDetectedGrab","llDetectedGroup","llDetectedKey","llDetectedLinkNumber","llDetectedName","llDetectedOwner","llDetectedPos","llDetectedRot","llDetectedType","llDetectedVel","llDialog","llDie","llDumpList2String","llEdgeOfWorld","llEjectFromLand","llEmail","llEuler2Rot","llFabs","llFloor","llFrand","llGetAccel","llGetAgentInfo","llGetAgentSize","llGetAlpha","llGetAndResetTime","llGetAnimation","llGetAnimationList","llGetAttached","llGetBoundingBox","llGetCenterOfMass","llGetCreator","llGetColor","llGetDate","llGetEnergy","llGetForce","llGetFreeMemory","llGetGeometricCenter","llGetGMTclock","llGetInventoryKey","llGetInventoryName","llGetInventoryNumber","llGetInventoryPermMask","llGetKey","llGetLandOwnerAt","llGetLinkKey","llGetLinkName","llGetLinkNumber","llGetListEntryType","llGetListLength","llGetLocalPos","llGetLocalRot","llGetMass","llGetNextEmail","llGetNotecardLine","llGetNumberOfNotecardLines","llGetNumberOfPrims","llGetNumberOfSides","llGetObjectDesc","llGetObjectName","llGetObjectPermMask","llGetOmega","llGetOwner","llGetOwnerKey","llGetPermissions","llGetPermissionsKey","llGetPos","llGetPrimitiveParams","llGetRegionCorner","llGetRegionFPS","llGetRegionName","llGetRegionTimeDilation","llGetRootPosition","llGetRootRotation","llGetRot","llGetScale","llGetScriptName","llGetScriptState","llGetSimulatorHostname","llGetStartParameter","llGetStatus","llGetSubString","llGetSunDirection","llGetTexture","llGetTextureOffset","llGetTextureRot","llGetTextureScale","llGetTime","llGetTimeOfDay","llGetTimestamp","llGetTorque","llGetVel","llGetWallclock","llGiveInventory","llGiveInventoryList","llGiveMoney","llGodLikeRezObject","llGround","llGroundContour","llGroundNormal","llGroundRepel","llGroundSlope","llInsertString","llInstantMessage","llIntegerToBase64","llKey2Name","llList2CSV","llList2Float","llList2Integer","llList2Key","llList2List","llList2ListStrided","llList2Rot","llList2String","llList2Vector","llListFindList","llListInsertList","llListRandomize","llListSort","llListen","llListenControl","llListenRemove","llLog","llLog10","llLookAt","llLoopSound","llLoopSoundMaster","llLoopSoundSlave","llMakeExplosionDeprecated.","llMakeFireDeprecated.","llMakeFountainDeprecated.","llMakeSmokeDeprecated.","llMD5String","llMessageLinked","llMinEventDelay","llModifyLand","llMoveToTarget","llOffsetTexture","llOpenRemoteDataChannel","llOverMyLand","llParseString2List","llParseStringKeepNulls","llParticleSystem","llPassCollisions","llPassTouches","llPlaySound","llPlaySoundSlave","llPointAt","llPow","llPreloadSound","llPushObject","llReleaseCamera","llReleaseControls","llRemoteDataReply","llRemoteDataSetRegion","llRemoteLoadScript","llRemoteLoadScriptPin","llRemoveInventory","llRemoveVehicleFlags","llRequestAgentData","llRequestInventoryData","llRequestPermissions","llResetOtherScript","llResetScript","llResetTime","llRezAtRoot","llRezObject","llRot2Angle","llRot2Axis","llRot2Euler","llRot2Fwd","llRot2Left","llRot2Up","llRotBetween","llRotLookAt","llRotTarget","llRotTargetRemove","llRotateTexture","llRound","llSameGroup","llSay","llScaleTexture","llScriptDanger","llSendRemoteData","llSensor","llSensorRemove","llSensorRepeat","llSetAlpha","llSetBuoyancy","llSetCameraAtOffset","llSetCameraEyeOffset","llSetColor","llSetDamage","llSetForce","llSetForceAndTorque","llSetHoverHeight","llSetInventoryPermMask","llSetLinkAlpha","llSetLinkColor","llSetLocalRot","llSetObjectDesc","llSetObjectName","llSetObjectPermMask","llSetParcelMusicURL","llSetPos","llSetPrimitiveParams","llSetRemoteScriptAccessPin","llSetRot","llSetScale","llSetScriptState","llSetSitText","llSetSoundQueueing","llSetSoundRadius","llSetStatus","llSetText","llSetTexture","llSetTextureAnim","llSetTimerEvent","llSetTorque","llSetTouchText","llSetVehicleFlags","llSetVehicleFloatParam","llSetVehicleRotationParam","llSetVehicleType","llSetVehicleVectorParam","llShout","llSin","llSitTarget","llSleep","llSoundDeprecated.","llSoundPreloadDeprecated.","llSqrt","llStartAnimation","llStopAnimation","llStopHover","llStopLookAt","llStopMoveToTarget","llStopPointAt","llStopSound","llStringLength","llStringToBase64","llSubStringIndex","llTakeCamera","llTakeControls","llTan","llTarget","llTargetOmega","llTargetRemove","llTeleportAgentHome","llToLower","llToUpper","llTriggerSound","llTriggerSoundLimited","llUnSit","llVecDist","llVecMag","llVecNorm","llVolumeDetect","llWater","llWhisper","llWind","llXorBase64Strings" ), 4 => array( 'string', 'integer', 'key', 'list', 'vector', 'rotation', 'float' ), ), 'SYMBOLS' => array( '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':' ), 'CASE_SENSITIVE' => array( GESHI_COMMENTS => true, 1 => true, 2 => true, 3 => true, 4 => true, ), 'STYLES' => array( 'KEYWORDS' => array( 1 => 'color: #0000FF;', 2 => 'color: #000080; font-weight: bold;', 3 => 'color: #800000;', //text-decoration: none; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: none; border-right-style: none; border-bottom-style: dashed; border-left-style: none; border-top-color: #000000; border-right-color: #000000; border-bottom-color: #000000; border-left-color: #000000;', 4 => 'color: #333399;' ), 'COMMENTS' => array( 1 => 'color: #339933; 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: #000000;' ), 'STRINGS' => array( 0 => 'color: #ff0000;' ), 'NUMBERS' => array( 0 => 'color: #FF00FF;' ), 'METHODS' => array( 1 => 'color: #202020;', 2 => 'color: #202020;' ), 'SYMBOLS' => array( 0 => 'color: #66cc66;' ), 'REGEXPS' => array( ), 'SCRIPT' => array( ) ), 'URLS' => array( 1 => '', 2 => '', 3 => 'http://secondlife.com/badgeo/wakka.php?wakka={FNAME}', 4 => '' ), 'OOLANG' => true, 'OBJECT_SPLITTERS' => array( 1 => '.' ), 'REGEXPS' => array( ), 'STRICT_MODE_APPLIES' => GESHI_NEVER, 'SCRIPT_DELIMITERS' => array( ), 'HIGHLIGHT_STRICT_BLOCK' => array( ) );
?>
|