aramk / crayon-syntax-highlighter

Syntax Highlighter supporting multiple languages, themes, fonts, highlighting from a URL, local file or post text.
https://wordpress.org/plugins/crayon-syntax-highlighter/
GNU General Public License v3.0
1.1k stars 248 forks source link

Enforce "Add Crayon Code" to output <pre><code>...</code></pre> format? #288

Open basememara opened 9 years ago

basememara commented 9 years ago

Currently, Crayon outputs just <pre> tags around the code, but the HTML5 specs and W3C says computer code should be wrapped in <pre> AND <code> tags: http://www.w3.org/TR/html5/grouping-content.html#the-pre-element

Issue #106 briefly mentioned this, but I was wondering if there is a way to achieve it at this point or any plans to correctly match the specs on this?

adaam2 commented 8 years ago

+1

Particularly as I am planning to use WP-API and may need to use Highlight.js if Crayon doesn't work outside of WP