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

2 Answers

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

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

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

You must log in to answer this question.

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