Title: This plugin does not support PHP7
Last modified: September 3, 2016

---

# This plugin does not support PHP7

 *  [hlx98007](https://wordpress.org/support/users/hlx98007/)
 * (@hlx98007)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/this-plugin-does-not-support-php7/)
 * As titled. Disable or remove this plugin with using with PHP7

Viewing 1 replies (of 1 total)

 *  [kepi.cz](https://wordpress.org/support/users/kepicz/)
 * (@kepicz)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/this-plugin-does-not-support-php7/#post-8043051)
 * in file wp-code-higlight.php on line 67 just remove function preg_replace… with
   this:
 *     ```
       return preg_replace_callback('/<pre(.*?)>(.*?)<\/pre>/is',
                       function ($m) {
                               return  "<pre class=\"wp-code-highlight prettyprint$line_numbers\">".$m[2].'</pre>';
                       }, $content);
       ```
   
 * Problem is that wp-code-higlight is using /e modifier for regular expression 
   which is not longer supported in PHP 7.

Viewing 1 replies (of 1 total)

The topic ‘This plugin does not support PHP7’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-code-highlight.svg)
 * [WP Code Highlight](https://wordpress.org/plugins/wp-code-highlight/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-code-highlight/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-code-highlight/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-code-highlight/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-code-highlight/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-code-highlight/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [kepi.cz](https://wordpress.org/support/users/kepicz/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/this-plugin-does-not-support-php7/#post-8043051)