![]() |
#1 |
Connoisseur
![]() ![]() ![]() Posts: 63
Karma: 250
Join Date: Jul 2009
Device: PRS-505
|
Options to show programming source code in ePub
Hi,
I'm trying to get the best way to show C Source code in ePub, to read in my Sony 505. My first attempt was create a CSS with a specific monospace font, which worked. The problem is that it can show only 40 characters per line, using Sony's small font. I understand that the reader controls the font size, but I'm wondering if it is possible to set a font size relative to the standard one, let's say 60% of the reader size. Other than that, any suggestions? Thanks Paulo Garcia |
![]() |
![]() |
![]() |
#2 |
ePub Maker
![]() Posts: 120
Karma: 16
Join Date: Dec 2009
Location: Mordor
Device: iPad,Kindle 3, Nook 2
|
You can just try 60%. like "font-size:60%;"
Or you can try one of "xx-small, x-small, small, medium, large, x-large, xx-large" , they are relative to browsers and devices, or "smaller,larger". |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
ePub investigator
![]() Posts: 7
Karma: 10
Join Date: Feb 2009
Location: Augsburg, Germany
Device: Sony PSR-505, Amazon Kindle 2, Apple iPad, iPhone (iBooks, stanza)
|
"font-size:0.6em;" works fine as well.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Programming language code snippets in ebooks? | Connochaetes | Writers' Corner | 7 | 10-18-2010 02:43 PM |
Let's create a source code repository for DR 800 related code? | jraf | iRex | 3 | 03-11-2010 12:26 PM |
Source code available | AlfonsVH | HanLin eBook | 3 | 01-03-2009 02:30 PM |
prflrf source code? | daqi | Sony Reader Dev Corner | 5 | 04-22-2008 11:28 AM |
source code?? | joblack | iRex | 1 | 11-01-2006 12:16 PM |