How to post code when you leave a comment

- by

Sometimes you want to leave a comment and post code to demonstrate what is or isn’t working. For security though, pure HTML and PHP is filtered out – otherwise evildoers could post malicious code wherever they can.

In this screencast I will show you how to post code in comments so it can be displayed but not executed. This is meant to be for WordPress, but may well work with any system that let’s you post as a user.

Enjoy!



If you enjoy my content, please consider supporting me on Ko-fi. In return you can browse this whole site without any pesky ads! More details here.

Leave a Comment!

This site uses Akismet to reduce spam. Learn how your comment data is processed.