I am using WordPress, and when I post some post data into my WordPress post, including some html code, as follows:
<code><div id="access"></div></code>
I want the code to be displayed, but the code is not displayed.
How can I make it work?
|
|
|
Syntax Highlighter Evolved is the best plugin to use IMHO. |
|||
|
|
|
You have to escape the
Now, the browser doesn't render the code inside of the |
|||
|
|
|
Try this plugin, Preserve Code Formatting, Wordpress will tend to strip some html tags. Or you can character encode your html tags. |
|||
|
|
|
If it is not display correctly and shows up as regular paragraph text. You would have to format the Here is an example
|
|||
|
|