Quote:
Originally Posted by Gregg Bell
I'm assuming it's good to have the 'Mend XHtML Source code on:' on the Open and Save settings. (see attachment)
|
The settings you have are perfectly fine.
Quote:
Originally Posted by Gregg Bell
What is the difference between:
Tools>Reformat HTML>Mend and Prettify All HTML Files
and
Tools>Reformat HTML>Mend all HTML Files ?
|
Mend just fixes your code.
Let's say you accidentally forgot the slash in your closing <p>:
Code:
<p>This is a sentence.<p>
You can't have two <p>s in a row, so Mend corrects it to valid XHTML:
Code:
<p>This is a sentence.</p>
<p>
</p>
What Prettify does is it makes your code look nicer. So let's say you had this:
Code:
<body><p>Sentence 1.</p><p>Sentence 2.</p><p>Sentence 3.</p></body>
It changes it into this:
Code:
<body>
<p>Sentence 1.</p>
<p>Sentence 2.</p>
<p>Sentence 3.</p>
</body>
Quote:
Originally Posted by Gregg Bell
As I recall one was the old Tidy and the other the Prettify. The Tidy being super powerful and systemic and best to be avoided, but I'm not sure.
|
"Tidy" was in older versions of Sigil. It was what figured out if your HTML was valid or not, and tried to correct it.
Newer versions of Sigil use "Gumbo" instead. Which also checks if you have correct XHTML, but is much more robust (a lot less likely to make things disappear).
Quote:
Originally Posted by Gregg Bell
Is there any disadvantage to the way I have it (having Mend on Open and Save)?
|
Nope, that's the same exact settings I have.
Quote:
Originally Posted by Gregg Bell
And I googled and CSS 3 has a bunch of new stuff. But is my CSS going to need anything more than the CSS 2.1
|
Meh. Not really. You do basic books, so your basic CSS is fine.
Using new stuff in CSS3 wouldn't hurt. Devices that can understand CSS3 will show it, and devices that can't understand CSS3 would just act like it doesn't exist.