The 2019 Instant View contest is over. View results
The Instant View Editor uses a three-column layout, so you really want to use it on a desktop screen that's wide enough. Sorry for the inconvenience.

Back to the main page ยป

Original

Preview

Link Preview

Issue #2

missing data-language="html"
๐–‰๐–Š๐–“๐–Ž๐–˜
Short: data-language is not obligatory.
Long: 1) Crayon Syntax Highlighter shows code language if it is set by the author. My template uses that to set data-language.

2) There are no large <pre> blocks on this site to consider this issue even somehow 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.

3) I guess your template takes file extensions and sets data-language after it. And what if you miss some languages? What if you set wrong name? It is unreliable. Therefore I think using Crayon's data is the right way, despite authors don't set it every time. It shows the right language name.
Declined by admin
"It is advisable to include the code language attribute"

advisable != obligatory.

https://instantview.telegram.org/docs > "Note on code languages"

See also: https://instantview.telegram.org/contest/defcon.ru/template53/issue2
Type of issue
IV page is missing essential content
Reported
Feb 24 at 11:26 AM