In this question, I put the following just above the xml, and there's still no syntax highlighting:
<!-- language: xml -->
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 community
It properly added "lang-xml" class but looks like stackoverflow does not add "prettyprint" css class, if there is no valid language tag, so prettifier does not render at all.
I have added the tag java and now working.