2 $BEAUT_PATH = realpath(
".").
"/Services/COPage/syntax_highlight/php";
 
    4 require_once(
"$BEAUT_PATH/Beautifier/HFile.php");
 
   20 $this->colours          = array(
"blue", 
"gray", 
"purple", 
"gray", 
"brown", 
"blue", 
"purple");
 
   21 $this->quotecolour              = 
"blue";
 
   22 $this->blockcommentcolour       = 
"green";
 
   23 $this->linecommentcolour        = 
"green";
 
   27 $this->indent                   = array(
"Then", 
"Do");
 
   28 $this->unindent                 = array(
"End", 
"Next", 
"End If", 
"End Select", 
"Loop");
 
   32 $this->stringchars              = array(
"\"");
 
   33 $this->delimiters               = array(
"~", 
"!", 
"@", 
"%", 
"^", 
"&", 
"*", 
"(", 
")", 
"-", 
"+", 
"=", 
"|", 
"\\", 
"/", 
"{", 
"}", 
"[", 
"]", 
":", 
";", 
"\"", 
"'", 
"<", 
">", 
" ", 
",", 
"      ", 
"?");
 
   38 $this->linecommenton            = array(
"'");
 
   39 $this->blockcommenton           = array(
"/*");
 
   40 $this->blockcommentoff          = array(
"*/");
 
   44 $this->keywords                 = array(
 
   47                         "BulkRetrieve" => 
"1", 
 
   82                         "cbAbortRetryIgnore" => 
"3", 
 
   86                         "cbCloseChildren" => 
"3", 
 
   87                         "cbCloseMessage" => 
"3", 
 
   88                         "cbDescending" => 
"3", 
 
   89                         "cbDefClosedWindow" => 
"3", 
 
   91                         "cbFirstMessage" => 
"3", 
 
   94                         "cbGreaterorEqual" => 
"3", 
 
  106                         "cbLessOrEqual" => 
"3", 
 
  108                         "cbNoDefault" => 
"3", 
 
  113                         "cbRefreshMessage" => 
"3", 
 
  114                         "cbRetryCancel" => 
"3", 
 
  115                         "cbSaveDiscardCancel" => 
"3", 
 
  116                         "cbSoundsLike" => 
"3", 
 
  118                         "cbYesNoCancel" => 
"3", 
 
  120                         "ebExclamation" => 
"3", 
 
  121                         "ebInformation" => 
"3", 
 
  123                         "ebApplicationModal" => 
"3", 
 
  124                         "ebSystemModal" => 
"3", 
 
  141                         "AllowDuplicates" => 
"5", 
 
  142                         "AppendFilter" => 
"5", 
 
  144                         "AppendSeparator" => 
"5", 
 
  147                         "CancelRecord" => 
"5", 
 
  148                         "ChangeRecord" => 
"5", 
 
  149                         "ChangeToNew" => 
"5", 
 
  152                         "CLTransition" => 
"5", 
 
  161                         "CountByType" => 
"5", 
 
  162                         "CreateColorScheme" => 
"5", 
 
  163                         "DeleteRecord" => 
"5", 
 
  164                         "DeleteRecordById" => 
"5", 
 
  165                         "DisableControls" => 
"5", 
 
  166                         "DisableControlsDeep" => 
"5", 
 
  170                         "EmployeeObjid" => 
"5", 
 
  173                         "EnableControlDeep" => 
"5", 
 
  174                         "EnableControls" => 
"5", 
 
  179                         "ExecuteMenu" => 
"5", 
 
  180                         "ExecuteProc" => 
"5", 
 
  182                         "ExtractList" => 
"5", 
 
  184                         "FindFirstIndex" => 
"5", 
 
  185                         "ForceRedraw" => 
"5", 
 
  188                         "GetContents" => 
"5", 
 
  190                         "GetControlByName" => 
"5", 
 
  191                         "GetCurrentDB" => 
"5", 
 
  194                         "GetFormInstance" => 
"5", 
 
  195                         "GetItemByIndex" => 
"5", 
 
  197                         "GetRecordByIndex" => 
"5", 
 
  198                         "GetRecordList" => 
"5", 
 
  199                         "GetRelatedRecordList" => 
"5", 
 
  200                         "GetSelected" => 
"5", 
 
  204                         "InsertRecord" => 
"5", 
 
  210                         "ItemByIndex" => 
"5", 
 
  212                         "ListByIndex" => 
"5", 
 
  221                         "NotifyByKey" => 
"5", 
 
  222                         "NotifyChild" => 
"5", 
 
  223                         "NotifyParent" => 
"5", 
 
  225                         "NotifyTabParent" => 
"5", 
 
  229                         "RelateRecords" => 
"5", 
 
  230                         "RelateRecordsFromID" => 
"5", 
 
  231                         "RelateRecordsFromToID" => 
"5", 
 
  232                         "RelateRecordsToID" => 
"5", 
 
  233                         "RemoveByIndex" => 
"5", 
 
  234                         "RemoveByItem" => 
"5", 
 
  236                         "RemoveSelected" => 
"5", 
 
  238                         "ReplaceByIndex" => 
"5", 
 
  239                         "ReplaceItem" => 
"5", 
 
  240                         "RetrieveRecords" => 
"5", 
 
  242                         "SelectedIndexes" => 
"5", 
 
  243                         "SelectedList" => 
"5", 
 
  244                         "SetCellColoring" => 
"5", 
 
  245                         "SetColorScheme" => 
"5", 
 
  248                         "SetFunction" => 
"5", 
 
  251                         "SetRootById" => 
"5", 
 
  252                         "SetSelected" => 
"5", 
 
  256                         "ShowAttachments" => 
"5", 
 
  258                         "ShowContact" => 
"5", 
 
  259                         "ShowContract" => 
"5", 
 
  260                         "ShowControls" => 
"5", 
 
  261                         "ShowControlsDeep" => 
"5", 
 
  263                         "ShowDebugWindow" => 
"5", 
 
  264                         "ShowDefaultMenu" => 
"5", 
 
  265                         "ShowEmployee" => 
"5", 
 
  269                         "ShowSubcase" => 
"5", 
 
  270                         "SimpleQuery" => 
"5", 
 
  274                         "TransferPart" => 
"5", 
 
  275                         "TraverseFromParent" => 
"5", 
 
  276                         "TraverseFromRoot" => 
"5", 
 
  277                         "UnrelateRecords" => 
"5", 
 
  280                         "UpdateRecord" => 
"5", 
 
  294                         "ActivateControl" => 
"7", 
 
  297                         "AppActivate" => 
"7", 
 
  299                         "AppFileName" => 
"7", 
 
  301                         "AppGetActive" => 
"7", 
 
  302                         "AppGetPosition" => 
"7", 
 
  303                         "AppGetState" => 
"7", 
 
  306                         "AppMaximize" => 
"7", 
 
  307                         "AppMinimize" => 
"7", 
 
  310                         "AppSetState" => 
"7", 
 
  314                         "Architecture" => 
"7", 
 
  315                         "ArrangeIcons" => 
"7", 
 
  323                         "AskPasssword" => 
"7", 
 
  326                         "BasicScript" => 
"7", 
 
  331                         "ButtonEnabled" => 
"7", 
 
  332                         "ButtonExists" => 
"7", 
 
  344                         "CheckBoxEnabled" => 
"7", 
 
  345                         "CheckBoxExists" => 
"7", 
 
  354                         "ComboBoxEnabled" => 
"7", 
 
  355                         "ComboBoxExists" => 
"7", 
 
  362                         "CreateObject" => 
"7", 
 
  384                         "DDETermiateAll" => 
"7", 
 
  385                         "DDETerminate" => 
"7", 
 
  398                         "DeleteSettings" => 
"7", 
 
  399                         "Description" => 
"7", 
 
  403                         "DlgBaseUnitsX" => 
"7", 
 
  404                         "DlgBaseUnitsY" => 
"7", 
 
  406                         "DlgControlID" => 
"7", 
 
  409                         "DlgListBoxArray" => 
"7", 
 
  410                         "DlgSetPicture" => 
"7", 
 
  418                         "DropListBox" => 
"7", 
 
  419                         "EditEnabled" => 
"7", 
 
  433                         "FileDateTime" => 
"7", 
 
  444                         "FreeResources" => 
"7", 
 
  447                         "GetAllSettings" => 
"7", 
 
  450                         "GetCheckBox" => 
"7", 
 
  451                         "GetComboBoxItem" => 
"7", 
 
  452                         "GetComboBoxItemCount" => 
"7", 
 
  454                         "GetEditText" => 
"7", 
 
  455                         "GetListBoxItem" => 
"7", 
 
  456                         "GetListBoxItemCount" => 
"7", 
 
  464                         "HelpContext" => 
"7", 
 
  495                         "LastDLLError" => 
"7", 
 
  506                         "ListBoxEnabled" => 
"7", 
 
  507                         "ListBoxExists" => 
"7", 
 
  521                         "MenuItemChecked" => 
"7", 
 
  522                         "MenuItemEnabled" => 
"7", 
 
  523                         "MenuItemExists" => 
"7", 
 
  528                         "Miscellaneous" => 
"7", 
 
  532                         "MouseTrails" => 
"7", 
 
  535                         "Msg.SetText" => 
"7", 
 
  536                         "Msg.SetThermometer" => 
"7", 
 
  547                         "OpenFilename" => 
"7", 
 
  548                         "OperatingSystem" => 
"7", 
 
  549                         "OperatingSystemVendor" => 
"7", 
 
  550                         "OperatingSystemVersion" => 
"7", 
 
  552                         "OptionButton" => 
"7", 
 
  553                         "OptionEnabled" => 
"7", 
 
  554                         "OptionExists" => 
"7", 
 
  555                         "OptionGroup" => 
"7", 
 
  557                         "PathSeparator" => 
"7", 
 
  559                         "PictureButton" => 
"7", 
 
  564                         "PrinterGetOrientation" => 
"7", 
 
  565                         "PrinterSetOrientation" => 
"7", 
 
  570                         "ProcessorCount" => 
"7", 
 
  580                         "QueMouseClick" => 
"7", 
 
  581                         "QueMouseDblClick" => 
"7", 
 
  582                         "QueMouseDblDn" => 
"7", 
 
  584                         "QueMouseMove" => 
"7", 
 
  585                         "QueMouseMoveBatch" => 
"7", 
 
  587                         "QueSetRelativeWindow" => 
"7", 
 
  593                         "ReadIniSection" => 
"7", 
 
  605                         "SaveFilename" => 
"7", 
 
  606                         "SaveSetting" => 
"7", 
 
  611                         "SelectButton" => 
"7", 
 
  612                         "SelectComboBoxItem" => 
"7", 
 
  613                         "SelectListBoxItem" => 
"7", 
 
  616                         "SetCheckBox" => 
"7", 
 
  618                         "SetEditText" => 
"7", 
 
  620                         "SetWallpaper" => 
"7", 
 
  634                         "SQLExecQuery" => 
"7", 
 
  635                         "SQLGetSchema" => 
"7", 
 
  638                         "SQLRetrieve" => 
"7", 
 
  639                         "SQLRetrieveToFile" => 
"7", 
 
  656                         "TotalMemory" => 
"7", 
 
  658                         "TwipsPerPixelX" => 
"7", 
 
  659                         "TwipsPerPixelY" => 
"7", 
 
  670                         "ViewportClear" => 
"7", 
 
  671                         "ViewportClose" => 
"7", 
 
  672                         "ViewportOpen" => 
"7", 
 
  680                         "WinActivate" => 
"7", 
 
  682                         "WindowsDirectory" => 
"7", 
 
  683                         "WindowsVersion" => 
"7", 
 
  686                         "WinMaximize" => 
"7", 
 
  687                         "WinMinimize" => 
"7", 
 
  705 $this->linkscripts      = array(