Sublime Forum

HTML tags not closing/minimizing properly

#1

I would like to know why HTML tags aren’t closing/minimizing properly in ST2.

For example if the code is:

<div>
	<h1>Sample</h1>
	<p> Sample</p>
	<h1>Sample</h1>
	<p> Sample</p>
	<h1>Sample</h1>
<p> Sample</p>
</div>

then it minimizes like this:

<div>...
<p> Sample</p>

</div>

The div tag is not closing properly. Now I know you’ll say it is formatted wrong and that is correct, but in large projects not all code is formatted perfectly. Also it works properly in all other text editors.

It should end up looking like this:

<div>...
</div>

So I want to know is there a way to fix this or a plugin I can install. Help would be appreciated. I love ST2, but this one little thing is annoying me because I have a habit of minimizing certain parts of my code.

0 Likes