On Oct 5, 2008, at 5:07 AM, Gerhard Fiedler wrote: > This form was developed before everybody had editors with > code folding capabilities. (You do have one, do you? :) Um. No, I don't think so. Are they that common? Looks like about half of the editors listed in the wikipedia article have it. > So when you look at a file of such code in your folding editor, with > most > of the functions folded, and you unfold a function, what do you see? > The > code of the function, as you should. But in order to see the function > description, you need to unfold the preceding function Clearly your code folding editor is broken. What parser in its right mind would think that someone would put a large block comment at the END of a function? Isn't your editor infinitely configurable, extensible, and rewritable, so you can fix it? I mostly use EMACS. It does look like there are some code folding implementations for it (since it IS infinitely configurable and extensible), but nothing well-known and widely used. The IBM mainframe editor I used back in the late 70s had what would probably be called "text folding" - you could mark regions as "not displayed", and I've occasionally thought it would be handy to have that sort of thing in emacs, but not often. We used to separate functions with ^L (form feed; separate pages), but that habit seems to have largely died out for some reason. :-) BillW -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist