ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
HFile_cppsource Class Reference
+ Inheritance diagram for HFile_cppsource:
+ Collaboration diagram for HFile_cppsource:

Public Member Functions

 HFile_cppsource ()
 
 donothing ($keywordin)
 

Detailed Description

Definition at line 5 of file HFile_cppsource.php.

Member Function Documentation

◆ donothing()

HFile_cppsource::donothing (   $keywordin)

Definition at line 156 of file HFile_cppsource.php.

157{
158 return $keywordin;
159}

◆ HFile_cppsource()

HFile_cppsource::HFile_cppsource ( )

Definition at line 6 of file HFile_cppsource.php.

6 {
7 $this->HFile();
8/*************************************/
9// Beautifier Highlighting Configuration File
10// C++ Source
11/*************************************/
12// Flags
13
14$this->nocase = "0";
15$this->notrim = "0";
16$this->perl = "0";
17
18// Colours
19
20$this->colours = array("blue", "purple", "gray", "brown", "blue");
21$this->quotecolour = "blue";
22$this->blockcommentcolour = "green";
23$this->linecommentcolour = "green";
24
25// Indent Strings
26
27$this->indent = array("{");
28$this->unindent = array("}");
29
30// String characters and delimiters
31
32$this->stringchars = array("\"", "'");
33$this->delimiters = array("~", "!", "@", "%", "^", "&", "*", "(", ")", "-", "+", "=", "|", "\\", "{", "}", "[", "]", "<", ">", ":", ";", "\"", "'", " ", ",", " ", ".", "?");
34$this->escchar = "";
35
36// Comment settings
37
38$this->linecommenton = array("//");
39$this->blockcommenton = array("/*");
40$this->blockcommentoff = array("*/");
41
42// Keywords (keyword mapping to colour number)
43
44$this->keywords = array(
45 "bool" => "1",
46 "char" => "1",
47 "class" => "1",
48 "const" => "1",
49 "case" => "1",
50 "catch" => "1",
51 "const_cast" => "1",
52 "double" => "1",
53 "default" => "1",
54 "do" => "1",
55 "delete" => "1",
56 "dynamic_cast" => "1",
57 "else" => "1",
58 "enum" => "1",
59 "explicit" => "1",
60 "export" => "1",
61 "extern" => "1",
62 "for" => "1",
63 "false" => "1",
64 "float" => "1",
65 "friend" => "1",
66 "if" => "1",
67 "inline" => "1",
68 "int" => "1",
69 "long" => "1",
70 "mutable" => "1",
71 "new" => "1",
72 "namespace" => "1",
73 "operator" => "1",
74 "protected" => "1",
75 "private" => "1",
76 "public" => "1",
77 "reinterpret_cast" => "1",
78 "return" => "1",
79 "short" => "1",
80 "signed" => "1",
81 "sizeof" => "1",
82 "static" => "1",
83 "struct" => "1",
84 "static_cast" => "1",
85 "switch" => "1",
86 "template" => "1",
87 "throw" => "1",
88 "true" => "1",
89 "typedef" => "1",
90 "typename" => "1",
91 "this" => "1",
92 "try" => "1",
93 "typeid" => "1",
94 "union" => "1",
95 "unsigned" => "1",
96 "using" => "1",
97 "virtual" => "1",
98 "void" => "1",
99 "volatile" => "1",
100 "wchar_t" => "1",
101 "while" => "1",
102 "asm" => "2",
103 "auto" => "2",
104 "break" => "2",
105 "continue" => "2",
106 "goto" => "2",
107 "register" => "2",
108 "#define" => "3",
109 "#error" => "3",
110 "#include" => "3",
111 "#elif" => "3",
112 "#if" => "3",
113 "#line" => "3",
114 "#else" => "3",
115 "#ifdef" => "3",
116 "#pragma" => "3",
117 "#endif" => "3",
118 "#ifndef" => "3",
119 "#undef" => "3",
120 "+" => "4",
121 "-" => "4",
122 "=" => "4",
123 "//" => "4",
124 "/" => "4",
125 "%" => "4",
126 "&" => "4",
127 ">" => "4",
128 "<" => "4",
129 "^" => "4",
130 "!" => "4",
131 "|" => "4",
132 "*" => "4",
133 "{" => "5",
134 "}" => "5",
135 ";" => "5",
136 "(" => "5",
137 ")" => "5",
138 "," => "5");
139
140// Special extensions
141
142// Each category can specify a PHP function that returns an altered
143// version of the keyword.
144
145
146
147$this->linkscripts = array(
148 "1" => "donothing",
149 "2" => "donothing",
150 "3" => "donothing",
151 "4" => "donothing",
152 "5" => "donothing");
153}

The documentation for this class was generated from the following file: