Syntax highlighting question
Posted: Mon Nov 26, 2001 11:26 pm
I have a syntax definition file for an XML document type I use regularly. An example of one line of the document is
<MTSMaterial Name="marlin_MATERIAL_0" ID="0" RenderMode="LightTexture" >
MTSMaterialName is in one keyword group. Name, ID and RenderMode are in another. MTSMaterial is hightlighted, but only Name is highlighted. What is actually happening is only the first keyword of the second set is being highlighted. If I switched it to be
<MTSMaterial ID="0" Name="marlin_MATERIAL_0" RenderMode="LightTexture" >
Then ID would be highlighted and not Name.
Does anybody know why this is happening and how I can fix it? I've included the first part of my syntax file below. I'm using version 4.5.
-Sean
HTML=1
[Syntax]
Namespace1 = 5
IgnoreCase = No
InitKeyWordChars = A-Za-z0-9
KeyWordChars = A-Za-z0-9
BracketChars = []
OperatorChars =
PreprocStart =
HexPrefix =
SyntaxStart = <
SyntaxEnd = >
CommentStart = !--
CommentEnd = --
CommentStartAlt =
CommentEndAlt =
SingleComment =
SingleCommentCol =
SingleCommentAlt =
SingleCommentColAlt =
SingleCommentEsc =
StringsSpanLines =
StringStart = "
StringEnd = "
StringAlt =
StringEsc =
CharStart =
CharEnd =
CharEsc =
<MTSMaterial Name="marlin_MATERIAL_0" ID="0" RenderMode="LightTexture" >
MTSMaterialName is in one keyword group. Name, ID and RenderMode are in another. MTSMaterial is hightlighted, but only Name is highlighted. What is actually happening is only the first keyword of the second set is being highlighted. If I switched it to be
<MTSMaterial ID="0" Name="marlin_MATERIAL_0" RenderMode="LightTexture" >
Then ID would be highlighted and not Name.
Does anybody know why this is happening and how I can fix it? I've included the first part of my syntax file below. I'm using version 4.5.
-Sean
HTML=1
[Syntax]
Namespace1 = 5
IgnoreCase = No
InitKeyWordChars = A-Za-z0-9
KeyWordChars = A-Za-z0-9
BracketChars = []
OperatorChars =
PreprocStart =
HexPrefix =
SyntaxStart = <
SyntaxEnd = >
CommentStart = !--
CommentEnd = --
CommentStartAlt =
CommentEndAlt =
SingleComment =
SingleCommentCol =
SingleCommentAlt =
SingleCommentColAlt =
SingleCommentEsc =
StringsSpanLines =
StringStart = "
StringEnd = "
StringAlt =
StringEsc =
CharStart =
CharEnd =
CharEsc =