Quoting code [was: OT: spacing of code in Google Groups]

Steve Holden steve at holdenweb.com
Fri Dec 31 23:16:39 CET 2004


mensanator at aol.com wrote:

> mensanator at aol.com wrote:
> 
>>beliavsky at aol.com wrote:
>>
>>>When I copy code from a source file into a Google Groups message,
> 
> the
> 
>>>indentation is messed up, making my Python code illegal and all my
>>
>>code
>>
>>>ugly. Are there tricks to avoid this?
>>
>>Try putting a # at the start of every line. Everyone should
>>understand what you mean (and you can always tell them to remove
>>the #'s once they copy the listing).
>>
[...]
> 
It would be helpful if submitted code were also copied to

   http://rafb.net/paste/

although I don;t know how long they archive the pastings. That's a site 
that gets used on the ##python IRC channel a lot, and it does make 
sharing very easy.

Having said which, there's still a lot going for just using spaces 
instead of tabs.

though-i-don't-know-what-ggogle-does-to-that-ly y'rs  - steve
-- 
Steve Holden               http://www.holdenweb.com/
Python Web Programming  http://pydish.holdenweb.com/
Holden Web LLC      +1 703 861 4237  +1 800 494 3119



More information about the Python-list mailing list