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: Lennart Borgman
Subject: Re: Auto xml end-tag
Date: Wed, 21 Sep 2005 15:42:54 +0200
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

Trond Hersløv wrote:

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.

Maybe you should look into nxml-mode. Look at http://www.emacswiki.org/ for some starting info about it.




reply via email to

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