How to quote html code
-
I’m trying to quote a simple line of html code on one of my websites to show how a hyperlink is constructed. The difficulty I am having is that the code is always “evaluated” and only shows the “result” rather than the unedited code. I’ve tried using the code and block quote tags, but they just change the font without displaying the full code. I’ve also tried changing the < to & lt but that just displays & lt rather than < so the result looks messy.
I am using the Enterprise theme, any ideas?
The blog I need help with is: (visible only to logged in users)
-
One way is to use the sourcecode shortcode:
http://en.support.wordpress.com/code/posting-source-code/
Another way is to convert the HTML here:
http://www.plus2net.com/html_tutorial/tags-page.php
Paste the result in the HTML editor, not the Visual. -
I solved the issue by using a combination of ASCII characters and
tags. Thanks for your suggestions.
- The topic ‘How to quote html code’ is closed to new replies.