[英]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.我已将 HTML 代码包含在
<pre>
和<code>
标签中,但代码不断更改为以下内容。 How can I correct this?我该如何纠正?
[pre]
[code language="html"]
&amp;amp;amp;lt;!DOCTYPE html&amp;amp;amp;gt;
[/code]
[/pre]
Try plugin SyntaxHighlighter .试试插件SyntaxHighlighter 。
You can then write code like this:然后你可以写这样的代码:
[html]
/* Some HTML code */
[/html]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.