00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046 $language_data = array (
00047 'LANG_NAME' => 'Delphi',
00048 'COMMENT_SINGLE' => array(1 => '//'),
00049 'COMMENT_MULTI' => array('(*' => '*)', '{' => '}'),
00050 'CASE_KEYWORDS' => 0,
00051 'QUOTEMARKS' => array("'", '"'),
00052 'ESCAPE_CHAR' => '',
00053 'KEYWORDS' => array(
00054 1 => array(
00055 'Abstract', 'And', 'Array', 'As', 'Asm', 'At', 'Begin', 'Case', 'Class',
00056 'Const', 'Constructor', 'Contains', 'Destructor', 'DispInterface', 'Div',
00057 'Do', 'DownTo', 'Else', 'End', 'Except', 'File', 'Finalization',
00058 'Finally', 'For', 'Function', 'Goto', 'If', 'Implementation', 'In',
00059 'Inherited', 'Initialization', 'Inline', 'Interface', 'Is', 'Label',
00060 'Mod', 'Not', 'Object', 'Of', 'On', 'Or', 'Overload', 'Override',
00061 'Package', 'Packed', 'Private', 'Procedure', 'Program', 'Property',
00062 'Protected', 'Public', 'Published', 'Raise', 'Record', 'Repeat',
00063 'Requires', 'Resourcestring', 'Set', 'Shl', 'Shr', 'Then', 'ThreadVar',
00064 'To', 'Try', 'Type', 'Unit', 'Until', 'Uses', 'Var', 'Virtual', 'While',
00065 'With', 'Xor', 'assembler', 'cdecl', 'far', 'near', 'pascal', 'register',
00066 'safecall', 'stdcall', 'varargs'
00067 ),
00068 2 => array(
00069 'nil', 'false', 'self', 'true', 'var', 'type', 'const'
00070 ),
00071 3 => array(
00072 'Abs', 'AcquireExceptionObject', 'Addr', 'AnsiToUtf8', 'Append', 'ArcTan',
00073 'Assert', 'AssignFile', 'Assigned', 'BeginThread', 'BlockRead',
00074 'BlockWrite', 'Break', 'ChDir', 'Chr', 'Close', 'CloseFile',
00075 'CompToCurrency', 'CompToDouble', 'Concat', 'Continue', 'Copy', 'Cos',
00076 'Dec', 'Delete', 'Dispose', 'DoubleToComp', 'EndThread', 'EnumModules',
00077 'EnumResourceModules', 'Eof', 'Eoln', 'Erase', 'ExceptAddr',
00078 'ExceptObject', 'Exclude', 'Exit', 'Exp', 'FilePos', 'FileSize',
00079 'FillChar', 'Finalize', 'FindClassHInstance', 'FindHInstance',
00080 'FindResourceHInstance', 'Flush', 'Frac', 'FreeMem', 'Get8087CW',
00081 'GetDir', 'GetLastError', 'GetMem', 'GetMemoryManager',
00082 'GetModuleFileName', 'GetVariantManager', 'Halt', 'Hi', 'High',
00083 'IOResult', 'Inc', 'Include', 'Initialize', 'Insert', 'Int',
00084 'IsMemoryManagerSet', 'IsVariantManagerSet', 'Length', 'Ln', 'Lo', 'Low',
00085 'MkDir', 'Move', 'New', 'Odd', 'OleStrToStrVar', 'OleStrToString', 'Ord',
00086 'PUCS4Chars', 'ParamCount', 'ParamStr', 'Pi', 'Pos', 'Pred', 'Ptr',
00087 'Random', 'Randomize', 'Read', 'ReadLn', 'ReallocMem',
00088 'ReleaseExceptionObject', 'Rename', 'Reset', 'Rewrite', 'RmDir', 'Round',
00089 'RunError', 'Seek', 'SeekEof', 'SeekEoln', 'Set8087CW', 'SetLength',
00090 'SetLineBreakStyle', 'SetMemoryManager', 'SetString', 'SetTextBuf',
00091 'SetVariantManager', 'Sin', 'SizeOf', 'Slice', 'Sqr', 'Sqrt', 'Str',
00092 'StringOfChar', 'StringToOleStr', 'StringToWideChar', 'Succ', 'Swap',
00093 'Trunc', 'Truncate', 'TypeInfo', 'UCS4StringToWideString', 'UTF8Decode',
00094 'UTF8Encode', 'UnicodeToUtf8', 'UniqueString', 'UpCase', 'Utf8ToAnsi',
00095 'Utf8ToUnicode', 'Val', 'VarArrayRedim', 'VarClear',
00096 'WideCharLenToStrVar', 'WideCharLenToString', 'WideCharToStrVar',
00097 'WideCharToString', 'WideStringToUCS4String', 'Write', 'WriteLn',
00098
00099 'Abort', 'AddExitProc', 'AddTerminateProc', 'AdjustLineBreaks', 'AllocMem',
00100 'AnsiCompareFileName', 'AnsiCompareStr', 'AnsiCompareText',
00101 'AnsiDequotedStr', 'AnsiExtractQuotedStr', 'AnsiLastChar',
00102 'AnsiLowerCase', 'AnsiLowerCaseFileName', 'AnsiPos', 'AnsiQuotedStr',
00103 'AnsiSameStr', 'AnsiSameText', 'AnsiStrComp', 'AnsiStrIComp',
00104 'AnsiStrLComp', 'AnsiStrLIComp', 'AnsiStrLastChar', 'AnsiStrLower',
00105 'AnsiStrPos', 'AnsiStrRScan', 'AnsiStrScan', 'AnsiStrUpper',
00106 'AnsiUpperCase', 'AnsiUpperCaseFileName', 'AppendStr', 'AssignStr',
00107 'Beep', 'BoolToStr', 'ByteToCharIndex', 'ByteToCharLen', 'ByteType',
00108 'CallTerminateProcs', 'ChangeFileExt', 'CharLength', 'CharToByteIndex',
00109 'CharToByteLen', 'CompareMem', 'CompareStr', 'CompareText', 'CreateDir',
00110 'CreateGUID', 'CurrToStr', 'CurrToStrF', 'CurrentYear', 'Date',
00111 'DateTimeToFileDate', 'DateTimeToStr', 'DateTimeToString',
00112 'DateTimeToSystemTime', 'DateTimeToTimeStamp', 'DateToStr', 'DayOfWeek',
00113 'DecodeDate', 'DecodeDateFully', 'DecodeTime', 'DeleteFile',
00114 'DirectoryExists', 'DiskFree', 'DiskSize', 'DisposeStr', 'EncodeDate',
00115 'EncodeTime', 'ExceptionErrorMessage', 'ExcludeTrailingBackslash',
00116 'ExcludeTrailingPathDelimiter', 'ExpandFileName', 'ExpandFileNameCase',
00117 'ExpandUNCFileName', 'ExtractFileDir', 'ExtractFileDrive',
00118 'ExtractFileExt', 'ExtractFileName', 'ExtractFilePath',
00119 'ExtractRelativePath', 'ExtractShortPathName', 'FileAge', 'FileClose',
00120 'FileCreate', 'FileDateToDateTime', 'FileExists', 'FileGetAttr',
00121 'FileGetDate', 'FileIsReadOnly', 'FileOpen', 'FileRead', 'FileSearch',
00122 'FileSeek', 'FileSetAttr', 'FileSetDate', 'FileSetReadOnly', 'FileWrite',
00123 'FinalizePackage', 'FindClose', 'FindCmdLineSwitch', 'FindFirst',
00124 'FindNext', 'FloatToCurr', 'FloatToDateTime', 'FloatToDecimal',
00125 'FloatToStr', 'FloatToStrF', 'FloatToText', 'FloatToTextFmt',
00126 'FmtLoadStr', 'FmtStr', 'ForceDirectories', 'Format', 'FormatBuf',
00127 'FormatCurr', 'FormatDateTime', 'FormatFloat', 'FreeAndNil',
00128 'GUIDToString', 'GetCurrentDir', 'GetEnvironmentVariable',
00129 'GetFileVersion', 'GetFormatSettings', 'GetLocaleFormatSettings',
00130 'GetModuleName', 'GetPackageDescription', 'GetPackageInfo', 'GetTime',
00131 'IncAMonth', 'IncMonth', 'IncludeTrailingBackslash',
00132 'IncludeTrailingPathDelimiter', 'InitializePackage', 'IntToHex',
00133 'IntToStr', 'InterlockedDecrement', 'InterlockedExchange',
00134 'InterlockedExchangeAdd', 'InterlockedIncrement', 'IsDelimiter',
00135 'IsEqualGUID', 'IsLeapYear', 'IsPathDelimiter', 'IsValidIdent',
00136 'Languages', 'LastDelimiter', 'LoadPackage', 'LoadStr', 'LowerCase',
00137 'MSecsToTimeStamp', 'NewStr', 'NextCharIndex', 'Now', 'OutOfMemoryError',
00138 'QuotedStr', 'RaiseLastOSError', 'RaiseLastWin32Error', 'RemoveDir',
00139 'RenameFile', 'ReplaceDate', 'ReplaceTime', 'SafeLoadLibrary',
00140 'SameFileName', 'SameText', 'SetCurrentDir', 'ShowException', 'Sleep',
00141 'StrAlloc', 'StrBufSize', 'StrByteType', 'StrCat', 'StrCharLength',
00142 'StrComp', 'StrCopy', 'StrDispose', 'StrECopy', 'StrEnd', 'StrFmt',
00143 'StrIComp', 'StrLCat', 'StrLComp', 'StrLCopy', 'StrLFmt', 'StrLIComp',
00144 'StrLen', 'StrLower', 'StrMove', 'StrNew', 'StrNextChar', 'StrPCopy',
00145 'StrPLCopy', 'StrPas', 'StrPos', 'StrRScan', 'StrScan', 'StrToBool',
00146 'StrToBoolDef', 'StrToCurr', 'StrToCurrDef', 'StrToDate', 'StrToDateDef',
00147 'StrToDateTime', 'StrToDateTimeDef', 'StrToFloat', 'StrToFloatDef',
00148 'StrToInt', 'StrToInt64', 'StrToInt64Def', 'StrToIntDef', 'StrToTime',
00149 'StrToTimeDef', 'StrUpper', 'StringReplace', 'StringToGUID', 'Supports',
00150 'SysErrorMessage', 'SystemTimeToDateTime', 'TextToFloat', 'Time',
00151 'TimeStampToDateTime', 'TimeStampToMSecs', 'TimeToStr', 'Trim',
00152 'TrimLeft', 'TrimRight', 'TryEncodeDate', 'TryEncodeTime',
00153 'TryFloatToCurr', 'TryFloatToDateTime', 'TryStrToBool', 'TryStrToCurr',
00154 'TryStrToDate', 'TryStrToDateTime', 'TryStrToFloat', 'TryStrToInt',
00155 'TryStrToInt64', 'TryStrToTime', 'UnloadPackage', 'UpperCase',
00156 'WideCompareStr', 'WideCompareText', 'WideFmtStr', 'WideFormat',
00157 'WideFormatBuf', 'WideLowerCase', 'WideSameStr', 'WideSameText',
00158 'WideUpperCase', 'Win32Check', 'WrapText',
00159
00160 'ActivateClassGroup', 'AllocateHwnd', 'BinToHex', 'CheckSynchronize',
00161 'CollectionsEqual', 'CountGenerations', 'DeallocateHwnd', 'EqualRect',
00162 'ExtractStrings', 'FindClass', 'FindGlobalComponent', 'GetClass',
00163 'GroupDescendantsWith', 'HexToBin', 'IdentToInt',
00164 'InitInheritedComponent', 'IntToIdent', 'InvalidPoint',
00165 'IsUniqueGlobalComponentName', 'LineStart', 'ObjectBinaryToText',
00166 'ObjectResourceToText', 'ObjectTextToBinary', 'ObjectTextToResource',
00167 'PointsEqual', 'ReadComponentRes', 'ReadComponentResEx',
00168 'ReadComponentResFile', 'Rect', 'RegisterClass', 'RegisterClassAlias',
00169 'RegisterClasses', 'RegisterComponents', 'RegisterIntegerConsts',
00170 'RegisterNoIcon', 'RegisterNonActiveX', 'SmallPoint', 'StartClassGroup',
00171 'TestStreamFormat', 'UnregisterClass', 'UnregisterClasses',
00172 'UnregisterIntegerConsts', 'UnregisterModuleClasses',
00173 'WriteComponentResFile',
00174
00175 'ArcCos', 'ArcCosh', 'ArcCot', 'ArcCotH', 'ArcCsc', 'ArcCscH', 'ArcSec',
00176 'ArcSecH', 'ArcSin', 'ArcSinh', 'ArcTan2', 'ArcTanh', 'Ceil',
00177 'CompareValue', 'Cosecant', 'Cosh', 'Cot', 'CotH', 'Cotan', 'Csc', 'CscH',
00178 'CycleToDeg', 'CycleToGrad', 'CycleToRad', 'DegToCycle', 'DegToGrad',
00179 'DegToRad', 'DivMod', 'DoubleDecliningBalance', 'EnsureRange', 'Floor',
00180 'Frexp', 'FutureValue', 'GetExceptionMask', 'GetPrecisionMode',
00181 'GetRoundMode', 'GradToCycle', 'GradToDeg', 'GradToRad', 'Hypot',
00182 'InRange', 'IntPower', 'InterestPayment', 'InterestRate',
00183 'InternalRateOfReturn', 'IsInfinite', 'IsNan', 'IsZero', 'Ldexp', 'LnXP1',
00184 'Log10', 'Log2', 'LogN', 'Max', 'MaxIntValue', 'MaxValue', 'Mean',
00185 'MeanAndStdDev', 'Min', 'MinIntValue', 'MinValue', 'MomentSkewKurtosis',
00186 'NetPresentValue', 'Norm', 'NumberOfPeriods', 'Payment', 'PeriodPayment',
00187 'Poly', 'PopnStdDev', 'PopnVariance', 'Power', 'PresentValue',
00188 'RadToCycle', 'RadToDeg', 'RadToGrad', 'RandG', 'RandomRange', 'RoundTo',
00189 'SLNDepreciation', 'SYDDepreciation', 'SameValue', 'Sec', 'SecH',
00190 'Secant', 'SetExceptionMask', 'SetPrecisionMode', 'SetRoundMode', 'Sign',
00191 'SimpleRoundTo', 'SinCos', 'Sinh', 'StdDev', 'Sum', 'SumInt',
00192 'SumOfSquares', 'SumsAndSquares', 'Tan', 'Tanh', 'TotalVariance',
00193 'Variance'
00194 ),
00195 4 => array(
00196 'AnsiChar', 'AnsiString', 'Bool', 'Boolean', 'Byte', 'ByteBool', 'Cardinal', 'Char',
00197 'Comp', 'Currency', 'DWORD', 'Double', 'Extended', 'Int64', 'Integer', 'IUnknown',
00198 'LongBool', 'LongInt', 'LongWord', 'PAnsiChar', 'PAnsiString', 'PBool', 'PBoolean', 'PByte',
00199 'PByteArray', 'PCardinal', 'PChar', 'PComp', 'PCurrency', 'PDWORD', 'PDate', 'PDateTime',
00200 'PDouble', 'PExtended', 'PInt64', 'PInteger', 'PLongInt', 'PLongWord', 'Pointer', 'PPointer',
00201 'PShortInt', 'PShortString', 'PSingle', 'PSmallInt', 'PString', 'PHandle', 'PVariant', 'PWord',
00202 'PWordArray', 'PWordBool', 'PWideChar', 'PWideString', 'Real', 'Real48', 'ShortInt', 'ShortString',
00203 'Single', 'SmallInt', 'String', 'TClass', 'TDate', 'TDateTime', 'TextFile', 'THandle',
00204 'TObject', 'TTime', 'Variant', 'WideChar', 'WideString', 'Word', 'WordBool'
00205 ),
00206 ),
00207 'CASE_SENSITIVE' => array(
00208 GESHI_COMMENTS => true,
00209 1 => false,
00210 2 => false,
00211 3 => false,
00212 4 => false,
00213 ),
00214 'STYLES' => array(
00215 'KEYWORDS' => array(
00216 1 => 'color: #000000; font-weight: bold;',
00217 2 => 'color: #000000; font-weight: bold;',
00218 3 => 'color: #000066;',
00219 4 => 'color: #993333;'
00220 ),
00221 'COMMENTS' => array(
00222 1 => 'color: #808080; font-style: italic;',
00223 'MULTI' => 'color: #808080; font-style: italic;'
00224 ),
00225 'ESCAPE_CHAR' => array(
00226 ),
00227 'BRACKETS' => array(
00228 0 => 'color: #66cc66;'
00229 ),
00230 'STRINGS' => array(
00231 0 => 'color: #ff0000;'
00232 ),
00233 'NUMBERS' => array(
00234 0 => 'color: #cc66cc;'
00235 ),
00236 'METHODS' => array(
00237 1 => 'color: #006600;'
00238 ),
00239 'REGEXPS' => array(
00240 0 => 'color: #9ac;',
00241 1 => 'color: #ff0000;'
00242 ),
00243 'SYMBOLS' => array(
00244 0 => 'color: #66cc66;'
00245 ),
00246 'SCRIPT' => array(
00247 )
00248 ),
00249 'URLS' => array(
00250 1 => '',
00251 2 => '',
00252 3 => '',
00253 4 => ''
00254 ),
00255 'OOLANG' => true,
00256 'OBJECT_SPLITTERS' => array(
00257 1 => '.'
00258 ),
00259 'REGEXPS' => array(
00260 0 => '\$[0-9a-fA-F]+',
00261 1 => '\#\$?[0-9]{1,3}'
00262 ),
00263 'STRICT_MODE_APPLIES' => GESHI_NEVER,
00264 'SCRIPT_DELIMITERS' => array(
00265 ),
00266 'HIGHLIGHT_STRICT_BLOCK' => array(
00267 ),
00268 'TAB_WIDTH' => 2
00269 );
00270
00271 ?>