For those who don't know, SE uses Google Prettify to automatically add syntax highlighting to any code posted based on the tags applied in the question.

If we specify <!-- language : lang-language_code -->, syntax highlighting seems to be working fine.

However, if we don't specify it, then the codes should be highlighted based on tags applied on the question. This doesn't seem to be the case everywhere. For example:

The problem seems to be specific to some tags only, as most of the based questions seem to have syntax highlighting applied based on tags.

  • Reproducible in Chromium and Iceweasel.
    – Braiam
    Jan 12, 2014 at 15:33
  • Don't forget java.
    – Seth
    Jan 12, 2014 at 23:26

1 Answer 1


Those binding are not automatic, they have to be setup explicitly for each tag by a moderator.

I've configured the , and .

Turn to askubuntu moderators for for other languages that need syntax highlighting.

  • What is the preferred way to contact moderators? Flagging a question where it’s applicable? Specifically, I’d like to add the highlight support for csh and php.
    – Melebius
    Oct 10, 2018 at 6:48
  • @csh yes that, or ask a question describing what you want on meta (here) and tag it with support
    – m0sa
    Oct 13, 2018 at 13:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .