- This topic has 4 replies, 2 voices, and was last updated 19 years, 2 months ago by kevinstembridge.
-
AuthorPosts
-
kevinstembridgeMemberHi,
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.
Riyad KallaMemberLike this?
Start typing:
<some|>
</some>Keep typing:
<someTagNa|>
</someTagNa>finish typing:
<someTagName|>
</someTagName>
kevinstembridgeMemberNot 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.
Riyad KallaMemberAhh, 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.
kevinstembridgeMemberActually, 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 🙂
-
AuthorPosts