Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 153 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 just posted an answer in SO and I realized that syntax highlight was not showing up after applying code formatting. Was this feature removed?

share|improve this question
    
Maybe it can't detect the language it's written in? – sudo rm -rf Jul 14 '11 at 14:41
up vote 6 down vote accepted

I've added

<!-- language: c# -->

to your answer; now it shows up. The question is tagged ; obviously none of these tags has a default syntax highlighting.

See the syntax highlighting section of the editing help.

share|improve this answer
1  
C# isn't listed in this master list. Is there a better list to reference somewhere? – Brad Mace Jul 14 '11 at 14:47
2  
@bemace: Sure it's listed there (lang-cs). That's the list of the prettify language codes -- but usually you don't need to know those; you can just use the tag (c# in this case), and the highlighting language associated with the tag will be used. – balpha Jul 14 '11 at 14:50
    
<!-- language: lang-c# --> is correct. – lorond Apr 18 '12 at 15:20

You must log in to answer this question.

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