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_xhtml11 extends HFile{
00006 function HFile_xhtml11(){
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 "<area" => "1",
00058 "<b>" => "1",
00059 "<b" => "1",
00060 "</b>" => "1",
00061 "<bdo>" => "1",
00062 "<bdo" => "1",
00063 "</bdo>" => "1",
00064 "<big>" => "1",
00065 "<big" => "1",
00066 "</big>" => "1",
00067 "<blockquote>" => "1",
00068 "<blockquote" => "1",
00069 "</blockquote>" => "1",
00070 "<body>" => "1",
00071 "<body" => "1",
00072 "</body>" => "1",
00073 "<br" => "1",
00074 "<button>" => "1",
00075 "<button" => "1",
00076 "</button>" => "1",
00077 "<caption>" => "1",
00078 "<caption" => "1",
00079 "</caption>" => "1",
00080 "<cite>" => "1",
00081 "<cite" => "1",
00082 "</cite>" => "1",
00083 "<code>" => "1",
00084 "<code" => "1",
00085 "</code>" => "1",
00086 "<col" => "1",
00087 "<colgroup>" => "1",
00088 "<colgroup" => "1",
00089 "</colgroup>" => "1",
00090 "<dd>" => "1",
00091 "<dd" => "1",
00092 "</dd>" => "1",
00093 "<del>" => "1",
00094 "<del" => "1",
00095 "</del>" => "1",
00096 "<dfn>" => "1",
00097 "<dfn" => "1",
00098 "</dfn>" => "1",
00099 "<div>" => "1",
00100 "<div" => "1",
00101 "</div>" => "1",
00102 "<dl>" => "1",
00103 "<dl" => "1",
00104 "</dl>" => "1",
00105 "<dt>" => "1",
00106 "<dt" => "1",
00107 "</dt>" => "1",
00108 "<em>" => "1",
00109 "<em" => "1",
00110 "</em>" => "1",
00111 "<fieldset>" => "1",
00112 "<fieldset" => "1",
00113 "</fieldset>" => "1",
00114 "<form>" => "1",
00115 "<form" => "1",
00116 "</form>" => "1",
00117 "<h1>" => "1",
00118 "<h1" => "1",
00119 "</h1>" => "1",
00120 "<h2>" => "1",
00121 "<h2" => "1",
00122 "</h2>" => "1",
00123 "<h3>" => "1",
00124 "<h3" => "1",
00125 "</h3>" => "1",
00126 "<h4>" => "1",
00127 "<h4" => "1",
00128 "</h4>" => "1",
00129 "<h5>" => "1",
00130 "<h5" => "1",
00131 "</h5>" => "1",
00132 "<h6>" => "1",
00133 "<h6" => "1",
00134 "</h6>" => "1",
00135 "<head>" => "1",
00136 "<head" => "1",
00137 "</head>" => "1",
00138 "<hr" => "1",
00139 "<html>" => "1",
00140 "<html" => "1",
00141 "</html>" => "1",
00142 "<i>" => "1",
00143 "<i" => "1",
00144 "</i>" => "1",
00145 "<img" => "1",
00146 "<input" => "1",
00147 "<ins>" => "1",
00148 "<ins" => "1",
00149 "</ins>" => "1",
00150 "<kbd>" => "1",
00151 "<kbd" => "1",
00152 "</kbd>" => "1",
00153 "<label>" => "1",
00154 "<label" => "1",
00155 "</label>" => "1",
00156 "<legend>" => "1",
00157 "<legend" => "1",
00158 "</legend>" => "1",
00159 "<li>" => "1",
00160 "<li" => "1",
00161 "</li>" => "1",
00162 "<link" => "1",
00163 "<map>" => "1",
00164 "<map" => "1",
00165 "</map>" => "1",
00166 "<meta" => "1",
00167 "<object>" => "1",
00168 "<object" => "1",
00169 "</object>" => "1",
00170 "<ol>" => "1",
00171 "<ol" => "1",
00172 "</ol>" => "1",
00173 "<optgroup>" => "1",
00174 "<optgroup" => "1",
00175 "</optgroup>" => "1",
00176 "<option>" => "1",
00177 "<option" => "1",
00178 "</option>" => "1",
00179 "<p>" => "1",
00180 "<p" => "1",
00181 "</p>" => "1",
00182 "<param" => "1",
00183 "<pre>" => "1",
00184 "<pre" => "1",
00185 "</pre>" => "1",
00186 "<q>" => "1",
00187 "<q" => "1",
00188 "</q>" => "1",
00189 "<rb<" => "1",
00190 "<rb" => "1",
00191 "</rb>" => "1",
00192 "<rbc>" => "1",
00193 "<rbc" => "1",
00194 "</rbc>" => "1",
00195 "<rp>" => "1",
00196 "<rp" => "1",
00197 "</rp>" => "1",
00198 "<rt>" => "1",
00199 "<rt" => "1",
00200 "</rt>" => "1",
00201 "<rtc>" => "1",
00202 "<rtc" => "1",
00203 "</rtc>" => "1",
00204 "<ruby>" => "1",
00205 "<ruby" => "1",
00206 "</ruby>" => "1",
00207 "<samp>" => "1",
00208 "<samp" => "1",
00209 "</samp>" => "1",
00210 "<script>" => "1",
00211 "<script" => "1",
00212 "</script>" => "1",
00213 "<select>" => "1",
00214 "<select" => "1",
00215 "</select>" => "1",
00216 "<small>" => "1",
00217 "<small" => "1",
00218 "</small>" => "1",
00219 "<span>" => "1",
00220 "<span" => "1",
00221 "</span>" => "1",
00222 "<strong>" => "1",
00223 "<strong" => "1",
00224 "</strong>" => "1",
00225 "<style>" => "1",
00226 "<style" => "1",
00227 "</style>" => "1",
00228 "<sub>" => "1",
00229 "<sub" => "1",
00230 "</sub>" => "1",
00231 "<sup>" => "1",
00232 "<sup" => "1",
00233 "</sup>" => "1",
00234 "<table>" => "1",
00235 "<table" => "1",
00236 "</table>" => "1",
00237 "<tbody>" => "1",
00238 "<tbody" => "1",
00239 "</tbody>" => "1",
00240 "<td>" => "1",
00241 "<td" => "1",
00242 "</td>" => "1",
00243 "<textarea>" => "1",
00244 "<textarea" => "1",
00245 "</textarea>" => "1",
00246 "<tfoot>" => "1",
00247 "<tfoot" => "1",
00248 "</tfoot>" => "1",
00249 "<th>" => "1",
00250 "<th" => "1",
00251 "</th>" => "1",
00252 "<thead>" => "1",
00253 "<thead" => "1",
00254 "</thead>" => "1",
00255 "<title>" => "1",
00256 "<title" => "1",
00257 "</title>" => "1",
00258 "<tr>" => "1",
00259 "<tr" => "1",
00260 "</tr>" => "1",
00261 "<tt>" => "1",
00262 "<tt" => "1",
00263 "</tt>" => "1",
00264 "<ul>" => "1",
00265 "<ul" => "1",
00266 "</ul>" => "1",
00267 "<var>" => "1",
00268 "<var" => "1",
00269 "</var>" => "1",
00270 "//" => "1",
00271 "/>" => "1",
00272 ">" => "1",
00273 "abbr=" => "2",
00274 "accept-charset=" => "2",
00275 "accept=" => "2",
00276 "accesskey=" => "2",
00277 "action=" => "2",
00278 "align=" => "2",
00279 "alt=" => "2",
00280 "archive=" => "2",
00281 "axis=" => "2",
00282 "border=" => "2",
00283 "cellpadding=" => "2",
00284 "cellspacing=" => "2",
00285 "char=" => "2",
00286 "charoff=" => "2",
00287 "charset=" => "2",
00288 "checked=" => "2",
00289 "cite=" => "2",
00290 "class=" => "2",
00291 "code=" => "2",
00292 "codebase=" => "2",
00293 "colspan=" => "2",
00294 "columns=" => "2",
00295 "content=" => "2",
00296 "coords=" => "2",
00297 "datapagesize=" => "2",
00298 "datetime=" => "2",
00299 "defer=" => "2",
00300 "dir=" => "2",
00301 "disabled=" => "2",
00302 "enctype=" => "2",
00303 "frame=" => "2",
00304 "headers=" => "2",
00305 "height=" => "2",
00306 "href=" => "2",
00307 "hreflang=" => "2",
00308 "http-equiv=" => "2",
00309 "id=" => "2",
00310 "ismap=" => "2",
00311 "label=" => "2",
00312 "longdesc=" => "2",
00313 "maxlength=" => "2",
00314 "media=" => "2",
00315 "method=" => "2",
00316 "multiple=" => "2",
00317 "name=" => "2",
00318 "nohref=" => "2",
00319 "object=" => "2",
00320 "onblur=" => "2",
00321 "onchange=" => "2",
00322 "onclick=" => "2",
00323 "ondblclick=" => "2",
00324 "onfocus=" => "2",
00325 "onkeydown=" => "2",
00326 "onkeypress=" => "2",
00327 "onkeyup=" => "2",
00328 "onload=" => "2",
00329 "onmousedown=" => "2",
00330 "onmousemove=" => "2",
00331 "onmouseout=" => "2",
00332 "onmouseover=" => "2",
00333 "onmouseup=" => "2",
00334 "onreset=" => "2",
00335 "onselect=" => "2",
00336 "onsubmit=" => "2",
00337 "onunload=" => "2",
00338 "profile=" => "2",
00339 "rbspan=" => "2",
00340 "readonly=" => "2",
00341 "rel=" => "2",
00342 "rev=" => "2",
00343 "rows=" => "2",
00344 "rowspan=" => "2",
00345 "rules=" => "2",
00346 "scheme=" => "2",
00347 "scope=" => "2",
00348 "selected=" => "2",
00349 "shape=" => "2",
00350 "size=" => "2",
00351 "span=" => "2",
00352 "src=" => "2",
00353 "style=" => "2",
00354 "summary=" => "2",
00355 "tabindex=" => "2",
00356 "title=" => "2",
00357 "type=" => "2",
00358 "usemap=" => "2",
00359 "valign=" => "2",
00360 "value=" => "2",
00361 "valuetype=" => "2",
00362 "version=" => "2",
00363 "width=" => "2",
00364 "xml:lang=" => "2",
00365 "xmlns=" => "2",
00366 "&;" => "3",
00367 "<!DOCTYPE" => "4",
00368 "<![CDATA[" => "4",
00369 "<?phpxml" => "4",
00370 "<?phpxml-stylesheet" => "4",
00371 "?>" => "4",
00372 "DTD" => "4",
00373 "PUBLIC" => "4",
00374 "SCHEMA" => "4",
00375 "]]>" => "4");
00376
00377
00378
00379
00380
00381
00382
00383
00384 $this->linkscripts = array(
00385 "1" => "donothing",
00386 "2" => "donothing",
00387 "3" => "donothing",
00388 "4" => "donothing");
00389 }
00390
00391
00392 function donothing($keywordin)
00393 {
00394 return $keywordin;
00395 }
00396
00397 }?>