2 $BEAUT_PATH = realpath(
".").
"/Services/COPage/syntax_highlight/php";
4 require_once(
"$BEAUT_PATH/Beautifier/HFile.php");
20 $this->colours = array(
"blue",
"purple",
"brown",
"gray",
"blue",
"purple");
21 $this->quotecolour =
"blue";
22 $this->blockcommentcolour =
"green";
23 $this->linecommentcolour =
"green";
27 $this->indent = array();
28 $this->unindent = array();
32 $this->stringchars = array(
"\"");
33 $this->delimiters = array(
"\"",
"#",
"~",
"!",
"@",
"%",
"^",
"&",
"*",
"(",
")",
"+",
"|",
"\\",
"{",
"}",
"[",
"]",
":",
";",
"<",
">",
" ",
",",
" ",
".");
38 $this->linecommenton = array(
"");
39 $this->blockcommenton = array(
"<!-");
40 $this->blockcommentoff = array(
"-->");
44 $this->keywords = array(
81 "<BLOCKQUOTE>" =>
"1",
83 "</BLOCKQUOTE>" =>
"1",
108 "</COLGROUP>" =>
"1",
143 "</FIELDSET>" =>
"1",
152 "</FRAMESET>" =>
"1",
219 "</MULTICOL>" =>
"1",
224 "</NOFRAMES>" =>
"1",
230 "</NOSCRIPT>" =>
"1",
241 "</OPTGROUP>" =>
"1",
302 "</TEXTAREA>" =>
"1",
336 "<CFAPPLICATION>" =>
"2",
337 "<CFAPPLICATION" =>
"2",
338 "<CFASSOCIATE>" =>
"2",
339 "<CFASSOCIATE" =>
"2",
340 "<CFAUTHENTICATE>" =>
"2",
341 "<CFAUTHENTICATE" =>
"2",
354 "<CFCOLLECTION>" =>
"2",
355 "<CFCOLLECTION" =>
"2",
356 "<CFCONTENT>" =>
"2",
360 "<CFDEFAULTCASE>" =>
"2",
361 "<CFDEFAULTCASE" =>
"2",
362 "<CFDIRECTORY>" =>
"2",
363 "<CFDIRECTORY" =>
"2",
384 "<CFGRIDCOLUMN>" =>
"2",
385 "<CFGRIDCOLUMN" =>
"2",
386 "<CFGRIDROW>" =>
"2",
388 "<CFGRIDUPDATE>" =>
"2",
389 "<CFGRIDUPDATE" =>
"2",
392 "<CFHTMLHEAD>" =>
"2",
393 "<CFHTMLHEAD" =>
"2",
397 "<CFHTTPPARAM>" =>
"2",
398 "<CFHTTPPARAM" =>
"2",
402 "<CFIMPERSONATE>" =>
"2",
403 "<CFIMPERSONATE" =>
"2",
404 "<CFINCLUDE>" =>
"2",
414 "<CFLOCATION>" =>
"2",
415 "<CFLOCATION" =>
"2",
423 "</CFMAIL><CFMAILPARAM>" =>
"2",
424 "<CFMAILPARAM" =>
"2",
431 "</CFOUTPUT>" =>
"2",
436 "<CFPROCESSINGDIRECTIVE>" =>
"2",
437 "<CFPROCESSINGDIRECTIVE" =>
"2",
438 "</CFPROCESSINGDIRECTIVE>" =>
"2",
439 "<CFPROCPARAM>" =>
"2",
440 "<CFPROCPARAM" =>
"2",
441 "<CFPROCRESULT>" =>
"2",
442 "<CFPROCRESULT" =>
"2",
446 "<CFQUERYPARAM>" =>
"2",
447 "<CFQUERYPARAM" =>
"2",
448 "<CFREGISTRY>" =>
"2",
449 "<CFREGISTRY" =>
"2",
452 "</CFREPORT>" =>
"2",
453 "<CFRETHROW>" =>
"2",
455 "<CFSCHEDULE>" =>
"2",
456 "<CFSCHEDULE" =>
"2",
459 "</CFSCRIPT>" =>
"2",
464 "</CFSELECT>" =>
"2",
465 "<CFSERVLET>" =>
"2",
467 "</CFSERVLET>" =>
"2",
468 "<CFSERVLETPARAM" =>
"2",
471 "<CFSETTING>" =>
"2",
477 "<CFSTOREDPROC>" =>
"2",
478 "<CFSTOREDPROC" =>
"2",
481 "</CFSWITCH>" =>
"2",
485 "<CFTEXTINPUT>" =>
"2",
486 "<CFTEXTINPUT" =>
"2",
489 "<CFTRANSACTION>" =>
"2",
490 "<CFTRANSACTION" =>
"2",
491 "</CFTRANSACTION>" =>
"2",
495 "<CFTREEITEM>" =>
"2",
496 "<CFTREEITEM" =>
"2",
509 "APPLETSOURCE=" =>
"3",
510 "APPLICATIONTIMEOUT=" =>
"3",
512 "ATTACHMENTPATH=" =>
"3",
514 "ATTRIBUTES=" =>
"3",
519 "BLOCKFACTOR=" =>
"3",
525 "CACHEDIRECTORY=" =>
"3",
526 "CATCHEXCEPTIONSBYPATTERN=" =>
"3",
533 "CLIENTCACHE=" =>
"3",
534 "CLIENTMANAGEMENT=" =>
"3",
536 "COLHEADERALIGN=" =>
"3",
537 "COLHEADERBOLD=" =>
"3",
538 "COLHEADERFONT=" =>
"3",
539 "COLHEADERFONTSIZE=" =>
"3",
540 "COLHEADERITALIC=" =>
"3",
541 "COLHEADERS=" =>
"3",
542 "COLLECTION=" =>
"3",
543 "COLSPACING=" =>
"3",
545 "COMPLETEPATH" =>
"3",
546 "CONNECTION=" =>
"3",
551 "DATACOLLECTION=" =>
"3",
552 "DATASOURCE=" =>
"3",
559 "DELETEBUTTON=" =>
"3",
560 "DELETEFILE=" =>
"3",
562 "DELIMITERS=" =>
"3",
563 "DESTINATION=" =>
"3",
570 "ENABLECFOUTPUTONLY=" =>
"3",
577 "EXPRESSION=" =>
"3",
578 "EXTENDEDINFO=" =>
"3",
579 "EXTENSIONS=" =>
"3",
587 "FORMFIELDS=" =>
"3",
590 "GRIDDATAALIGN=" =>
"3",
592 "GROOVECOLOR=" =>
"3",
595 "HEADERALIGN=" =>
"3",
596 "HEADERBOLD=" =>
"3",
597 "HEADERFONT=" =>
"3",
598 "HEADERFONTSIZE=" =>
"3",
599 "HEADERITALIC=" =>
"3",
600 "HEADERLINES" =>
"3",
602 "HIGHLIGHTHREF=" =>
"3",
614 "INSERTBUTTON=" =>
"3",
629 "MESSAGENUMBER=" =>
"3",
631 "MIMEATTACH=" =>
"3",
636 "NAMECONFLICT=" =>
"3",
637 "NEWDIRECTORY=" =>
"3",
638 "NOTSUPPORTED=" =>
"3",
640 "NUMBERFORMAT=" =>
"3",
643 "ONVALIDATE=" =>
"3",
648 "OUTPUTFILE=" =>
"3",
652 "PICTUREBAR=" =>
"3",
657 "PROVIDERDSN=" =>
"3",
658 "PROXYSERVER=" =>
"3",
661 "QUERYASROOT=" =>
"3",
664 "REFRESHLABEL=" =>
"3",
666 "REQUESTTIMEOUT=" =>
"3",
668 "RESOLVEURL=" =>
"3",
670 "RETRYCOUNT=" =>
"3",
671 "RETURNCODE=" =>
"3",
673 "ROWHEADERALIGN=" =>
"3",
674 "ROWHEADERBOLD=" =>
"3",
675 "ROWHEADERFONT=" =>
"3",
676 "ROWHEADERFONTSIZE=" =>
"3",
677 "ROWHEADERITALIC=" =>
"3",
678 "ROWHEADERWIDTH=" =>
"3",
684 "SECURITYCONTEXT=" =>
"3",
686 "SELECTCOLOR=" =>
"3",
688 "SELECTMODE=" =>
"3",
690 "SESSIONMANAGEMENT=" =>
"3",
691 "SESSIONTIMEOUT=" =>
"3",
693 "SHOWDEBUGOUTPUT=" =>
"3",
697 "SORTDESCENDINGBUTTON=" =>
"3",
704 "STOPONERROR=" =>
"3",
706 "SUPPRESSWHITESPACE=" =>
"3",
708 "TABLEOWNER=" =>
"3",
709 "TABLEQUALIFIER=" =>
"3",
715 "TEXTQUALIFIER=" =>
"3",
716 "THROWONFAILURE=" =>
"3",
717 "THROWONTIMEOUT=" =>
"3",
721 "TOPLEVELVARIABLE=" =>
"3",
728 "USETIMEZONEINFO=" =>
"3",
737 "WRITEOUTPUT=" =>
"3",
739 "ACCEPT-CHARSET=" =>
"4",
754 "BACKGROUND=" =>
"4",
764 "CELLPADDING=" =>
"4",
765 "CELLSPACING=" =>
"4",
797 "FRAMEBORDER=" =>
"4",
798 "FRAMESPACING=" =>
"4",
806 "HTTP-EQUIV=" =>
"4",
826 "leftmargin=" =>
"4",
827 "MARGINHEIGHT=" =>
"4",
828 "MARGINWIDTH=" =>
"4",
860 "ONKEYPRESS=" =>
"4",
867 "ONDBLCLICK=" =>
"4",
868 "ONMOUSEDOWN=" =>
"4",
869 "ONMOUSEMOVE=" =>
"4",
870 "ONMOUSEOUT=" =>
"4",
871 "ONMOUSEOVER=" =>
"4",
927 "ArrayAppend" =>
"5",
930 "ArrayDeleteAt" =>
"5",
931 "ArrayInsertAt" =>
"5",
932 "ArrayIsEmpty" =>
"5",
937 "ArrayPrepend" =>
"5",
938 "ArrayResize" =>
"5",
943 "ArrayToList" =>
"5",
947 "AuthenticatedContext" =>
"5",
948 "AuthenticatedUser" =>
"5",
950 "BitMaskClear" =>
"5",
951 "BitMaskRead" =>
"5",
962 "CompareNoCase" =>
"5",
965 "CreateDateTime" =>
"5",
966 "CreateObject" =>
"5",
967 "CreateODBCDate" =>
"5",
968 "CreateODBCDateTime" =>
"5",
969 "CreateODBCTime" =>
"5",
971 "CreateTimeSpan" =>
"5",
974 "DateCompare" =>
"5",
975 "DateConvert" =>
"5",
981 "DayOfWeekAsString" =>
"5",
983 "DaysInMonth" =>
"5",
985 "DecimalFormat" =>
"5",
986 "DecrementValue" =>
"5",
988 "DeleteClientVariable" =>
"5",
989 "DirectoryExists" =>
"5",
990 "DollarFormat" =>
"5",
999 "FirstDayOfMonth" =>
"5",
1001 "FormatBaseN" =>
"5",
1002 "GetBaseTagData" =>
"5",
1003 "GetBaseTagList" =>
"5",
1004 "GetBaseTemplatePath" =>
"5",
1005 "GetClientVariablesList" =>
"5",
1006 "GetCurrentTemplatePath" =>
"5",
1007 "GetDirectoryFromPath" =>
"5",
1008 "GetFileFromPath" =>
"5",
1009 "GetFunctionList" =>
"5",
1011 "GetMetricData" =>
"5",
1012 "GetProfileString" =>
"5",
1013 "GetTempDirectory" =>
"5",
1014 "GetTempFile" =>
"5",
1015 "GetTemplatePath" =>
"5",
1016 "GetTickCount" =>
"5",
1017 "GetTimeZoneInfo" =>
"5",
1020 "HTMLCodeFormat" =>
"5",
1021 "HTMLEditFormat" =>
"5",
1023 "IncrementValue" =>
"5",
1024 "InputBaseN" =>
"5",
1028 "IsAuthenticated" =>
"5",
1029 "IsAuthorized" =>
"5",
1033 "IsDebugMode" =>
"5",
1035 "IsLeapYear" =>
"5",
1037 "IsNumericDate" =>
"5",
1038 "IsProtected" =>
"5",
1040 "IsSimpleValue" =>
"5",
1042 "JSStringFormat" =>
"5",
1046 "ListAppend" =>
"5",
1047 "ListChangeDelims" =>
"5",
1048 "ListContains" =>
"5",
1049 "ListContainsNoCase" =>
"5",
1050 "ListDeleteAt" =>
"5",
1052 "ListFindNoCase" =>
"5",
1055 "ListInsertAt" =>
"5",
1058 "ListPrepend" =>
"5",
1059 "ListQualify" =>
"5",
1063 "ListToArray" =>
"5",
1064 "ListValueCount" =>
"5",
1065 "ListValueCountNoCase" =>
"5",
1069 "LSCurrencyFormat" =>
"5",
1070 "LSDateFormat" =>
"5",
1071 "LSEuroCurrencyFormat" =>
"5",
1072 "LSIsCurrency" =>
"5",
1074 "LSIsNumeric" =>
"5",
1075 "LSNumberFormat" =>
"5",
1076 "LSParseCurrency" =>
"5",
1077 "LSParseDateTime" =>
"5",
1078 "LSParseEuroCurrency" =>
"5",
1079 "LSParseNumber" =>
"5",
1080 "LSTimeFormat" =>
"5",
1087 "MonthAsString" =>
"5",
1089 "NumberFormat" =>
"5",
1090 "ParagraphFormat" =>
"5",
1091 "ParameterExists" =>
"5",
1092 "ParseDateTime" =>
"5",
1093 "PreserveSingleQuotes" =>
"5",
1095 "QueryAddColumn" =>
"5",
1096 "QueryAddRow" =>
"5",
1098 "QuerySetCell" =>
"5",
1099 "QuotedValueList" =>
"5",
1104 "REFindNoCase" =>
"5",
1105 "RemoveChars" =>
"5",
1106 "RepeatString" =>
"5",
1108 "ReplaceList" =>
"5",
1109 "ReplaceNoCase" =>
"5",
1111 "REReplaceNoCase" =>
"5",
1119 "SetProfileString" =>
"5",
1120 "SetVariable" =>
"5",
1123 "SpanExcluding" =>
"5",
1124 "SpanIncluding" =>
"5",
1127 "StructClear" =>
"5",
1128 "StructCopy" =>
"5",
1129 "StructCount" =>
"5",
1130 "StructDelete" =>
"5",
1131 "StructFind" =>
"5",
1132 "StructInsert" =>
"5",
1133 "StructIsEmpty" =>
"5",
1134 "StructKeyArray" =>
"5",
1135 "StructKeyExists" =>
"5",
1136 "StructKeyList" =>
"5",
1138 "StructUpdate" =>
"5",
1140 "TimeFormat" =>
"5",
1147 "URLEncodedFormat" =>
"5",
1151 "WriteOutput" =>
"5",
1154 "YesNoFormat" =>
"5",
1176 $this->linkscripts = array(
1182 "6" =>
"donothing");