admin管理员组

文章数量:1416334

Using Wordpress 5.2 and classic editor, I just want to display HTML code in my post. I use Prismatic as syntax highlighter.

In my post, in the "text editor", I wrote this :

But when I publish my post, all html disapear ? Do I need to do something special ?

EDIT

Works if I use &lt; and &gt; instead of < and >, so I will keep this way

Using Wordpress 5.2 and classic editor, I just want to display HTML code in my post. I use Prismatic as syntax highlighter.

In my post, in the "text editor", I wrote this :

But when I publish my post, all html disapear ? Do I need to do something special ?

EDIT

Works if I use &lt; and &gt; instead of < and >, so I will keep this way

Share Improve this question edited Aug 12, 2019 at 9:53 Vincent Decaux asked Aug 11, 2019 at 14:40 Vincent DecauxVincent Decaux 2252 silver badges12 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Try this. Paste your code in the "text editor" and UPDATE it without clicking the "visual editor". See the preview of the post.

本文标签: editorDisplay simple html code in post