How does it work, that code blocks are formatted, highlighted and colored? Does SE use any of general available JavaScript libraries, like SyntaxHighlighter, or does it have its own engine?

| |

Stack Exchange uses Google Prettify

See how to set language in code blocks here https://stackoverflow.com/editing-help#syntax-highlighting

This has been discussed before here: Manually specify language for syntax highlighting

| |

You must log in to answer this question.

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