[TxMt] Snippet or command

Alain Matthes alain.matthes at mac.com
Fri Sep 21 07:30:52 UTC 2007


Le 20 sept. 07 à 19:25, Ben Alpert a écrit :

> Try this command (before: none, input: selection or nothing, output:
> replace selection):
>
> #!/usr/bin/env ruby
>
> sel = STDIN.read.chomp
> sel.match(/^(.+)(.)$/)
> left = $~[1]
> right = $~[2]
> print "\\left#{left}\\right#{right}"

hello Ben

   How to make a test like :

   if right = } then right =\\right

Thanks and Regards

     Alain


More information about the textmate mailing list