editor - Display simple html code in post

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

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745250068a4618624.html

相关推荐

  • editor - Display simple html code in post

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

    3小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信