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

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


2 Answers 2


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.

  • Gah, ninja'd due to lack of code. Apr 18, 2012 at 15:01
  • 2
    @DanielFischer It's a mistake in SO's Markdown help. That is why i've missed lang-
    – lorond
    Apr 18, 2012 at 18:31

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

namespace name
    using foo

You must log in to answer this question.

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