Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

HTML, php and css code in ebook, proper formatting?

  1. Nov 13, 2015 #1
    Hi, I want to write an ebook on CSS, HTML and php, and I'm using a RTF copy/paste plugin to my code editor so i can copy and paste code directly into MS Word from my code editor.

    I'm just wondering: Can i write the whole book in MS Word and then directly upload it to amazon, for ebook readers, or what would i need to get or do in order to assure proper formatting for the ebook readers?

    I'm using Verdana font for the text and for the and copy paste code the default is Curier new.
  2. jcsd
  3. Nov 13, 2015 #2
    I don't think MS Word will do a good job. MS word documents aren't designed to reflow based on the size of the screen. Why not use HTML and CSS?
  4. Nov 13, 2015 #3
    That's very nice to know. I know a lot about html and css but very little about ebook publishing. How can CSS and HTML help me make an ebook that reflows based on screen size?
  5. Nov 13, 2015 #4
    Ok, I don't actually know anything about ebook publishing, but it looks like you can format the ebook itself in html.
    Unfortunately, it says pre is not supported by kindle, so you'll have to figure out some way of formatting code.
  6. Nov 16, 2015 #5
    Thank you for the reply, I might have to learn latex, seems like there is scarce guidance on proper formatting for ebook publishers who want to publish code language.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Discussions: HTML, php and css code in ebook, proper formatting?
  1. HTML - iframe CSS (Replies: 3)

  2. HTML + Javascript + CSS (Replies: 11)