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

syntax_highlight/php/HFile/HFile_csharp.php

Go to the documentation of this file.
00001 <?php
00002 
00003 $BEAUT_PATH = realpath(".")."/syntax_highlight/php";
00004 if (!isset ($BEAUT_PATH)) return;
00005 require_once("$BEAUT_PATH/Beautifier/HFile.php");
00006   class HFile_csharp extends HFile{
00007    function HFile_csharp(){
00008      $this->HFile();
00009 /*************************************/
00010 // Beautifier Highlighting Configuration File 
00011 // C#
00012 /*************************************/
00013 // Flags
00014 
00015 $this->nocase                   = "0";
00016 $this->notrim                   = "0";
00017 $this->perl                     = "0";
00018 
00019 // Colours
00020 
00021 $this->colours                  = array("blue", "purple", "gray", "brown");
00022 $this->quotecolour              = "blue";
00023 $this->blockcommentcolour       = "green";
00024 $this->linecommentcolour        = "green";
00025 
00026 // Indent Strings
00027 
00028 $this->indent                   = array("{");
00029 $this->unindent                 = array("}");
00030 
00031 // String characters and delimiters
00032 
00033 $this->stringchars              = array("\"", "'");
00034 $this->delimiters               = array("~", "!", "@", "%", "^", "&", "*", "(", ")", "-", "+", "=", "|", "\\", "/", "{", "}", "[", "]", ":", ";", "\"", "'", "<", ">", " ", ",", "      ", ".", "?");
00035 $this->escchar                  = "";
00036 
00037 // Comment settings
00038 
00039 $this->linecommenton            = array("//");
00040 $this->blockcommenton           = array("/*");
00041 $this->blockcommentoff          = array("*/");
00042 
00043 // Keywords (keyword mapping to colour number)
00044 
00045 $this->keywords                 = array(
00046                         "as" => "1", 
00047                         "auto" => "1", 
00048                         "base" => "1", 
00049                         "break" => "1", 
00050                         "case" => "1", 
00051                         "catch" => "1", 
00052                         "const" => "1", 
00053                         "continue" => "1", 
00054                         "default" => "1", 
00055                         "do" => "1", 
00056                         "else" => "1", 
00057                         "event" => "1", 
00058                         "explicit" => "1", 
00059                         "extern" => "1", 
00060                         "false" => "1", 
00061                         "finally" => "1", 
00062                         "fixed" => "1", 
00063                         "for" => "1", 
00064                         "foreach" => "1", 
00065                         "goto" => "1", 
00066                         "if" => "1", 
00067                         "implicit" => "1", 
00068                         "in" => "1", 
00069                         "internal" => "1", 
00070                         "lock" => "1", 
00071                         "namespace" => "1", 
00072                         "null" => "1", 
00073                         "operator" => "1", 
00074                         "out" => "1", 
00075                         "override" => "1", 
00076                         "params" => "1", 
00077                         "private" => "1", 
00078                         "protected" => "1", 
00079                         "public" => "1", 
00080                         "readonly" => "1", 
00081                         "ref" => "1", 
00082                         "return" => "1", 
00083                         "sealed" => "1", 
00084                         "stackalloc" => "1", 
00085                         "static" => "1", 
00086                         "switch" => "1", 
00087                         "this" => "1", 
00088                         "throw" => "1", 
00089                         "true" => "1", 
00090                         "try" => "1", 
00091                         "unsafe" => "1", 
00092                         "using" => "1", 
00093                         "virtual" => "1", 
00094                         "void" => "1", 
00095                         "while" => "1", 
00096                         "bool" => "2", 
00097                         "byte" => "2", 
00098                         "char" => "2", 
00099                         "class" => "2", 
00100                         "decimal" => "2", 
00101                         "delegate" => "2", 
00102                         "double" => "2", 
00103                         "enum" => "2", 
00104                         "float" => "2", 
00105                         "int" => "2", 
00106                         "interface" => "2", 
00107                         "long" => "2", 
00108                         "object" => "2", 
00109                         "sbyte" => "2", 
00110                         "short" => "2", 
00111                         "string" => "2", 
00112                         "struct" => "2", 
00113                         "uint" => "2", 
00114                         "ulong" => "2", 
00115                         "ushort" => "2", 
00116                         "#elif" => "3", 
00117                         "#endif" => "3", 
00118                         "#endregion" => "3", 
00119                         "#else" => "3", 
00120                         "#error" => "3", 
00121                         "#define" => "3", 
00122                         "#if" => "3", 
00123                         "#line" => "3", 
00124                         "#region" => "3", 
00125                         "#undef" => "3", 
00126                         "#warning" => "3", 
00127                         "+" => "4", 
00128                         "-" => "4", 
00129                         "*" => "4", 
00130                         "?" => "4", 
00131                         "=" => "4", 
00132                         "//" => "4", 
00133                         "/" => "4", 
00134                         "%" => "4", 
00135                         "&" => "4", 
00136                         ">" => "4", 
00137                         "<" => "4", 
00138                         "^" => "4", 
00139                         "!" => "4", 
00140                         "|" => "4", 
00141                         ":" => "4", 
00142                         "checked" => "4", 
00143                         "is" => "4", 
00144                         "new" => "4", 
00145                         "sizeof" => "4", 
00146                         "typeof" => "4", 
00147                         "unchecked" => "4");
00148 
00149 // Special extensions
00150 
00151 
00152 // Each category can specify a PHP function that returns an altered
00153 // version of the keyword.
00154 
00155 
00156 
00157 
00158 
00159 $this->linkscripts      = array(
00160                         "1" => "donothing", 
00161                         "2" => "donothing", 
00162                         "3" => "donothing", 
00163                         "4" => "donothing");
00164 }
00165 
00166 
00167 
00168 function donothing($keywordin)
00169 {
00170         return $keywordin;
00171 }
00172 
00173 }
00174 
00175 ?>

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