Any chance of this in the next version, would be nice to reformat code when pasting into editor
Forum Archive
New feature request - code formatter
Avisual68
May 31, 2013 - 11:45
ccc
May 25, 2013 - 15:39
Pasting code into the Pythonista editor often causes those pesky 'Unexpected indent' error messages. If this is the problem that you are seeing, you might check out the tabs to spaces utility at:
http://omz-software.com/pythonista/forums/discussion/273/simple-utility-script-to-convert-tabs-to-spaces.
If you put this in your Actions menu and run it while your pasted code is open in the Pythonista editor, it will often get rid of the 'Unexpected indent' errors. Not a full reformatter but it might get your code to run.
ccc
May 29, 2013 - 00:02
Also check out this cool tip... http://omz-software.com/pythonista/forums/discussion/507/tip-mixing-spaces-with-tabs
Avisual68
May 31, 2013 - 11:45
Thanks have added it to collection. second tip was realy helpful