As noted above:
Sometimes I get this behaviour when I do a comparison between two files. I just change the language to any one, then revert to the proper one and the syntax highlighting is OK.
When I change the language in the language menu to HTML, it works. Changing it to PHP also worked.