Wyntax Coloring Issues

General questions about using TextPad

Moderators: AmigoJack, helios, bbadmin, Bob Hansen, MudGuard

Post Reply
jwcane
Posts: 15
Joined: Tue Jul 29, 2003 12:29 am

Wyntax Coloring Issues

Post 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.
User avatar
SteveH
Posts: 327
Joined: Thu Apr 03, 2003 11:37 am
Location: Edinburgh, Scotland
Contact:

Post 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,
Running TextPad 5.4 on Windows XP SP3 and on OS X 10.7 under VMWare or Crossover.
jwcane
Posts: 15
Joined: Tue Jul 29, 2003 12:29 am

Post 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.
Post Reply