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

Possible Duplicate:
Why isn't syntax highlighting working in a question?

For some reason, the code here is not getting syntax-highlighted. Perhaps it's a problem with my browser/cache or something? Or maybe I'm doing something wrong?

If I remember correctly, usually keywords like class and public get highlighted, this isn't happening in the answer I linked.

share|improve this question

marked as duplicate by Cody Gray, animuson, slhck, kiamlaluno, Toon Krijthe Apr 11 '12 at 14:48

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

Syntax highlighting is dependent on the language. By default that is chosen from the tags that are on the question. However, the question doesn't have any languages tagged. So there's no syntax highlighting.

I've edited your post to manually enable C++ syntax highlighting by adding this:

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

More Information: Syntax highlighting language hints

share|improve this answer
    
But that doesn't work !!!!!!! –  Iulian Onofrei Dec 22 '13 at 11:43
    
What doesn't work? Can you link me an example where it failed? –  Mysticial Dec 22 '13 at 11:45
    
    
You needed a line break before that tag. Fixed it for you. :) –  Mysticial Dec 22 '13 at 11:53
    
Oh before, damn I searched everywhere and I couldn't figure it out and it pissed me off, at least now I know :) thanks a lot! –  Iulian Onofrei Dec 22 '13 at 11:56

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