11-29-2010, 10:52 AM | #1 |
Dylanologist
Posts: 200
Karma: 146754
Join Date: Apr 2010
Location: Hanover, New Hampshire, USA
Device: none/all/any
|
Comments In XHTML?
Can I add comments – /* Comment here.*/ – in my XHTML files?
No problem in the CSS files. Thanks - Fabe |
11-29-2010, 11:24 AM | #2 |
Sigil Developer
Posts: 7,506
Karma: 5433350
Join Date: Nov 2009
Device: many
|
Hi,
In xhtml the correct syntax for a comment is: <!-- This comment is invisible to visitors. --> |
Advert | |
|
11-29-2010, 12:18 PM | #3 | |
Well trained by Cats
Posts: 29,688
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
They work OK in Calibre, Sigil and EPUBReader , but my reader ignores the Style attributes when present. I have not 100% nailed down the conditions where they cause the problem because it does not always happen Removing the Commented line, cures the problem (Sigil's editor and Notepad++ colour them as comments ) |
|
11-29-2010, 03:04 PM | #4 |
Dylanologist
Posts: 200
Karma: 146754
Join Date: Apr 2010
Location: Hanover, New Hampshire, USA
Device: none/all/any
|
|
11-29-2010, 06:12 PM | #5 | |
Bookmaker & Cat Slave
Posts: 11,447
Karma: 157030631
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
Advert | |
|
11-29-2010, 08:00 PM | #6 | |
Well trained by Cats
Posts: 29,688
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
I was documenting others CSS I was tweaking (there are some extremely messy (style sheeted) books out there). They style every thing. When are they gonna learn. Set A basic P style, the style the EXCEPTIONS, inheriting the basics The style sheet ends up a few dozen lines and the book loads FAST. The good thing, is not all comments mess it up, so TEST on a few devices, Not made for the Gorillas in the industry |
|
11-30-2010, 03:25 AM | #7 | |
Bookmaker & Cat Slave
Posts: 11,447
Karma: 157030631
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
I only have about 30-40 lines of CSS; but I do use commenting to keep it easy to read. One main p style; one for non-indented paras; headers; images. That's pretty much it, but my fu is pretty ePUB-standard (yeah, yeah, I know those video tags aren't ePUB 1.05 compliant, but, gimme a break! Blame Apple.); it's a little unfair to expect those of us slogging along making a living at this to have to code every book for EVERY reader, particularly if they're not industry-standard-compliant, y'know? (And you'll pry those dropcaps from my cold dead hands...) It's bad enough I have to juggle around svg's and xpgts for ADE with everything else; having to de-comment my CSS is just pushing a chain up a hill. Hell, I struggle with that crap as it IS; if I remove the comments, I'm probably hosed. Hitch |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Jetbook HTML (XHTML) | rogue_ronin | Ectaco jetBook | 19 | 02-12-2010 09:13 PM |
xhtml from epub | georger | ePub | 8 | 10-13-2009 07:14 AM |
Does it have to be XHTML 1.1 Strict? | AlexBell | ePub | 7 | 07-18-2009 07:51 AM |
Smart quotes in XHTML? | MaggieScratch | ePub | 12 | 03-28-2009 05:53 PM |
xhtml document | deadite66 | iRex | 1 | 08-02-2006 03:15 PM |