! Syntax Highlighting Patterns for VRML ! (Thanks to Randy Frank of Research Systems Inc.) ! ! In NEdit Version 5.0.1 and beyond, load this pattern by starting nedit with: ! ! nedit -import ! ! Then, check that the patterns were loaded correctly, and choose Save Defaults ! from the Preferences menu. The new patterns will now be incorporated into ! your own .nedit file, so the next time you start NEdit, you will no longer ! need to use -import. ! ! In version 5.0, without -import, you must edit your .nedit file by hand and ! add the contents of each resource below to the corresponding list in your ! .nedit file. Be sure to separate new entries with \n, and continue resource ! strings by escaping all newlines within a resource value with \ (backslash), ! leaving only the last line of the resource value not ending in \. ! nedit.highlightPatterns: \ VRML:1:0{\n\ comment:"#":"$"::Comment::\n\ braces:"[{}\\[\\]]":::Keyword::D\n\ numeric const:"<((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f)?>":::Numeric Const::\n\ node:"<(Anchor|Appearance|AudioClip|Background|Billboard|Box|Collision|Color|ColorInterpolator|Cone|Coordinate|CoordinateInterpolator|Cylinder|CylinderSensor|DirectionalLight|ElevationGrid|Extrusion|Fog|FontStyle|Group|ImageTexture|IndexedFaceSet|IndexedLineSet|Inline|LOD|Material|MovieTexture|NavigationInfo|Normal|NormalInterpolator|OrientationInterpolator|PixelTexture|PlaneSensor|PointLight|PointSet|PositionInterpolator|ProximitySensor|ScalarInterpolator|Script|Shape|Sound|Sphere|SphereSensor|SpotLight|Switch|Text|TextureCoordinate|TextureTransform|TimeSensor|TouchSensor|Transform|Viewpoint|VisibilitySensor|WorldInfo)>":::Keyword::D\n\ string:"""":""""::String::\n\ builtins:"<(TRUE|FALSE|NULL)>":::Character Const::D\n\ protos:"<(USE|DEF|PROTO|EXTERNPROTO)>":::Preprocessor::D\n\ routes:"<(ROUTE|TO)>":::Preprocessor::D\n\ fieldnames:"<(ambientIntensity|appearance|attenuation|autoOffset|avatarSize|axisOfRotation|backUrl|bboxCenter|bboxSize|beamWidth|beginCap|bottom|bottomRadius|bottomUrl|ccw|center|children|choice|collide|color|colorIndex|colorPerVertex|convex|coord|coordIndex|creaseAngle|crossSection|cutOffAngle|cycleInterval|description|diffuseColor|direction|directOutput|diskAngle|emissiveColor|enabled|endCap|family|fieldOfView|fogType|fontStyle|frontUrl|geometry|groundAngle|groundColor|headlight|height|horizontal|image|info|intensity|jump|justify|key|keyValue|language|leftToRight|leftUrl|length|level|location|loop|material|maxAngle|minAngle|maxBack|minBack|maxExtent|maxFront|minFront|maxPosition|minPosition|mustEvaluate|normal|normalIndex|normalPerVertex|offset|on|orientation|parameter|pitch|point|position|priority|proxy|radius|range|repeatS|repeatT|rightUrl|rotation|scale|scaleOrientation|shininess|side|size|skyAngle|skyColor|solid|source|spacing|spatialize|speed|specularColor|spine|startTime|string|stopTime|style|texCoord|texCoordIndex|texture|textureTransform|title|top|topToBottom|topUrl|translation|transparency|type|url|vector|visibilityLimit|visibilityRange|whichChoice|xDimension|xSpacing|zDimension|zSpacing)>":::Identifier::D\n\ events:"<(eventIn|eventOut)>":::Storage Type::D\n\ fields:"<(field|IS|exposedField)>":::Identifier1::D\n\ types:"<(MFColor|MFFloat|MFInt32|MFNode|MFRotation|MFString|MFTime|MFVec2f|MFVec3f|SFBool|SFColor|SFFloat|SFImage|SFInt32|SFNode|SFRotation|SFString|SFTime|SFVec2f|SFVec3f)>":::Storage Type::D\n\ } nedit.languageModes: VRML:.wrl:"^[ \\t]*#VRML V2.0 utf8":::::