8

This question does not show any syntax highlighting although the code seems ok to me.

Tested with FF 3.6.15 and IE 8.0.

10

Either add the tag to the question, or add the following language hint to the top of your code block:

<!-- language: java -->

  • is there anywhere a list of supported languages/scripts? – Lipis Mar 10 '11 at 17:32
  • 3
    @Lipis, see meta.stackexchange.com/questions/79785/… – Rebecca Chernoff Mar 10 '11 at 17:37
  • 1
    Can't get the language hint working :( The tag works – Megachip Feb 25 '13 at 1:29
  • I'm a bit late to the show but I got the language hint working by leaving a blank line before and after it, without an indent, just above the code block, and exactly as it appears above - with white space as shown. Strangely considering how pedantic it is, both language: java and language: lang-java will work. – Adam Jun 9 '17 at 8:58

You must log in to answer this question.

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