08-08-2012, 12:46 PM | #1 |
Connoisseur
Posts: 53
Karma: 10
Join Date: Aug 2012
Location: Nashville, Tn
Device: ipad, Kindle Fire
|
Display Code and animation
I was looking for a code structure or way to actually display code in a epub. What tags do you use?? I was also curious about adding JavaScript or jQuery. I havent looked into animation within an epub but I would like to know a direction. Might give it a shot.
|
08-08-2012, 02:16 PM | #2 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
It is a subset of xhtml, so I wonder what you mean with code.
Javascript and alike are not supported in ePUB 2. It is in version 3, but that is not widely supported. |
Advert | |
|
08-08-2012, 02:47 PM | #3 |
Connoisseur
Posts: 53
Karma: 10
Join Date: Aug 2012
Location: Nashville, Tn
Device: ipad, Kindle Fire
|
well if you are building a book on code and need to display code, for example here you would use bracket code bracket bracket / code bracket to display the code. I was trying to figure out what syntax for epub 3.0 that runs with HTML 5 and CSS 3.0 from what I've read that will allow you to display code instead of running the code. Hope this is better explaining.
|
08-09-2012, 04:56 AM | #4 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
You have to do it yourself. Instead of < and >, you have to write < and >. For the background, alignment, monospace font, etc., use CSS as usual.
|
08-09-2012, 07:02 AM | #5 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Or you can just use images.
|
Advert | |
|
08-09-2012, 10:30 AM | #6 |
Connoisseur
Posts: 53
Karma: 10
Join Date: Aug 2012
Location: Nashville, Tn
Device: ipad, Kindle Fire
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Disabling the boot animation | rvs | iRex Developer's Corner | 6 | 07-28-2011 06:57 AM |
Aldiko -- page animation? | Skydog | Android Devices | 4 | 03-15-2011 02:12 PM |
IQ Adroid animation just keeps going. | UrbanNightmare | PocketBook | 8 | 03-08-2011 05:17 PM |
Cover animation feature | danwdoo | Calibre | 5 | 06-20-2010 01:38 AM |
Unutterably Silly As long as we're on about great animation | RickyMaveety | Lounge | 7 | 05-30-2009 05:12 AM |