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_bash extends HFile{
00006 function HFile_bash(){
00007 $this->HFile();
00008
00009
00010
00011
00012
00013
00014 $this->nocase = "0";
00015 $this->notrim = "0";
00016 $this->perl = "0";
00017
00018
00019
00020 $this->colours = array("blue", "purple", "gray", "brown", "blue");
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("#");
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 "alias" => "1",
00052 "break" => "1",
00053 "case" => "1",
00054 "continue" => "1",
00055 "do" => "1",
00056 "done" => "1",
00057 "elif" => "1",
00058 "else" => "1",
00059 "esac" => "1",
00060 "exit" => "1",
00061 "export" => "1",
00062 "fi" => "1",
00063 "for" => "1",
00064 "if" => "1",
00065 "in" => "1",
00066 "return" => "1",
00067 "set" => "1",
00068 "then" => "1",
00069 "unalias" => "1",
00070 "unset" => "1",
00071 "while" => "1",
00072 "halt" => "2",
00073 "ifconfig" => "2",
00074 "init" => "2",
00075 "initlog" => "2",
00076 "insmod" => "2",
00077 "linuxconf" => "2",
00078 "lsmod" => "2",
00079 "modprobe" => "2",
00080 "reboot" => "2",
00081 "rmmod" => "2",
00082 "route" => "2",
00083 "shutdown" => "2",
00084 "traceroute" => "2",
00085 "]" => "3",
00086 "[" => "3",
00087 "awk" => "3",
00088 "basename" => "3",
00089 "cat" => "3",
00090 "cp" => "3",
00091 "echo" => "3",
00092 "egrep" => "3",
00093 "fgrep" => "3",
00094 "gawk" => "3",
00095 "grep" => "3",
00096 "gzip" => "3",
00097 "kill" => "3",
00098 "killall" => "3",
00099 "less" => "3",
00100 "md" => "3",
00101 "mkdir" => "3",
00102 "mv" => "3",
00103 "nice" => "3",
00104 "pidof" => "3",
00105 "ps" => "3",
00106 "rd" => "3",
00107 "read" => "3",
00108 "rm" => "3",
00109 "rmdir" => "3",
00110 "sed" => "3",
00111 "sleep" => "3",
00112 "test" => "3",
00113 "touch" => "3",
00114 "ulimit" => "3",
00115 "uname" => "3",
00116 "usleep" => "3",
00117 "zcat" => "3",
00118 "zless" => "3",
00119 "`" => "4",
00120 "-a" => "4",
00121 "-b" => "4",
00122 "-c" => "4",
00123 "-d" => "4",
00124 "-e" => "4",
00125 "-f" => "4",
00126 "-g" => "4",
00127 "-h" => "4",
00128 "-i" => "4",
00129 "-j" => "4",
00130 "-k" => "4",
00131 "-l" => "4",
00132 "-m" => "4",
00133 "-n" => "4",
00134 "-o" => "4",
00135 "-p" => "4",
00136 "-q" => "4",
00137 "-r" => "4",
00138 "-s" => "4",
00139 "-t" => "4",
00140 "-u" => "4",
00141 "-v" => "4",
00142 "-w" => "4",
00143 "-x" => "4",
00144 "-z" => "4",
00145 "-eq" => "5",
00146 "-ge" => "5",
00147 "-gt" => "5",
00148 "-le" => "5",
00149 "-lt" => "5",
00150 "=" => "5",
00151 "!=" => "5");
00152
00153
00154
00155
00156
00157
00158
00159
00160 $this->linkscripts = array(
00161 "1" => "donothing",
00162 "2" => "donothing",
00163 "3" => "donothing",
00164 "4" => "donothing",
00165 "5" => "donothing");
00166 }
00167
00168
00169 function donothing($keywordin)
00170 {
00171 return $keywordin;
00172 }
00173
00174 }?>