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.
Fix the string coloring with escaped-quotes
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
- Posts: 7
- Joined: Fri May 04, 2007 11:39 pm
Check your syntax definition file (.syn). I think you'll find a line reading
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.
Code: Select all
StringEsc = \
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
Thanks, but then the syntax hightlighting is wrong when you really do have an embedded quote (like "John \"Jack\" Smith").