[TxMt] Snippet or command

Alain Matthes alain.matthes at mac.com
Thu Sep 20 07:40:10 UTC 2007


Ruben Debeerst suggests to change the "left...right" snippet  which  
wraps "(something)" into "\left(something\right)"

I think that is interesting but I would like to make this for ( and  
[ but not for {

In this case, I would prefer

"{something}" into "\left\{something\right\}"

But I've a problem because actually I learn regex, ruby syntax  
grammar etc....

I'm sure that's possible with a command and a script with ruby or  
perl but is it possible only with regex in a snippet.

The proposition of Ruben is :


If I make a special snippet for {

I have two snippets

for ( and [


and for {


How to make this with only one snippet ?


Regars Alain

More information about the textmate mailing list