Another Color Issue - How to?
Posted: Tue Jul 03, 2001 12:19 pm
I am using TP as a COBOL with embedded SQL editor.
It works beautifully and the colored highlights are
great. I have recently come across a need for additional
colors and I can't figure out how to implement them.
I currently have comments starting with a "*" in column
7 colored green. We are now doing a structure where
a comment starting with "*_" in columns 7 and 8 is
a comment for the precompiler but is ignored and used as
code in the compiler. I would like to have these lines
colored differently. Is this possible. I have tried using
a second SingleComment and also a keyword, but no results.
The other need, though minor, would be to have any text
between column 73 and 80 a different color.
(It's a COBOL thing).
I append part of my syntax file below:
C=1
[Syntax]
Namespace1 = 5
IgnoreCase = Yes
InitKeyWordChars = A-Za-z
KeyWordChars = A-Za-z0-9-
BracketChars=()
OperatorChars=*/+-><
PreprocStart =
SyntaxStart =
SyntaxEnd =
CommentStart =
CommentEnd =
CommentStartAlt =
CommentEndAlt =
SingleComment = *
SingleCommentCol = 7
SingleCommentalt = --
StringStart = "
StringEnd = "
StringAlt = '
StringEsc = '
CharStart = "
CharEnd = "
CharEsc =
Any help would be apprciated.
Thanks,
Dan Wallace
It works beautifully and the colored highlights are
great. I have recently come across a need for additional
colors and I can't figure out how to implement them.
I currently have comments starting with a "*" in column
7 colored green. We are now doing a structure where
a comment starting with "*_" in columns 7 and 8 is
a comment for the precompiler but is ignored and used as
code in the compiler. I would like to have these lines
colored differently. Is this possible. I have tried using
a second SingleComment and also a keyword, but no results.
The other need, though minor, would be to have any text
between column 73 and 80 a different color.
(It's a COBOL thing).
I append part of my syntax file below:
C=1
[Syntax]
Namespace1 = 5
IgnoreCase = Yes
InitKeyWordChars = A-Za-z
KeyWordChars = A-Za-z0-9-
BracketChars=()
OperatorChars=*/+-><
PreprocStart =
SyntaxStart =
SyntaxEnd =
CommentStart =
CommentEnd =
CommentStartAlt =
CommentEndAlt =
SingleComment = *
SingleCommentCol = 7
SingleCommentalt = --
StringStart = "
StringEnd = "
StringAlt = '
StringEsc = '
CharStart = "
CharEnd = "
CharEsc =
Any help would be apprciated.
Thanks,
Dan Wallace