Possible Duplicate:
Changes to syntax highlighting

Code blocks posted on Stack Overflow get marked up with an assortment of colors based on the languages they're written in. How does SO know which colors go with which pieces of code?

  • Not sure what SO uses, but Pygments is considered the best code highlighter by many. – cloudhead Jun 24 '09 at 19:30
  • Google Code's Prettify – mmcdole Jun 24 '09 at 19:31
  • 3
    This is covered in the Stack Overflow FAQ. – Neil N Jun 24 '09 at 19:32