Fix the string coloring with escaped-quotes

Ideas for new features

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

Post Reply
melvers
Posts: 26
Joined: Tue Aug 05, 2003 1:52 pm

Fix the string coloring with escaped-quotes

Post by melvers »

In C# this is a valid string contant @"\directory\".
However, TextPad doesn't recognize the closing quote due to the \. This result in most, if not all, of the code after that point being colored as though it were part of the string.

Please fix this.

Thanks.
Cringing Dragon
Posts: 7
Joined: Fri May 04, 2007 11:39 pm

Post by Cringing Dragon »

Check your syntax definition file (.syn). I think you'll find a line reading

Code: Select all

 StringEsc = \ 
If this is the case, then TextPad is correctly honouring the syntax definition. This is what is causing the closing quote marks to be ignored.

If you do not want the \ to act as an escape character for the quotes, leave StringEsc undefined.

Same applies to CharEsc.
melvers
Posts: 26
Joined: Tue Aug 05, 2003 1:52 pm

Fix the string coloring with escaped-quotes

Post by melvers »

Thanks, but then the syntax hightlighting is wrong when you really do have an embedded quote (like "John \"Jack\" Smith").
Post Reply