Problems showing html code in a web page
# April 1, 2012 at 3:17 pm
I tried that way, but still nothing. I don’t think the problem is prettify, cause it doesn’t work either without any classes applied.
What happens is that the html inside pre tags is still considered as html, so if I have for example:
What I get is a div element on my page, when I should be getting just this text: <div><!–html–></div> so prettify could style it properly.# April 1, 2012 at 3:30 pm
If you look at this very page and how the code blocks are styled: the PRE tags are still in the markup (with class “prettify”), used as the container, and everything in it is styled through CSS.
I have no experience with Prettify so I’m not sure if that’s the way it works, but I’m just going after what I see on CSS-tricks.# April 2, 2012 at 1:25 am
This reply has been reported for inappropriate content.
What?? I think everybody knows that in order to write the HTML code on webpage, you must escape all the
You must be logged in to reply to this topic.