diff --git a/index.html b/index.html index 929de97ea0..d251c8b2a1 100644 --- a/index.html +++ b/index.html @@ -137,7 +137,7 @@

Basic usage

</html>

Prism does its best to encourage good authoring practices. Therefore, it only works with <code> elements, since marking up code without a <code> element is semantically invalid. - According to the HTML5 spec, the recommended way to define a code language is a language-xxxx class, which is what Prism uses. + According to the HTML5 spec, the recommended way to define a code language is a language-xxxx class, which is what Prism uses. To make things easier however, Prism assumes that this language definition is inherited. Therefore, if multiple <code> elements have the same language, you can add the language-xxxx class on one of their common ancestors. This way, you can also define a document-wide default language, by adding a language-xxxx class on the <body> or <html> element.