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_wml extends HFile{
00006 function HFile_wml(){
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", "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 "<!DOCTYPE" => "1",
00049 "<![CDATA[" => "1",
00050 "<a" => "1",
00051 "</a>" => "1",
00052 "<anchor" => "1",
00053 "<anchor>" => "1",
00054 "</anchor>" => "1",
00055 "<access>" => "1",
00056 "</access>" => "1",
00057 "<b>" => "1",
00058 "</b>" => "1",
00059 "<big>" => "1",
00060 "</big>" => "1",
00061 "<br>" => "1",
00062 "<br/>" => "1",
00063 "<card" => "1",
00064 "</card>" => "1",
00065 "<do" => "1",
00066 "</do>" => "1",
00067 "<em>" => "1",
00068 "</em>" => "1",
00069 "<go" => "1",
00070 "<head>" => "1",
00071 "</head>" => "1",
00072 "<i>" => "1",
00073 "</i>" => "1",
00074 "<meta" => "1",
00075 "<p>" => "1",
00076 "<p" => "1",
00077 "</p>" => "1",
00078 "<prev" => "1",
00079 "<prev/>" => "1",
00080 "</prev>" => "1",
00081 "<small>" => "1",
00082 "</small>" => "1",
00083 "<strong>" => "1",
00084 "</strong>" => "1",
00085 "<table" => "1",
00086 "<table>" => "1",
00087 "</table>" => "1",
00088 "<template>" => "1",
00089 "</template>" => "1",
00090 "<td" => "1",
00091 "<td>" => "1",
00092 "</td>" => "1",
00093 "<tr" => "1",
00094 "<tr>" => "1",
00095 "</tr>" => "1",
00096 "<u>" => "1",
00097 "</u>" => "1",
00098 "<wml>" => "1",
00099 "</wml>" => "1",
00100 "<xml>" => "1",
00101 "</xml>" => "1",
00102 "<xmp>" => "1",
00103 "</xmp>" => "1",
00104 "<xptr" => "1",
00105 "<xr>" => "1",
00106 "<xr" => "1",
00107 "</xr>" => "1",
00108 "<xref" => "1",
00109 "<xsl>" => "1",
00110 "</xsl>" => "1",
00111 ">" => "1",
00112 "]]>" => "1",
00113 "<?php" => "1",
00114 "<?phpxml" => "1",
00115 "?>" => "1",
00116 "accept-charset" => "2",
00117 "align" => "2",
00118 "alt" => "2",
00119 "columns" => "2",
00120 "content" => "2",
00121 "domain" => "2",
00122 "emptyok" => "2",
00123 "format" => "2",
00124 "forua" => "2",
00125 "height" => "2",
00126 "href" => "2",
00127 "hspace" => "2",
00128 "http-equiv" => "2",
00129 "id" => "2",
00130 "iname" => "2",
00131 "ivalue" => "2",
00132 "label" => "2",
00133 "localsrc" => "2",
00134 "maxlength" => "2",
00135 "method" => "2",
00136 "mode" => "2",
00137 "multiple" => "2",
00138 "name" => "2",
00139 "newcontext" => "2",
00140 "optional" => "2",
00141 "ordered" => "2",
00142 "path" => "2",
00143 "scheme" => "2",
00144 "sendreferer" => "2",
00145 "size" => "2",
00146 "src" => "2",
00147 "tabindex" => "2",
00148 "title" => "2",
00149 "type" => "2",
00150 "value" => "2",
00151 "vspace" => "2",
00152 "width" => "2",
00153 "xml:lang" => "2",
00154 "=" => "2",
00155 "&" => "4",
00156 "'" => "4",
00157 ">" => "4",
00158 "<" => "4",
00159 " " => "4",
00160 """ => "4",
00161 "­" => "4",
00162 "onenterbackward=" => "5",
00163 "onenterforward=" => "5",
00164 "onpick=" => "5",
00165 "ontimer=" => "5");
00166
00167
00168
00169
00170
00171
00172
00173
00174 $this->linkscripts = array(
00175 "1" => "donothing",
00176 "2" => "donothing",
00177 "4" => "donothing",
00178 "5" => "donothing");
00179 }
00180
00181
00182 function donothing($keywordin)
00183 {
00184 return $keywordin;
00185 }
00186
00187 }?>