ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_vrml.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_vrml extends HFile{
6  function HFile_vrml(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // VRML
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  "AsciiText" => "1",
46  "Box" => "1",
47  "box" => "1",
48  "Cone" => "1",
49  "Cube" => "1",
50  "Cylinder" => "1",
51  "cone" => "1",
52  "cube" => "1",
53  "cylinder" => "1",
54  "Group" => "1",
55  "IndexedFaceSet" => "1",
56  "IndexedLineSet" => "1",
57  "Info" => "2",
58  "LOD" => "1",
59  "PointSet" => "1",
60  "Separator" => "1",
61  "Sphere" => "1",
62  "Switch" => "1",
63  "sphere" => "1",
64  "WWWAnchor" => "1",
65  "Appearance" => "2",
66  "Coordinate3" => "2",
67  "DirectionalLight" => "2",
68  "FontStyle" => "2",
69  "Material" => "2",
70  "MaterialBinding" => "2",
71  "MatrixTransform" => "2",
72  "Normal" => "2",
73  "NormalBinding" => "2",
74  "OrthographicCamera" => "2",
75  "PerspectiveCamera" => "2",
76  "PointLight" => "2",
77  "Rotation" => "2",
78  "Scale" => "2",
79  "Shape" => "2",
80  "ShapeHints" => "2",
81  "SpotLight" => "2",
82  "Texture2" => "2",
83  "Texture2Transform" => "2",
84  "TextureCoordinate2" => "2",
85  "Transform" => "2",
86  "Translation" => "2",
87  "WWWInline" => "2",
88  "Approach" => "3",
89  "Arches" => "3",
90  "Beauty" => "3",
91  "BitMask" => "3",
92  "Bool" => "3",
93  "Cameras" => "3",
94  "Closeup" => "3",
95  "Color" => "3",
96  "Enum" => "3",
97  "Float" => "3",
98  "Guide" => "3",
99  "Image" => "3",
100  "Inside" => "3",
101  "Long" => "3",
102  "Matrix" => "3",
103  "SceneInfo" => "3",
104  "String" => "3",
105  "Title" => "3",
106  "Vec2f" => "3",
107  "Vec3f" => "3",
108  "Viewer" => "3",
109  "ViewerSpeed" => "3",
110  "ALL" => "4",
111  "AUTO" => "4",
112  "BINDINGS" => "4",
113  "BOLD" => "4",
114  "BOTTOM" => "4",
115  "CENTER" => "4",
116  "CLAMP" => "4",
117  "CLOCKWISE" => "4",
118  "CONVEX" => "4",
119  "COUNTERCLOCKWISE" => "4",
120  "CULLING" => "4",
121  "DEF" => "4",
122  "DEFAULT" => "4",
123  "DEFAULTS" => "4",
124  "ENUMS" => "4",
125  "FACE" => "4",
126  "FAMILY" => "4",
127  "FILE" => "4",
128  "FORMAT" => "4",
129  "ITALIC" => "4",
130  "JUSTIFICATION" => "4",
131  "LEFT" => "4",
132  "NONE" => "4",
133  "OFF" => "4",
134  "ON" => "4",
135  "OVERALL" => "4",
136  "PARTS" => "4",
137  "PER_FACE" => "4",
138  "PER_FACE_INDEXED" => "4",
139  "PER_PART" => "4",
140  "PER_PART_INDEXED" => "4",
141  "PER_VERTEX" => "4",
142  "PER_VERTEX_INDEXED" => "4",
143  "REPEAT" => "4",
144  "RIGHT" => "4",
145  "SHAPE" => "4",
146  "SIDES" => "4",
147  "SOLID" => "4",
148  "STYLE" => "4",
149  "TYPE" => "4",
150  "UNKNOWN_FACE_TYPE" => "4",
151  "UNKNOWN_ORDERING" => "4",
152  "UNKNOWN_SHAPE_TYPE" => "4",
153  "USE" => "4",
154  "WRAP" => "4",
155  "Adirection" => "5",
156  "ambientColor" => "5",
157  "appearance" => "5",
158  "bboxCenter" => "5",
159  "bboxSize" => "5",
160  "bottomRadius" => "5",
161  "center" => "5",
162  "children" => "5",
163  "color" => "5",
164  "coordIndex" => "5",
165  "creaseAngle" => "5",
166  "cutOffAngle" => "5",
167  "depth" => "5",
168  "description" => "5",
169  "diffuseColor" => "5",
170  "direction" => "5",
171  "dropOffRate" => "5",
172  "emissiveColor" => "5",
173  "faceType" => "5",
174  "family" => "5",
175  "fields" => "5",
176  "filename" => "5",
177  "focalDistance" => "5",
178  "geometry" => "5",
179  "height" => "5",
180  "heightAngle" => "5",
181  "image" => "5",
182  "indexOfRefraction" => "5",
183  "intensity" => "5",
184  "isA" => "5",
185  "justification" => "5",
186  "location" => "5",
187  "map" => "5",
188  "material" => "5",
189  "materialIndex" => "5",
190  "matrix" => "5",
191  "name" => "5",
192  "normalIndex" => "5",
193  "numPoints" => "5",
194  "on" => "5",
195  "orientation" => "5",
196  "parts" => "5",
197  "point" => "5",
198  "position" => "5",
199  "radius" => "5",
200  "range" => "5",
201  "renderCulling" => "5",
202  "rotation" => "5",
203  "scaleFactor" => "5",
204  "scaleOrientation" => "5",
205  "shapeType" => "5",
206  "shininess" => "5",
207  "size" => "5",
208  "spacing" => "5",
209  "specularColor" => "5",
210  "startIndex" => "5",
211  "string" => "5",
212  "style" => "5",
213  "textureCoordIndex" => "5",
214  "translation" => "5",
215  "transparency" => "5",
216  "value" => "5",
217  "vector" => "5",
218  "vertexOrdering" => "5",
219  "whichChild" => "5",
220  "width" => "5",
221  "wrapS" => "5",
222  "wrapT" => "5");
223 
224 // Special extensions
225 
226 // Each category can specify a PHP function that returns an altered
227 // version of the keyword.
228 
229 
230 
231 $this->linkscripts = array(
232  "1" => "donothing",
233  "2" => "donothing",
234  "3" => "donothing",
235  "4" => "donothing",
236  "5" => "donothing");
237 }
238 
239 
240 function donothing($keywordin)
241 {
242  return $keywordin;
243 }
244 
245 }?>