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_cppheader extends HFile{
00006 function HFile_cppheader(){
00007 $this->HFile();
00008
00009
00010
00011
00012
00013
00014 $this->nocase = "0";
00015 $this->notrim = "0";
00016 $this->perl = "0";
00017
00018
00019
00020 $this->colours = array("blue", "purple", "gray", "brown", "blue", "purple");
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 "bool" => "1",
00046 "char" => "1",
00047 "class" => "1",
00048 "const" => "1",
00049 "double" => "1",
00050 "enum" => "1",
00051 "explicit" => "1",
00052 "export" => "1",
00053 "extern" => "1",
00054 "false" => "1",
00055 "float" => "1",
00056 "friend" => "1",
00057 "inline" => "1",
00058 "int" => "1",
00059 "long" => "1",
00060 "mutable" => "1",
00061 "namespace" => "1",
00062 "operator" => "1",
00063 "protected" => "1",
00064 "private" => "1",
00065 "public" => "1",
00066 "short" => "1",
00067 "signed" => "1",
00068 "sizeof" => "1",
00069 "static" => "1",
00070 "struct" => "1",
00071 "template" => "1",
00072 "throw" => "1",
00073 "true" => "1",
00074 "typedef" => "1",
00075 "typename" => "1",
00076 "union" => "1",
00077 "unsigned" => "1",
00078 "using" => "1",
00079 "virtual" => "1",
00080 "void" => "1",
00081 "volatile" => "1",
00082 "wchar_t" => "1",
00083 "asm" => "2",
00084 "auto" => "2",
00085 "break" => "2",
00086 "case" => "2",
00087 "catch" => "2",
00088 "const_cast" => "2",
00089 "continue" => "2",
00090 "default" => "2",
00091 "do" => "2",
00092 "delete" => "2",
00093 "dynamic_cast" => "2",
00094 "else" => "2",
00095 "for" => "2",
00096 "goto" => "2",
00097 "if" => "2",
00098 "new" => "2",
00099 "register" => "2",
00100 "reinterpret_cast" => "2",
00101 "return" => "2",
00102 "static_cast" => "2",
00103 "switch" => "2",
00104 "this" => "2",
00105 "try" => "2",
00106 "typeid" => "2",
00107 "while" => "2",
00108 "#define" => "3",
00109 "#error" => "3",
00110 "#elif" => "3",
00111 "#if" => "3",
00112 "#line" => "3",
00113 "#else" => "3",
00114 "#ifdef" => "3",
00115 "#pragma" => "3",
00116 "#endif" => "3",
00117 "#ifndef" => "3",
00118 "#undef" => "3",
00119 "#include" => "4",
00120 "+" => "5",
00121 "-" => "5",
00122 "=" => "5",
00123 "//" => "5",
00124 "/" => "5",
00125 "%" => "5",
00126 "&" => "5",
00127 ">" => "5",
00128 "<" => "5",
00129 "^" => "5",
00130 "!" => "5",
00131 "|" => "5",
00132 "*" => "5",
00133 "{" => "6",
00134 "}" => "6",
00135 ";" => "6",
00136 "(" => "6",
00137 ")" => "6",
00138 "," => "6");
00139
00140
00141
00142
00143
00144
00145
00146
00147 $this->linkscripts = array(
00148 "1" => "donothing",
00149 "2" => "donothing",
00150 "3" => "donothing",
00151 "4" => "donothing",
00152 "5" => "donothing",
00153 "6" => "donothing");
00154 }
00155
00156
00157 function donothing($keywordin)
00158 {
00159 return $keywordin;
00160 }
00161
00162 }?>