[TxMt] snippets for MySQL; escaping "`"?
jeroen at je-ju.net
Tue Nov 9 15:59:52 UTC 2004
On 09-11-2004 15:45, Paul Nordstrom August wrote:
> The one thing I can't manage to sort out is including e.g.
> "`textmate_id`" since the "`" is used in the snippets to evoke a shell
> command... I tried escaping with "\`" but that didn't work. Am I missing
> something obvious?
This is probably a problem because of "stacking" of escapes, i.e.
TextMate strips off an escape, but feeds it to another process, which
strips off another escape and finally it is fed to the shell, which
strips off the last escape.
So try to experiment with more escapes. You need three slashes to get an
escape to the shell: "echo \\\' " as command in TM prints a '.
PS. If you think this is bad, Have a look at the plist syntax
highlighting file, I had to use 8 consecutive slashes there to be able to
recognize 2 consecutive ones in the text ;-)
More information about the textmate