Menu

#8 Support for 'code' element and 'language-*' classes (HTML5)

SHJS
open
nobody
SHJS (12)
5
2010-01-05
2010-01-05
gnombat
No

The HTML5 spec says (http://www.w3.org/TR/html5/text-level-semantics.html#the-code-element):

'Although there is no formal way to indicate the language of computer code being marked up, authors who wish to mark code elements with the language used, e.g. so that syntax highlighting scripts can use the right rules, may do so by adding a class prefixed with "language-" to the element.'

Discussion


Log in to post a comment.