Code reformater?

Mario Wehbrink wehbrink at web.de
Sat Jan 20 04:46:46 EST 2007


Vincent Delporte schrieb in comp.lang.python:

Hi

> 	When I copy/paste Python code from the web, every so often,
> the TABs are wrong, which means that the code won't work and I have to
> manually reformat the code.
>
> Is there a code reformater that can parse the code to make it right?

It may help to look at the settings of your editor. I think Vim (and
surely emacs) can help you with that.

(look at :help retab, paste, expandtab in (g)Vim)

Mario


-- 
Mario Wehbrink



More information about the Python-list mailing list