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