The comments above and below
jquery(document)... are rendered incorrectly. Here's a screenshot of the original page:
You can add a magic comment to specify the language before a code block. (This didn't exist back when that particular answer was posted.) You need one such comment before each code block for which you want to select a different language for highlighting.
(I thought this was supposed to work with
You can forcing the language that code block is interpreted as, see this post, which should fix this.