11

This question does not show any syntax highlighting although the code seems ok to me. What is the cause of it?

Tested with FF 3.6.15 and IE 8.0.

0

1 Answer 1

12

Either add the tag to the question or add the following language hint to a new line just before your code block (hint should have 0 indentation):

<!-- language: java -->

4
  • is there anywhere a list of supported languages/scripts?
    – Lipis
    Commented Mar 10, 2011 at 17:32
  • 3
    @Lipis, see meta.stackexchange.com/questions/79785/… Commented Mar 10, 2011 at 17:37
  • 1
    Can't get the language hint working :( The tag works
    – Megachip
    Commented Feb 25, 2013 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
    Commented Jun 9, 2017 at 8:58

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