- Den S.
- 1) data-language is not obligatory.
2) Crayon Syntax Highlighter shows code language if it is set by the author. My template uses that to set data-language.
3) There are no large <pre> blocks on this site to consider this issue critical, keeping in mind it is one click away for an author to set code block's language for Crayon. Not our problem. And I think authors will take care of this if the blocks become big.
4) It is abmigous for me how you set that attribute. For example you chose not to highlight .cmd, but to highlight .sh, meanwhile Crayon highlights both. I guess your template takes file extensions and sets data-language after it. That's why you don't set the attribute for cmd, because you don't know what to write there - Command Line, Windows Shell etc. And what if you mis some languages? And you will, there are many of them. Therefore I think using Crayon's data is way more reliable, despite authors don't set it sometimes. It shows the right language name.
From IV documentation:
- Declined by admin
- Type of issue
- IV page is missing essential content
- Feb 21, 2019