Quote:
Originally Posted by seanos
People have definite idiosyncrasies about this kind of thing, so consensus isn’t likely.
My idiosyncrasy is that I like a two-space tab/indent. Also, if I include <thead> & <tbody> I don’t indent them. I like minimal spacing to reduce scrolling. The ‘coalface’ blocks like <td>, <h1> and <p> I don’t put the tags on separate lines, but for larger structural elements like <div> or <tr> I’ll give opening and closing tags their own line.
I’m not 100% consistent though.
Code:
<table>
<tbody>
<tr>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<div>
<h1></h1>
<p></p>
</div>
|
That is also something you can build into your own 'saved search'. I think the individual idiosyncrasies you mention are why Sigil doesn't specify a format in Code View - which doesn't matter in the final product, only when editing.