Page 1 of 1

Wyntax Coloring Issues

Posted: Thu Nov 22, 2012 4:27 pm
by jwcane
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.

Posted: Mon Nov 26, 2012 12:25 pm
by SteveH
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?

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,

Posted: Tue Nov 27, 2012 6:09 pm
by jwcane
Thanks for syn file. Problem comes with color definitions linked to keywords, and use of markup characters such as <...>, as indicated in my original posting.