abstract:
html). Likewise, HTML tags like <p></p> in HTML code are displayed as HTML paragraphs.
So what's the key to displaying raw code? No doubt I am missing something.
Thanks for any tips!
I would like to display samples of code on a web page--both HTML and PHP--but it is not working well. I see examples of code on other sites that work fine, and they are simply wrapped in <code></code> tags.
For example, if I want to display PHP code starting with <?php and ending with ?>, rather than just display as is, the code gets processed and output (if the page is .php) or does not appear (if the page is .html). Likewise, HTML tags like <p></p> in HTML code are displayed as HTML paragraphs.
So what's the key to displaying raw code? No doubt I am missing something.
Thanks for any tips! |