Possible Duplicate:
Interface options for specifying language prettify
I don't know how Markdown recognizes which language to use in code blocks. Sometimes it doesn't guess right. Can I specify a code block's language myself? If so, how?
Possible Duplicate:
Interface options for specifying language prettify
I don't know how Markdown recognizes which language to use in code blocks. Sometimes it doesn't guess right. Can I specify a code block's language myself? If so, how?
(Note, I'm answering the body of your question, not the title)
The tags on your question are used to determine the language for the code blocks.
I'm not sure how that works if you have multiple languages in your tags, or for code golf questions.
<!-- language:javascript --> or <!-- language:typescript -->
```javascript to start the code block, and ``` to end it. See full details here: meta.stackexchange.com/questions/184108/… Stack Overflow uses Highlight.js now, having dropped Prettify in 2020.
<!-- language: «lang-or-tag-here» -->in stackoverflow, ` ```«lang-or-tag-here» ` elsewhere...<!-- language: xxx -->before code block ```, not inside.