[Python-ideas] Transportable indent level markers

Jeremy Sanders jeremy at jeremysanders.net
Thu Dec 15 11:31:36 CET 2011


Oleg Broytman wrote:

> <code>
> <line indent="0">def foo():</line>
> <line indent="1">a = 0</line>
> <line indent="1">for i in range(10):</line>
> <line indent="2">a += i</line>
> <line indent="1">return a</line>
> </code>
> 
>    ;-)

Nice. I'd like the option of JSON too, please, though the brackets might be 
a bit confusing :-)

Jeremy





More information about the Python-ideas mailing list