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
Guido -- Dr Guido Governatori School of Information Technology and Electrical Engineering The University of Queensland Brisbane, Queensland, 4072, Australia Phone: +61-(0)7-336 52907 Fax: +61-(0)7-336 54999 http://www.governatori.net/TextMate/ http://www.defeasible.org