+3
Snippets tabTrigger can't start with a period
I just installed the official jQuery TextMate bundle. A lot of the snippet tabTrigger words start with a period, like
.animate
The tabTriggers do not work if the word starts with a period. I can easily remove the period from the tabTrigger definition in the snippet file and it works fine.
0
Richard Tape 13 years ago
Looks like you can't start with a "<" symbol either. I had a snippet to insert inline html comments so that I typed
<!
and I received
<!-- $0 -->
But when making a snippet with a tabTrigger of <! I get an error
Error parsing snippet xml: Error reading end tag. In file Packages/User/comment.sublime-snippet
(It's the same for either < and <! so it's clearly the < character it dislikes)
0
Richard Tape 13 years ago
Haha. 30 seconds after posting this comment I had a lightbulb moment (because I clicked the 'code' button here on UserEcho. I tried using
<!
(i.e. escaped html) and that works just great!
Customer support service by UserEcho