Does Programmers Stack Exchange site support syntax-highlighting for C++?

The reason I ask is that the code in my question isn't highlighted in Firefox 8.

1 Answer 1


Yes it does.

However, unless you explicitly tell the highlighter which language it is by including:

<!-- language: lang-cpp -->

at the start of your code snippet, it uses the tags to decide which language the code is in.

As you've tagged the question and it's going to assume that the code is either HTML or CSS, not C++.

So either retag the question or use the language hint.

  • 1
    I retagged it, since it was unrelated to "design" and "functional programming" anyway.
    – Adam Lear StaffMod
    Commented Dec 16, 2011 at 14:29

You must log in to answer this question.

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