I want to do the following:
When I insert an HTML tag (which is a sequence of text that starts with <tagname tag_attributes
and ends with >
), as soon as I press > to insert the >
character, I want:
- A text
</tagname>
to be inserted two lines under the current line. - Put the cursor on the line which is between the opening and closing tags.
- Insert a tab.
So, when I insert a text such as <div possibly_attributes
and insert >
, I want the following:
<div possibly_attributes>
[cursor here]
</div>
How can I do this?
div#main
and you get the full html -<div id="main"></div>
.