morbac / xmltools

XML Tools plugin for Notepad++
GNU General Public License v3.0
260 stars 57 forks source link

Enchantment in "Pretty Print" for html #167

Open samsam4 opened 2 years ago

samsam4 commented 2 years ago

Is it possible to make "Pretty print" to format properly and standard html code? Because after all the tags that by spec don't require closing tag follow mess:

<td><input type="checkbox" value="cb1" class="ckbx"></td>

After XML Pretty Print:

<td>
         <input type="checkbox" value="cb1" class="ckbx"/>

<td><input type="checkbox" value="cb1" class="ckbx"></td>
<td><img class="cimg1" src="a90.jpg" onerror="this.src='noimage.jpg'"></td>

Result:

<td>
    <input type="checkbox" value="cb1" class="ckbx"/>
    <td>
        <img class="cimg1" src="a90.jpg" onerror="this.src='noimage.jpg'"/>

Thanks