For posts about making code appear correctly in questions, answers and their comments.
For posts about making code appear correctly in questions, answers and their comments.
The correct syntax highlighter is chosen based on a per tag setting or by adding the following markup on a single line before a code block:
<!-- language: lang-java -->
enter code here
You find the supported languages here.
Do note that bugs in the language highlighter itself need to be reported to Google Code Prettify
Copied from: https://meta.stackexchange.com/tags/code-formatting/info