Posted by jack | Under gazages.com
Tuesday Mar 16, 2010
I need an emacs (not Xemacs) minor mode for collapsing source code blocks
enclosed by {}'s. I will use this mainly for C++ programming. The
present outline mode is not useful and the Xemacs ECB is too
cumbersome.
The mode should be able to collapse, say, all first and second level {} blocks
by default. Each collapsed block should be replaced with a custom
colored string. And the block should be zoomable by mouse-clicking or
some key combination when over this string placeholder (with the mouse
or keyboard). Alternatively, a mouse click/key combination over the area of an
expanded {} block, should collapse it.
All other text should remain visible and editable normally. This mode should
be able to coexist with emacs' viper mode and work regardless of the specific
language used (C or C++ or Java ..).
I need source code for this mode in Elisp, so I can extend it further.
I am willing to negotiate the price for it.
Thanks,
Petar
Sorry. I'll ask to have my comment removed.
This isn't *exactly* like what you want, but
http://www.linuxgazette.com/issue01to08/emacs_mar96.html tells about
outline-minor-mode which can help collapse your blocks. It seems to be
built-in to emacs.
#If you have any other info about this subject , Please add it free.#