View Single Post
Old Yesterday, 11:35 AM   #8
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,417
Karma: 20212733
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by seanos View Post
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.
Turtle91 is offline   Reply With Quote