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.

In code blocks keywords "namespace" and "using" are not highlighted (e.g. for c# code).

<!-- language: c# --> does not help. c# tag neither.

share|improve this question

2 Answers 2

up vote 9 down vote accepted

I the correct method of specifying language highlighting is :

<!-- language: lang-c# -->

You were simply missing the lang- in the definition.


Check out the formatting sandbox to learn all the methods/tricks with regard to formatting.

Hit edit on any post that catches your eye and see how they did it.

share|improve this answer
    
Gah, ninja'd due to lack of code. –  Daniel Fischer Apr 18 '12 at 15:01
2  
@DanielFischer It's a mistake in SO's Markdown help. That is why i've missed lang- –  Lorond Apr 18 '12 at 18:31

Try it with <!-- language: lang-c# -->:

namespace name
{
    using foo
    {
        bar;
    }
}
share|improve this answer

You must log in to answer this question.

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