This simple plugin was created because of security concerns related to using PHP preg_replace directly. With transition to PHP7, it’s advised to us preg_replace_callback instead. This plugin uses built-in supported feature of PHP-“highlight_string”. This plugin filters post content for <pre> </pre> and helps display html and other source code. To display source code in your post, surround source code with pre tags. Plugin will filter for pre tags and add inline styles that may be modified using your wordpress theme’s css stylesheet.