7

I can understand there not being any highlighting by default, but it's difficult to demonstrate problems with the highlighting here (besides this one, obviously) when you can't even do it by specific request.

For example, this source:

<!-- language: lang-c -->

    #include <stdio.h>

    main(int argc, char *argv[])
    {
        printf("Hello, World!\n");
    }

currently produces this rendering:

#include <stdio.h>

main(int argc, char *argv[])
{
    printf("Hello, World!\n");
}

which is utterly lacking in color, and does not bear the "lang-c" class.

  • 1
    Syntax highlighting is enabled globally on a per-site basis, and is apparently not on here. I'm going to interpret this as a "please turn on syntax highlighting on meta" request and not answer – Michael Mrozek Jan 31 '12 at 5:37
  • I was actually wondering when/how it got turned off, and was I just blind that I couldn't find the discussion? – SamB Jan 31 '12 at 5:50
  • 1
    Was it actually ever on? I don't recall – Michael Mrozek Jan 31 '12 at 5:53
  • 1
    I don't see why meta would ever need syntax highlighting, so my guess is that it was never enabled... except perhaps by mistake? – Adam Lear Jan 31 '12 at 5:55
  • 1
    It was on when meta.stackexchange.com/a/81970/145828 was last edited – SamB Jan 31 '12 at 5:58
9

Meta never had code highlighting explicitly enabled, and in September we changed the default value of that setting from true to false, at which point syntax highlighting thus disappeared from Meta. Considering that it took four months for this to be noticed, it doesn't seem to have been a huge issue, but I agree that there are cases where it's helpful here, so I've turned it on.

You must log in to answer this question.

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