Hi!
> However, the snippets I'm using are HTML, which is
> *not* an XML application, and I don't want to mislabel the snippets XML
> just for the sake of avoiding highlighting errors.
Don't put too much meaning into this "label". This is an internal syntax
identifier in higlight.js and "xml" doesn't imply that the code is a
correct XML in any way. It just so happened that both XML and HTML
highlighting are implemented as a single syntax definition and it
happens to have the "xml" identifier.
> You say that HTML5 recommends certain class name like "language-xml" and
> "language-php" I assume you're just referring to the format "language-*"
> and not an actual list of approved language names (please correct me if
> I'm mistaken, but I didn't see any such list in the spec). So, could you
> add the class name "language-html" to highlight.js
HTML5 recommends using "language-" without further specifying its
meaning. This is nothing more than a loose convention that might be
useful to some tools.
I don't see any practical purpose in introducing an alias for a language
identifier.