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

syntax_highlight/php/HFile/HFile_wap.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_wap extends HFile{
00006    function HFile_wap(){
00007      $this->HFile();    
00008 /*************************************/
00009 // Beautifier Highlighting Configuration File 
00010 // WAP
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", "brown");
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                         "=" => "1", 
00046                         "<" => "1", 
00047                         ">" => "1", 
00048                         "<a>" => "1", 
00049                         "<a" => "1", 
00050                         "<access>" => "1", 
00051                         "<access" => "1", 
00052                         "<anchor>" => "1", 
00053                         "<anchor" => "1", 
00054                         "<b>" => "1", 
00055                         "<big>" => "1", 
00056                         "<br/>" => "1", 
00057                         "<card>" => "1", 
00058                         "<card" => "1", 
00059                         "<do>" => "1", 
00060                         "<do" => "1", 
00061                         "<em>" => "1", 
00062                         "<fieldset>" => "1", 
00063                         "<fieldset" => "1", 
00064                         "<go" => "1", 
00065                         "<head>" => "1", 
00066                         "<i>" => "1", 
00067                         "<img" => "1", 
00068                         "<input" => "1", 
00069                         "<meta" => "1", 
00070                         "<noop/>" => "1", 
00071                         "<option>" => "1", 
00072                         "<option" => "1", 
00073                         "<optgroup>" => "1", 
00074                         "<optgroup" => "1", 
00075                         "<onevent" => "1", 
00076                         "<p>" => "1", 
00077                         "<p" => "1", 
00078                         "<prev>" => "1", 
00079                         "<prev/>" => "1", 
00080                         "<postfield>" => "1", 
00081                         "<postfield" => "1", 
00082                         "<refresh>" => "1", 
00083                         "<select" => "1", 
00084                         "<setvar" => "1", 
00085                         "<small>" => "1", 
00086                         "<strong>" => "1", 
00087                         "<table>" => "1", 
00088                         "<table" => "1", 
00089                         "<td>" => "1", 
00090                         "<td" => "1", 
00091                         "<template>" => "1", 
00092                         "<template" => "1", 
00093                         "<tr>" => "1", 
00094                         "<tr" => "1", 
00095                         "<timer>" => "1", 
00096                         "<timer" => "1", 
00097                         "<u>" => "1", 
00098                         "<wml>" => "1", 
00099                         "</a>" => "2", 
00100                         "</access>" => "2", 
00101                         "</anchor>" => "2", 
00102                         "</b>" => "2", 
00103                         "</big>" => "2", 
00104                         "</card>" => "2", 
00105                         "</do>" => "2", 
00106                         "</em>" => "2", 
00107                         "</fieldset>" => "2", 
00108                         "</go>" => "2", 
00109                         "</head>" => "2", 
00110                         "</i>" => "2", 
00111                         "</img>" => "2", 
00112                         "</input>" => "2", 
00113                         "</meta>" => "2", 
00114                         "</option>" => "2", 
00115                         "</optgroup>" => "2", 
00116                         "</onevent>" => "2", 
00117                         "</p>" => "2", 
00118                         "</prev>" => "2", 
00119                         "</postfield>" => "2", 
00120                         "</refresh>" => "2", 
00121                         "</select>" => "2", 
00122                         "</setvar>" => "2", 
00123                         "</small>" => "2", 
00124                         "</strong>" => "2", 
00125                         "</table>" => "2", 
00126                         "</td>" => "2", 
00127                         "</template>" => "2", 
00128                         "</tr>" => "2", 
00129                         "</timer>" => "2", 
00130                         "</u>" => "2", 
00131                         "</wml>" => "2", 
00132                         "'" => "3", 
00133                         "\"" => "3", 
00134                         "accept-charset=" => "3", 
00135                         "align=" => "3", 
00136                         "alt=" => "3", 
00137                         "columns=" => "3", 
00138                         "content=" => "3", 
00139                         "domain=" => "3", 
00140                         "emptyok=" => "3", 
00141                         "format=" => "3", 
00142                         "forua=" => "3", 
00143                         "height=" => "3", 
00144                         "href=" => "3", 
00145                         "hspace=" => "3", 
00146                         "http-equiv=" => "3", 
00147                         "id=" => "3", 
00148                         "iname=" => "3", 
00149                         "ivalue=" => "3", 
00150                         "label=" => "3", 
00151                         "localsrc=" => "3", 
00152                         "maxlength=" => "3", 
00153                         "method=" => "3", 
00154                         "mode=" => "3", 
00155                         "multiple=" => "3", 
00156                         "name=" => "3", 
00157                         "nextcontext=" => "3", 
00158                         "onpick=" => "3", 
00159                         "optional=" => "3", 
00160                         "ontimer=" => "3", 
00161                         "ordered=" => "3", 
00162                         "path=" => "3", 
00163                         "sendreferer=" => "3", 
00164                         "src=" => "3", 
00165                         "title=" => "3", 
00166                         "type=" => "3", 
00167                         "value=" => "3", 
00168                         "vspace=" => "3", 
00169                         "width=" => "3", 
00170                         "xml:lang=" => "3", 
00171                         "accept" => "4", 
00172                         "action" => "4", 
00173                         "bottom" => "4", 
00174                         "Cache-Control" => "4", 
00175                         "center" => "4", 
00176                         "delete" => "4", 
00177                         "false" => "4", 
00178                         "get" => "4", 
00179                         "left" => "4", 
00180                         "max-age" => "4", 
00181                         "nowrap" => "4", 
00182                         "onenterforward" => "4", 
00183                         "onenterbackward" => "4", 
00184                         "onpick" => "4", 
00185                         "ontimer" => "4", 
00186                         "options" => "4", 
00187                         "passwd" => "4", 
00188                         "password" => "4", 
00189                         "prevpost" => "4", 
00190                         "right" => "4", 
00191                         "text" => "4", 
00192                         "timer" => "4", 
00193                         "true" => "4", 
00194                         "wrap" => "4");
00195 
00196 // Special extensions
00197 
00198 // Each category can specify a PHP function that returns an altered
00199 // version of the keyword.
00200         
00201         
00202 
00203 $this->linkscripts      = array(
00204                         "1" => "donothing", 
00205                         "2" => "donothing", 
00206                         "3" => "donothing", 
00207                         "4" => "donothing");
00208 }
00209 
00210 
00211 function donothing($keywordin)
00212 {
00213         return $keywordin;
00214 }
00215 
00216 }?>

Generated on Fri Dec 13 2013 13:52:16 for ILIAS Release_3_7_x_branch .rev 46817 by  doxygen 1.7.1