hello:)
I would like in this snippet
${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}}
remove the \t and instead use white space, How to do that?
Regards Alain
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
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
On 24 Oct 2007, at 05:33, Alain Matthes wrote:
I would like in this snippet
[…]
remove the \t and instead use white space, How to do that?
If you have TextMate set to use Soft Tabs then it should convert tabs to spaces for you automatically when the snippet is inserted
Le 25 oct. 07 à 05:06, Ciarán Walsh a écrit :
On 24 Oct 2007, at 05:33, Alain Matthes wrote:
I would like in this snippet
[…]
remove the \t and instead use white space, How to do that?
If you have TextMate set to use Soft Tabs then it should convert tabs to spaces for you automatically when the snippet is inserted
Yes I know and I made that and my idea was will never see a tab.. when i will use a snippet
but no !!
Allan wrote after my first message
"TextMate ought to use the indenting characters of the current mode, but since this tab character is in a replacement string for a placeholder mirror, it technically is presently not able to do so -- it might be in the future."
So actually I modify the snippets that I use often.
Regards Alain