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

syntax_highlight/php/HFile/HFile_cpp.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 
00006 class HFile_cpp extends HFile{
00007 
00008  function HFile_cpp(){
00009 
00010     $this->HFile();     
00011 
00012 
00013 /*************************************/
00014 // Beautifier Highlighting Configuration File 
00015 // C++ Source
00016 /*************************************/
00017 // Flags
00018 
00019 $this->nocase                   = "0";
00020 $this->notrim                   = "0";
00021 $this->perl                     = "0";
00022 
00023 // Colours
00024 
00025 $this->colours          = array("blue", "purple", "gray", "brown", "blue");
00026 $this->quotecolour              = "blue";
00027 $this->blockcommentcolour       = "green";
00028 $this->linecommentcolour        = "green";
00029 
00030 // Indent Strings
00031 
00032 $this->indent                   = array("{");
00033 $this->unindent                 = array("}");
00034 
00035 // String characters and delimiters
00036 
00037 $this->stringchars              = array("\"", "'");
00038 $this->delimiters               = array("~", "!", "@", "%", "^", "&", "*", "(", ")", "-", "+", "=", "|", "\\", "{", "}", "[", "]", "<", ">", ":", ";", "\"", "'", " ", ",", "   ", ".", "?");
00039 $this->escchar                  = "";
00040 
00041 // Comment settings
00042 
00043 $this->linecommenton            = array("//");
00044 $this->blockcommenton           = array("/*");
00045 $this->blockcommentoff          = array("*/");
00046 
00047 // Keywords (keyword mapping to colour number)
00048 
00049 $this->keywords                 = array(
00050                         "bool" => "1", 
00051                         "char" => "1", 
00052                         "class" => "1", 
00053                         "const" => "1", 
00054                         "case" => "1", 
00055                         "catch" => "1", 
00056                         "const_cast" => "1", 
00057                         "double" => "1", 
00058                         "default" => "1", 
00059                         "do" => "1", 
00060                         "delete" => "1", 
00061                         "dynamic_cast" => "1", 
00062                         "else" => "1", 
00063                         "enum" => "1", 
00064                         "explicit" => "1", 
00065                         "export" => "1", 
00066                         "extern" => "1", 
00067                         "for" => "1", 
00068                         "false" => "1", 
00069                         "float" => "1", 
00070                         "friend" => "1", 
00071                         "if" => "1", 
00072                         "inline" => "1", 
00073                         "int" => "1", 
00074                         "long" => "1", 
00075                         "mutable" => "1", 
00076                         "new" => "1", 
00077                         "namespace" => "1", 
00078                         "operator" => "1", 
00079                         "protected" => "1", 
00080                         "private" => "1", 
00081                         "public" => "1", 
00082                         "reinterpret_cast" => "1", 
00083                         "return" => "1", 
00084                         "short" => "1", 
00085                         "signed" => "1", 
00086                         "sizeof" => "1", 
00087                         "static" => "1", 
00088                         "struct" => "1", 
00089                         "static_cast" => "1", 
00090                         "switch" => "1", 
00091                         "template" => "1", 
00092                         "throw" => "1", 
00093                         "true" => "1", 
00094                         "typedef" => "1", 
00095                         "typename" => "1", 
00096                         "this" => "1", 
00097                         "try" => "1", 
00098                         "typeid" => "1", 
00099                         "union" => "1", 
00100                         "unsigned" => "1", 
00101                         "using" => "1", 
00102                         "virtual" => "1", 
00103                         "void" => "1", 
00104                         "volatile" => "1", 
00105                         "wchar_t" => "1", 
00106                         "while" => "1", 
00107                         "asm" => "2", 
00108                         "auto" => "2", 
00109                         "break" => "2", 
00110                         "continue" => "2", 
00111                         "goto" => "2", 
00112                         "register" => "2", 
00113                         "#define" => "3", 
00114                         "#error" => "3", 
00115                         "#include" => "3", 
00116                         "#elif" => "3", 
00117                         "#if" => "3", 
00118                         "#line" => "3", 
00119                         "#else" => "3", 
00120                         "#ifdef" => "3", 
00121                         "#pragma" => "3", 
00122                         "#endif" => "3", 
00123                         "#ifndef" => "3", 
00124                         "#undef" => "3", 
00125                         "+" => "4", 
00126                         "-" => "4", 
00127                         "=" => "4", 
00128                         "//" => "4", 
00129                         "/" => "4", 
00130                         "%" => "4", 
00131                         "&" => "4", 
00132                         ">" => "4", 
00133                         "<" => "4", 
00134                         "^" => "4", 
00135                         "!" => "4", 
00136                         "|" => "4", 
00137                         "*" => "4", 
00138                         "{" => "5", 
00139                         "}" => "5", 
00140                         ";" => "5", 
00141                         "(" => "5", 
00142                         ")" => "5", 
00143                         "," => "5");
00144 
00145 // Special extensions
00146 
00147 
00148 // Each category can specify a PHP function that returns an altered
00149 // version of the keyword.
00150 
00151 
00152 
00153 
00154 
00155 $this->linkscripts      = array(
00156                         "1" => "donothing", 
00157                         "2" => "donothing", 
00158                         "3" => "donothing", 
00159                         "4" => "donothing", 
00160                         "5" => "donothing");
00161 
00162 
00163 
00164 
00165 
00166 }
00167 
00168 function donothing($keywordin)
00169 {
00170         return $keywordin;
00171 }
00172 
00173 
00174 
00175 }
00176 ?>

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