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

1 Answer 1

up vote 7 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 .