Hey guys,
I am right now trying the out TextMate and it seems pretty awesome. I do have a Problem with using my old pything files with TextMate. They are all indented by whitespaces and not by tabs. So when I add a new line with TextMate, the python script won't run anymore, since TextMate indents by using tabs.
So I would either have to convert my python scripts to use tabs or tell TextMate to use whitespaces. How would I achieve one of the above?
Regards, Samy
Select all the text that needs converting, then go to the Text menu, the Convert submenu, and pick either Spaces to Tabs or Tabs to Spaces.
E
On Oct 18, 2007, at 9:30 PM, samy-delux wrote:
Hey guys,
I am right now trying the out TextMate and it seems pretty awesome. I do have a Problem with using my old pything files with TextMate. They are all indented by whitespaces and not by tabs. So when I add a new line with TextMate, the python script won't run anymore, since TextMate indents by using tabs.
So I would either have to convert my python scripts to use tabs or tell TextMate to use whitespaces. How would I achieve one of the above?
Regards, Samy -- View this message in context: http://www.nabble.com/Question-about- python-indentation-tf4646652.html#a13273511 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
And for TM to indent with spaces, select “Soft Tabs” in the “Tab Size” menu (in the bar down every window).
Le 18 oct. 07 à 15:54, Eric Abrahamsen a écrit :
Select all the text that needs converting, then go to the Text menu, the Convert submenu, and pick either Spaces to Tabs or Tabs to Spaces.
E
On Oct 18, 2007, at 9:30 PM, samy-delux wrote:
Hey guys,
I am right now trying the out TextMate and it seems pretty awesome. I do have a Problem with using my old pything files with TextMate. They are all indented by whitespaces and not by tabs. So when I add a new line with TextMate, the python script won't run anymore, since TextMate indents by using tabs.
So I would either have to convert my python scripts to use tabs or tell TextMate to use whitespaces. How would I achieve one of the above?
Regards, Samy -- View this message in context: http://www.nabble.com/Question-about- python-indentation-tf4646652.html#a13273511 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
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
Thanks, worked like a charm!
Regards, Samy
EricAb wrote:
Select all the text that needs converting, then go to the Text menu, the Convert submenu, and pick either Spaces to Tabs or Tabs to Spaces.
E
On Oct 18, 2007, at 9:30 PM, samy-delux wrote:
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
samy-delux wrote:
EricAb wrote:
Select all the text that needs converting, then go to the Text menu, the Convert submenu, and pick either Spaces to Tabs or Tabs to Spaces.
Thanks, worked like a charm!
Even better is to pick "soft tabs" at the bottom of the window. Indenting python code by 4 spaces is the general practice (though there are tab zealots and spaces zealots who will argue for hours about this. Needless to say it doesn't really matter :)
-Jacob