HI all,
This question may have been answered before but I couldn't find an answer to it in anywhere here. I have a syn file which I am using for editing an XML file. I want to have different tags in a different background color. But all that I am able to get, no matter how I set my document color preferences is the <> brackets of the tag.
I have tried changing the namespace number from 1 to 2, using the syntax start and end characters or not, and adding the <> to the keywords (as in keyword:<doc> rather than doc).
Help!!
Cam
Here is the syn file that I am using:
HTML=2
[Syntax]
Namespace1 = 2
IgnoreCase = Yes
InitKeyWordChars = A-Za-z
KeyWordChars = A-Za-z0-9:-=
BracketChars =
OperatorChars =
PreprocStart =
HexPrefix = #
SyntaxStart = <
SyntaxEnd = >
CommentStart = <!--
CommentEnd = -->
CommentStartAlt =
CommentEndAlt =
SingleComment =
SingleCommentCol =
SingleCommentAlt =
SingleCommentColAlt =
SingleCommentEsc =
StringsSpanLines = Yes
StringStart = "
StringEnd = "
StringAlt =
StringEsc =
CharStart = &
CharEnd = ;
CharEsc = \
[Keywords 1]
heading
/heading
p
/p
doc
/doc
[Keywords 2]
s
color and syn files
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard