Syntax-highlight for = and comments

General questions about using TextPad

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

Post Reply
Peter

Syntax-highlight for = and comments

Post by Peter »

Hello,

two questions:

1) My software uses ; and ! and # as comment letters. Is it possible to define three letters for "single comment"?

2) How to define = and & as keywords? My definition runs with +, -, / ....., but not with = and &. Why???

[Keywords 4]
; Operators and Expressions
&&
*
+
-
/
<
<=
<>
==
>
>=
?
\
AND
EQ
GE

Peter
Berend

Re: Syntax-highlight for = and comments

Post by Berend »

1. You can only have two (single line) comment characters:
SingleComment = ;
SingleCommentAlt = !

2. Maybe you have defined = and & elsewhere, i.e. as OperatorChars?

Berend
Peter

Re: Syntax-highlight for = and comments

Post by Peter »

Berend,

1) Thanks, I changed it.

2) I found the problem:
It is not allowed to make "double definitions"; it's not good to define &&, because it's enough to define &; the same is for == (is twice =), >= and so on. In my snytax-file the double definitions (&&) overwrite the single definitions (&).

Peter
Post Reply