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

3 Answers 3

If you ever need to specify the language in the future, put this line before the code block (one line before and after it):

<!-- language: your-language -->

And for C++, it's lang-c++, I believe.

share|improve this answer
    
Yes, that's true. But I didn't want everyone to have to do that... –  Billy ONeal Oct 31 '11 at 3:18

Fixed it, I added a hint to the indicating it should prettify with c++ syntax.

share|improve this answer
    
So this is status-completed? –  user7116 Oct 31 '11 at 0:38
    
I guess .. I usually do not tag "support" stuff with status completed, however ... yeah it makes sense ... fixed –  waffles Oct 31 '11 at 0:39

Prettify must not be able to recognize C++/CLI code, and the tag doesn't have any language associated with it, so it's forced to leave the code unhighlighted. The question has highlighting because someone edited it to manually specify a language (they went with C++), but the same would need to be done to the code blocks in each answer for highlighting to show up there. Alternatively, a moderator could set it so all posts have C++ highlighting, if the syntax is close enough that that comes out right

share|improve this answer

You must log in to answer this question.

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