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

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

1 Answer 1

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 .