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");
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(
84 "appwaitclose" =>
"2",
86 "askdirectory" =>
"2",
98 "binaryclipget" =>
"2",
99 "binaryclipput" =>
"2",
100 "binarycompare" =>
"2",
101 "binaryconvert" =>
"2",
103 "binaryeodget" =>
"2",
104 "binaryeodset" =>
"2",
106 "binaryhashrec" =>
"2",
108 "binaryincr2" =>
"2",
109 "binaryincr4" =>
"2",
110 "binaryincrflt" =>
"2",
111 "binaryindex" =>
"2",
112 "binaryindexex" =>
"2",
113 "binaryindexnc" =>
"2",
114 "binaryoletype" =>
"2",
117 "binarypeek2" =>
"2",
118 "binarypeek4" =>
"2",
119 "binarypeekflt" =>
"2",
120 "binarypeekstr" =>
"2",
122 "binarypoke2" =>
"2",
123 "binarypoke4" =>
"2",
124 "binarypokeflt" =>
"2",
125 "binarypokestr" =>
"2",
127 "binaryreadex" =>
"2",
129 "binarystrcnt" =>
"2",
130 "binarytagextr" =>
"2",
131 "binarytagfind" =>
"2",
132 "binarytaginit" =>
"2",
133 "binarytagrepl" =>
"2",
134 "binarywrite" =>
"2",
135 "binarywriteex" =>
"2",
137 "boxbuttondraw" =>
"2",
138 "boxbuttonkill" =>
"2",
139 "boxbuttonstat" =>
"2",
140 "boxbuttonwait" =>
"2",
143 "boxdataclear" =>
"2",
146 "boxdrawcircle" =>
"2",
147 "boxdrawline" =>
"2",
148 "boxdrawrect" =>
"2",
149 "boxdrawtext" =>
"2",
157 "boxtextcolor" =>
"2",
158 "boxtextfont" =>
"2",
161 "buttonnames" =>
"2",
172 "ddeinitiate" =>
"2",
175 "ddeterminate" =>
"2",
199 "diskvolinfo" =>
"2",
208 "environment" =>
"2",
212 "exetypeinfo" =>
"2",
216 "fileattrget" =>
"2",
217 "fileattrset" =>
"2",
219 "filecompare" =>
"2",
223 "fileextension" =>
"2",
224 "filefullname" =>
"2",
225 "fileitemize" =>
"2",
227 "filemapname" =>
"2",
229 "filenameeval1" =>
"2",
230 "filenameeval2" =>
"2",
231 "filenamelong" =>
"2",
232 "filenameshort" =>
"2",
239 "filetimecode" =>
"2",
240 "filetimeget" =>
"2",
241 "filetimegetex" =>
"2",
242 "filetimeset" =>
"2",
243 "filetimesetex" =>
"2",
244 "filetimetouch" =>
"2",
245 "fileverinfo" =>
"2",
250 "getexacttime" =>
"2",
251 "gettickcount" =>
"2",
252 "iconarrange" =>
"2",
253 "iconreplace" =>
"2",
254 "ignoreinput" =>
"2",
256 "inideletepvt" =>
"2",
258 "iniitemizepvt" =>
"2",
262 "iniwritepvt" =>
"2",
263 "installfile" =>
"2",
272 "itemextract" =>
"2",
279 "keytoggleget" =>
"2",
280 "keytoggleset" =>
"2",
290 "mouseclickbtn" =>
"2",
297 "objectaccess" =>
"2",
298 "objectclose" =>
"2",
304 "playwaveform" =>
"2",
308 "regclosekey" =>
"2",
310 "regcreatekey" =>
"2",
311 "regdeletekey" =>
"2",
312 "regdelvalue" =>
"2",
313 "regentrytype" =>
"2",
314 "regexistkey" =>
"2",
315 "regexistvalue" =>
"2",
316 "regloadhive" =>
"2",
318 "regquerybin" =>
"2",
319 "regquerydword" =>
"2",
321 "regqueryexpsz" =>
"2",
322 "regqueryitem" =>
"2",
323 "regquerykey" =>
"2",
324 "regquerykeys" =>
"2",
325 "regquerymulsz" =>
"2",
326 "regqueryvalue" =>
"2",
328 "regsetdword" =>
"2",
330 "regsetexpsz" =>
"2",
331 "regsetmulsz" =>
"2",
332 "regsetvalue" =>
"2",
333 "regunloadhive" =>
"2",
340 "runhidewait" =>
"2",
342 "runiconwait" =>
"2",
346 "runzoomwait" =>
"2",
348 "sendkeyschild" =>
"2",
350 "sendmenusto" =>
"2",
351 "sendmenustoex" =>
"2",
352 "shellexecute" =>
"2",
353 "shortcutdir" =>
"2",
354 "shortcutedit" =>
"2",
355 "shortcutextra" =>
"2",
356 "shortcutinfo" =>
"2",
357 "shortcutmake" =>
"2",
364 "strcharcount" =>
"2",
368 "strfixchars" =>
"2",
369 "strfixcharsl" =>
"2",
374 "strindexwild" =>
"2",
388 "textboxsort" =>
"2",
394 "timediffdays" =>
"2",
395 "timediffsecs" =>
"2",
396 "timejulianday" =>
"2",
397 "timejultoymd" =>
"2",
398 "timesubtract" =>
"2",
405 "webbaseconv" =>
"2",
406 "webcloselog" =>
"2",
413 "webdumperror" =>
"2",
414 "webhashcode" =>
"2",
420 "webparamdata" =>
"2",
421 "webparambuf" =>
"2",
422 "webparamnames" =>
"2",
423 "websettimeout" =>
"2",
424 "webverifycard" =>
"2",
425 "winactivate" =>
"2",
426 "winactivchild" =>
"2",
429 "winclosenot" =>
"2",
433 "winexistchild" =>
"2",
434 "wingetactive" =>
"2",
440 "winitemchild" =>
"2",
442 "winitemizeex" =>
"2",
443 "winitemnameid" =>
"2",
444 "winitemprocid" =>
"2",
450 "winplaceget" =>
"2",
451 "winplaceset" =>
"2",
452 "winposition" =>
"2",
453 "winresources" =>
"2",
459 "winwaitchild" =>
"2",
460 "winwaitclose" =>
"2",
461 "winwaitexist" =>
"2",
465 "@aboveicons" =>
"3",
466 "@acc_attrib" =>
"3",
467 "@acc_chng_nt" =>
"3",
468 "@acc_control" =>
"3",
469 "@acc_create" =>
"3",
470 "@acc_delete" =>
"3",
471 "@acc_full_95" =>
"3",
472 "@acc_full_nt" =>
"3",
474 "@acc_pfull_nt" =>
"3",
475 "@acc_pmang_nt" =>
"3",
476 "@acc_print_nt" =>
"3",
478 "@acc_read_95" =>
"3",
479 "@acc_read_nt" =>
"3",
505 "@commonformat" =>
"3",
511 "@descending" =>
"3",
523 "@globalgroup" =>
"3",
525 "@goldenratio" =>
"3",
526 "@gravitation" =>
"3",
535 "@localgroup" =>
"3",
538 "@mbokcancel" =>
"3",
546 "@ncsaformat" =>
"3",
560 "@planckergs" =>
"3",
561 "@planckjoules" =>
"3",
567 "@regclasses" =>
"3",
568 "@regcurrent" =>
"3",
569 "@regmachine" =>
"3",
574 "@scrolllock" =>
"3",
587 "@wholesection" =>
"3",
594 "cClickButton" =>
"4",
595 "cEnableState" =>
"4",
597 "cGetEditText" =>
"4",
600 "cPostButton" =>
"4",
601 "cPostMessage" =>
"4",
602 "cRadioButton" =>
"4",
603 "cSendMessage" =>
"4",
605 "cSetEditText" =>
"4",
607 "cSetTABItem" =>
"4",
608 "cWndByClass" =>
"4",
613 "dosboxcursorx" =>
"4",
614 "dosboxcursory" =>
"4",
615 "dosboxgetall" =>
"4",
616 "dosboxgetdata" =>
"4",
617 "dosboxheight" =>
"4",
618 "dosboxscrmode" =>
"4",
619 "dosboxversion" =>
"4",
620 "dosboxwidth" =>
"4",
622 "dunConnectEx" =>
"4",
623 "dunDisconnect" =>
"4",
625 "edosgetinfo" =>
"4",
627 "edoslistvars" =>
"4",
628 "edospathadd" =>
"4",
629 "edospathchk" =>
"4",
630 "edospathdel" =>
"4",
634 "envlistvars" =>
"4",
642 "ftpFirewall" =>
"4",
650 "hCompatible" =>
"4",
651 "hGetVarNames" =>
"4",
652 "hGetVarValue" =>
"4",
654 "httpFirewall" =>
"4",
655 "httpGetAnchor" =>
"4",
657 "httpGetFile" =>
"4",
658 "httpGetPath" =>
"4",
659 "httpGetQuery" =>
"4",
660 "httpGetServer" =>
"4",
661 "httpRecvFile" =>
"4",
662 "httpRecvQryF" =>
"4",
663 "httpRecvQuery" =>
"4",
664 "httpRecvText" =>
"4",
665 "httpStripHTML" =>
"4",
666 "hVersionInfo" =>
"4",
669 "iContentData" =>
"4",
670 "iContentFile" =>
"4",
672 "iDialHangup" =>
"4",
673 "iDialItemize" =>
"4",
676 "iFtpDirChange" =>
"4",
678 "iFtpDirMake" =>
"4",
679 "iFtpDirRemove" =>
"4",
680 "iFtpFindInit" =>
"4",
681 "iFtpFindNext" =>
"4",
686 "iGetConState" =>
"4",
687 "iGetLastError" =>
"4",
688 "iGetResponse" =>
"4",
689 "iHostConnect" =>
"4",
690 "iHttpHeaders" =>
"4",
693 "iLocFindInit" =>
"4",
694 "iLocFindNext" =>
"4",
702 "n3captureend" =>
"4",
703 "n3captureget" =>
"4",
704 "n3captureprt" =>
"4",
705 "n3chgpassword" =>
"4",
707 "n3dirattrget" =>
"4",
708 "n3dirattrset" =>
"4",
709 "n3DirTimeGet" =>
"4",
710 "n3drivepath" =>
"4",
711 "n3drivestatus" =>
"4",
712 "n3fileattrget" =>
"4",
713 "n3fileattrset" =>
"4",
714 "n3FileTimeGet" =>
"4",
715 "n3getmapped" =>
"4",
716 "n3getnetaddr" =>
"4",
718 "n3getuserid" =>
"4",
721 "n3mapdelete" =>
"4",
724 "n3memberdel" =>
"4",
725 "n3memberget" =>
"4",
726 "n3memberset" =>
"4",
728 "n3msgsendall" =>
"4",
729 "n3serverinfo" =>
"4",
730 "n3serverlist" =>
"4",
731 "n3usergroups" =>
"4",
734 "n4captureend" =>
"4",
735 "n4captureget" =>
"4",
736 "n4captureprt" =>
"4",
737 "n4chgpassword" =>
"4",
739 "n4dirattrget" =>
"4",
740 "n4dirattrset" =>
"4",
741 "n4DirTimeGet" =>
"4",
742 "n4drivepath" =>
"4",
743 "n4drivestatus" =>
"4",
744 "n4fileattrget" =>
"4",
745 "n4FileTimeGet" =>
"4",
746 "n4getcontext" =>
"4",
747 "n4getloginid" =>
"4",
748 "n4getmapped" =>
"4",
749 "n4getnetaddr" =>
"4",
751 "n4getuserid" =>
"4",
754 "n4logouttree" =>
"4",
756 "n4mapdelete" =>
"4",
759 "n4memberdel" =>
"4",
760 "n4memberget" =>
"4",
761 "n4memberset" =>
"4",
763 "n4msgsendall" =>
"4",
764 "n4nameconvert" =>
"4",
765 "n4objectinfo" =>
"4",
766 "n4objectlist" =>
"4",
767 "n4objectprops" =>
"4",
768 "n4serverinfo" =>
"4",
769 "n4serverlist" =>
"4",
770 "n4SetContext" =>
"4",
771 "n4setsrchdrv" =>
"4",
772 "n4usergroupex" =>
"4",
773 "n4usergroups" =>
"4",
775 "netadddrive" =>
"4",
776 "netaddprinter" =>
"4",
777 "netcancelcon" =>
"4",
778 "netdirdialog" =>
"4",
781 "netresources" =>
"4",
791 "pCaptureLog" =>
"4",
792 "pCaptureOff" =>
"4",
794 "pCheckBinary" =>
"4",
797 "pComControl" =>
"4",
803 "pGetLastError" =>
"4",
806 "pModemAnsCall" =>
"4",
807 "pModemAnsRing" =>
"4",
808 "pModemCommand" =>
"4",
809 "pModemConnect" =>
"4",
810 "pModemControl" =>
"4",
812 "pModemHangup" =>
"4",
814 "pModemParams" =>
"4",
827 "qAllocConnect" =>
"4",
833 "qDataSources" =>
"4",
834 "qDisconnect" =>
"4",
836 "qExecDirect" =>
"4",
838 "qFreeConnect" =>
"4",
843 "qSetConnOpt" =>
"4",
845 "qVersionInfo" =>
"4",
847 "sByteOrder16" =>
"4",
848 "SByteOrder32" =>
"4",
852 "smtpSendFile" =>
"4",
853 "smtpSendText" =>
"4",
860 "sRecvBinary" =>
"4",
863 "sSendBinary" =>
"4",
866 "sSendString" =>
"4",
867 "textoutbufdel" =>
"4",
868 "textoutbuffer" =>
"4",
869 "textoutdebug" =>
"4",
870 "textoutfree" =>
"4",
871 "textoutinfo" =>
"4",
872 "textoutreset" =>
"4",
873 "textouttrack" =>
"4",
874 "textouttrackb" =>
"4",
875 "textouttrackp" =>
"4",
876 "textoutwait" =>
"4",
879 "urlGetScheme" =>
"4",
881 "w3cancelcon" =>
"4",
882 "w3dirbrowse" =>
"4",
885 "w3netdialog" =>
"4",
886 "w3netgetuser" =>
"4",
887 "w3prtbrowse" =>
"4",
889 "w95accessadd" =>
"4",
890 "w95accessdel" =>
"4",
891 "w95adddrive" =>
"4",
892 "w95addprinter" =>
"4",
893 "w95cancelcon" =>
"4",
894 "w95dirdialog" =>
"4",
895 "w95fileclose" =>
"4",
898 "w95resources" =>
"4",
899 "w95servertype" =>
"4",
900 "w95serviceat" =>
"4",
901 "w95serviceinf" =>
"4",
902 "w95shareadd" =>
"4",
903 "w95sharedel" =>
"4",
904 "w95shareinfo" =>
"4",
905 "w95shareset" =>
"4",
907 "w9xaccessadd" =>
"4",
908 "w9xaccessdel" =>
"4",
909 "w9xaccessget" =>
"4",
910 "w9xaccesslist" =>
"4",
911 "w9xlistgroups" =>
"4",
912 "w9xmemberdel" =>
"4",
913 "w9xmemberget" =>
"4",
914 "w9xmembergrps" =>
"4",
915 "w9xmemberlist" =>
"4",
916 "w9xmemberset" =>
"4",
917 "w9xserverlist" =>
"4",
918 "w9xserviceat" =>
"4",
919 "w9xshareadd" =>
"4",
920 "w9xsharedel" =>
"4",
921 "w9xshareinfo" =>
"4",
922 "w9xshareset" =>
"4",
923 "w9xuserinfo" =>
"4",
924 "w9xuserprops" =>
"4",
927 "wncancelcon" =>
"4",
928 "wncmptrinfo" =>
"4",
930 "wndlgbrowse" =>
"4",
935 "wndlgdiscon" =>
"4",
936 "wndlgnoshare" =>
"4",
945 "wnsharename" =>
"4",
946 "wnsharepath" =>
"4",
948 "wntaccessadd" =>
"4",
949 "wntaccessdel" =>
"4",
950 "wntaccessget" =>
"4",
951 "wntaccesslist" =>
"4",
952 "wntadddrive" =>
"4",
953 "wntaddprinter" =>
"4",
954 "wntcancelcon" =>
"4",
956 "wntdirdialog" =>
"4",
957 "wntfileclose" =>
"4",
960 "wntgroupinfo" =>
"4",
961 "wntlistgroups" =>
"4",
962 "wntmemberdel" =>
"4",
963 "wntmemberget" =>
"4",
964 "wntmembergrps" =>
"4",
965 "wntmemberlist" =>
"4",
966 "wntmemberset" =>
"4",
967 "wntownerget" =>
"4",
968 "wntownerset" =>
"4",
969 "wntresources" =>
"4",
970 "wntresources2" =>
"4",
971 "wntserverlist" =>
"4",
972 "wntservertype" =>
"4",
973 "wntserviceat" =>
"4",
974 "wntserviceinf" =>
"4",
975 "wntshareadd" =>
"4",
976 "wntsharedel" =>
"4",
977 "wntshareinfo" =>
"4",
978 "wntshareset" =>
"4",
979 "wntsvccontrol" =>
"4",
980 "wntsvcstart" =>
"4",
981 "wntsvcstatus" =>
"4",
983 "wntuseradddat" =>
"4",
985 "wntusergetdat" =>
"4",
986 "wntuserinfo" =>
"4",
987 "wntuserprops" =>
"4",
988 "wntuserrename" =>
"4",
989 "wntusersetdat" =>
"4",
992 "wnwrkgroups" =>
"4",
993 "wwenvunload" =>
"4",
994 "wxAddr2Host" =>
"4",
995 "wxGetErrDesc" =>
"4",
997 "wxGetLastErr" =>
"4",
998 "wxHost2Addr" =>
"4",
999 "wxMsgGetBody" =>
"4",
1000 "wxMsgGetHdr" =>
"4",
1004 "xbaseconvert" =>
"4",
1005 "xcursorset" =>
"4",
1006 "xdisklabelget" =>
"4",
1007 "xdriveready" =>
"4",
1008 "xejectmedia" =>
"4",
1009 "xextenderinfo" =>
"4",
1010 "xgetchildhwnd" =>
"4",
1011 "xgetelapsed" =>
"4",
1013 "xmemcompact" =>
"4",
1014 "xmessagebox" =>
"4",
1015 "xsendmessage" =>
"4",
1016 "xverifyccard" =>
"4");
1025 $this->linkscripts =
array(
1029 "4" =>
"donothing");
Create styles array
The data for the language used.