Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Can HTML/XML editors know to delete end tag when self-terminating?
Can HTML/XML editors know to delete end tag when self-terminating? [message #222414] Tue, 30 September 2008 02:40 Go to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 355
Registered: July 2009
Senior Member
One thing that's always annoyed me in the XML and HTML editors is that
when I do completion on a tag, it creates both the start and end tags, but
if I want the element to self-terminate, I have to manually delete the end
tag. I can't imagine I've missed an easier way to do this, but wouldn't
it be handy if there was a quicker (or automatic) way to get the end tag
removed when you self-terminate the start tag?
Re: Can HTML/XML editors know to delete end tag when self-terminating? [message #222421 is a reply to message #222414] Tue, 30 September 2008 04:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dcarver.starstandard.org

David M. Karr wrote:
> One thing that's always annoyed me in the XML and HTML editors is that
> when I do completion on a tag, it creates both the start and end tags,
> but if I want the element to self-terminate, I have to manually delete
> the end tag. I can't imagine I've missed an easier way to do this, but
> wouldn't it be handy if there was a quicker (or automatic) way to get
> the end tag removed when you self-terminate the start tag?
>

That should be working in Eclipse 3.4 and Web Tools 3.0. If you
self-terminate the tag, it will automatically delete the End tag if
there is no XML content between the tags. This at least works in the
XML editor, I don't know if it works in the HTML editor or not.

Dave
Re: Can HTML/XML editors know to delete end tag when self-terminating? [message #222428 is a reply to message #222421] Tue, 30 September 2008 04:43 Go to previous messageGo to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 143
Registered: July 2009
Senior Member
I just installed 3.4.1. I didn't update anything after that. I tried,
but it just doesn't make much sense anymore.

What you describe doesn't appear to be happening in the JSP editor (which
is where I was actually seeing this, not in the HTML editor), but it does
work in the XML editor.
Re: Can HTML/XML editors know to delete end tag when self-terminating? [message #222472 is a reply to message #222428] Tue, 30 September 2008 14:37 Go to previous message
Nick Sandonato is currently offline Nick SandonatoFriend
Messages: 126
Registered: July 2009
Senior Member
It looks like an end tag will be removed when creating a self-closing
tag for HTML elements but not JSP or custom tags. Is this what you're
seeing?

If it is, I've opened
https://bugs.eclipse.org/bugs/show_bug.cgi?id=249122 to track the issue.


David M. Karr wrote:
> I just installed 3.4.1. I didn't update anything after that. I tried,
> but it just doesn't make much sense anymore.
>
> What you describe doesn't appear to be happening in the JSP editor
> (which is where I was actually seeing this, not in the HTML editor), but
> it does work in the XML editor.
>
Previous Topic:javascript mark occurences question
Next Topic:Turn off JavaScript validator
Goto Forum:
  


Current Time: Fri Nov 28 22:13:00 GMT 2014

Powered by FUDForum. Page generated in 0.02392 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software