How do I change HTML content to be a JS variable?

I am writing a Kindle book about web design and need to write HTML, CSS and JS code inside the document. If I select different fonts, when I upload it, it looks the same.. how can I change this?

  • Answer:

    The easiest solution is to write the code in italics. I would recommend any code you write in the book, create a blog post with that same code so that readers can go to your blog and just copy/paste it. It's impossible to copy/paste from Kindle so this will save you readers a lot of time and errors and will save you a lot of time not having to correct all the bad code from readers who mistyped what you wrote in the book.

Tom Corson-Knowles at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.