• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

syntax_highlight/php/HFile/HFile_mysql.php

Go to the documentation of this file.
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_mysql extends HFile{
00006    function HFile_mysql(){
00007      $this->HFile();    
00008 /*************************************/
00009 // Beautifier Highlighting Configuration File 
00010 // MySQL
00011 /*************************************/
00012 // Flags
00013 
00014 $this->nocase                   = "1";
00015 $this->notrim                   = "0";
00016 $this->perl                     = "0";
00017 
00018 // Colours
00019 
00020 $this->colours          = array("blue", "purple", "gray");
00021 $this->quotecolour              = "blue";
00022 $this->blockcommentcolour       = "green";
00023 $this->linecommentcolour        = "green";
00024 
00025 // Indent Strings
00026 
00027 $this->indent                   = array();
00028 $this->unindent                 = array();
00029 
00030 // String characters and delimiters
00031 
00032 $this->stringchars              = array();
00033 $this->delimiters               = array("!", "&", "*", "(", ")", "+", "=", "|", "/", ";", "\"", "'", "<", ">", " ", "   ", ",", ".", "/");
00034 $this->escchar                  = "";
00035 
00036 // Comment settings
00037 
00038 $this->linecommenton            = array("#");
00039 $this->blockcommenton           = array("");
00040 $this->blockcommentoff          = array("");
00041 
00042 // Keywords (keyword mapping to colour number)
00043 
00044 $this->keywords                 = array(
00045                         "add" => "1", 
00046                         "all" => "1", 
00047                         "alter" => "1", 
00048                         "and" => "1", 
00049                         "as" => "1", 
00050                         "asc" => "1", 
00051                         "auto_increment" => "1", 
00052                         "between" => "1", 
00053                         "binary" => "1", 
00054                         "both" => "1", 
00055                         "by" => "1", 
00056                         "change" => "1", 
00057                         "check" => "1", 
00058                         "column" => "1", 
00059                         "columns" => "1", 
00060                         "create" => "1", 
00061                         "cross" => "1", 
00062                         "data" => "1", 
00063                         "database" => "1", 
00064                         "databases" => "1", 
00065                         "default" => "1", 
00066                         "delayed" => "1", 
00067                         "delete" => "1", 
00068                         "desc" => "1", 
00069                         "describe" => "1", 
00070                         "distinct" => "1", 
00071                         "drop" => "1", 
00072                         "enclosed" => "1", 
00073                         "escaped" => "1", 
00074                         "exists" => "1", 
00075                         "explain" => "1", 
00076                         "field" => "1", 
00077                         "fields" => "1", 
00078                         "flush" => "1", 
00079                         "for" => "1", 
00080                         "foreign" => "1", 
00081                         "from" => "1", 
00082                         "function" => "1", 
00083                         "grant" => "1", 
00084                         "group" => "1", 
00085                         "having" => "1", 
00086                         "identified" => "1", 
00087                         "if" => "1", 
00088                         "ignore" => "1", 
00089                         "index" => "1", 
00090                         "insert" => "1", 
00091                         "infile" => "1", 
00092                         "into" => "1", 
00093                         "join" => "1", 
00094                         "key" => "1", 
00095                         "keys" => "1", 
00096                         "kill" => "1", 
00097                         "leading" => "1", 
00098                         "left" => "1", 
00099                         "like" => "1", 
00100                         "limit" => "1", 
00101                         "lines" => "1", 
00102                         "load" => "1", 
00103                         "local" => "1", 
00104                         "lock" => "1", 
00105                         "low_priority" => "1", 
00106                         "modify" => "1", 
00107                         "natural" => "1", 
00108                         "not" => "1", 
00109                         "null" => "1", 
00110                         "on" => "1", 
00111                         "optimize" => "1", 
00112                         "option" => "1", 
00113                         "optionally" => "1", 
00114                         "or" => "1", 
00115                         "order" => "1", 
00116                         "outer" => "1", 
00117                         "outfile" => "1", 
00118                         "primary" => "1", 
00119                         "proceedure" => "1", 
00120                         "read" => "1", 
00121                         "references" => "1", 
00122                         "regexp" => "1", 
00123                         "rename" => "1", 
00124                         "replace" => "1", 
00125                         "returns" => "1", 
00126                         "revoke" => "1", 
00127                         "rlike" => "1", 
00128                         "select" => "1", 
00129                         "set" => "1", 
00130                         "show" => "1", 
00131                         "soname" => "1", 
00132                         "status" => "1", 
00133                         "straight_join" => "1", 
00134                         "table" => "1", 
00135                         "tables" => "1", 
00136                         "teminated" => "1", 
00137                         "to" => "1", 
00138                         "trailing" => "1", 
00139                         "unique" => "1", 
00140                         "unlock" => "1", 
00141                         "unsigned" => "1", 
00142                         "update" => "1", 
00143                         "use" => "1", 
00144                         "using" => "1", 
00145                         "values" => "1", 
00146                         "variables" => "1", 
00147                         "where" => "1", 
00148                         "with" => "1", 
00149                         "write" => "1", 
00150                         "zerofill" => "1", 
00151                         "xor" => "1", 
00152                         "abs" => "2", 
00153                         "acos" => "2", 
00154                         "adddate" => "2", 
00155                         "ascii" => "2", 
00156                         "asin" => "2", 
00157                         "atan" => "2", 
00158                         "atan2" => "2", 
00159                         "avg" => "2", 
00160                         "bin" => "2", 
00161                         "bit_and" => "2", 
00162                         "bit_count" => "2", 
00163                         "bit_or" => "2", 
00164                         "ceiling" => "2", 
00165                         "char_lengh" => "2", 
00166                         "character_length" => "2", 
00167                         "concat" => "2", 
00168                         "conv" => "2", 
00169                         "cos" => "2", 
00170                         "cot" => "2", 
00171                         "count" => "2", 
00172                         "curdate" => "2", 
00173                         "curtime" => "2", 
00174                         "current_time" => "2", 
00175                         "current_timestamp" => "2", 
00176                         "date_add" => "2", 
00177                         "date_format" => "2", 
00178                         "date_sub" => "2", 
00179                         "dayname" => "2", 
00180                         "dayofmonth" => "2", 
00181                         "dayofweek" => "2", 
00182                         "dayofyear" => "2", 
00183                         "degrees" => "2", 
00184                         "elt" => "2", 
00185                         "encrypt" => "2", 
00186                         "exp" => "2", 
00187                         "find_in_set" => "2", 
00188                         "floor" => "2", 
00189                         "format" => "2", 
00190                         "from_days" => "2", 
00191                         "from_unixtime" => "2", 
00192                         "get_lock" => "2", 
00193                         "greatest" => "2", 
00194                         "hex" => "2", 
00195                         "hour" => "2", 
00196                         "ifnull" => "2", 
00197                         "instr" => "2", 
00198                         "isnull" => "2", 
00199                         "interval" => "2", 
00200                         "last_insert_id" => "2", 
00201                         "lcase" => "2", 
00202                         "lower" => "2", 
00203                         "least" => "2", 
00204                         "length" => "2", 
00205                         "locate" => "2", 
00206                         "log" => "2", 
00207                         "log10" => "2", 
00208                         "lpad" => "2", 
00209                         "ltrim" => "2", 
00210                         "max" => "2", 
00211                         "mid" => "2", 
00212                         "min" => "2", 
00213                         "minute" => "2", 
00214                         "mod" => "2", 
00215                         "month" => "2", 
00216                         "monthname" => "2", 
00217                         "now" => "2", 
00218                         "oct" => "2", 
00219                         "octet_length" => "2", 
00220                         "password" => "2", 
00221                         "period_add" => "2", 
00222                         "period_diff" => "2", 
00223                         "pi" => "2", 
00224                         "position" => "2", 
00225                         "pow" => "2", 
00226                         "quarter" => "2", 
00227                         "radians" => "2", 
00228                         "rand" => "2", 
00229                         "release_lock" => "2", 
00230                         "repeat" => "2", 
00231                         "reverse" => "2", 
00232                         "right" => "2", 
00233                         "round" => "2", 
00234                         "rpad" => "2", 
00235                         "rtrim" => "2", 
00236                         "second" => "2", 
00237                         "sec_to_time" => "2", 
00238                         "session_user" => "2", 
00239                         "sign" => "2", 
00240                         "sin" => "2", 
00241                         "soundex" => "2", 
00242                         "space" => "2", 
00243                         "sqrt" => "2", 
00244                         "strcmp" => "2", 
00245                         "substring" => "2", 
00246                         "substring_index" => "2", 
00247                         "sysdate" => "2", 
00248                         "system_user" => "2", 
00249                         "std" => "2", 
00250                         "sum" => "2", 
00251                         "tan" => "2", 
00252                         "time_format" => "2", 
00253                         "time_to_sec" => "2", 
00254                         "to_days" => "2", 
00255                         "trim" => "2", 
00256                         "truncate" => "2", 
00257                         "ucase" => "2", 
00258                         "unix_timestamp" => "2", 
00259                         "user" => "2", 
00260                         "version" => "2", 
00261                         "week" => "2", 
00262                         "weekday" => "2", 
00263                         "year" => "2", 
00264                         "bigint" => "3", 
00265                         "blob" => "3", 
00266                         "char" => "3", 
00267                         "date" => "3", 
00268                         "datetime" => "3", 
00269                         "decimal" => "3", 
00270                         "double" => "3", 
00271                         "doubleprecision" => "3", 
00272                         "enum" => "3", 
00273                         "float" => "3", 
00274                         "float4" => "3", 
00275                         "float8" => "3", 
00276                         "int" => "3", 
00277                         "int1" => "3", 
00278                         "int2" => "3", 
00279                         "int3" => "3", 
00280                         "int4" => "3", 
00281                         "int8" => "3", 
00282                         "integer" => "3", 
00283                         "long" => "3", 
00284                         "longblob" => "3", 
00285                         "longtext" => "3", 
00286                         "mediumblob" => "3", 
00287                         "mediumint" => "3", 
00288                         "mediumtext" => "3", 
00289                         "middleint" => "3", 
00290                         "numeric" => "3", 
00291                         "real" => "3", 
00292                         "smallint" => "3", 
00293                         "text" => "3", 
00294                         "time" => "3", 
00295                         "timestamp" => "3", 
00296                         "tinyint" => "3", 
00297                         "tinytext" => "3", 
00298                         "tinyblob" => "3", 
00299                         "varbinary" => "3", 
00300                         "varchar" => "3", 
00301                         "varying" => "3");
00302 
00303 // Special extensions
00304 
00305 // Each category can specify a PHP function that returns an altered
00306 // version of the keyword.
00307         
00308         
00309 
00310 $this->linkscripts      = array(
00311                         "1" => "donothing", 
00312                         "2" => "donothing", 
00313                         "3" => "donothing");
00314 }
00315 
00316 
00317 function donothing($keywordin)
00318 {
00319         return $keywordin;
00320 }
00321 
00322 }?>

Generated on Fri Dec 13 2013 09:06:39 for ILIAS Release_3_4_x_branch .rev 46804 by  doxygen 1.7.1