For some reason, Eclipse seems to think that e.g. <div>
and <td>
tags aren't indenting-worthy.
Ctrl+Shift+F indents the following HTML as such:
<div>
<div>
<table>
<tr>
<td>test<br />
test2
<h1>test 2</h1>
<div>testing<br />
test2</div>
<table>
<tr>
<td>
<h1>again</h1>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
Anyone have any idea of how to turn this logic off (I want all tags to indent!), or customize it?
Window > Preferences > Web > HTML Files > Editors.
Remove what you want to indent of the "Inline Elements" field.
This solved for me.
Hope its better now.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With