ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_rmanshader.php
Go to the documentation of this file.
1 <?php
2 $BEAUT_PATH = realpath(".") . "/Services/COPage/syntax_highlight/php";
3 if (!isset($BEAUT_PATH)) {
4  return;
5 }
6 require_once("$BEAUT_PATH/Beautifier/HFile.php");
7  class HFile_rmanshader extends HFile
8  {
9  public function HFile_rmanshader()
10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // Rman Shader
15  /*************************************/
16  // Flags
17 
18  $this->nocase = "0";
19  $this->notrim = "0";
20  $this->perl = "0";
21 
22  // Colours
23 
24  $this->colours = array("blue", "purple", "gray", "brown", "blue", "purple", "gray", "brown");
25  $this->quotecolour = "blue";
26  $this->blockcommentcolour = "green";
27  $this->linecommentcolour = "green";
28 
29  // Indent Strings
30 
31  $this->indent = array("{");
32  $this->unindent = array("}");
33 
34  // String characters and delimiters
35 
36  $this->stringchars = array("\"", "'");
37  $this->delimiters = array("~", "!", "@", "%", "^", "&", "*", "(", ")", "-", "+", "=", "|", "\\", "/", "{", "}", "[", "]", ":", ";", "\"", "'", "<", ">", " ", ",", " ", ".", "?");
38  $this->escchar = "";
39 
40  // Comment settings
41 
42  $this->linecommenton = array("//");
43  $this->blockcommenton = array("/*");
44  $this->blockcommentoff = array("*/");
45 
46  // Keywords (keyword mapping to colour number)
47 
48  $this->keywords = array(
49  "__asm" => "1",
50  "__based" => "1",
51  "__cdecl" => "1",
52  "__export" => "1",
53  "__far" => "1",
54  "__fastcall" => "1",
55  "__fortran" => "1",
56  "__huge" => "1",
57  "__inline" => "1",
58  "__interrupt" => "1",
59  "__loadds" => "1",
60  "__near" => "1",
61  "__pascal" => "1",
62  "__saveregs" => "1",
63  "__segment" => "1",
64  "__segname" => "1",
65  "__self" => "1",
66  "#define" => "1",
67  "#elif" => "1",
68  "#else" => "1",
69  "#endif" => "1",
70  "#error" => "1",
71  "#if" => "1",
72  "#ifdef" => "1",
73  "#ifndef" => "1",
74  "#include" => "1",
75  "#line" => "1",
76  "#pragma" => "1",
77  "#undef" => "1",
78  "auto" => "1",
79  "break" => "1",
80  "case" => "1",
81  "char" => "1",
82  "color" => "1",
83  "const" => "1",
84  "continue" => "1",
85  "default" => "1",
86  "do" => "1",
87  "double" => "1",
88  "else" => "1",
89  "enum" => "1",
90  "extern" => "1",
91  "float" => "1",
92  "for" => "1",
93  "goto" => "1",
94  "if" => "1",
95  "int" => "1",
96  "long" => "1",
97  "normal" => "1",
98  "point" => "1",
99  "register" => "1",
100  "return" => "1",
101  "short" => "1",
102  "signed" => "1",
103  "sizeof" => "1",
104  "static" => "1",
105  "struct" => "1",
106  "switch" => "1",
107  "typedef" => "1",
108  "uniform" => "1",
109  "union" => "1",
110  "unsigned" => "1",
111  "varying" => "1",
112  "void" => "1",
113  "volatile" => "1",
114  "while" => "1",
115  "Ci" => "2",
116  "Cl" => "2",
117  "Cs" => "2",
118  "E" => "2",
119  "I" => "2",
120  "L" => "2",
121  "N" => "2",
122  "Ng" => "2",
123  "Oi" => "2",
124  "Ol" => "2",
125  "Os" => "2",
126  "P" => "2",
127  "alpha" => "2",
128  "class" => "2",
129  "dPdu" => "2",
130  "dPdv" => "2",
131  "delete" => "2",
132  "displacement" => "2",
133  "du" => "2",
134  "dv" => "2",
135  "friend" => "2",
136  "imager" => "2",
137  "inline" => "2",
138  "light" => "2",
139  "ncomps" => "2",
140  "new" => "2",
141  "null" => "2",
142  "operator" => "2",
143  "printf" => "2",
144  "private" => "2",
145  "protected" => "2",
146  "public" => "2",
147  "s" => "2",
148  "surface" => "2",
149  "t" => "2",
150  "this" => "2",
151  "time" => "2",
152  "transformation" => "2",
153  "try" => "2",
154  "u" => "2",
155  "v" => "2",
156  "version" => "2",
157  "virtual" => "2",
158  "volume" => "2",
159  "__multiple_inheritance" => "2",
160  "__single_inheritance" => "2",
161  "__virtual_inheritance" => "2",
162  "Du" => "3",
163  "Dv" => "3",
164  "abs" => "3",
165  "acos" => "3",
166  "asin" => "3",
167  "atan" => "3",
168  "ceil" => "3",
169  "clamp" => "3",
170  "cos" => "3",
171  "degrees" => "3",
172  "exp" => "3",
173  "filteredpulse" => "3",
174  "filteredpulsetrain" => "3",
175  "floor" => "3",
176  "max" => "3",
177  "min" => "3",
178  "mod" => "3",
179  "noise" => "3",
180  "pow" => "3",
181  "pulse" => "3",
182  "pulsetrain" => "3",
183  "random" => "3",
184  "round" => "3",
185  "sign" => "3",
186  "sin" => "3",
187  "smoothstep" => "3",
188  "snoise" => "3",
189  "snoisexy" => "3",
190  "sqr" => "3",
191  "sqrt" => "3",
192  "step" => "3",
193  "tan" => "3",
194  "vsnoise" => "3",
195  "area" => "4",
196  "calculatenormal" => "4",
197  "depth" => "4",
198  "distance" => "4",
199  "faceforward" => "4",
200  "fresnel" => "4",
201  "length" => "4",
202  "normalize" => "4",
203  "reflect" => "4",
204  "refract" => "4",
205  "setxcomp" => "4",
206  "setzcomp" => "4",
207  "transform" => "4",
208  "ycomp" => "4",
209  "comp" => "5",
210  "mix" => "5",
211  "setcomp" => "5",
212  "ambient" => "6",
213  "phong" => "6",
214  "specular" => "6",
215  "trace" => "6",
216  "bump" => "7",
217  "environment" => "7",
218  "shadow" => "7",
219  "texture" => "7",
220  "incident" => "8",
221  "opposite" => "8");
222 
223  // Special extensions
224 
225  // Each category can specify a PHP function that returns an altered
226  // version of the keyword.
227 
228 
229 
230  $this->linkscripts = array(
231  "1" => "donothing",
232  "2" => "donothing",
233  "3" => "donothing",
234  "4" => "donothing",
235  "5" => "donothing",
236  "6" => "donothing",
237  "7" => "donothing",
238  "8" => "donothing");
239  }
240 
241 
242  public function donothing($keywordin)
243  {
244  return $keywordin;
245  }
246  }
$BEAUT_PATH
Create styles array
The data for the language used.
Definition: HFile.php:21