What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 133 Stack Exchange communities.

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

1 Answer 1

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 .