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?
1 Answer
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