Crayon Syntax Highlighter
[BUG REPORT] WP 3.5 / PHP 5.2 / 000webhost (2 posts)

  1. mAsT3RpEE
    Posted 2 years ago #

    I've noticed a lot of html5 validation errors this plugin brings about. They are kind of annoying and I was hoping you could update just 2 of them so I don't have to keep editing code.

    1. wp_content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php line 367
      -> changed
      $textwrap = !$hl->setting_val(CrayonSettings::WRAP) ? 'wrap="oFF"' : '';

      -> to

      $textwrap = !$hl->setting_val(CrayonSettings::WRAP) ? 'wrap="soft"' : 'wrap="hard"';
    2. TinyMCe is still using named anchors. New specification says that id attribute should be used instead of name.
      <h2><a name="xxx"></a>Heading</h2>

      Should be changed to

      <h2 id="xxx">Heading</h2>


  2. mAsT3RpEE
    Posted 2 years ago #

    Oops sorry forget the second. It was meant for tinyMCE advanced plugin. I guess I was sleepy. Just point 1 thank you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Crayon Syntax Highlighter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic