This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: looking for XML editor that supports outline mode
- From: Michael Smith <smith at xml-doc dot org>
- To: "Robert P. J. Day" <rpjday at mindspring dot com>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Mon, 22 Jul 2002 14:57:37 +0900
- Subject: Re: DOCBOOK-APPS: looking for XML editor that supports outline mode
- References: <Pine.LNX.4.44.0207201902350.1769-100000@localhost.localdomain>
"Robert P. J. Day" <rpjday@mindspring.com> writes:
> i might have gotten responses when i posted about this once
> upon a time, but somehow, i can't find those responses, so here
> goes again.
>
> i would dearly love to find an XML editor that supports
> outline mode, as basic emacs does. i write all of my manuals
> in outline mode, and i definitely can't live without it.
>
> earlier today, i was expermienting with a friend with his
> variation of psgml, and while it can fold and unfold elements
> and lines, the fatal drawback is that if you unfold an element,
> *everything* below that element is displayed.
True, but I think you can then do sgml-fold-subelement (C-c C-f C-s) to
fold up all the child elements.
> i want it so that, if i unfold or expand, say, a chapter,
> i get only the elements immediately at the next level. i can
> then, of course, choose one of those to expand and so on.
>
> is there anything that will let me do this? not surprisingly,
> something free and open source would be nice but, heck, if i can
> find an editor to do what i want, i'm not averse to paying for
> it. within reason, of course.
Vim 6.1 does folding for XML. See ':help folding' or just open up an XML
file with it and try typing 'zr' and 'zm' a few times to see how it
works.
I don't think Vim's XML folding is as XML-aware as that in Emacs, but
still it seems to work pretty well.
HTH,
--Mike