WordPress.org

Ready to get started?Download WordPress

Forums

Crayon Syntax Highlighter
The code is not shown but altered (1 post)

  1. eugenmihailescu
    Member
    Posted 5 months ago #

    Please ignore this message as the problem described below lays on another plugin which replaced a portion of the code with its Latex equivalent (?!)
    -------
    If I embed the following code:

    preg_match_all("/\[phpcode\](.*?)\[\/phpcode\]/s", $content, $matches);
    foreach ($matches[1] as $php_filter_key => $match) {
    $match = html_entity_decode($match);
    $match = preg_replace('@<[\/\!]*?[^<>]*?>@si', '', $match);
    .....

    the plug-in will not show/highlight all the code but instead will alter its content.

    See this screenshot for more details.
    Note that I use the version 2.5.0 of this plug-in.

    https://wordpress.org/plugins/crayon-syntax-highlighter/

Reply

You must log in to post.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 5 months ago by eugenmihailescu
  • This topic is not resolved
  • WordPress version: 3.8.1

Tags

No tags yet.