facebook

XML Editor – auto closing tags

  1. MyEclipse IDE
  2.  > 
  3. Feature Requests
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #237069 Reply

    Hi,
    Just a suggestion for the XML editor. The XML editor I used prior to switching to Eclipse/MyEclipse, has an option that you can set to automatically create the closing tag as soon as you finish typing the opening tag.

    This allows you to build up an XML document from the top down (or from the outside in) by creating an element before creating its content. EG type the opening tag for the root element, the closing tag is added automatically and you have a valid XML document with the cursor in the correct position to type the first nested element.

    I find this is a much easier way to keep a mental picture of the structure of a document as you create it, I make less mistakes and as an added bonus there are less “</” characters to be typed.

    #237090 Reply

    Riyad Kalla
    Member

    Like this?

    Start typing:
    <some|>
    </some>

    Keep typing:
    <someTagNa|>
    </someTagNa>

    finish typing:
    <someTagName|>
    </someTagName>

    #237091 Reply

    Not quite.

    If you have access to JEdit and their XML plugin, that’s the editor I was referring to. To save you the download though, this is how it works; it waits until you type the ‘>’ character at the end of the opening tag and then inserts the entire closing tag in one hit and the cursor is positioned between the two tags.

    #237096 Reply

    Riyad Kalla
    Member

    Ahh, thank you for the clarification. Our HTML editor currently auto inserts the completion tag once you type: </, and we have an open enhancement to make the XML editor behave the same way but I can see that may not be necessary and would be slightly less efficient than the behavior you are suggesting.

    #237097 Reply

    Actually, the XML editor already closes a tag once you type the “</”. Does for me anyway??? I just prefer the method I’ve described above and I think it would be great if you could provide it as a configurable option.

    Thanks for listening 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: XML Editor – auto closing tags

You must be logged in to post in the forum log in