2 $BEAUT_PATH = realpath(
".").
"/Services/COPage/syntax_highlight/php";
4 require_once(
"$BEAUT_PATH/Beautifier/HFile.php");
20 $this->colours = array(
"blue",
"purple",
"gray",
"brown",
"blue",
"purple",
"gray");
21 $this->quotecolour =
"blue";
22 $this->blockcommentcolour =
"green";
23 $this->linecommentcolour =
"green";
27 $this->indent = array(
"Case",
"Else",
"#Else",
"Then");
28 $this->unindent = array(
"Else",
"#Else",
"Endcase",
"Enddefine",
"Enddo",
"Endfor",
"Endfunc",
"Endif",
"Endprintjob",
"Endproc",
"Endscan",
"Endtext",
"Endwith",
"#Endif");
32 $this->stringchars = array();
33 $this->delimiters = array(
"!",
"@",
"$",
"%",
"(",
")",
"-",
"+",
"=",
"/",
"{",
"}",
"[",
"]",
":",
";",
",",
" ",
".",
"*",
"&");
38 $this->linecommenton = array(
"*");
39 $this->blockcommenton = array(
"");
40 $this->blockcommentoff = array(
"");
44 $this->keywords = array(
51 "#Itsexpression" =>
"1",
52 "#Readclauses" =>
"1",
103 "Addrelationtoenv" =>
"3",
104 "Addtabletoenv" =>
"3",
112 "Agetfileversion" =>
"3",
122 "Anetresources" =>
"3",
134 "Asynchronous" =>
"3",
145 "Avcxclasses" =>
"3",
150 "BatchUpdateCount" =>
"3",
166 "BrowseRefresh" =>
"3",
168 "BuilderLock" =>
"3",
170 "COMReturnError" =>
"3",
191 "Comclassinfo" =>
"3",
192 "CommandTargetQuery" =>
"3",
198 "ConnectBusy" =>
"3",
199 "ConnectHandle" =>
"3",
200 "ConnectName" =>
"3",
201 "ConnectString" =>
"3",
202 "ConnectTimeOut" =>
"3",
203 "ContainerReleaseType" =>
"3",
215 "CreateBinary" =>
"3",
216 "Createobject" =>
"3",
217 "Createobjectex" =>
"3",
218 "Createoffline" =>
"3",
219 "CrsBuffering" =>
"3",
220 "CrsFetchMemo" =>
"3",
221 "CrsFetchSize" =>
"3",
223 "CrsMethodUsed" =>
"3",
224 "CrsNumBatch" =>
"3",
225 "CrsShareConnection" =>
"3",
226 "CrsUseMemoSize" =>
"3",
227 "CrsWhereClause" =>
"3",
235 "CursorGetProp" =>
"3",
236 "CursorSetProp" =>
"3",
241 "DB_BufLockRow" =>
"3",
242 "DB_BufLockTable" =>
"3",
244 "DB_BufOptRow" =>
"3",
245 "DB_BufOptTable" =>
"3",
246 "DB_Complette" =>
"3",
247 "DB_DeleteInsert" =>
"3",
248 "DB_KeyAndModified" =>
"3",
249 "DB_KeyAndTimestamp" =>
"3",
250 "DB_KeyAndUpdatable" =>
"3",
251 "DB_LocalSQL" =>
"3",
252 "DB_NoPrompt" =>
"3",
254 "DB_RemoteSQL" =>
"3",
255 "DB_TransAuto" =>
"3",
256 "DB_TransManual" =>
"3",
257 "DB_TransNone" =>
"3",
267 "Ddeaborttrans" =>
"3",
271 "Ddeinitiate" =>
"3",
272 "Ddelasterror" =>
"3",
275 "Ddesetoption" =>
"3",
276 "Ddesetservice" =>
"3",
277 "Ddesettopic" =>
"3",
278 "Ddeterminate" =>
"3",
282 "DefaultValue" =>
"3",
285 "DeleteTrigger" =>
"3",
287 "Description" =>
"3",
294 "DispWarnings" =>
"3",
305 "Dropoffline" =>
"3",
310 "DynamicInputMask" =>
"3",
320 "Eventtracking" =>
"3",
352 "FormSetClass" =>
"3",
380 "Getfldstate" =>
"3",
383 "Getnextmodified" =>
"3",
394 "GridShowPos" =>
"3",
400 "HighLightRow" =>
"3",
404 "IdleTimeOut" =>
"3",
418 "InsertTrigger" =>
"3",
429 "Isexclusive" =>
"3",
445 "KeyFieldList" =>
"3",
448 "LastProject" =>
"3",
457 "LoadPicture" =>
"3",
458 "Loadpicture" =>
"3",
506 "OLEDropTextInsertion" =>
"3",
510 "Objtoclient" =>
"3",
516 "Olereturnerror" =>
"3",
539 "Printstatus" =>
"3",
543 "ProjectClick" =>
"3",
552 "QueryTimeOut" =>
"3",
565 "RecentlyUsedFiles" =>
"3",
570 "RelatedChild" =>
"3",
571 "RelatedTable" =>
"3",
588 "Revertoffline" =>
"3",
597 "RuleExpression" =>
"3",
602 "SQLAsynchronous" =>
"3",
603 "SQLBatchMode" =>
"3",
607 "SQLConnectTimeOut" =>
"3",
608 "SQLDisconnect" =>
"3",
609 "SQLDispLogin" =>
"3",
610 "SQLDispWarnings" =>
"3",
613 "SQLIdleTimeOut" =>
"3",
614 "SQLMoreResults" =>
"3",
616 "SQLQueryTimeOut" =>
"3",
619 "SQLTransactions" =>
"3",
620 "SQLWaitTime" =>
"3",
622 "SavePicture" =>
"3",
623 "Savepicture" =>
"3",
632 "SendUpdates" =>
"3",
635 "Setfldstate" =>
"3",
637 "ShareConnection" =>
"3",
638 "ShowOLEControls" =>
"3",
639 "ShowOLEInsertable" =>
"3",
652 "Sqlrollback" =>
"3",
653 "Sqlstringconnect" =>
"3",
671 "TabOrdering" =>
"3",
673 "TableRefresh" =>
"3",
674 "Tablerevert" =>
"3",
675 "Tableupdate" =>
"3",
682 "Thisformset" =>
"3",
684 "Timestampdiff" =>
"3",
686 "Transactions" =>
"3",
700 "UpdatableFieldList" =>
"3",
703 "UpdateNameList" =>
"3",
704 "UpdateTrigger" =>
"3",
711 "UseMemoSize" =>
"3",
718 "VersionLanguage" =>
"3",
737 "WizardPrompt" =>
"3",
843 "_Mfi_export" =>
"3",
844 "_Mfi_import" =>
"3",
873 "_Mpr_formwz" =>
"3",
880 "_Mpr_suspend" =>
"3",
901 "_Msm_format" =>
"3",
920 "_Mst_office" =>
"3",
966 "_Mwz_foxdoc" =>
"3",
967 "_Mwz_import" =>
"3",
975 "_Mwz_upsizing" =>
"3",
1000 "_Runactivedoc" =>
"3",
1005 "_Sqlserver" =>
"3",
1011 "_Transport" =>
"3",
1012 "_Triggerlevel" =>
"3",
1014 "_WebDevOnly" =>
"3",
1016 "_WebMsftHomePage" =>
"3",
1017 "_WebVFPHomePage" =>
"3",
1018 "_WebVfpOnlineSupport" =>
"3",
1028 "Alignright" =>
"4",
1043 "Attributes" =>
"4",
1081 "Compatible" =>
"4",
1084 "Connection" =>
"4",
1085 "Connections" =>
"4",
1086 "Connstring" =>
"4",
1095 "Datasource" =>
"4",
1103 "Defaultsource" =>
"4",
1104 "Deletetables" =>
"4",
1106 "Delimiters" =>
"4",
1107 "Descending" =>
"4",
1109 "Development" =>
"4",
1128 "Encryption" =>
"4",
1129 "Environment" =>
"4",
1136 "Expression" =>
"4",
1166 "Halfheight" =>
"4",
1170 "Helpfilter" =>
"4",
1177 "Information" =>
"4",
1187 "Keycolumns" =>
"4",
1199 "Lpartition" =>
"4",
1201 "Macdesktop" =>
"4",
1226 "Multilocks" =>
"4",
1244 "Noenvironment" =>
"4",
1255 "Nominimize" =>
"4",
1259 "Nooptimize" =>
"4",
1260 "Nooverwrite" =>
"4",
1261 "Noprojecthook" =>
"4",
1277 "Novalidate" =>
"4",
1290 "Oleobjects" =>
"4",
1294 "Orientation" =>
"4",
1301 "Paperlength" =>
"4",
1303 "Paperwidth" =>
"4",
1316 "Preference" =>
"4",
1320 "Printquality" =>
"4",
1321 "Procedures" =>
"4",
1322 "Production" =>
"4",
1330 "Readborder" =>
"4",
1336 "References" =>
"4",
1355 "Scoreboard" =>
"4",
1371 "Standalone" =>
"4",
1381 "Sysformats" =>
"4",
1396 "Transaction" =>
"4",
1429 "Yresolution" =>
"4",
1432 "ActivateCell" =>
"5",
1436 "AddListItem" =>
"5",
1438 "AddProperty" =>
"5",
1440 "AfterBuild" =>
"5",
1441 "AfterCloseTables" =>
"5",
1443 "AfterRowColChange" =>
"5",
1444 "BeforeBuild" =>
"5",
1445 "BeforeDock" =>
"5",
1446 "BeforeOpenTables" =>
"5",
1447 "BeforeRowColChange" =>
"5",
1457 "CloneObject" =>
"5",
1458 "CloseEditor" =>
"5",
1459 "CloseTables" =>
"5",
1461 "CommandTargetExec" =>
"5",
1462 "CommandTargetQueryStas" =>
"5",
1463 "ContainerRelease" =>
"5",
1464 "DataToClip" =>
"5",
1466 "Deactivate" =>
"5",
1468 "DeleteColumn" =>
"5",
1481 "EnterFocus" =>
"5",
1483 "ErrorMessage" =>
"5",
1486 "FormatChange" =>
"5",
1489 "GetLatestVersion" =>
"5",
1493 "GridHitTest" =>
"5",
1496 "IndexToItemId" =>
"5",
1498 "InteractiveChange" =>
"5",
1500 "ItemIdToIndex" =>
"5",
1506 "MiddleClick" =>
"5",
1510 "MouseWheel" =>
"5",
1513 "NavigateTo" =>
"5",
1515 "OLECompleteDrag" =>
"5",
1517 "OLEDragDrop" =>
"5",
1518 "OLEDragOver" =>
"5",
1519 "OLEGiveFeedback" =>
"5",
1520 "OLESetData" =>
"5",
1521 "OLEStartDrag" =>
"5",
1522 "OpenEditor" =>
"5",
1523 "OpenTables" =>
"5",
1527 "ProgrammaticChange" =>
"5",
1529 "QueryAddFile" =>
"5",
1530 "QueryModifyFile" =>
"5",
1531 "QueryRemoveFile" =>
"5",
1532 "QueryRunFile" =>
"5",
1533 "QueryUnload" =>
"5",
1536 "ReadActivate" =>
"5",
1537 "ReadExpression" =>
"5",
1538 "ReadDeactivate" =>
"5",
1539 "ReadMethod" =>
"5",
1545 "RemoveFromSCC" =>
"5",
1546 "RemoveItem" =>
"5",
1547 "RemoveListItem" =>
"5",
1548 "RemoveObject" =>
"5",
1550 "RequestData" =>
"5",
1552 "ResetToDefault" =>
"5",
1554 "RightClick" =>
"5",
1556 "SaveAsClass" =>
"5",
1564 "SetViewPort" =>
"5",
1566 "ShowWhatsThis" =>
"5",
1567 "TextHeight" =>
"5",
1572 "UndoCheckOut" =>
"5",
1576 "WhatsThisMode" =>
"5",
1578 "WriteExpression" =>
"5",
1579 "WriteMethod" =>
"5",
1581 "ATGetColors" =>
"6",
1582 "ATListColors" =>
"6",
1583 "Accelerate" =>
"6",
1584 "ActiveColumn" =>
"6",
1585 "ActiveControl" =>
"6",
1586 "ActiveForm" =>
"6",
1587 "ActiveObjectId" =>
"6",
1588 "ActivePage" =>
"6",
1589 "ActiveProject" =>
"6",
1591 "AddLineFeeds" =>
"6",
1594 "AllowAddNew" =>
"6",
1595 "AllowHeaderSizing" =>
"6",
1596 "AllowResize" =>
"6",
1597 "AllowRowSizing" =>
"6",
1599 "AlwaysOnTop" =>
"6",
1600 "Application" =>
"6",
1601 "AutoActivate" =>
"6",
1602 "AutoCenter" =>
"6",
1603 "AutoCloseTables" =>
"6",
1604 "AutoIncrement" =>
"6",
1605 "AutoOpenTables" =>
"6",
1606 "AutoRelease" =>
"6",
1608 "AutoVerbMenu" =>
"6",
1614 "BorderColor" =>
"6",
1615 "BorderStyle" =>
"6",
1616 "BorderWidth" =>
"6",
1618 "BoundColumn" =>
"6",
1620 "BrowseAlignment" =>
"6",
1621 "BrowseCellMarg" =>
"6",
1622 "BrowseDestWidth" =>
"6",
1623 "BufferMode" =>
"6",
1624 "BufferModeOverride" =>
"6",
1625 "BuildDateTime" =>
"6",
1626 "ButtonCount" =>
"6",
1627 "ButtonIndex" =>
"6",
1630 "CanAccelerate" =>
"6",
1631 "CanGetFocus" =>
"6",
1632 "CanLoseFocus" =>
"6",
1635 "ChildAlias" =>
"6",
1636 "ChildOrder" =>
"6",
1638 "ClassLibrary" =>
"6",
1639 "ClipControls" =>
"6",
1642 "ColorScheme" =>
"6",
1643 "ColorSource" =>
"6",
1644 "ColumnCount" =>
"6",
1645 "ColumnHeaders" =>
"6",
1646 "ColumnLines" =>
"6",
1647 "ColumnOrder" =>
"6",
1648 "ColumnWidths" =>
"6",
1651 "ContinuousScroll" =>
"6",
1652 "ControlBox" =>
"6",
1653 "ControlCount" =>
"6",
1654 "ControlIndex" =>
"6",
1655 "ControlSource" =>
"6",
1657 "CurrentControl" =>
"6",
1660 "CursorSource" =>
"6",
1662 "DataSession" =>
"6",
1663 "DataSessionId" =>
"6",
1664 "DataSourceObj" =>
"6",
1667 "DateFormat" =>
"6",
1670 "DefButtonOrig" =>
"6",
1676 "DefaultFilePath" =>
"6",
1677 "DefineWindows" =>
"6",
1678 "DeleteMark" =>
"6",
1681 "DisabledBackColor" =>
"6",
1682 "DisabledByEOF" =>
"6",
1683 "DisabledForeColor" =>
"6",
1684 "DisabledItemBackColor" =>
"6",
1685 "DisabledItemForeColor" =>
"6",
1686 "DisabledPicture" =>
"6",
1687 "DispPageHeight" =>
"6",
1688 "DispPageWidth" =>
"6",
1689 "DisplayCount" =>
"6",
1690 "DisplayValue" =>
"6",
1692 "DockPosition" =>
"6",
1694 "DocumentFile" =>
"6",
1695 "DownPicture" =>
"6",
1702 "DynamicAlignment" =>
"6",
1703 "DynamicBackColor" =>
"6",
1704 "DynamicCurrentControl" =>
"6",
1705 "DynamicFontBold" =>
"6",
1706 "DynamicFontItalic" =>
"6",
1707 "DynamicFontName" =>
"6",
1708 "DynamicFontOutline" =>
"6",
1709 "DynamicFontShadow" =>
"6",
1710 "DynamicFontSize" =>
"6",
1711 "DynamicFontStrikethru" =>
"6",
1712 "DynamicFontUnderline" =>
"6",
1713 "DynamicForeColor" =>
"6",
1716 "EnabledByReadLock" =>
"6",
1721 "FileClassLibrary" =>
"6",
1725 "FirstElement" =>
"6",
1727 "FontItalic" =>
"6",
1729 "FontOutline" =>
"6",
1730 "FontShadow" =>
"6",
1732 "FontStrikethru" =>
"6",
1733 "FontUnderline" =>
"6",
1734 "ForceFocus" =>
"6",
1738 "FormPageCount" =>
"6",
1739 "FormPageIndex" =>
"6",
1746 "GridLineColor" =>
"6",
1747 "GridLineWidth" =>
"6",
1751 "HalfHeightCaption" =>
"6",
1754 "HeaderHeight" =>
"6",
1756 "HelpContextID" =>
"6",
1757 "HideSelection" =>
"6",
1762 "HscrollSmallChange" =>
"6",
1765 "IgnoreInsert" =>
"6",
1768 "IncrementalSearch" =>
"6",
1769 "InitialSelectedAlias" =>
"6",
1771 "Instancing" =>
"6",
1772 "IntegralHeight" =>
"6",
1774 "ItemBackColor" =>
"6",
1776 "ItemForeColor" =>
"6",
1777 "ItemIDData" =>
"6",
1779 "JustReadLocked" =>
"6",
1780 "KeyPreview" =>
"6",
1781 "KeyboardHighValue" =>
"6",
1782 "KeyboardLowValue" =>
"6",
1783 "LastModified" =>
"6",
1785 "LeftColumn" =>
"6",
1787 "LinkMaster" =>
"6",
1792 "ListItemId" =>
"6",
1793 "LockDataSource" =>
"6",
1794 "LockScreen" =>
"6",
1805 "MemoWindow" =>
"6",
1810 "MousePointer" =>
"6",
1813 "MultiSelect" =>
"6",
1818 "NoDataOnLoad" =>
"6",
1820 "NotifyContainer" =>
"6",
1821 "NullDisplay" =>
"6",
1822 "NumberOfElements" =>
"6",
1823 "OLEDragMode" =>
"6",
1824 "OLEDragPicture" =>
"6",
1825 "OLEDropEffects" =>
"6",
1826 "OLEDropHasData" =>
"6",
1827 "OLEDropMode" =>
"6",
1828 "OLERequestPendingTimeOut" =>
"6",
1829 "OLEServerBusyRaiseError" =>
"6",
1830 "OLEServerBusyTimeOut" =>
"6",
1831 "OLETypeAllowed" =>
"6",
1833 "OleClassId" =>
"6",
1834 "OleControlContainer" =>
"6",
1835 "OleIDispInValue" =>
"6",
1836 "OleIDispOutValue" =>
"6",
1837 "OleIDispatchIncoming" =>
"6",
1838 "OleIDispatchOutgoing" =>
"6",
1842 "OpenWindow" =>
"6",
1844 "PageHeight" =>
"6",
1851 "ParentAlias" =>
"6",
1852 "ParentClass" =>
"6",
1854 "PasswordChar" =>
"6",
1858 "ProjectHookClass" =>
"6",
1859 "ProjectHookLibrary" =>
"6",
1861 "ReadColors" =>
"6",
1863 "ReadFiller" =>
"6",
1869 "ReadTimeout" =>
"6",
1870 "RecordMark" =>
"6",
1871 "RecordSource" =>
"6",
1872 "RecordSourceType" =>
"6",
1874 "RelationalExpr" =>
"6",
1875 "RelativeColumn" =>
"6",
1876 "RelativeRow" =>
"6",
1877 "ReleaseErase" =>
"6",
1878 "ReleaseType" =>
"6",
1879 "ReleaseWindows" =>
"6",
1881 "RightToLeft" =>
"6",
1884 "RowSourceType" =>
"6",
1885 "SCCProvider" =>
"6",
1889 "ScrollBars" =>
"6",
1893 "SelectOnEntry" =>
"6",
1895 "SelectedBackColor" =>
"6",
1896 "SelectedForeColor" =>
"6",
1897 "SelectedID" =>
"6",
1898 "SelectedItemBackColor" =>
"6",
1899 "SelectedItemForeColor" =>
"6",
1901 "ServerClass" =>
"6",
1902 "ServerClassLibrary" =>
"6",
1903 "ServerHelpFile" =>
"6",
1904 "ServerName" =>
"6",
1905 "ServerProject" =>
"6",
1907 "ShowWindow" =>
"6",
1909 "Size<height>" =>
"6",
1910 "Size<maxlength>" =>
"6",
1911 "Size<width>" =>
"6",
1915 "SourceType" =>
"6",
1917 "SpecialEffect" =>
"6",
1918 "SpinnerHighValue" =>
"6",
1919 "SpinnerLowValue" =>
"6",
1922 "StatusBarText" =>
"6",
1924 "StrictDateEntry" =>
"6",
1926 "SystemRefCount" =>
"6",
1929 "TabStretch" =>
"6",
1934 "TerminateRead" =>
"6",
1937 "ToolTipText" =>
"6",
1941 "TypeLibCLSID" =>
"6",
1942 "TypeLibDesc" =>
"6",
1943 "TypeLibName" =>
"6",
1944 "UnlockDataSource" =>
"6",
1946 "ValueDirty" =>
"6",
1947 "VersionComments" =>
"6",
1948 "VersionCompany" =>
"6",
1949 "VersionCopyright" =>
"6",
1950 "VersionDescription" =>
"6",
1951 "VersionNumber" =>
"6",
1952 "VersionProduct" =>
"6",
1953 "VersionTrademarks" =>
"6",
1955 "ViewPortHeight" =>
"6",
1956 "ViewPortLeft" =>
"6",
1957 "ViewPortTop" =>
"6",
1958 "ViewPortWidth" =>
"6",
1960 "VscrollSmallChange" =>
"6",
1963 "WhatsThisButton" =>
"6",
1964 "WhatsThisHelp" =>
"6",
1965 "WhatsThisHelpID" =>
"6",
1967 "WindowList" =>
"6",
1968 "WindowNTIList" =>
"6",
1969 "WindowState" =>
"6",
1970 "WindowType" =>
"6",
1977 "CommandButton" =>
"7",
1978 "CommandGroup" =>
"7",
1983 "DataEnvironment" =>
"7",
1997 "OleBaseControl" =>
"7",
1998 "OleBoundControl" =>
"7",
1999 "OleClassIDispOut" =>
"7",
2000 "OleControl" =>
"7",
2001 "OptionButton" =>
"7",
2002 "OptionGroup" =>
"7",
2005 "ProjectHook" =>
"7",
2021 $this->linkscripts = array(
2028 "7" =>
"donothing");