crayon-syntax-highlighter icon indicating copy to clipboard operation
crayon-syntax-highlighter copied to clipboard

Language alias is case-sensitive

Open lacymorrow opened this issue 7 years ago • 0 comments

The aliases.txt contains aliases in the following structure. They are case insensitive

I'm trying to detect languages and display them about the code snippets. This works properly WP blog authors use the underlined language names (js, javascript python, php) however when code blocks are prefaced with capital language names like JavaScript, Crayon is unable to detect the language and assigns it the generic default language.

To clarify, code blocks beginning with <pre class="lang:javascript decode:true"> are correctly parsed as js, while blocks with <pre class="lang:JavaScript decode:true"> are ~not~.

lacymorrow avatar Jul 11 '18 22:07 lacymorrow