[TxMt] Re: Two issues with snippets

Michael Sheets mummer at whitefalls.org
Mon Sep 15 03:39:12 UTC 2008


On Sep 14, 2008, at 8:31 PM, Guido Governatori wrote:

> 1) I would like to create a snippet like (actually a part of a  
> snippet)
>
> ${1:[${2:text}]}
>
> So when I insert it on the first tab I have
>
> [text]
>
> with the option of deleting it typing <delete> and then on the second
> tab to modify the actual placeholder. The problem is when I replace
> the square brackets [] with curly brackets {}. I have tried a few
> options with mirror and conditional insertions but to no avail. Any
> suggestions?

Try: ${1:{${2:text}\}}



More information about the textmate mailing list