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

Possible Duplicate:
Changes to syntax highlighting

Some languages are not managed by the coloration system, such as nvelocity.

What is the technology used by Stack Overflow for syntax highlighting, and what are the languages which are detected?

share|improve this question

marked as duplicate by Lance Roberts, Pops, Adam Lear, kiamlaluno, Kyle Cronin Oct 27 '11 at 19:00

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.

Spell checking? Did I miss something? – Time Traveling Bobby Oct 25 '11 at 14:00
@Asylum - no. Stack Exchange doesn't do spell checking. Your browser probably does though. – ChrisF Oct 25 '11 at 14:44
up vote 5 down vote accepted

As reported in Changes to syntax highlighting, syntax highlighting is done with Google Code Prettify, and the known language IDs are the following ones: apollo, bsh, c, cc, cpp, cs, csh, css, cyc, cv, go, hs, htm, html, java, js, lisp, lua, m, ml, mxml, perl, pl, pm, proto, py, rb, scala, sh, sql, vb, vhdl, wiki, yaml, xhtml, xml, xsl.

The syntax highlighting applied is the one associated to the tags being used (moderators can associate a syntax highlighting to every tag), the default syntax highlighting that is set by Stack Exchange employers for each individual SE site (the default one used on Stack Overflow is probably different from the one used on Drupal Answers), or the one that is set using an HTML comment similar to the following one:

<!-- language: lang-c -->
share|improve this answer
ok thank you for your answer – Christophe Debove Oct 25 '11 at 13:59
<!-- language: lang-yaml --> does nothing. – CommaToast Jul 22 '13 at 3:38

Stack Exchange uses Google Code Prettify. See the Syntax Highlighting section of the editing help page for more info.

share|improve this answer

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