• Hi,

    Is there a way to apply the highlighter only to “pre” tags with selected classes?

    <pre class="wp-block-code"><code>place for code</code></pre>
    <pre class="wp-block-preformatted">code result</pre>

    I don’t want to apply the highlighter to the second “pre”. Is there a way to do it?

    Thanks.

Viewing 1 replies (of 1 total)
  • Plugin Author urvanov

    (@urvanov)

    Hi, @sirdexter Yes, we have this problem. Crayon plugin is very old and it uses pre tag for many years. Even before Guttenberg and it’s blocks. You can use additional css class like <pre class="crayon:false" to work around it. But I will find a better way to do it with the next updates.

Viewing 1 replies (of 1 total)
  • The topic ‘specifying class name for the highlighter’ is closed to new replies.