This question already has an answer here:
When putting some code sections into SO questions, the system tries to detect the language and automagically colorizes the code but sometimes if the excerpt of code is small enough it cannot get the correct language, or renders no language at all (grey text).
By looking at some edits from experienced SO users I have found the
<!-- language: lang-xxx --> trick to give the correct language to the rendering engine.
That meta answer gives a list of supported languages but I have seen in SO some languages not listed here (like
lang-nsis) and the source of code-prettify shows a list that is different of what is told here.
- Is there an up-to-date list of supported languages for syntax highlighting in Meta?
- Would it be possible to show it in the "markdown editing help" to keep it accessible easily?