Manu Chadha
Manu Chadha

Reputation: 16723

HTML code formatting in WordPress with pre and code tags

I have enclosed the HTML code in <pre> and <code> tags, but the code keeps getting changed to the following. How can I correct this?

[pre]
[code language="html"]
&amp;amp;amp;amp;lt;!DOCTYPE html&amp;amp;amp;amp;gt;
[/code]
[/pre]

Upvotes: 2

Views: 151

Answers (1)

Jakir Hossain
Jakir Hossain

Reputation: 1072

Try plugin SyntaxHighlighter.

You can then write code like this:

[html]
/* Some HTML code */
[/html]

Upvotes: 2

Related Questions