=== WP Code Pre === Contributors: zeshanb Tags: code highlight, filter content Requires at least: 4.0 Tested up to: 4.8 Requires PHP: 7.0 Stable tag: 1.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html === Description === 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
 
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. === Installation === 1. Download the plugin 1. Upload the wp-code-pre.zip folder to your site's wp-content/plugins directory 1. Activate the plugin in the WordPress Admin Panel 1. surround source code with
 tags, when writing in blog posts
 
== Changelog == 
 
= 1.0 = 
* First version of the plugin. 
 
== Frequently Asked Questions == 
 
Why there aren't any options to modify in admin?
This plugin simply filters for pre tags.
 
== Screenshots == 
 
1. Code preview on blog post or page
2. Typing code in text tab of WordPress Admin Writing Post.