Reputation: 735
<input type="button" value=" 1 " />
<input type="button" value=" 2 " />
<input type="button" value=" 3 "/>
How can I do it?
EDIT: Eclipse HTML Editor
Ctrl + Shift + F
I want to use autoformating but after I pressed Ctrl + Shift + F I am getting something like
<input type="button" value=" 1 " /> <input type="button"
value=" 2 " />
I want to have each html tag on new line after autoformatting
Upvotes: 23
Views: 6483
Reputation: 379
Go to Window -> Preferences -> Web -> HTML Files -> Editor in the right panel set your Line Width to 999 and remove the input in the inline elements list
Upvotes: 1
Reputation: 6821
Removing input
from the list of inline elements will solve the problem for ya.
Upvotes: 43
Reputation: 5396
You can use table even.
<table>
<tr><td>
<input type="button" value=" 1 " />
</td></tr>
<tr><td>
<input type="button" value=" 2 " />
</td></tr>
<tr><td>
<input type="button" value=" 3 "/>
</td></tr>
Upvotes: -6