Syntax colors weirdness - Keywords 4
I have unique colors defined for [keywords 4], which contains four entries in the associated .syn file. When I look at those words in my working file, they are not rendered in their intended color.
I also have unique CommentStart and CommentEnd strings defined. Those, and all text within should be rendered in light gray. Have defined the comment characters in .syn file, and colors in preferences for the class. The color is not being applied.
In addition, CommentStartAlt and -EndAlt content within CommentStart..CommentEnd tags is preferably rendered in the latter format. Can this be done?
Realize that all of this is a bit obtuse, but there it is. Any help appreciated.
Wyntax Coloring Issues
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
I'm not quite sure why you are having problems but I've posted a complete syntax definition file I created for reference.
Have you created a file association between the required file type and the syntax file?
Have you created a file association between the required file type and the syntax file?
Code: Select all
; TextPad syntax definitions for ATLAS
C=1
[Syntax]
Namespace1 = 4
IgnoreCase = No
KeyWordLength =
BracketChars = ()
OperatorChars = -+*/<>!~%^&|=
PreprocStart =
SyntaxStart =
SyntaxEnd =
HexPrefix =
CommentStart = C****
CommentEnd = $
CommentStartAlt =
CommentEndAlt =
SingleComment = C
SingleCommentCol = 1
SingleCommentAlt =
SingleCommentColAlt =
SingleCommentEsc =
StringsSpanLines = Yes
StringStart =
StringEnd =
StringAlt =
StringEsc =
CharStart =
CharEnd =
CharEsc =
[Keywords 1]
COMPARE,
CALCULATE,
[Keywords 2]
OUTPUT,
INPUT,
[Keywords 3]
SETUP,
CONNECT,
DISCONNECT,
ARM,
FETCH,
CHANGE,
RESET,
APPLY,
REMOVE,
MEASURE,
MONITOR,
VERIFY,
READ,
INITIATE,
STIMULATE,
SENSE,
PROVE,
[Keywords 4]
IF,
WHILE,
FOR,
PERFORM,
FINISH,
ELSE
END,
Running TextPad 5.4 on Windows XP SP3 and on OS X 10.7 under VMWare or Crossover.