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 :

text editor content

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


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


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

| improve this answer | |
  • This is what I do, I don't go to "visual editor" after – Vincent Decaux Aug 12 '19 at 9:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.