2 $BEAUT_PATH = realpath(
".") .
"/Services/COPage/syntax_highlight/php";
6 require_once(
"$BEAUT_PATH/Beautifier/HFile.php");
24 $this->colours =
array(
"blue",
"purple",
"gray",
"brown",
"blue",
"purple",
"gray",
"brown");
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(
71 "FileSystemObject" =>
"1",
104 "styleSheets" =>
"1",
110 "userProfile" =>
"1",
115 "activeElement" =>
"2",
122 "appCodeName" =>
"2",
123 "appMinorVersion" =>
"2",
127 "availHeight" =>
"2",
129 "AtEndOfLine" =>
"2",
130 "AtEndOfStream" =>
"2",
132 "AvailableSpace" =>
"2",
134 "backgroundAttachment" =>
"2",
135 "backgroundColor" =>
"2",
136 "backgroundImage" =>
"2",
137 "backgroundPosition" =>
"2",
138 "backgroundPositionX" =>
"2",
139 "backgroundPositionY" =>
"2",
140 "backgroundRepeat" =>
"2",
144 "bgProperties" =>
"2",
146 "borderBottom" =>
"2",
147 "borderBottomColor" =>
"2",
148 "borderBottomStyle" =>
"2",
149 "borderBottomWidth" =>
"2",
150 "borderColor" =>
"2",
151 "borderColorDark" =>
"2",
152 "borderColorLight" =>
"2",
154 "borderLeftColor" =>
"2",
155 "borderLeftStyle" =>
"2",
156 "borderLeftWidth" =>
"2",
157 "borderRight" =>
"2",
158 "borderRightColor" =>
"2",
159 "borderRightStyle" =>
"2",
160 "borderRightWidth" =>
"2",
161 "borderStyle" =>
"2",
163 "borderTopColor" =>
"2",
164 "borderTopStyle" =>
"2",
165 "borderTopWidth" =>
"2",
166 "borderWidth" =>
"2",
167 "bottomMargin" =>
"2",
168 "browserLanguage" =>
"2",
169 "bufferDepth" =>
"2",
172 "cancelBubble" =>
"2",
175 "cellPadding" =>
"2",
176 "cellSpacing" =>
"2",
182 "clientHeight" =>
"2",
183 "clientInformation" =>
"2",
186 "clientWidth" =>
"2",
200 "connectionSpeed" =>
"2",
201 "constructorCount" =>
"2",
204 "cookieEnabled" =>
"2",
211 "CompareMode" =>
"2",
214 "dataFormatAs" =>
"2",
215 "dataPageSize" =>
"2",
217 "defaultCharset" =>
"2",
218 "defaultChecked" =>
"2",
219 "defaultSelected" =>
"2",
220 "defaultStatus" =>
"2",
221 "defaultValue" =>
"2",
223 "dialogArguments" =>
"2",
224 "dialogHeight" =>
"2",
227 "dialogWidth" =>
"2",
233 "DriveLetter" =>
"2",
235 "DateCreated" =>
"2",
236 "DateLastAccessed" =>
"2",
237 "DateLastModified" =>
"2",
243 "fileCreatedDate" =>
"2",
244 "fileModifiedDate" =>
"2",
246 "fileUpdatedDate" =>
"2",
251 "fontSmoothingEnabled" =>
"2",
253 "fontVariant" =>
"2",
257 "frameBorder" =>
"2",
258 "frameSpacing" =>
"2",
259 "fromElement" =>
"2",
275 "indeterminate" =>
"2",
284 "IsRootFolder" =>
"2",
292 "lastModified" =>
"2",
295 "leftContext" =>
"2",
298 "letterSpacing" =>
"2",
303 "listStyleImage" =>
"2",
304 "listStylePosition" =>
"2",
305 "listStyleType" =>
"2",
316 "marginBottom" =>
"2",
317 "marginHeight" =>
"2",
319 "marginRight" =>
"2",
321 "marginWidth" =>
"2",
333 "NEGATIVE_INFINITY" =>
"2",
339 "offscreenBuffering" =>
"2",
340 "offsetHeight" =>
"2",
342 "offsetParent" =>
"2",
344 "offsetWidth" =>
"2",
352 "owningElement" =>
"2",
354 "paddingBottom" =>
"2",
355 "paddingLeft" =>
"2",
356 "paddingRight" =>
"2",
358 "pageBreakAfter" =>
"2",
359 "pageBreakBefore" =>
"2",
362 "parentElement" =>
"2",
363 "parentStyleSheet" =>
"2",
364 "parentTextEdit" =>
"2",
365 "parentWindow" =>
"2",
367 "pixelHeight" =>
"2",
372 "pluginspage" =>
"2",
383 "POSITIVE_INFINITY" =>
"2",
387 "recordNumber" =>
"2",
391 "returnValue" =>
"2",
393 "rightContext" =>
"2",
394 "rightMargin" =>
"2",
400 "scrollAmount" =>
"2",
401 "scrollDelay" =>
"2",
402 "scrollHeight" =>
"2",
406 "scrollWidth" =>
"2",
408 "sectionRowIndex" =>
"2",
410 "selectedIndex" =>
"2",
415 "sourceIndex" =>
"2",
423 "systemLanguage" =>
"2",
424 "SerialNumber" =>
"2",
437 "textDecoration" =>
"2",
438 "textDecorationBlink" =>
"2",
439 "textDecorationLineThrough" =>
"2",
440 "textDecorationNone" =>
"2",
441 "textDecorationOverline" =>
"2",
442 "textDecorationUnderline" =>
"2",
444 "textTransform" =>
"2",
455 "updateInterval" =>
"2",
459 "userLanguage" =>
"2",
463 "verticalAlign" =>
"2",
479 "addReadRequest" =>
"3",
499 "clearInterval" =>
"3",
500 "clearRequest" =>
"3",
501 "clearTimeout" =>
"3",
504 "compareEndPoints" =>
"3",
510 "createCaption" =>
"3",
511 "createElement" =>
"3",
512 "createRange" =>
"3",
513 "createStyleSheet" =>
"3",
514 "createTextRange" =>
"3",
515 "createTFoot" =>
"3",
516 "createTHead" =>
"3",
521 "CreateFolder" =>
"3",
522 "CreateTextFile" =>
"3",
523 "deleteCaption" =>
"3",
526 "deleteTFoot" =>
"3",
527 "deleteTHead" =>
"3",
528 "doReadRequest" =>
"3",
532 "DeleteFolder" =>
"3",
534 "DriveExists" =>
"3",
535 "elementFromPoint" =>
"3",
540 "execCommand" =>
"3",
552 "fromCharCode" =>
"3",
554 "FolderExists" =>
"3",
555 "getAttribute" =>
"3",
556 "getBookmark" =>
"3",
559 "getFullYear" =>
"3",
562 "getMilliseconds" =>
"3",
567 "getTimezoneOffset" =>
"3",
570 "getUTCFullYear" =>
"3",
571 "getUTCHours" =>
"3",
572 "getUTCMilliseconds" =>
"3",
573 "getUTCMinutes" =>
"3",
574 "getUTCMonth" =>
"3",
575 "getUTCSeconds" =>
"3",
579 "GetAbsolutePathName" =>
"3",
580 "GetBaseName" =>
"3",
582 "GetDriveName" =>
"3",
583 "GetExtensionName" =>
"3",
585 "GetFileName" =>
"3",
587 "GetParentFolderName" =>
"3",
588 "GetSpecialFolder" =>
"3",
589 "GetTempName" =>
"3",
592 "insertAdjacentHTML" =>
"3",
593 "insertAdjacentText" =>
"3",
599 "isSubscribed" =>
"3",
603 "javaEnabled" =>
"3",
606 "lastIndexOf" =>
"3",
617 "moveToBookmark" =>
"3",
618 "moveToElementText" =>
"3",
619 "moveToPoint" =>
"3",
626 "OpenAsTextStream" =>
"3",
627 "OpenTextFile" =>
"3",
633 "previousPage" =>
"3",
635 "queryCommandEnabled" =>
"3",
636 "queryCommandIndeterm" =>
"3",
637 "queryCommandState" =>
"3",
638 "queryCommandSupported" =>
"3",
639 "queryCommandValue" =>
"3",
643 "removeAttribute" =>
"3",
656 "scrollIntoView" =>
"3",
659 "setAttribute" =>
"3",
661 "setEndPoint" =>
"3",
662 "setFullYear" =>
"3",
664 "setInterval" =>
"3",
665 "setMilliseconds" =>
"3",
672 "setUTCFullYear" =>
"3",
673 "setUTCHours" =>
"3",
674 "setUTCMilliseconds" =>
"3",
675 "setUTCMinutes" =>
"3",
676 "setUTCMonth" =>
"3",
677 "setUTCSeconds" =>
"3",
680 "showModalDialog" =>
"3",
697 "taintEnabled" =>
"3",
701 "toGMTString" =>
"3",
702 "toLocaleString" =>
"3",
703 "toLowerCase" =>
"3",
705 "toUpperCase" =>
"3",
706 "toUTCString" =>
"3",
712 "WriteBlankLines" =>
"3",
718 "onafterupdate" =>
"4",
719 "onbeforeunload" =>
"4",
720 "onbeforeupdate" =>
"4",
725 "ondataavailable" =>
"4",
726 "ondatasetchanged" =>
"4",
727 "ondatasetcomplete" =>
"4",
729 "ondragstart" =>
"4",
731 "onerrorupdate" =>
"4",
732 "onfilterchange" =>
"4",
740 "onmousedown" =>
"4",
741 "onmousemove" =>
"4",
743 "onmouseover" =>
"4",
745 "onreadystatechange" =>
"4",
752 "onselectstart" =>
"4",
772 "AddAttribute" =>
"6",
773 "AddAttrubutes" =>
"6",
779 "AttributeEquals" =>
"6",
780 "AttributeToInt" =>
"6",
782 "CancelRequest" =>
"6",
783 "CheckDesktopShortcuts" =>
"7",
784 "CheckStartMenuLinks" =>
"7",
785 "CopyFileFromUrl" =>
"7",
786 "CopyMapFile" =>
"6",
787 "CreateXMLEntity" =>
"6",
789 "DeleteAttribute" =>
"6",
790 "DeleteDirectory" =>
"6",
791 "DeleteEntities" =>
"6",
792 "DeleteEntry" =>
"6",
794 "DeleteValue" =>
"6",
797 "GetAllComponentInfo" =>
"6",
798 "GetAllComponents" =>
"6",
799 "GetAllGroupInfo" =>
"6",
800 "GetAllInfoForAllComponents" =>
"6",
801 "GetAllKeyValues" =>
"6",
803 "GetAppInstallPath" =>
"6",
805 "GetApplicationInstallHistory" =>
"7",
806 "GetAttribute" =>
"6",
807 "GetAttributeInfo" =>
"6",
808 "GetClientForMSNetSettings" =>
"6",
809 "GetComponentHistory" =>
"6",
810 "GetComponentIds" =>
"6",
811 "GetComponentInfo" =>
"6",
812 "GetDeviceInfo" =>
"6",
813 "GetDirAttrs" =>
"6",
814 "GetDirListing" =>
"6",
815 "GetDriverServicesInfo" =>
"7",
816 "GetEntities" =>
"6",
817 "GetEntitiesCompare" =>
"6",
820 "GetEnvironmentVariable" =>
"6",
821 "GetEnvironmentVariables" =>
"6",
822 "GetEventLogEntries" =>
"7",
823 "GetFullPath" =>
"6",
824 "GetGeneralInfo" =>
"6",
825 "GetGroupInfo" =>
"6",
826 "GetInstalledApps" =>
"6",
827 "GetInstalledDrivers" =>
"7",
828 "GetInstalledFileHistory" =>
"6",
829 "GetKeyValueName" =>
"6",
830 "GetKeyboardInfo" =>
"7",
831 "GetLoadedModules" =>
"6",
832 "GetLoadedModulesByProcess" =>
"6",
833 "GetLoadedModulesForProcess" =>
"6",
834 "GetLocalDriveInfo" =>
"6",
836 "GetMetaFrameId" =>
"6",
837 "GetMotherboardInfo" =>
"7",
838 "GetMotiveInstallPath" =>
"6",
839 "GetMouseInfo" =>
"7",
841 "GetNetConfig" =>
"6",
842 "GetNetworkAdapters" =>
"6",
843 "GetNetworkBindings" =>
"6",
844 "GetNetworkIdentification" =>
"6",
845 "GetNetworkProtocols" =>
"6",
846 "GetNetworkServices" =>
"6",
847 "GetNumAttributes" =>
"6",
848 "GetNumEntities" =>
"6",
849 "GetOLEServers" =>
"7",
851 "GetObjectProperty" =>
"6",
853 "GetOperatingSystemName" =>
"6",
855 "GetParentAttribute" =>
"6",
856 "GetPrimaryNetworkLogon" =>
"6",
857 "GetProblemDescription" =>
"6",
858 "GetProblemSummary" =>
"6",
859 "GetProperties" =>
"6",
860 "GetPropertiesAndVersions" =>
"6",
861 "GetResourceInfo" =>
"6",
862 "GetReturnCode" =>
"6",
863 "GetScsiAdapterInfo" =>
"7",
865 "GetServicesInfo" =>
"6",
866 "GetSubFrameId" =>
"6",
870 "GetSystemDllChangeHistory" =>
"7",
871 "GetSystemDllInfo" =>
"7",
872 "GetTCPIPSettings" =>
"6",
873 "GetTaskList" =>
"7",
874 "GetUserName" =>
"6",
876 "GetVersions" =>
"6",
877 "GetVideoAdapterInfo" =>
"7",
878 "GetWinIniOLEServers" =>
"6",
879 "HasWBEMSupport" =>
"6",
881 "IsGUIAllowed" =>
"6",
882 "IsInteresting" =>
"6",
883 "IsKeyExcluded" =>
"6",
884 "IsPathExcluded" =>
"6",
885 "IsProcessRunning" =>
"6",
887 "IsWindows95" =>
"6",
888 "IsWindows98" =>
"6",
889 "IsWindowsNT" =>
"6",
892 "LogXMLEntities" =>
"6",
893 "LogXMLEntity" =>
"6",
894 "MakeDirectory" =>
"6",
895 "MultiSZToEnum" =>
"6",
900 "ReadAppInstallPath" =>
"6",
901 "ReadKeyValueName" =>
"6",
905 "RegisteredWithDmiSP" =>
"6",
907 "RunWQLQuery" =>
"6",
909 "SearchReplace" =>
"6",
910 "SetDirAttrs" =>
"6",
911 "SetFileAttrs" =>
"6",
912 "SetInteresting" =>
"6",
914 "SetUninteresting" =>
"6",
915 "ShowEditDlg" =>
"6",
916 "ShowInfoDlg" =>
"6",
917 "ShowListDlg" =>
"6",
918 "ShowMultiSelectListDlg" =>
"6",
919 "ShowOKCancelDlg" =>
"6",
920 "ShowYesNoDlg" =>
"6",
921 "StartBrowser" =>
"6",
922 "StopBrowser" =>
"6",
925 "AddIniFileEntry" =>
"7",
926 "AddRegistryKey" =>
"7",
927 "AddRegistryValue" =>
"7",
928 "BeginDisplayGroup" =>
"7",
929 "CheckDefaultRegistryValue" =>
"7",
930 "CheckDirectoryAttributes" =>
"7",
931 "CheckFileExists" =>
"7",
932 "CheckFileProperties" =>
"7",
933 "CheckFilePropertiesAndVersions" =>
"7",
934 "CheckFileVersions" =>
"7",
935 "CheckIniFileEntry" =>
"7",
936 "CheckRegistryValue" =>
"7",
937 "DeleteIniFileEntry" =>
"7",
938 "DeleteRegistryKey" =>
"7",
939 "DeleteRegistryValue" =>
"7",
940 "EndDisplayGroup" =>
"7",
941 "GetAllRegistryKeyValues" =>
"7",
942 "GetDefaultRegistryValue" =>
"7",
943 "GetDiagnosticsReport" =>
"7",
944 "GetDirectoryAttributes" =>
"7",
945 "GetDirectoryListing" =>
"7",
946 "GetEnvironmentVariableInfo" =>
"7",
947 "GetFileProperties" =>
"7",
948 "GetFilePropertiesAndVersions" =>
"7",
949 "GetFileVersions" =>
"7",
950 "GetGeneralSystemInfo" =>
"7",
951 "GetHardwareDeviceInfo" =>
"7",
952 "GetIniFileEntry" =>
"7",
953 "GetInstalledAppsList" =>
"7",
954 "GetLoadedModuleInfo" =>
"7",
955 "GetLoadedModuleInfoForAllProcesses" =>
"7",
956 "GetLoadedModuleInfoForProcesses" =>
"7",
957 "GetMapParam" =>
"7",
958 "GetNetworkAdapterInfo" =>
"7",
959 "GetNetworkConfigurationInfo" =>
"7",
960 "GetProcessList" =>
"7",
961 "GetRegistrySubkeys" =>
"7",
962 "GetRegistrySubtree" =>
"7",
963 "GetRegistryValue" =>
"7",
964 "GetResourceUsageSummary" =>
"7",
965 "GetScreenSnaHFileot" =>
"7",
966 "GetWin32ServicesInfo" =>
"7",
967 "RunProgramAsync" =>
"7",
968 "RunProgramSync" =>
"7",
969 "SetDirectoryAttributes" =>
"7",
970 "SetFileAttributes" =>
"7",
971 "SetSelfServiceAnswer" =>
"7",
972 "SetSelfServiceSearchString" =>
"7",
973 "SetSelfServiceUrl" =>
"7",
1008 $this->linkscripts =
array(
1016 "8" =>
"donothing");
Create styles array
The data for the language used.