Bug or just bad assumption? (or user error :-)

General questions about using TextPad

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

Post Reply
Dtsig
Posts: 23
Joined: Mon Mar 17, 2003 8:29 pm

Bug or just bad assumption? (or user error :-)

Post by Dtsig »

In a programming language we use the following line shows incorrectly highlighted

if purgeOutputLocation[-1,1] # '\' then purgeErrorLocation := '\'

then problem is that all text after the first ' is highlighted as a string.

My guess is that TEXTPAD assumes that the \ is escaping the closing ' and so it gets lost ..

Is there a way to turn this off. Not all languages use \ as an escape charater.

Of course it is possible that i have just missed this in the syntax definition. Have searched but not found a reference.

thanks
DTSig
David Tod Sigafoos
bveldkamp

Post by bveldkamp »

Look up "StringEsc" in your syntax file, and maybe also "CharEsc"

Berend
Dtsig
Posts: 23
Joined: Mon Mar 17, 2003 8:29 pm

Post by Dtsig »

bveldkamp wrote:Look up "StringEsc" in your syntax file, and maybe also "CharEsc"

Berend
great answer and correct . Thanks
DTSig
David Tod Sigafoos
Post Reply