ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
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)) return;
4 require_once("$BEAUT_PATH/Beautifier/HFile.php");
5  class HFile_rmanshader extends HFile{
6  function HFile_rmanshader(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // Rman Shader
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", "purple", "gray", "brown");
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  "__asm" => "1",
46  "__based" => "1",
47  "__cdecl" => "1",
48  "__export" => "1",
49  "__far" => "1",
50  "__fastcall" => "1",
51  "__fortran" => "1",
52  "__huge" => "1",
53  "__inline" => "1",
54  "__interrupt" => "1",
55  "__loadds" => "1",
56  "__near" => "1",
57  "__pascal" => "1",
58  "__saveregs" => "1",
59  "__segment" => "1",
60  "__segname" => "1",
61  "__self" => "1",
62  "#define" => "1",
63  "#elif" => "1",
64  "#else" => "1",
65  "#endif" => "1",
66  "#error" => "1",
67  "#if" => "1",
68  "#ifdef" => "1",
69  "#ifndef" => "1",
70  "#include" => "1",
71  "#line" => "1",
72  "#pragma" => "1",
73  "#undef" => "1",
74  "auto" => "1",
75  "break" => "1",
76  "case" => "1",
77  "char" => "1",
78  "color" => "1",
79  "const" => "1",
80  "continue" => "1",
81  "default" => "1",
82  "do" => "1",
83  "double" => "1",
84  "else" => "1",
85  "enum" => "1",
86  "extern" => "1",
87  "float" => "1",
88  "for" => "1",
89  "goto" => "1",
90  "if" => "1",
91  "int" => "1",
92  "long" => "1",
93  "normal" => "1",
94  "point" => "1",
95  "register" => "1",
96  "return" => "1",
97  "short" => "1",
98  "signed" => "1",
99  "sizeof" => "1",
100  "static" => "1",
101  "struct" => "1",
102  "switch" => "1",
103  "typedef" => "1",
104  "uniform" => "1",
105  "union" => "1",
106  "unsigned" => "1",
107  "varying" => "1",
108  "void" => "1",
109  "volatile" => "1",
110  "while" => "1",
111  "Ci" => "2",
112  "Cl" => "2",
113  "Cs" => "2",
114  "E" => "2",
115  "I" => "2",
116  "L" => "2",
117  "N" => "2",
118  "Ng" => "2",
119  "Oi" => "2",
120  "Ol" => "2",
121  "Os" => "2",
122  "P" => "2",
123  "alpha" => "2",
124  "class" => "2",
125  "dPdu" => "2",
126  "dPdv" => "2",
127  "delete" => "2",
128  "displacement" => "2",
129  "du" => "2",
130  "dv" => "2",
131  "friend" => "2",
132  "imager" => "2",
133  "inline" => "2",
134  "light" => "2",
135  "ncomps" => "2",
136  "new" => "2",
137  "null" => "2",
138  "operator" => "2",
139  "printf" => "2",
140  "private" => "2",
141  "protected" => "2",
142  "public" => "2",
143  "s" => "2",
144  "surface" => "2",
145  "t" => "2",
146  "this" => "2",
147  "time" => "2",
148  "transformation" => "2",
149  "try" => "2",
150  "u" => "2",
151  "v" => "2",
152  "version" => "2",
153  "virtual" => "2",
154  "volume" => "2",
155  "__multiple_inheritance" => "2",
156  "__single_inheritance" => "2",
157  "__virtual_inheritance" => "2",
158  "Du" => "3",
159  "Dv" => "3",
160  "abs" => "3",
161  "acos" => "3",
162  "asin" => "3",
163  "atan" => "3",
164  "ceil" => "3",
165  "clamp" => "3",
166  "cos" => "3",
167  "degrees" => "3",
168  "exp" => "3",
169  "filteredpulse" => "3",
170  "filteredpulsetrain" => "3",
171  "floor" => "3",
172  "max" => "3",
173  "min" => "3",
174  "mod" => "3",
175  "noise" => "3",
176  "pow" => "3",
177  "pulse" => "3",
178  "pulsetrain" => "3",
179  "random" => "3",
180  "round" => "3",
181  "sign" => "3",
182  "sin" => "3",
183  "smoothstep" => "3",
184  "snoise" => "3",
185  "snoisexy" => "3",
186  "sqr" => "3",
187  "sqrt" => "3",
188  "step" => "3",
189  "tan" => "3",
190  "vsnoise" => "3",
191  "area" => "4",
192  "calculatenormal" => "4",
193  "depth" => "4",
194  "distance" => "4",
195  "faceforward" => "4",
196  "fresnel" => "4",
197  "length" => "4",
198  "normalize" => "4",
199  "reflect" => "4",
200  "refract" => "4",
201  "setxcomp" => "4",
202  "setzcomp" => "4",
203  "transform" => "4",
204  "ycomp" => "4",
205  "comp" => "5",
206  "mix" => "5",
207  "setcomp" => "5",
208  "ambient" => "6",
209  "phong" => "6",
210  "specular" => "6",
211  "trace" => "6",
212  "bump" => "7",
213  "environment" => "7",
214  "shadow" => "7",
215  "texture" => "7",
216  "incident" => "8",
217  "opposite" => "8");
218 
219 // Special extensions
220 
221 // Each category can specify a PHP function that returns an altered
222 // version of the keyword.
223 
224 
225 
226 $this->linkscripts = array(
227  "1" => "donothing",
228  "2" => "donothing",
229  "3" => "donothing",
230  "4" => "donothing",
231  "5" => "donothing",
232  "6" => "donothing",
233  "7" => "donothing",
234  "8" => "donothing");
235 }
236 
237 
238 function donothing($keywordin)
239 {
240  return $keywordin;
241 }
242 
243 }?>