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?
Meta Stack Exchange is a question and answer site for meta-discussion of the Stack Exchange family of Q&A websites. It only takes a minute to sign up.
Sign up to join this communityPossible 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?
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 -->
Stack Exchange uses Google Code Prettify. See the Syntax Highlighting section of the editing help page for more info.