3 Answers

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
add comment

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
add comment

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
add comment

You must log in to answer this question.

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