ASD
ASD

Reputation: 735

Eclipse HTML Editor: Each <input> tag on the new line

<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 " /> 

enter image description here

I want to have each html tag on new line after autoformatting

Upvotes: 23

Views: 6483

Answers (3)

Jero Dungog
Jero Dungog

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

Ifrit
Ifrit

Reputation: 6821

Removing input from the list of inline elements will solve the problem for ya.

Upvotes: 43

Ketan Bhavsar
Ketan Bhavsar

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

Related Questions