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_wapscript extends HFile{
00006 function HFile_wapscript(){
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", "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 ";" => "1",
00046 "access" => "1",
00047 "agent" => "1",
00048 "block" => "1",
00049 "break" => "1",
00050 "case" => "1",
00051 "catch" => "1",
00052 "class" => "1",
00053 "Console" => "1",
00054 "const" => "1",
00055 "continue" => "1",
00056 "debugger" => "1",
00057 "defaut" => "1",
00058 "delete" => "1",
00059 "Dialogs" => "1",
00060 "div" => "1",
00061 "do" => "1",
00062 "domain" => "1",
00063 "else" => "1",
00064 "empty" => "1",
00065 "enum" => "1",
00066 "export" => "1",
00067 "extends" => "1",
00068 "expression" => "1",
00069 "extern" => "1",
00070 "finally" => "1",
00071 "Float" => "1",
00072 "for" => "1",
00073 "function" => "1",
00074 "header" => "1",
00075 "http" => "1",
00076 "if" => "1",
00077 "import" => "1",
00078 "in" => "1",
00079 "Lang" => "1",
00080 "lib" => "1",
00081 "main" => "1",
00082 "meta" => "1",
00083 "name" => "1",
00084 "new" => "1",
00085 "null" => "1",
00086 "path" => "1",
00087 "private" => "1",
00088 "public" => "1",
00089 "return" => "1",
00090 "sizeot" => "1",
00091 "String" => "1",
00092 "super" => "1",
00093 "switch" => "1",
00094 "throw" => "1",
00095 "this" => "1",
00096 "try" => "1",
00097 "typeof" => "1",
00098 "URL" => "1",
00099 "use" => "1",
00100 "var" => "1",
00101 "varialbe" => "1",
00102 "void" => "1",
00103 "while" => "1",
00104 "with" => "1",
00105 "WMLBrowser" => "1",
00106 "{" => "2",
00107 "}" => "2",
00108 "(" => "2",
00109 ")" => "2",
00110 "'" => "3",
00111 "\"" => "3",
00112 "\\" => "3",
00113 "abort" => "3",
00114 "abs" => "3",
00115 "alvert" => "3",
00116 "cell" => "3",
00117 "characterSet" => "3",
00118 "charAt" => "3",
00119 "compare" => "3",
00120 "confirm" => "3",
00121 "elementAt" => "3",
00122 "elements" => "3",
00123 "escapeString" => "3",
00124 "exit" => "3",
00125 "find" => "3",
00126 "floor" => "3",
00127 "format" => "3",
00128 "getBase" => "3",
00129 "getCurrentCard" => "3",
00130 "getFragment" => "3",
00131 "getHost" => "3",
00132 "getParameters" => "3",
00133 "getPath" => "3",
00134 "getPort" => "3",
00135 "getQuery" => "3",
00136 "getReferer" => "3",
00137 "getScheme" => "3",
00138 "getVar" => "3",
00139 "go" => "3",
00140 "insertAt" => "3",
00141 "int" => "3",
00142 "isEmpty" => "3",
00143 "isFloat" => "3",
00144 "isInt" => "3",
00145 "isValid" => "3",
00146 "length" => "3",
00147 "loadString" => "3",
00148 "max" => "3",
00149 "maxFloat" => "3",
00150 "maxInt" => "3",
00151 "min" => "3",
00152 "minFloat" => "3",
00153 "minInt" => "3",
00154 "newContext" => "3",
00155 "parseFloat" => "3",
00156 "parseInt" => "3",
00157 "pow" => "3",
00158 "prev" => "3",
00159 "print" => "3",
00160 "println" => "3",
00161 "prompt" => "3",
00162 "random" => "3",
00163 "refresh" => "3",
00164 "removeAt" => "3",
00165 "replace" => "3",
00166 "replaceAt" => "3",
00167 "resolve" => "3",
00168 "round" => "3",
00169 "seed" => "3",
00170 "setVar" => "3",
00171 "sqrt" => "3",
00172 "squeeze" => "3",
00173 "subString" => "3",
00174 "toString" => "3",
00175 "trim" => "3",
00176 "unescapeString" => "3",
00177 "+" => "4",
00178 "-" => "4",
00179 "=" => "4",
00180 "*" => "4",
00181 "//" => "4",
00182 "/" => "4",
00183 "%" => "4",
00184 "&" => "4",
00185 "<=" => "4",
00186 "<" => "4",
00187 ">=" => "4",
00188 ">" => "4",
00189 "!" => "4",
00190 "|" => "4");
00191
00192
00193
00194
00195
00196
00197
00198
00199 $this->linkscripts = array(
00200 "1" => "donothing",
00201 "2" => "donothing",
00202 "3" => "donothing",
00203 "4" => "donothing");
00204 }
00205
00206
00207 function donothing($keywordin)
00208 {
00209 return $keywordin;
00210 }
00211
00212 }?>