help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Auto xml end-tag


From: Tim X
Subject: Re: Auto xml end-tag
Date: 21 Sep 2005 23:32:58 +1000
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

Trond Hersløv <trond.herslov@GOTOGATE.no> writes:

> Hi!
> I am myself not able to program to new things into my emacs, but I have a
> strong wish for a certain functionality.
> Maybe there already exists a library that someone can show me how to include,
> of if not, maybe some of you also thinks this is a good idea, and actually 
> make
> the effort to program it.
> 
> Much of my work nowdays includes writing som kind of sgml based text files:
> XML, HTML, JSP, config files (eg. Apache webserver) etc.
> 
> One of the biggest problems with these textfiles is the mismatch of start and
> end tag. For example:
> <MyTag>This is the body</Mytag>
> Errors like this is often in a big file hard to find, so my whish for a new
> functionality is this:
> 
> After I have written <MyTag> or <MyTag attr1="test" attr="hello"> I could 
> press
> e.g Ctrl-t and emacs would insert </MyTag> for me.
> 
> It would very nice if it could work recursiv ofcourse, but if it only works 
> for
> the last tag, it would be fine too.
> 
> Who can help me?
> Freiendly regards
> Trond
> 
> **********************************************************************
> This email message has been swept by
> MIMEsweeper for the presence of computer viruses.
> **********************************************************************

Check out both emacs psgml mode and nxml mode. I find nxml mode very
good for creating xml documents. Psgml mode is more general and
requires more configuration to get working exactly as you want, but
its a very good and powerful mode.

Check out http://www.emacswiki.org for more information.

Tim

-- 
Tim Cross
The e-mail address on this message is FALSE (obviously!). My real e-mail is
to a company in Australia called rapttech and my login is tcross - if you 
really need to send mail, you should be able to work it out!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]