You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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, javascriptpython, 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.
The text was updated successfully, but these errors were encountered:
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 likeJavaScript
, Crayon is unable to detect the language and assigns it the genericdefault
language.To clarify, code blocks beginning with
<pre class="lang:javascript decode:true">
are correctly parsed asjs
, while blocks with<pre class="lang:JavaScript decode:true">
arenot.The text was updated successfully, but these errors were encountered: