Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

This question already has an answer here:


It doesn't do highlighting when I specify <!-- language: lang-mysql --> (or if the question is tagged mysql), but it will work fine if I use lang-sql instead.

I guess it's just that mysql is not associated with any particular highlighting, but that's a little weird since it's one of the most popular tags out there.

share|improve this question

marked as duplicate by Rory, hims056, Lance Roberts, Hugo Dozois, Tobias Kienzler Aug 8 '13 at 16:27

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 3 down vote accepted

There are three ways to achieve the appropriate syntax highlighting:

  1. Use the default syntax highlighting for the language associated with the tag attached to the question.
    For example, supply no syntax highlighting hint when the question is tagged which is associated with language "lang-sql"

  2. Explicitly supply a syntax highlighting "lang" hint from the supported language values.
    For example, <!-- language: lang-sql -->

  3. Explicitly supply a syntax highlighting "tag" hint that indirectly has a language associated with it.
    For example, <!-- language: mysql -->

For the answer you gave, any one of these three techniques would work but you mixed up the second and third techniques by combining the "lang-" prefix with the tag , which works when tag and language names coincide, but not in this case.

share|improve this answer

Read this question.

It happens because

  • lang-mysql is not supported
  • lang-sql is supported
share|improve this answer

Not the answer you're looking for? Browse other questions tagged .