in reply to Can your editor do this?
Not exactly what you are looking for but the Komodo IDE over at Activestate does have a feature for folding up loops subs and if/else blocks. It Doesnt seem to be configurable though. This does seem like a cool idea I'll have to add it to my wish list for the 'perfect editor'