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_xhtmlbasic extends HFile{
00006 function HFile_xhtmlbasic(){
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");
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 "<a>" => "1",
00046 "<a" => "1",
00047 "</a>" => "1",
00048 "<abbr>" => "1",
00049 "<abbr" => "1",
00050 "</abbr>" => "1",
00051 "<acronym>" => "1",
00052 "<acronym" => "1",
00053 "</acronym>" => "1",
00054 "<address>" => "1",
00055 "<address" => "1",
00056 "</address>" => "1",
00057 "<base" => "1",
00058 "<blockquote>" => "1",
00059 "<blockquote" => "1",
00060 "</blockquote>" => "1",
00061 "<body>" => "1",
00062 "<body" => "1",
00063 "</body>" => "1",
00064 "<br" => "1",
00065 "<caption>" => "1",
00066 "<caption" => "1",
00067 "</caption>" => "1",
00068 "<cite>" => "1",
00069 "<cite" => "1",
00070 "</cite>" => "1",
00071 "<code>" => "1",
00072 "<code" => "1",
00073 "</code>" => "1",
00074 "<dd>" => "1",
00075 "<dd" => "1",
00076 "</dd>" => "1",
00077 "<dfn>" => "1",
00078 "<dfn" => "1",
00079 "</dfn>" => "1",
00080 "<div>" => "1",
00081 "<div" => "1",
00082 "</div>" => "1",
00083 "<dl>" => "1",
00084 "<dl" => "1",
00085 "</dl>" => "1",
00086 "<dt>" => "1",
00087 "<dt" => "1",
00088 "</dt>" => "1",
00089 "<em>" => "1",
00090 "<em" => "1",
00091 "</em>" => "1",
00092 "<form>" => "1",
00093 "<form" => "1",
00094 "</form>" => "1",
00095 "<h1>" => "1",
00096 "<h1" => "1",
00097 "</h1>" => "1",
00098 "<h2>" => "1",
00099 "<h2" => "1",
00100 "</h2>" => "1",
00101 "<h3>" => "1",
00102 "<h3" => "1",
00103 "</h3>" => "1",
00104 "<h4>" => "1",
00105 "<h4" => "1",
00106 "</h4>" => "1",
00107 "<h5>" => "1",
00108 "<h5" => "1",
00109 "</h5>" => "1",
00110 "<h6>" => "1",
00111 "<h6" => "1",
00112 "</h6>" => "1",
00113 "<head>" => "1",
00114 "<head" => "1",
00115 "</head>" => "1",
00116 "<html>" => "1",
00117 "<html" => "1",
00118 "</html>" => "1",
00119 "<img" => "1",
00120 "<input" => "1",
00121 "<kbd>" => "1",
00122 "<kbd" => "1",
00123 "</kbd>" => "1",
00124 "<label>" => "1",
00125 "<label" => "1",
00126 "</label>" => "1",
00127 "<li>" => "1",
00128 "<li" => "1",
00129 "</li>" => "1",
00130 "<link" => "1",
00131 "<meta" => "1",
00132 "<object>" => "1",
00133 "<object" => "1",
00134 "</object>" => "1",
00135 "<ol>" => "1",
00136 "<ol" => "1",
00137 "</ol>" => "1",
00138 "<option>" => "1",
00139 "<option" => "1",
00140 "</option>" => "1",
00141 "<p>" => "1",
00142 "<p" => "1",
00143 "</p>" => "1",
00144 "<param" => "1",
00145 "<pre>" => "1",
00146 "<pre" => "1",
00147 "</pre>" => "1",
00148 "<q>" => "1",
00149 "<q" => "1",
00150 "</q>" => "1",
00151 "<samp>" => "1",
00152 "<samp" => "1",
00153 "</samp>" => "1",
00154 "<select>" => "1",
00155 "<select" => "1",
00156 "</select>" => "1",
00157 "<span>" => "1",
00158 "<span" => "1",
00159 "</span>" => "1",
00160 "<strong>" => "1",
00161 "<strong" => "1",
00162 "</strong>" => "1",
00163 "<table>" => "1",
00164 "<table" => "1",
00165 "</table>" => "1",
00166 "<td>" => "1",
00167 "<td" => "1",
00168 "</td>" => "1",
00169 "<textarea>" => "1",
00170 "<textarea" => "1",
00171 "</textarea>" => "1",
00172 "<th>" => "1",
00173 "<th" => "1",
00174 "</th>" => "1",
00175 "<title>" => "1",
00176 "<title" => "1",
00177 "</title>" => "1",
00178 "<tr>" => "1",
00179 "<tr" => "1",
00180 "</tr>" => "1",
00181 "<ul>" => "1",
00182 "<ul" => "1",
00183 "</ul>" => "1",
00184 "<var>" => "1",
00185 "<var" => "1",
00186 "</var>" => "1",
00187 "abbr=" => "2",
00188 "accesskey=" => "2",
00189 "action=" => "2",
00190 "align=" => "2",
00191 "alt=" => "2",
00192 "archive=" => "2",
00193 "axis=" => "2",
00194 "charset=" => "2",
00195 "checked=" => "2",
00196 "cite=" => "2",
00197 "class=" => "2",
00198 "classid=" => "2",
00199 "codebase=" => "2",
00200 "codetype=" => "2",
00201 "cols=" => "2",
00202 "colspan=" => "2",
00203 "content=" => "2",
00204 "data=" => "2",
00205 "declare=" => "2",
00206 "enctype=" => "2",
00207 "for=" => "2",
00208 "headers=" => "2",
00209 "height=" => "2",
00210 "href=" => "2",
00211 "hreflang=" => "2",
00212 "http-equiv=" => "2",
00213 "id=" => "2",
00214 "longdesc=" => "2",
00215 "maxlength=" => "2",
00216 "media=" => "2",
00217 "method=" => "2",
00218 "multiple=" => "2",
00219 "name=" => "2",
00220 "onclick=" => "2",
00221 "ondblclick=" => "2",
00222 "onkeydown=" => "2",
00223 "onkeypress=" => "2",
00224 "onkeyup=" => "2",
00225 "onmousedown=" => "2",
00226 "onmousemove=" => "2",
00227 "onmouseout=" => "2",
00228 "onmouseover=" => "2",
00229 "onmouseup=" => "2",
00230 "rel=" => "2",
00231 "rev=" => "2",
00232 "rows=" => "2",
00233 "rowspan=" => "2",
00234 "scheme=" => "2",
00235 "scope=" => "2",
00236 "selected=" => "2",
00237 "size=" => "2",
00238 "src=" => "2",
00239 "standby=" => "2",
00240 "style=" => "2",
00241 "summary=" => "2",
00242 "tabindex=" => "2",
00243 "title=" => "2",
00244 "type=" => "2",
00245 "valign=" => "2",
00246 "value=" => "2",
00247 "valuetype=" => "2",
00248 "width=" => "2",
00249 "xml:lang=" => "2",
00250 "xml:space=" => "2",
00251 "&;" => "3",
00252 "<!DOCTYPE" => "4",
00253 "<![CDATA[" => "4",
00254 "<?phpxml" => "4",
00255 "<?phpxml-stylesheet" => "4",
00256 "?>" => "4",
00257 "DTD" => "4",
00258 "PUBLIC" => "4",
00259 "SCHEMA" => "4",
00260 "]]>" => "4");
00261
00262
00263
00264
00265
00266
00267
00268
00269 $this->linkscripts = array(
00270 "1" => "donothing",
00271 "2" => "donothing",
00272 "3" => "donothing",
00273 "4" => "donothing");
00274 }
00275
00276
00277 function donothing($keywordin)
00278 {
00279 return $keywordin;
00280 }
00281
00282 }?>