If you look at this question, you'll see that it's wrongly highlighted and the poster had to add 's in comments, so the whole code didn't show up as a big string.

The reason for this is that the code is highlighted using default highlighting, rather than using ML syntax highlighting as it should be (and would be on stackoverflow). Similarly lisp and clojure questions are also highlighted using the default highlighting rather than lisp highlighting. I'm sure there's more.

Since tag based syntax highlighting works correctly for other tags, I assume that while tag-based syntax highlighting is enabled, it doesn't use the same tag list as on SO. Maybe the list used here only contains the tags that already existed when the feature was first activated on this site?

So the list of tags used for syntax highlighting should be updated to contain the language tags that have been created since then. If this is technically possible, it should also contain tags for languages that are supported by prettify, but don't have a tag on this site yet. Ideally it would automatically use the same list as the one used on Stack Overflow.

  • \$\begingroup\$ Thanks for looking out. The highlighting is almost perfect now. \$\endgroup\$ Mar 3, 2011 at 17:47

1 Answer 1


We use Google Prettify


with an extension to hint at certain supported languages based on the question tags:

Changes to syntax highlighting

what language, that Google Prettify supports, can we use for then?

(and note that diamond mods can change this setting on the tag info page..)

  • \$\begingroup\$ The correct language for F# is ML. I wasn't aware that moderators can change this, so I will do so now. Thank you for your response. \$\endgroup\$
    – sepp2k
    Mar 3, 2011 at 10:56

You must log in to answer this question.

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