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