* Formatting of XML
@ 2002-11-25 23:22 Oliver White
2002-11-25 23:44 ` Michael Slass
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Oliver White @ 2002-11-25 23:22 UTC (permalink / raw)
Hi folks,
I'm working with XML, and comming to grips with NT emacs. I've figured
out how to set the mode to SGML, which gives me the coloured markup.
The problem is that I can't indent my tags as I'd like. I'm certain
there's a configuration change I can make (this is emacs after al!),
and your help would be most appreciated.
Thank you,
Oli White
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Formatting of XML
2002-11-25 23:22 Formatting of XML Oliver White
@ 2002-11-25 23:44 ` Michael Slass
2002-11-25 23:45 ` Michael Slass
2002-11-26 13:11 ` Jeff Rancier
2002-11-26 15:08 ` Stefan Monnier <foo@acm.com>
2 siblings, 1 reply; 8+ messages in thread
From: Michael Slass @ 2002-11-25 23:44 UTC (permalink / raw)
oliver.white@invensys.com (Oliver White) writes:
>Hi folks,
>
>I'm working with XML, and comming to grips with NT emacs. I've figured
>out how to set the mode to SGML, which gives me the coloured markup.
>The problem is that I can't indent my tags as I'd like. I'm certain
>there's a configuration change I can make (this is emacs after al!),
>and your help would be most appreciated.
>
>Thank you,
>
>Oli White
xml-lite mode does this, but you have to have valid XML -- HTML with
it's unclosed <br> tag, for example, will break the indentation.
--
Mike Slass
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Formatting of XML
2002-11-25 23:22 Formatting of XML Oliver White
2002-11-25 23:44 ` Michael Slass
@ 2002-11-26 13:11 ` Jeff Rancier
2002-11-26 15:08 ` Stefan Monnier <foo@acm.com>
2 siblings, 0 replies; 8+ messages in thread
From: Jeff Rancier @ 2002-11-26 13:11 UTC (permalink / raw)
Does, from the menu bar, SGML->File Options->Indent Step, do what you need?
Jeff
"Oliver White" <oliver.white@invensys.com> wrote in message
news:b900e154.0211251522.380a1330@posting.google.com...
> Hi folks,
>
> I'm working with XML, and comming to grips with NT emacs. I've figured
> out how to set the mode to SGML, which gives me the coloured markup.
> The problem is that I can't indent my tags as I'd like. I'm certain
> there's a configuration change I can make (this is emacs after al!),
> and your help would be most appreciated.
>
> Thank you,
>
> Oli White
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Formatting of XML
2002-11-25 23:22 Formatting of XML Oliver White
2002-11-25 23:44 ` Michael Slass
2002-11-26 13:11 ` Jeff Rancier
@ 2002-11-26 15:08 ` Stefan Monnier <foo@acm.com>
2002-11-27 2:41 ` Oliver White
2 siblings, 1 reply; 8+ messages in thread
From: Stefan Monnier <foo@acm.com> @ 2002-11-26 15:08 UTC (permalink / raw)
>>>>> "Oliver" == Oliver White <oliver.white@invensys.com> writes:
> I'm working with XML, and comming to grips with NT emacs. I've figured
> out how to set the mode to SGML, which gives me the coloured markup.
> The problem is that I can't indent my tags as I'd like. I'm certain
> there's a configuration change I can make (this is emacs after al!),
> and your help would be most appreciated.
The distributed version of sgml-mode does not support automatic indentation.
The development one does, tho (it basically merged in the xml-lite code
mentioned by Michael, with a few extra fixes/improvements (and new bugs
as well, I'm sure)). Get it from:
http://savannah.gnu.org/cgi-bin/viewcvs/emacs/emacs/lisp/textmodes/sgml-mode.el?rev=HEAD
-- Stefan
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Formatting of XML
2002-11-26 15:08 ` Stefan Monnier <foo@acm.com>
@ 2002-11-27 2:41 ` Oliver White
2002-12-07 11:54 ` Laurent Faureytier
0 siblings, 1 reply; 8+ messages in thread
From: Oliver White @ 2002-11-27 2:41 UTC (permalink / raw)
"Stefan Monnier <foo@acm.com>" <monnier+gnu.emacs.help/news/@flint.cs.yale.edu> wrote in message news:<5lu1i4nzb9.fsf@rum.cs.yale.edu>...
> The distributed version of sgml-mode does not support automatic indentation.
> The development one does, tho (it basically merged in the xml-lite code
> mentioned by Michael, with a few extra fixes/improvements (and new bugs
> as well, I'm sure)). Get it from:
>
> http://savannah.gnu.org/cgi-bin/viewcvs/emacs/emacs/lisp/textmodes/sgml-mode.el?rev=HEAD
It's not so much auto-indenting that I'm worried about, it's just that
I simply cannot indent at all with the tab key, beyond the level of
indentation of the tag I'm in.
For instance, if I have this text:
<schema>
<pattern name="foo">
</pattern>
</schema>
and I insert a new line within the pattern tags, I can't tab beyond
that single level of indentation.
Also... how would I install the el file you offered?
Cheers,
Oli White
Software Engineer
Westinghouse Signals Australia
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Formatting of XML
2002-11-27 2:41 ` Oliver White
@ 2002-12-07 11:54 ` Laurent Faureytier
2002-12-09 16:41 ` Stefan Monnier <foo@acm.com>
0 siblings, 1 reply; 8+ messages in thread
From: Laurent Faureytier @ 2002-12-07 11:54 UTC (permalink / raw)
Hi,
I gave up trying to use the emacs builtin sgml-mode long ago...
I read the article from the IBM guy about psgml-mode (I think it can
still be found at
http://www-106.ibm.com/developerworks/library/x-emacs/ ) and then there
was light... (downloaded the package from sourceforge.net). It's a bit
tricky to install/setup (need to create the SGML public catalog that
associates each XML document type with the right DTD) but when it's
done, it's really great for indentation, element syntax description,
DTD-constrained edition, etc. The only things I regret is the hiliting
in psgml seems to be a little poorer than with sgml-mode.
Now, I don't know about xml-lite, it may provide a good compromise of
complexity/features... Where can we get it ? (I'm using win32 emacs
21.1.1). Maybe more recent versions of Emacs have an improved version of
sgml-mode ?
"Oliver White" <oliver.white@invensys.com> a écrit dans le message de
news: b900e154.0211261841.62fac3e3@posting.google.com...
> "Stefan Monnier <foo@acm.com>"
<monnier+gnu.emacs.help/news/@flint.cs.yale.edu> wrote in message
news:<5lu1i4nzb9.fsf@rum.cs.yale.edu>...
>
> > The distributed version of sgml-mode does not support automatic
indentation.
> > The development one does, tho (it basically merged in the xml-lite
code
> > mentioned by Michael, with a few extra fixes/improvements (and new
bugs
> > as well, I'm sure)). Get it from:
> >
> >
http://savannah.gnu.org/cgi-bin/viewcvs/emacs/emacs/lisp/textmodes/sgml-
mode.el?rev=HEAD
>
> It's not so much auto-indenting that I'm worried about, it's just that
> I simply cannot indent at all with the tab key, beyond the level of
> indentation of the tag I'm in.
>
> For instance, if I have this text:
>
> <schema>
> <pattern name="foo">
> </pattern>
> </schema>
>
> and I insert a new line within the pattern tags, I can't tab beyond
> that single level of indentation.
>
> Also... how would I install the el file you offered?
>
> Cheers,
>
> Oli White
> Software Engineer
> Westinghouse Signals Australia
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Formatting of XML
2002-12-07 11:54 ` Laurent Faureytier
@ 2002-12-09 16:41 ` Stefan Monnier <foo@acm.com>
0 siblings, 0 replies; 8+ messages in thread
From: Stefan Monnier <foo@acm.com> @ 2002-12-09 16:41 UTC (permalink / raw)
>>>>> "Laurent" == Laurent Faureytier <l.faureytier@laposte.net> writes:
> Now, I don't know about xml-lite, it may provide a good compromise of
> complexity/features... Where can we get it ? (I'm using win32 emacs
> 21.1.1). Maybe more recent versions of Emacs have an improved version of
> sgml-mode ?
How about reading the article you quote? It said:
>> "Stefan Monnier <foo@acm.com>" <monnier+gnu.emacs.help/news/@flint.cs.yale.edu> wrote in message news:<5lu1i4nzb9.fsf@rum.cs.yale.edu>...
>> > The distributed version of sgml-mode does not support automatic indentation.
>> > The development one does, tho (it basically merged in the xml-lite code
>> > mentioned by Michael, with a few extra fixes/improvements (and new bugs
>> > as well, I'm sure)). Get it from:
>> >
>> > http://savannah.gnu.org/cgi-bin/viewcvs/emacs/emacs/lisp/textmodes/sgml-mode.el?rev=HEAD
-- Stefan
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2002-12-09 16:41 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-25 23:22 Formatting of XML Oliver White
2002-11-25 23:44 ` Michael Slass
2002-11-25 23:45 ` Michael Slass
2002-11-26 13:11 ` Jeff Rancier
2002-11-26 15:08 ` Stefan Monnier <foo@acm.com>
2002-11-27 2:41 ` Oliver White
2002-12-07 11:54 ` Laurent Faureytier
2002-12-09 16:41 ` Stefan Monnier <foo@acm.com>
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.