2 $BEAUT_PATH = realpath(
".") .
"/Services/COPage/syntax_highlight/php";
6 require_once(
"$BEAUT_PATH/Beautifier/HFile.php");
24 $this->colours =
array(
"blue",
"purple",
"brown",
"gray",
"blue",
"purple");
25 $this->quotecolour =
"blue";
26 $this->blockcommentcolour =
"green";
27 $this->linecommentcolour =
"green";
31 $this->indent =
array();
32 $this->unindent =
array();
36 $this->stringchars =
array(
"\"");
37 $this->delimiters =
array(
"\"",
"#",
"~",
"!",
"@",
"%",
"^",
"&",
"*",
"(",
")",
"+",
"|",
"\\",
"{",
"}",
"[",
"]",
":",
";",
"<",
">",
" ",
",",
" ",
".");
42 $this->linecommenton =
array(
"");
43 $this->blockcommenton =
array(
"<!-");
44 $this->blockcommentoff =
array(
"-->");
48 $this->keywords =
array(
85 "<BLOCKQUOTE>" =>
"1",
87 "</BLOCKQUOTE>" =>
"1",
112 "</COLGROUP>" =>
"1",
147 "</FIELDSET>" =>
"1",
156 "</FRAMESET>" =>
"1",
223 "</MULTICOL>" =>
"1",
228 "</NOFRAMES>" =>
"1",
234 "</NOSCRIPT>" =>
"1",
245 "</OPTGROUP>" =>
"1",
306 "</TEXTAREA>" =>
"1",
340 "<CFAPPLICATION>" =>
"2",
341 "<CFAPPLICATION" =>
"2",
342 "<CFASSOCIATE>" =>
"2",
343 "<CFASSOCIATE" =>
"2",
344 "<CFAUTHENTICATE>" =>
"2",
345 "<CFAUTHENTICATE" =>
"2",
358 "<CFCOLLECTION>" =>
"2",
359 "<CFCOLLECTION" =>
"2",
360 "<CFCONTENT>" =>
"2",
364 "<CFDEFAULTCASE>" =>
"2",
365 "<CFDEFAULTCASE" =>
"2",
366 "<CFDIRECTORY>" =>
"2",
367 "<CFDIRECTORY" =>
"2",
388 "<CFGRIDCOLUMN>" =>
"2",
389 "<CFGRIDCOLUMN" =>
"2",
390 "<CFGRIDROW>" =>
"2",
392 "<CFGRIDUPDATE>" =>
"2",
393 "<CFGRIDUPDATE" =>
"2",
396 "<CFHTMLHEAD>" =>
"2",
397 "<CFHTMLHEAD" =>
"2",
401 "<CFHTTPPARAM>" =>
"2",
402 "<CFHTTPPARAM" =>
"2",
406 "<CFIMPERSONATE>" =>
"2",
407 "<CFIMPERSONATE" =>
"2",
408 "<CFINCLUDE>" =>
"2",
418 "<CFLOCATION>" =>
"2",
419 "<CFLOCATION" =>
"2",
427 "</CFMAIL><CFMAILPARAM>" =>
"2",
428 "<CFMAILPARAM" =>
"2",
435 "</CFOUTPUT>" =>
"2",
440 "<CFPROCESSINGDIRECTIVE>" =>
"2",
441 "<CFPROCESSINGDIRECTIVE" =>
"2",
442 "</CFPROCESSINGDIRECTIVE>" =>
"2",
443 "<CFPROCPARAM>" =>
"2",
444 "<CFPROCPARAM" =>
"2",
445 "<CFPROCRESULT>" =>
"2",
446 "<CFPROCRESULT" =>
"2",
450 "<CFQUERYPARAM>" =>
"2",
451 "<CFQUERYPARAM" =>
"2",
452 "<CFREGISTRY>" =>
"2",
453 "<CFREGISTRY" =>
"2",
456 "</CFREPORT>" =>
"2",
457 "<CFRETHROW>" =>
"2",
459 "<CFSCHEDULE>" =>
"2",
460 "<CFSCHEDULE" =>
"2",
463 "</CFSCRIPT>" =>
"2",
468 "</CFSELECT>" =>
"2",
469 "<CFSERVLET>" =>
"2",
471 "</CFSERVLET>" =>
"2",
472 "<CFSERVLETPARAM" =>
"2",
475 "<CFSETTING>" =>
"2",
481 "<CFSTOREDPROC>" =>
"2",
482 "<CFSTOREDPROC" =>
"2",
485 "</CFSWITCH>" =>
"2",
489 "<CFTEXTINPUT>" =>
"2",
490 "<CFTEXTINPUT" =>
"2",
493 "<CFTRANSACTION>" =>
"2",
494 "<CFTRANSACTION" =>
"2",
495 "</CFTRANSACTION>" =>
"2",
499 "<CFTREEITEM>" =>
"2",
500 "<CFTREEITEM" =>
"2",
513 "APPLETSOURCE=" =>
"3",
514 "APPLICATIONTIMEOUT=" =>
"3",
516 "ATTACHMENTPATH=" =>
"3",
518 "ATTRIBUTES=" =>
"3",
523 "BLOCKFACTOR=" =>
"3",
529 "CACHEDIRECTORY=" =>
"3",
530 "CATCHEXCEPTIONSBYPATTERN=" =>
"3",
537 "CLIENTCACHE=" =>
"3",
538 "CLIENTMANAGEMENT=" =>
"3",
540 "COLHEADERALIGN=" =>
"3",
541 "COLHEADERBOLD=" =>
"3",
542 "COLHEADERFONT=" =>
"3",
543 "COLHEADERFONTSIZE=" =>
"3",
544 "COLHEADERITALIC=" =>
"3",
545 "COLHEADERS=" =>
"3",
546 "COLLECTION=" =>
"3",
547 "COLSPACING=" =>
"3",
549 "COMPLETEPATH" =>
"3",
550 "CONNECTION=" =>
"3",
555 "DATACOLLECTION=" =>
"3",
556 "DATASOURCE=" =>
"3",
563 "DELETEBUTTON=" =>
"3",
564 "DELETEFILE=" =>
"3",
566 "DELIMITERS=" =>
"3",
567 "DESTINATION=" =>
"3",
574 "ENABLECFOUTPUTONLY=" =>
"3",
581 "EXPRESSION=" =>
"3",
582 "EXTENDEDINFO=" =>
"3",
583 "EXTENSIONS=" =>
"3",
591 "FORMFIELDS=" =>
"3",
594 "GRIDDATAALIGN=" =>
"3",
596 "GROOVECOLOR=" =>
"3",
599 "HEADERALIGN=" =>
"3",
600 "HEADERBOLD=" =>
"3",
601 "HEADERFONT=" =>
"3",
602 "HEADERFONTSIZE=" =>
"3",
603 "HEADERITALIC=" =>
"3",
604 "HEADERLINES" =>
"3",
606 "HIGHLIGHTHREF=" =>
"3",
618 "INSERTBUTTON=" =>
"3",
633 "MESSAGENUMBER=" =>
"3",
635 "MIMEATTACH=" =>
"3",
640 "NAMECONFLICT=" =>
"3",
641 "NEWDIRECTORY=" =>
"3",
642 "NOTSUPPORTED=" =>
"3",
644 "NUMBERFORMAT=" =>
"3",
647 "ONVALIDATE=" =>
"3",
652 "OUTPUTFILE=" =>
"3",
656 "PICTUREBAR=" =>
"3",
661 "PROVIDERDSN=" =>
"3",
662 "PROXYSERVER=" =>
"3",
665 "QUERYASROOT=" =>
"3",
668 "REFRESHLABEL=" =>
"3",
670 "REQUESTTIMEOUT=" =>
"3",
672 "RESOLVEURL=" =>
"3",
674 "RETRYCOUNT=" =>
"3",
675 "RETURNCODE=" =>
"3",
677 "ROWHEADERALIGN=" =>
"3",
678 "ROWHEADERBOLD=" =>
"3",
679 "ROWHEADERFONT=" =>
"3",
680 "ROWHEADERFONTSIZE=" =>
"3",
681 "ROWHEADERITALIC=" =>
"3",
682 "ROWHEADERWIDTH=" =>
"3",
688 "SECURITYCONTEXT=" =>
"3",
690 "SELECTCOLOR=" =>
"3",
692 "SELECTMODE=" =>
"3",
694 "SESSIONMANAGEMENT=" =>
"3",
695 "SESSIONTIMEOUT=" =>
"3",
697 "SHOWDEBUGOUTPUT=" =>
"3",
701 "SORTDESCENDINGBUTTON=" =>
"3",
708 "STOPONERROR=" =>
"3",
710 "SUPPRESSWHITESPACE=" =>
"3",
712 "TABLEOWNER=" =>
"3",
713 "TABLEQUALIFIER=" =>
"3",
719 "TEXTQUALIFIER=" =>
"3",
720 "THROWONFAILURE=" =>
"3",
721 "THROWONTIMEOUT=" =>
"3",
725 "TOPLEVELVARIABLE=" =>
"3",
732 "USETIMEZONEINFO=" =>
"3",
741 "WRITEOUTPUT=" =>
"3",
743 "ACCEPT-CHARSET=" =>
"4",
758 "BACKGROUND=" =>
"4",
768 "CELLPADDING=" =>
"4",
769 "CELLSPACING=" =>
"4",
801 "FRAMEBORDER=" =>
"4",
802 "FRAMESPACING=" =>
"4",
810 "HTTP-EQUIV=" =>
"4",
830 "leftmargin=" =>
"4",
831 "MARGINHEIGHT=" =>
"4",
832 "MARGINWIDTH=" =>
"4",
864 "ONKEYPRESS=" =>
"4",
871 "ONDBLCLICK=" =>
"4",
872 "ONMOUSEDOWN=" =>
"4",
873 "ONMOUSEMOVE=" =>
"4",
874 "ONMOUSEOUT=" =>
"4",
875 "ONMOUSEOVER=" =>
"4",
931 "ArrayAppend" =>
"5",
934 "ArrayDeleteAt" =>
"5",
935 "ArrayInsertAt" =>
"5",
936 "ArrayIsEmpty" =>
"5",
941 "ArrayPrepend" =>
"5",
942 "ArrayResize" =>
"5",
947 "ArrayToList" =>
"5",
951 "AuthenticatedContext" =>
"5",
952 "AuthenticatedUser" =>
"5",
954 "BitMaskClear" =>
"5",
955 "BitMaskRead" =>
"5",
966 "CompareNoCase" =>
"5",
969 "CreateDateTime" =>
"5",
970 "CreateObject" =>
"5",
971 "CreateODBCDate" =>
"5",
972 "CreateODBCDateTime" =>
"5",
973 "CreateODBCTime" =>
"5",
975 "CreateTimeSpan" =>
"5",
978 "DateCompare" =>
"5",
979 "DateConvert" =>
"5",
985 "DayOfWeekAsString" =>
"5",
987 "DaysInMonth" =>
"5",
989 "DecimalFormat" =>
"5",
990 "DecrementValue" =>
"5",
992 "DeleteClientVariable" =>
"5",
993 "DirectoryExists" =>
"5",
994 "DollarFormat" =>
"5",
1001 "FindNoCase" =>
"5",
1003 "FirstDayOfMonth" =>
"5",
1005 "FormatBaseN" =>
"5",
1006 "GetBaseTagData" =>
"5",
1007 "GetBaseTagList" =>
"5",
1008 "GetBaseTemplatePath" =>
"5",
1009 "GetClientVariablesList" =>
"5",
1010 "GetCurrentTemplatePath" =>
"5",
1011 "GetDirectoryFromPath" =>
"5",
1012 "GetFileFromPath" =>
"5",
1013 "GetFunctionList" =>
"5",
1015 "GetMetricData" =>
"5",
1016 "GetProfileString" =>
"5",
1017 "GetTempDirectory" =>
"5",
1018 "GetTempFile" =>
"5",
1019 "GetTemplatePath" =>
"5",
1020 "GetTickCount" =>
"5",
1021 "GetTimeZoneInfo" =>
"5",
1024 "HTMLCodeFormat" =>
"5",
1025 "HTMLEditFormat" =>
"5",
1027 "IncrementValue" =>
"5",
1028 "InputBaseN" =>
"5",
1032 "IsAuthenticated" =>
"5",
1033 "IsAuthorized" =>
"5",
1037 "IsDebugMode" =>
"5",
1039 "IsLeapYear" =>
"5",
1041 "IsNumericDate" =>
"5",
1042 "IsProtected" =>
"5",
1044 "IsSimpleValue" =>
"5",
1046 "JSStringFormat" =>
"5",
1050 "ListAppend" =>
"5",
1051 "ListChangeDelims" =>
"5",
1052 "ListContains" =>
"5",
1053 "ListContainsNoCase" =>
"5",
1054 "ListDeleteAt" =>
"5",
1056 "ListFindNoCase" =>
"5",
1059 "ListInsertAt" =>
"5",
1062 "ListPrepend" =>
"5",
1063 "ListQualify" =>
"5",
1067 "ListToArray" =>
"5",
1068 "ListValueCount" =>
"5",
1069 "ListValueCountNoCase" =>
"5",
1073 "LSCurrencyFormat" =>
"5",
1074 "LSDateFormat" =>
"5",
1075 "LSEuroCurrencyFormat" =>
"5",
1076 "LSIsCurrency" =>
"5",
1078 "LSIsNumeric" =>
"5",
1079 "LSNumberFormat" =>
"5",
1080 "LSParseCurrency" =>
"5",
1081 "LSParseDateTime" =>
"5",
1082 "LSParseEuroCurrency" =>
"5",
1083 "LSParseNumber" =>
"5",
1084 "LSTimeFormat" =>
"5",
1091 "MonthAsString" =>
"5",
1093 "NumberFormat" =>
"5",
1094 "ParagraphFormat" =>
"5",
1095 "ParameterExists" =>
"5",
1096 "ParseDateTime" =>
"5",
1097 "PreserveSingleQuotes" =>
"5",
1099 "QueryAddColumn" =>
"5",
1100 "QueryAddRow" =>
"5",
1102 "QuerySetCell" =>
"5",
1103 "QuotedValueList" =>
"5",
1108 "REFindNoCase" =>
"5",
1109 "RemoveChars" =>
"5",
1110 "RepeatString" =>
"5",
1112 "ReplaceList" =>
"5",
1113 "ReplaceNoCase" =>
"5",
1115 "REReplaceNoCase" =>
"5",
1123 "SetProfileString" =>
"5",
1124 "SetVariable" =>
"5",
1127 "SpanExcluding" =>
"5",
1128 "SpanIncluding" =>
"5",
1131 "StructClear" =>
"5",
1132 "StructCopy" =>
"5",
1133 "StructCount" =>
"5",
1134 "StructDelete" =>
"5",
1135 "StructFind" =>
"5",
1136 "StructInsert" =>
"5",
1137 "StructIsEmpty" =>
"5",
1138 "StructKeyArray" =>
"5",
1139 "StructKeyExists" =>
"5",
1140 "StructKeyList" =>
"5",
1142 "StructUpdate" =>
"5",
1144 "TimeFormat" =>
"5",
1151 "URLEncodedFormat" =>
"5",
1155 "WriteOutput" =>
"5",
1158 "YesNoFormat" =>
"5",
1180 $this->linkscripts =
array(
1186 "6" =>
"donothing");
Create styles array
The data for the language used.