Page 1 of 1

Fix the string coloring with escaped-quotes

Posted: Thu Nov 09, 2006 9:23 pm
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.

Posted: Sat May 05, 2007 7:54 am
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.

Fix the string coloring with escaped-quotes

Posted: Mon Jun 16, 2008 2:18 pm
by melvers
Thanks, but then the syntax hightlighting is wrong when you really do have an embedded quote (like "John \"Jack\" Smith").