Is there a way to covert each tab in a file into a certain number of spaces?
Thanks,
Ernest
See "Tabs and Spaces" in http://macromates.com/wiki/Tutorials/BasicsTest.
-- Daryl
On 4/25/07, Ernest ernest@willowfalls.net wrote:
Is there a way to covert each tab in a file into a certain number of spaces?
Thanks,
Ernest
-- View this message in context: http://www.nabble.com/Covert-tabs-to-spaces-tf3648951.html#a10192442 Sent from the textmate users mailing list archive at Nabble.com.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On Apr 25, 2007, at 9:25 PM, Daryl Spitzer wrote:
See "Tabs and Spaces" in http://macromates.com/wiki/Tutorials/ BasicsTest.
As well, I have in my personal bundle:
Tabify
Save: Nothing Command(s): perl -pe 's{^( *)}{ "\t" x (length($1) / $ENV{TM_TAB_SIZE}) }e' Input: Selected Text or Document Output: Replace Selected Text
Untabify
Save: Nothing Command(s): perl -pe 's{^(\t*)}{ " " x (length($1) * $ENV{TM_TAB_SIZE}) }e' Input: Selected Text or Document Output: Replace Selected Text