Syntax file and s/\".*\"//g;

General questions about using TextPad

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

Post Reply
Temelin

Syntax file and s/\".*\"//g;

Post by Temelin »

Greetings,

I am trying to strip all quotes from a file using:

s/\".*\"//g;

I currently have textpad setup to show strings in yellow and everything
else in white (black background). In the above command, Textpad thinks
the first \" starts a quote, which never ends. Right now I have this fixed
by doing:

s/\".*\"//g; # "

Is there anything to do to the syntax files to fix this? I have used all
of the syntax files available (perl2, perl3upd, and perl4).

Thanks!
Jens Hollmann

Re: Syntax file and s/\".*\"//g;

Post by Jens Hollmann »

In my perl.syn file there is the entry

StringEsc = \

and this works just fine with your example. Maybe your SYN-file is different?
Post Reply