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?
Meta Stack Exchange is a question and answer site for meta-discussion of the Stack Exchange family of Q&A websites. It only takes a minute to sign up.
Sign up to join this communityPossible 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 -->
Nov 9, 2022 at 16:57
<!-- language: «lang-or-tag-here» -->
in stackoverflow, ` ```«lang-or-tag-here» ` elsewhere...<!-- language: xxx -->
before code block ```, not inside.