View Single Post
Old 11-30-2015, 10:04 AM   #1
tiandijie
Member
tiandijie began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Sep 2015
Device: Kindle Voyage
a little problem with code formatting

Hi sigil fans, I'm having a little dumb question here and looking for some slutions. I'm creating a book about html, and I need to show some code examples in my book, like <p style="background-color:yellow;">XXXX</p>. the problem is sigil will just treat them as general code and execute them, so I can only see “XXXX” in book view with yellow background. I tried to wrap them with code tag, like:
<code>
<p style="background-color:yellow;">XXXX</p>
</code>

but this does not work. For now I should add some random notations between tags so Sigil won't execute them. Does anyone have some better ideas?
tiandijie is offline   Reply With Quote