2 $BEAUT_PATH = realpath(
".").
"/Services/COPage/syntax_highlight/php";
4 require_once(
"$BEAUT_PATH/Beautifier/HFile.php");
20 $this->colours = array(
"blue",
"purple",
"gray",
"brown",
"blue",
"purple");
21 $this->quotecolour =
"blue";
22 $this->blockcommentcolour =
"green";
23 $this->linecommentcolour =
"green";
27 $this->indent = array(
"{",
"Begin",
"AttributeBegin",
"FrameBegin",
"MotionBegin",
"ObjectBegin",
"SolidBegin",
"TransformBegin",
"WorldBegin");
28 $this->unindent = array(
"}",
"End",
"AttributeEnd",
"FrameEnd",
"MotionEnd",
"ObjectEnd",
"SolidEnd",
"TransformEnd",
"WorldEnd");
32 $this->stringchars = array();
33 $this->delimiters = array(
"~",
"!",
"@",
"%",
"^",
"&",
"*",
"(",
")",
"-",
"+",
"=",
"|",
"\\",
"/",
"{",
"}",
"[",
"]",
":",
";",
"\"",
"'",
"<",
">",
" ",
",",
" ",
".",
"?");
38 $this->linecommenton = array(
"#");
39 $this->blockcommenton = array(
"");
40 $this->blockcommentoff = array(
"");
44 $this->keywords = array(
45 "AreaLightSource" =>
"1",
47 "AttributeBegin" =>
"1",
48 "AttributeEnd" =>
"1",
53 "ColorSamples" =>
"1",
54 "ConcatTransform" =>
"1",
55 "CoordinateSystem" =>
"1",
58 "DepthOfField" =>
"1",
61 "Displacement" =>
"1",
66 "FrameAspectRatio" =>
"1",
69 "GeometricApproximation" =>
"1",
82 "PixelSamples" =>
"1",
83 "PixelVariance" =>
"1",
86 "RelativeDetail" =>
"1",
87 "RiAreaLightSource" =>
"1",
89 "RiAttributeEnd" =>
"1",
94 "RiColorSamples" =>
"1",
95 "RiConcatTransform" =>
"1",
96 "RiCoordinateSystem" =>
"1",
97 "RiCropWindow" =>
"1",
98 "RiDepthOfField" =>
"1",
100 "RiDetailRange" =>
"1",
101 "RiDisplacement" =>
"1",
106 "RiFrameAspectRatio" =>
"1",
107 "RiFrameBegin" =>
"1",
109 "RiGeometricApproximation" =>
"1",
112 "RiIlluminate" =>
"1",
114 "RiLightSource" =>
"1",
118 "RiOrientation" =>
"1",
119 "RiPerspective" =>
"1",
120 "RiPixelFilter" =>
"1",
121 "RiPixelSamples" =>
"1",
122 "RiPixelVariance" =>
"1",
123 "RiProjection" =>
"1",
125 "RiRelativeDetail" =>
"1",
127 "RiScreenWindow" =>
"1",
128 "RiShadingInterpolation" =>
"1",
129 "RiShadingRate" =>
"1",
134 "RiTextureCoordinates" =>
"1",
135 "RiTransform" =>
"1",
136 "RiTransformBegin" =>
"1",
137 "RiTransformEnd" =>
"1",
138 "RiTransformPoints" =>
"1",
139 "RiTranslate" =>
"1",
140 "RiWorldBegin" =>
"1",
144 "ScreenWindow" =>
"1",
145 "ShadingInterpolation" =>
"1",
146 "ShadingRate" =>
"1",
151 "TextureCoordinates" =>
"1",
153 "TransformBegin" =>
"1",
154 "TransformEnd" =>
"1",
155 "TransformPoints" =>
"1",
163 "GeneralPolygon" =>
"2",
165 "Hyperboloid" =>
"2",
167 "ObjectBegin" =>
"2",
169 "ObjectInstance" =>
"2",
172 "PointsPolygons" =>
"2",
173 "PointsGeneralPolygons" =>
"2",
182 "RiGeneralPolygon" =>
"2",
184 "RiHyperboloid" =>
"2",
186 "RiObjectBegin" =>
"2",
187 "RiObjectEnd" =>
"2",
188 "RiObjectInstance" =>
"2",
190 "RiParaboloid" =>
"2",
191 "RiPointsPolygons" =>
"2",
192 "RiPointsGeneralPolygons" =>
"2",
194 "RiProcedural" =>
"2",
195 "RiSolidBegin" =>
"2",
199 "MotionBegin" =>
"3",
201 "RiMotionBegin" =>
"3",
202 "RiMotionEnd" =>
"3",
204 "MakeCubeFaceEnvironment" =>
"4",
205 "MakeLatLongEnvironment" =>
"4",
206 "MakeTexture" =>
"4",
208 "RiMakeCubeFaceEnvironment" =>
"4",
209 "RiMakeLatLongEnvironment" =>
"4",
210 "RiMakeTexture" =>
"4",
211 "ArchiveRecord" =>
"5",
212 "ErrorHandler" =>
"5",
213 "RiArchiveRecord" =>
"5",
214 "RiErrorHandler" =>
"5",
245 $this->linkscripts = array(