00001 <?php
00002 $BEAUT_PATH = realpath(".")."/syntax_highlight/php";
00003 if (!isset ($BEAUT_PATH)) return;
00004 require_once("$BEAUT_PATH/Beautifier/HFile.php");
00005 class HFile_dosbatch extends HFile{
00006 function HFile_dosbatch(){
00007 $this->HFile();
00008
00009
00010
00011
00012
00013
00014 $this->nocase = "1";
00015 $this->notrim = "0";
00016 $this->perl = "0";
00017
00018
00019
00020 $this->colours = array("blue", "purple", "gray");
00021 $this->quotecolour = "blue";
00022 $this->blockcommentcolour = "green";
00023 $this->linecommentcolour = "green";
00024
00025
00026
00027 $this->indent = array();
00028 $this->unindent = array();
00029
00030
00031
00032 $this->stringchars = array("\"");
00033 $this->delimiters = array("~", "!", "^", "&", "(", ")", "+", "=", "|", "@", "{", "}", "[", "]", ";", "\"", "'", "<", ">", " ", ",", ".", "/", " ", " ", " ", " ");
00034 $this->escchar = "";
00035
00036
00037
00038 $this->linecommenton = array("rem");
00039 $this->blockcommenton = array("");
00040 $this->blockcommentoff = array("");
00041
00042
00043
00044 $this->keywords = array(
00045 "@" => "1",
00046 "%" => "1",
00047 ">" => "1",
00048 "<" => "1",
00049 "*" => "1",
00050 "?" => "1",
00051 "$e" => "1",
00052 "[" => "1",
00053 "call" => "1",
00054 "do" => "1",
00055 "echo" => "1",
00056 "errorlevel" => "1",
00057 "exit" => "1",
00058 "exist" => "1",
00059 "edit" => "1",
00060 "edlin" => "1",
00061 "for" => "1",
00062 "goto" => "1",
00063 "if" => "1",
00064 "in" => "1",
00065 "not" => "1",
00066 "off" => "1",
00067 "on" => "1",
00068 "pause" => "1",
00069 "prompt" => "1",
00070 "path" => "1",
00071 "qbasic" => "1",
00072 "set" => "1",
00073 "shift" => "1",
00074 "attrib" => "2",
00075 "append" => "2",
00076 "backup" => "2",
00077 "cd" => "2",
00078 "choice" => "2",
00079 "cls" => "2",
00080 "copy" => "2",
00081 "chdir" => "2",
00082 "command" => "2",
00083 "comp" => "2",
00084 "chkdsk" => "2",
00085 "del" => "2",
00086 "dir" => "2",
00087 "deltree" => "2",
00088 "diskcopy" => "2",
00089 "debug" => "2",
00090 "diskcomp" => "2",
00091 "doskey" => "2",
00092 "expand" => "2",
00093 "format" => "2",
00094 "fc" => "2",
00095 "fdisk" => "2",
00096 "find" => "2",
00097 "ftp" => "2",
00098 "graphics" => "2",
00099 "help" => "2",
00100 "interlnk" => "2",
00101 "intersvr" => "2",
00102 "keyb" => "2",
00103 "label" => "2",
00104 "loadfix" => "2",
00105 "mkdir" => "2",
00106 "md" => "2",
00107 "mode" => "2",
00108 "msd" => "2",
00109 "more" => "2",
00110 "mem" => "2",
00111 "move" => "2",
00112 "msav" => "2",
00113 "msbackup" => "2",
00114 "nslfunc" => "2",
00115 "print" => "2",
00116 "rd" => "2",
00117 "rmdir" => "2",
00118 "replace" => "2",
00119 "restore" => "2",
00120 "sort" => "2",
00121 "share" => "2",
00122 "smartdrv" => "2",
00123 "sys" => "2",
00124 "scandisk" => "2",
00125 "setver" => "2",
00126 "subst" => "2",
00127 "type" => "2",
00128 "tree" => "2",
00129 "undelete" => "2",
00130 "unformat" => "2",
00131 "ver" => "2",
00132 "vol" => "2",
00133 "vsafe" => "2",
00134 "xcopy" => "2",
00135 "date" => "3",
00136 "time" => "3");
00137
00138
00139
00140
00141
00142
00143
00144
00145 $this->linkscripts = array(
00146 "1" => "donothing",
00147 "2" => "donothing",
00148 "3" => "donothing");
00149 }
00150
00151
00152 function donothing($keywordin)
00153 {
00154 return $keywordin;
00155 }
00156
00157 }?>