View Single Post
Old 05-24-2014, 05:04 PM   #5
jswinden
Nameless Being
 
Quote:
Originally Posted by jocampo View Post
It's MOBI, no ePub. As a matter of fact, I've not seen yet an online store (not Amazon) selling computer books in ePub, but that's another story.

Anyway, so I need to change the CSS definition? Is that on one place?

You're right, is due aesthetic. I've never seen code in italic and pink. It's hard to read, at least for me.
If the formatting was done in a manner which a sane person would have done it, then there might be a single CSS class definition for all code in the book, and each paragraph tag that contains code will have class="something" where something represents the class name. But if the creator of the mobi used an application like MS Word to create the book then had it generate HTML for the eBook, it will likely be a mess to correct. Even some of the large publishing houses turn out total garbage for eBooks by simply converting Word docs to HTML.

Personally I still prefer to see code represented in a monotype font.

ETA: I don't know about mobi7, but Amazon's KF8 format recognizes the HTML [CODE] tag. Seems to me it would be smart to use that tag for code in eBooks. The eBook creator could easily modify the results of the CODE tag via CSS. However, looking at your sample I doubt the eBook creator used the CODE tag.

Last edited by jswinden; 05-24-2014 at 05:11 PM.
  Reply With Quote