code folding, a unique problem to python?

Tim Chase python.list at tim.thechases.com
Thu Jun 15 18:15:09 CEST 2006


> But my question is more general: is it possible to implement 
> code folding with Python given that it has no real block 
> delimiters? Or is this still a matter of which particular 
> editor/IDE you use?

Yes, it is an editor thing.  In Vim, it's as simple as

	:set foldmethod=indent

and presto!  I'm sure other quality editors provide similar
options. ;)

> So maybe I'm stuck in UE, but I'm curious if there is some 
> general way to do this, or is Python just too simple and 
> concise for its own good? :)

Most editors are "just too simple and concise for [their] own
good". :)

-tkc







More information about the Python-list mailing list