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_css extends HFile{
00006 function HFile_css(){
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->stringchars = array();
00021 $this->delimiters = array(",", ".", ":", ";", "{", " ", "}", " ", " ");
00022 $this->escchar = "";
00023
00024
00025
00026 $this->blockcommenton = array("<!--");
00027 $this->blockcommentoff = array("-->");
00028
00029
00030
00031 $this->keywords = array(
00032 "A" => "1",
00033 "ABOVE" => "1",
00034 "ACTIVE" => "1",
00035 "ADDRESS" => "1",
00036 "APPLET" => "1",
00037 "ARRAY" => "1",
00038 "AREA" => "1",
00039 "B" => "1",
00040 "BASE" => "1",
00041 "BASEFONT" => "1",
00042 "BGSOUND" => "1",
00043 "BIG" => "1",
00044 "BLINK" => "1",
00045 "BLOCKQUOTE" => "1",
00046 "BODY" => "1",
00047 "BR" => "1",
00048 "CAPTION" => "1",
00049 "CENTER" => "1",
00050 "CITE" => "1",
00051 "CODE" => "1",
00052 "DD" => "1",
00053 "DFN" => "1",
00054 "DIR" => "1",
00055 "DIV" => "1",
00056 "DL" => "1",
00057 "DT" => "1",
00058 "EM" => "1",
00059 "EMBED" => "1",
00060 "FIG" => "1",
00061 "FIRST-LETTER" => "1",
00062 "FIRST-LINE" => "1",
00063 "FONT" => "1",
00064 "FORM" => "1",
00065 "FRAME" => "1",
00066 "FRAMESET" => "1",
00067 "H" => "1",
00068 "H1" => "1",
00069 "H2" => "1",
00070 "H3" => "1",
00071 "H4" => "1",
00072 "H5" => "1",
00073 "H6" => "1",
00074 "HEAD" => "1",
00075 "HR" => "1",
00076 "HTML" => "1",
00077 "I" => "1",
00078 "IMG" => "1",
00079 "INPUT" => "1",
00080 "ISINDEX" => "1",
00081 "KBD" => "1",
00082 "LI" => "1",
00083 "LINK" => "1",
00084 "MAP" => "1",
00085 "MARQUEE" => "1",
00086 "MENU" => "1",
00087 "META" => "1",
00088 "NEXTID" => "1",
00089 "NOBR" => "1",
00090 "NOFRAMES" => "1",
00091 "NOTE" => "1",
00092 "NOSCRIPT" => "1",
00093 "OL" => "1",
00094 "OPTION" => "1",
00095 "P" => "1",
00096 "PRE" => "1",
00097 "RANGE" => "1",
00098 "ROOT" => "1",
00099 "SPAN" => "1",
00100 "SAMP" => "1",
00101 "SCRIPT" => "1",
00102 "SELECT" => "1",
00103 "SMALL" => "1",
00104 "SOUND" => "1",
00105 "SQRT" => "1",
00106 "STYLE" => "1",
00107 "STRIKE" => "1",
00108 "STRONG" => "1",
00109 "SUB" => "1",
00110 "SUP" => "1",
00111 "TABLE" => "1",
00112 "TD" => "1",
00113 "TEXT" => "1",
00114 "TEXTAREA" => "1",
00115 "TH" => "1",
00116 "TITLE" => "1",
00117 "TR" => "1",
00118 "TT" => "1",
00119 "U" => "1",
00120 "UL" => "1",
00121 "VAR" => "1",
00122 "VISITED" => "1",
00123 "WBR" => "1",
00124 "background" => "2",
00125 "background-attachment" => "2",
00126 "background-color" => "2",
00127 "background-image" => "2",
00128 "background-position" => "2",
00129 "background-repeat" => "2",
00130 "border" => "2",
00131 "border-bottom" => "2",
00132 "border-bottom-width" => "2",
00133 "border-color" => "2",
00134 "border-left" => "2",
00135 "border-left-width" => "2",
00136 "border-right" => "2",
00137 "border-right-width" => "2",
00138 "border-style" => "2",
00139 "border-top" => "2",
00140 "border-top-width" => "2",
00141 "border-width" => "2",
00142 "clear" => "2",
00143 "color" => "2",
00144 "display" => "2",
00145 "float" => "2",
00146 "font" => "2",
00147 "font-family" => "2",
00148 "font-size" => "2",
00149 "font-style" => "2",
00150 "font-variant" => "2",
00151 "font-weight" => "2",
00152 "height" => "2",
00153 "letter-spacing" => "2",
00154 "line-height" => "2",
00155 "list-style" => "2",
00156 "list-style-image" => "2",
00157 "list-style-position" => "2",
00158 "list-style-type" => "2",
00159 "margin" => "2",
00160 "margin-bottom" => "2",
00161 "margin-left" => "2",
00162 "margin-right" => "2",
00163 "margin-top" => "2",
00164 "padding" => "2",
00165 "padding-bottom" => "2",
00166 "padding-left" => "2",
00167 "padding-right" => "2",
00168 "padding-top" => "2",
00169 "text-align" => "2",
00170 "text-decoration" => "2",
00171 "text-indent" => "2",
00172 "text-transform" => "2",
00173 "vertical-align" => "2",
00174 "white-space" => "2",
00175 "width" => "2",
00176 "word-spacing" => "2",
00177 "aqua" => "3",
00178 "auto" => "3",
00179 "baseline" => "3",
00180 "black" => "3",
00181 "blink" => "3",
00182 "block" => "3",
00183 "blue" => "3",
00184 "bold" => "3",
00185 "bolder" => "3",
00186 "both" => "3",
00187 "bottom" => "3",
00188 "capitalize" => "3",
00189 "center" => "3",
00190 "circle" => "3",
00191 "cursive" => "3",
00192 "dashed" => "3",
00193 "decimal" => "3",
00194 "disc" => "3",
00195 "dotted" => "3",
00196 "double" => "3",
00197 "fantasy" => "3",
00198 "fixed" => "3",
00199 "fuchsia" => "3",
00200 "gray" => "3",
00201 "green" => "3",
00202 "groove" => "3",
00203 "inline" => "3",
00204 "inset" => "3",
00205 "inside" => "3",
00206 "italic" => "3",
00207 "justify" => "3",
00208 "large" => "3",
00209 "larger" => "3",
00210 "left" => "3",
00211 "lighter" => "3",
00212 "lime" => "3",
00213 "line-through" => "3",
00214 "list-item" => "3",
00215 "lower-alpha" => "3",
00216 "lower-roman" => "3",
00217 "lowercase" => "3",
00218 "maroon" => "3",
00219 "medium" => "3",
00220 "middle" => "3",
00221 "monospace" => "3",
00222 "navy" => "3",
00223 "no-repeat" => "3",
00224 "none" => "3",
00225 "normal" => "3",
00226 "nowrap" => "3",
00227 "oblique" => "3",
00228 "olive" => "3",
00229 "outset" => "3",
00230 "outside" => "3",
00231 "overline" => "3",
00232 "pre" => "3",
00233 "purple" => "3",
00234 "red" => "3",
00235 "repeat" => "3",
00236 "repeat-x" => "3",
00237 "repeat-y" => "3",
00238 "rgb" => "3",
00239 "ridge" => "3",
00240 "right" => "3",
00241 "sans-serif" => "3",
00242 "scroll" => "3",
00243 "serif" => "3",
00244 "silver" => "3",
00245 "small" => "3",
00246 "small-caps" => "3",
00247 "smaller" => "3",
00248 "solid" => "3",
00249 "square" => "3",
00250 "sub" => "3",
00251 "super" => "3",
00252 "teal" => "3",
00253 "text-bottom" => "3",
00254 "text-top" => "3",
00255 "thick" => "3",
00256 "thin" => "3",
00257 "top" => "3",
00258 "transparent" => "3",
00259 "underline" => "3",
00260 "upper-alpha" => "3",
00261 "upper-roman" => "3",
00262 "uppercase" => "3",
00263 "url" => "3",
00264 "white" => "3",
00265 "x-large" => "3",
00266 "x-small" => "3",
00267 "xx-large" => "3",
00268 "xx-small" => "3",
00269 "yellow" => "3");
00270
00271
00272
00273
00274
00275
00276
00277
00278 $this->linkscripts = array(
00279 "1" => "donothing",
00280 "2" => "donothing",
00281 "3" => "donothing");
00282 }
00283
00284
00285 function donothing($keywordin)
00286 {
00287 return $keywordin;
00288 }
00289
00290 }?>