Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 155 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 have just posted this question on StackOverflow. At the bottom there is some C# code which I would like to display with syntax hightlighting. I tried to add a hightlighting direction, like this:

<!-- language: lang-cs -->
[four blanks]using System.Windows.Controls;  
[more indented code]

but I could not make it work. Do you know how to fix it?

share|improve this question
1  
You will need [one blank line] before [four blanks] – YOU May 27 '11 at 20:12
1  
Thanks, YOU! That worked. If you post this as an answer I'll make it the accepted answer. – user152938 May 27 '11 at 20:16
    
ok, added as answer. – YOU May 27 '11 at 20:17
1  
Your question needs to have the correct tags to get syntax highlighting first of all... – Jeff Atwood May 27 '11 at 22:02
up vote 10 down vote accepted

You will need [one blank line] before [four blanks], like this:

<!-- language: lang-cs -->

[four blanks]using System.Windows.Controls;  
[more indented code]
share|improve this answer

You must log in to answer this question.

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