Syntax Highlights

General questions about using TextPad

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

Post Reply
Paul

Syntax Highlights

Post by Paul »

I use TextPad for editing Progress code. My problem is that Progress uses the period "." to end statement. The keyword "undo" is frequently followed by the period - which means "undo" is highlighted as a keyword but "undo." is not. I use "undo" only as an example, several keywords could be followed by the period.

I would like to know if there is a way to ignore the "." when it follows a keyword other than entering every keyword followed by a period into the Progress.syn file
Jens Hollmann

Re: Syntax Highlights

Post by Jens Hollmann »

That's odd. All my syntax highlightings ignore the period.

Is the period part of the additional characters in words? This is a setting of the document class under "syntax". If I add a period there, the highlighting really changes as you stated here.
Paul

Re: Syntax Highlights

Post by Paul »

Jens,
If you are referring to the field "Other characters in words" - the period is not in this field - I have tried adding the period and I still have the same results. Maybe I have set something somewhere else that causes me this problem.
Jens Hollmann

Re: Syntax Highlights

Post by Jens Hollmann »

Ah! I just tried another thing: Do you have any keyword defined that contains a period? If I do that I get the same problem.

Maybe all characters in keywords are automatically "other characters in words".

That would explain it but I can't think of a solution other than removing all periods in the SYN-file. And if you really need them, well...
Post Reply