[TxMt] Snippet and regex

Alain Matthes alain.matthes at mac.com
Wed Oct 24 10:52:50 UTC 2007


Le 24 oct. 07 à 12:46, Guido Governatori a écrit :

>
> On 24/10/2007, at 8:33 PM, Alain Matthes wrote:
>
>>
>> ${TM_SELECTED_TEXT/(\s*).*/$1/m}\begin{${1:environment}}
>> ${TM_SELECTED_TEXT/(.+)|\n\z/(?1:\t$0)/g}
>> ${TM_SELECTED_TEXT/(\s*).*/$1/m}\end{${1:environment}}
>>
>
> Have you tried with simple white spaces?
>
> ${TM_SELECTED_TEXT/(\s*).*/$1/m}\begin{${1:environment}}
> ${TM_SELECTED_TEXT/(.+)|\n\z/(?1:    $0)/g}
> ${TM_SELECTED_TEXT/(\s*).*/$1/m}\end{${1:environment}}
>
> All the best
>

??? yes but perhaps I made a mistake...

Yes this works fine

thanks

Regards Alain Matthes


More information about the textmate mailing list