+9

Indent html lines automatically when you press enter

Eugene Pimenov 12 years ago 0
When you have the following structure:
<p>|</p>
where | is the cursor positon, and you press enter you get:

<p>

|</p>
(ignore the newline, your issue tracker is weird).

E.g. if you do that in ruby (or C++):
hello {|}
and press enter you get the following structure:
hello {

  |
}
(ignore the newline here as well)
Which is the correct one. If you do the same to HTML in the TextMate you'll get the correct behavior.