I used a table generator to to convert a large Excel file into HTML, but much of the code runs across the same line, as shown below:
<tr><td> </td><td> </td><td>25%</td><td>25%</td><td>40%</td><td>10%</td></tr>
<tr><td>IV</td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
Is there a way for Sublime text to automatically break the tags onto individual lines for ease in adding all of the class styling I need to add?
Looking for the following:
<tr>
<td> </td>
<td> </td>
<td>5%</td>
<td>0%</td>
<td>95%</td>
<td> </td>
</tr>
<tr>
<td>II</td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
The idea is first insert new line character after each tag, then re-indenting of code.
First Find all >
characters, then replace it with >\n
(Regular expression), then go to Edit
, Line
->Reindent
. This way you can indent your code!
If you have the Tag package installed you can simply select from the menu:
Edit -> Tag -> Auto-format Tags on Document
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