Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

I've added the complete code at the bottom of this question with a simple test that the answerers help to produce (I want to do this as a sort of Stack Overflow best practice), but I'm noticing that there is no syntax highlighting for that code block. Is there something wrong that I've done or something I've missed that disabled it?

share|improve this question
up vote 2 down vote accepted

The syntax highlighting is determined by the tags or by language hints. In the linked question, you have

<!-- language-all: lang-none -->

turned off syntax highlighting for the error messages. After that, to get syntax highlighting again, you need to switch it on with a new language hint.

I added one before the lambda_visitor.h file, so its now highlighted as C++.

share|improve this answer

You must log in to answer this question.

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