2 $BEAUT_PATH = realpath(
".").
"/Services/COPage/syntax_highlight/php";
4 require_once(
"$BEAUT_PATH/Beautifier/HFile.php");
20 $this->colours = array(
"blue",
"purple",
"gray",
"blue",
"purple",
"brown",
"gray",
"brown");
21 $this->quotecolour =
"blue";
22 $this->blockcommentcolour =
"green";
23 $this->linecommentcolour =
"green";
27 $this->indent = array(
"Then",
"<TD>",
"<td>",
"<Td>");
28 $this->unindent = array(
"End",
"Next",
"End If",
"End Select",
"</td>",
"</Td>");
32 $this->stringchars = array();
33 $this->delimiters = array(
"~",
"!",
"@",
"$",
"%",
"^",
"&",
"*",
"(",
")",
"+",
"=",
"|",
"\\",
"{",
"}",
"[",
"]",
":",
";",
"\"",
"'",
"<",
">",
" ",
",",
" ",
".",
"?");
38 $this->linecommenton = array(
"'");
39 $this->blockcommenton = array(
"<!--");
40 $this->blockcommentoff = array(
"-->");
44 $this->keywords = array(
77 "<BLOCKQUOTE>" =>
"1",
79 "</BLOCKQUOTE>" =>
"1",
104 "</COLGROUP>" =>
"1",
134 "</FIELDSET>" =>
"1",
143 "</FRAMESET>" =>
"1",
210 "</MULTICOL>" =>
"1",
215 "</NOFRAMES>" =>
"1",
221 "</NOSCRIPT>" =>
"1",
232 "</OPTGROUP>" =>
"1",
293 "</TEXTAREA>" =>
"1",
324 "ACCEPT-CHARSET=" =>
"2",
333 "BACKGROUND=" =>
"2",
338 "CELLPADDING=" =>
"2",
339 "CELLSPACING=" =>
"2",
367 "FRAMEBORDER=" =>
"2",
368 "FRAMESPACING=" =>
"2",
375 "HTTP-EQUIV=" =>
"2",
385 "MARGINHEIGHT=" =>
"2",
386 "MARGINWIDTH=" =>
"2",
400 "ONKEYPRESS=" =>
"2",
408 "ONDBLCLICK=" =>
"2",
409 "ONMOUSEDOWN=" =>
"2",
410 "ONMOUSEMOVE=" =>
"2",
411 "ONMOUSEOUT=" =>
"2",
412 "ONMOUSEOVER=" =>
"2",
473 "CreateObject" =>
"3",
495 "FileDateTime" =>
"3",
501 "GetAllStrings" =>
"3",
503 "GetAutoServerSettings" =>
"3",
531 "LoadPicture" =>
"3",
598 "AddFromFile" =>
"5",
599 "AddFromTemplate" =>
"5",
602 "AddToAddInToolbar" =>
"5",
603 "AddToolboxProgID" =>
"5",
605 "AppendChunk" =>
"5",
609 "BatchUpdate" =>
"5",
613 "CacheControl" =>
"5",
615 "CancelAsyncRead" =>
"5",
616 "CancelBatch" =>
"5",
617 "CancelUpdate" =>
"5",
618 "CanPropertyChange" =>
"5",
619 "CaptureImage" =>
"5",
625 "ClearFields" =>
"5",
627 "ClearSelCols" =>
"5",
631 "ColContaining" =>
"5",
633 "CommitTrans" =>
"5",
634 "CompactDatabase" =>
"5",
637 "ContentType" =>
"5",
639 "CopyQueryDef" =>
"5",
640 "CreateDatabase" =>
"5",
641 "CreateDragImage" =>
"5",
642 "CreateEmbed" =>
"5",
643 "CreateField" =>
"5",
644 "CreateGroup" =>
"5",
645 "CreateIndex" =>
"5",
647 "CreatePreparedStatement" =>
"5",
648 "CreatePropery" =>
"5",
649 "CreateQuery" =>
"5",
650 "CreateQueryDef" =>
"5",
651 "CreateRelation" =>
"5",
652 "CreateTableDef" =>
"5",
654 "CreateWorkspace" =>
"5",
657 "DeleteColumnLabels" =>
"5",
658 "DeleteColumns" =>
"5",
659 "DeleteRowLabels" =>
"5",
668 "EnsureVisible" =>
"5",
669 "EstablishConnection" =>
"5",
672 "ExpiresAbsolute" =>
"5",
673 "ExtractIcon" =>
"5",
683 "FindPrevious" =>
"5",
685 "GetBookmark" =>
"5",
687 "GetClipString" =>
"5",
689 "GetFirstVisible" =>
"5",
692 "GetLineFromChar" =>
"5",
693 "GetNumTicks" =>
"5",
695 "GetSelectedPart" =>
"5",
697 "GetVisibleCount" =>
"5",
705 "InitializeLabels" =>
"5",
706 "InsertColumnLabels" =>
"5",
707 "InsertColumns" =>
"5",
708 "InsertObjDlg" =>
"5",
709 "InsertRowLabels" =>
"5",
711 "IsClientConnected" =>
"5",
716 "LinkExecute" =>
"5",
718 "LinkRequest" =>
"5",
722 "LoadResData" =>
"5",
723 "LoadResPicture" =>
"5",
724 "LoadResString" =>
"5",
726 "MakeCompileFile" =>
"5",
727 "MakeReplica" =>
"5",
729 "MoreResults" =>
"5",
735 "MovePrevious" =>
"5",
738 "NewPassword" =>
"5",
739 "NextRecordset" =>
"5",
741 "OnAddinsUpdate" =>
"5",
742 "OnConnection" =>
"5",
743 "OnDisconnection" =>
"5",
744 "OnStartupComplete" =>
"5",
746 "OpenConnection" =>
"5",
747 "OpenDatabase" =>
"5",
748 "OpenQueryDef" =>
"5",
749 "OpenRecordset" =>
"5",
750 "OpenResultset" =>
"5",
753 "PaintPicture" =>
"5",
755 "PastSpecialDlg" =>
"5",
759 "PopulatePartial" =>
"5",
763 "PropertyChanged" =>
"5",
767 "RandomDataFill" =>
"5",
768 "RandomFillColumns" =>
"5",
769 "RandomFillRows" =>
"5",
770 "rdoCreateEnvironment" =>
"5",
771 "rdoRegisterDataSource" =>
"5",
772 "ReadFromFile" =>
"5",
773 "ReadProperty" =>
"5",
777 "RefreshLink" =>
"5",
778 "RegisterDatabase" =>
"5",
781 "RemoveAddInFromToolbar" =>
"5",
784 "RepairDatabase" =>
"5",
788 "ResetCustom" =>
"5",
789 "ResetCustomLabel" =>
"5",
790 "ResolveName" =>
"5",
791 "RestoreToolbar" =>
"5",
794 "RollbackTrans" =>
"5",
795 "RowBookmark" =>
"5",
796 "RowContaining" =>
"5",
802 "SaveToolbar" =>
"5",
803 "SaveToOle1File" =>
"5",
807 "ScriptTimeout" =>
"5",
817 "SetAutoServerSettings" =>
"5",
823 "SetViewport" =>
"5",
829 "ShowPrinter" =>
"5",
831 "ShowWhatsThis" =>
"5",
836 "SplitContaining" =>
"5",
837 "StartLabelEdit" =>
"5",
838 "StartLogging" =>
"5",
841 "Synchronize" =>
"5",
846 "TwipsToChartPart" =>
"5",
847 "TypeByChartType" =>
"5",
849 "UpdateControls" =>
"5",
850 "UpdateRecord" =>
"5",
854 "WhatsThisMode" =>
"5",
856 "WriteProperty" =>
"5",
858 "AccessKeyPress" =>
"6",
860 "AfterAddFile" =>
"6",
861 "AfterChangeFileName" =>
"6",
862 "AfterCloseFile" =>
"6",
863 "AfterColEdit" =>
"6",
864 "AfterColUpdate" =>
"6",
865 "AfterDelete" =>
"6",
866 "AfterInsert" =>
"6",
867 "AfterLabelEdit" =>
"6",
868 "AfterRemoveFile" =>
"6",
869 "AfterUpdate" =>
"6",
870 "AfterWriteFile" =>
"6",
871 "AmbienChanged" =>
"6",
872 "AppendToLog" =>
"6",
873 "ApplyChanges" =>
"6",
875 "AsyncReadComplete" =>
"6",
876 "AxisActivated" =>
"6",
877 "AxisLabelActivated" =>
"6",
878 "AxisLabelSelected" =>
"6",
879 "AxisLabelUpdated" =>
"6",
880 "AxisSelected" =>
"6",
881 "AxisTitleActivated" =>
"6",
882 "AxisTitleSelected" =>
"6",
883 "AxisTitleUpdated" =>
"6",
884 "AxisUpdated" =>
"6",
885 "BeforeClick" =>
"6",
886 "BeforeColEdit" =>
"6",
887 "BeforeColUpdate" =>
"6",
888 "BeforeConnect" =>
"6",
889 "BeforeDelete" =>
"6",
890 "BeforeInsert" =>
"6",
891 "BeforeLabelEdit" =>
"6",
892 "BeforeLoadFile" =>
"6",
893 "BeforeUpdate" =>
"6",
894 "BinaryWrite" =>
"6",
895 "ButtonClick" =>
"6",
896 "ButtonCompleted" =>
"6",
897 "ButtonGotFocus" =>
"6",
898 "ButtonLostFocus" =>
"6",
900 "ChartActivated" =>
"6",
901 "ChartSelected" =>
"6",
902 "ChartUpdated" =>
"6",
907 "ColumnClick" =>
"6",
909 "ConfigChageCancelled" =>
"6",
910 "ConfigChanged" =>
"6",
911 "ConnectionRequest" =>
"6",
912 "DataArrival" =>
"6",
913 "DataChanged" =>
"6",
914 "DataUpdated" =>
"6",
917 "DeviceArrival" =>
"6",
918 "DeviceOtherEvent" =>
"6",
919 "DeviceQueryRemove" =>
"6",
920 "DeviceQueryRemoveFailed" =>
"6",
921 "DeviceRemoveComplete" =>
"6",
922 "DeviceRemovePending" =>
"6",
923 "DevModeChange" =>
"6",
925 "DisplayChanged" =>
"6",
927 "DoGetNewFileName" =>
"6",
929 "DonePainting" =>
"6",
934 "EditProperty" =>
"6",
940 "FootnoteActivated" =>
"6",
941 "FootnoteSelected" =>
"6",
942 "FootnoteUpdated" =>
"6",
945 "InfoMessage" =>
"6",
947 "IniProperties" =>
"6",
948 "ItemActivated" =>
"6",
952 "ItemReloaded" =>
"6",
953 "ItemRemoved" =>
"6",
954 "ItemRenamed" =>
"6",
955 "ItemSeletected" =>
"6",
960 "LegendActivated" =>
"6",
961 "LegendSelected" =>
"6",
962 "LegendUpdated" =>
"6",
974 "OLECompleteDrag" =>
"6",
975 "OLEDragDrop" =>
"6",
976 "OLEDragOver" =>
"6",
977 "OLEGiveFeedback" =>
"6",
979 "OLEStartDrag" =>
"6",
986 "PanelDblClick" =>
"6",
988 "PatternChange" =>
"6",
989 "PlotActivated" =>
"6",
990 "PlotSelected" =>
"6",
991 "PlotUpdated" =>
"6",
992 "PointActivated" =>
"6",
993 "PointLabelActivated" =>
"6",
994 "PointLabelSelected" =>
"6",
995 "PointLabelUpdated" =>
"6",
996 "PointSelected" =>
"6",
997 "PointUpdated" =>
"6",
998 "PowerQuerySuspend" =>
"6",
999 "PowerResume" =>
"6",
1000 "PowerStatusChanged" =>
"6",
1001 "PowerSuspend" =>
"6",
1002 "QueryChangeConfig" =>
"6",
1003 "QueryComplete" =>
"6",
1004 "QueryCompleted" =>
"6",
1005 "QueryTimeout" =>
"6",
1006 "QueryUnload" =>
"6",
1007 "ReadProperties" =>
"6",
1009 "Reposition" =>
"6",
1010 "RequestChangeFileName" =>
"6",
1011 "RequestWriteFile" =>
"6",
1013 "ResultsChanged" =>
"6",
1014 "RowColChange" =>
"6",
1015 "RowCurrencyChange" =>
"6",
1017 "RowStatusChanged" =>
"6",
1019 "SelectionChanged" =>
"6",
1020 "SendComplete" =>
"6",
1021 "SendProgress" =>
"6",
1022 "SeriesActivated" =>
"6",
1023 "SeriesSelected" =>
"6",
1024 "SeriesUpdated" =>
"6",
1025 "SettingChanged" =>
"6",
1026 "SplitChange" =>
"6",
1027 "StateChanged" =>
"6",
1028 "StatusUpdate" =>
"6",
1029 "SysColorsChanged" =>
"6",
1031 "TimeChanged" =>
"6",
1032 "TitleActivated" =>
"6",
1033 "TitleSelected" =>
"6",
1034 "UnboundAddData" =>
"6",
1035 "UnboundDeleteRow" =>
"6",
1036 "UnboundGetRelativeBookmark" =>
"6",
1037 "UnboundReadData" =>
"6",
1038 "UnboundWriteData" =>
"6",
1043 "ValidationError" =>
"6",
1044 "WillAssociate" =>
"6",
1045 "WillChangeData" =>
"6",
1046 "WillDissociate" =>
"6",
1047 "WillExecute" =>
"6",
1048 "WillUpdateRows" =>
"6",
1049 "WriteProperties" =>
"6",
1050 "AppActivate" =>
"4",
1071 "DeleteSetting" =>
"4",
1090 "Implements" =>
"4",
1106 "RaiseEvent" =>
"4",
1114 "SavePicture" =>
"4",
1115 "SaveSetting" =>
"4",
1127 "Application" =>
"7",
1129 "ClientCertificate" =>
"7",
1130 "ObjectContext" =>
"7",
1132 "QueryString" =>
"7",
1136 "ServerVariables" =>
"7",
1140 "ForAppending" =>
"8",
1141 "ForReading" =>
"8",
1142 "ForWriting" =>
"8",
1148 "vbBinaryCompare" =>
"8",
1155 "vbCurrency" =>
"8",
1157 "vbDataObject" =>
"8",
1164 "vbFirstFourDays" =>
"8",
1165 "vbFirstFullWeek" =>
"8",
1166 "vbFirstJan1" =>
"8",
1167 "vbFormFeed" =>
"8",
1169 "vbGeneralDate" =>
"8",
1174 "vbLongDate" =>
"8",
1175 "vbLongTime" =>
"8",
1181 "vbNullChar" =>
"8",
1182 "vbNullString" =>
"8",
1184 "vbObjectError" =>
"8",
1186 "vbSaturday" =>
"8",
1187 "vbShortDate" =>
"8",
1188 "vbShortTime" =>
"8",
1193 "vbTextCompare" =>
"8",
1194 "vbThursday" =>
"8",
1197 "vbUseSystem" =>
"8",
1198 "vbUseSystemDayOfWeek" =>
"8",
1200 "vbVerticalTab" =>
"8",
1201 "vbWednesday" =>
"8",
1212 $this->linkscripts = array(
1221 "8" =>
"donothing");