hello
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 :
${TM_SELECTED_TEXT/(.*)(\}|)|])/\left$1\right$2/}
If I make a special snippet for {
I have two snippets
for ( and [
${TM_SELECTED_TEXT/(.*)()|])/\left$1\right$2/}
and for {
${TM_SELECTED_TEXT/(.*)(})/\left\$1\right\$2/}
How to make this with only one snippet ?
Thanks
Regars Alain