How to post code when you leave a comment

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!





Jay is the CEO and founder of WP Hosting, a boutique style managed WordPress hosting and support service. He has been working with Plesk since version 9 and is a qualified Parallels Automation Professional. In his spare time he likes to develop iOS apps and WordPress plugins, or draw on tablet devices. He blogs about his coding journey at http://wpguru.co.uk and http://pinkstone.co.uk.