Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 157 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.e. I just edited Ninject Dynamically Loading a Repository from an Assembly and noticed that there is no syntax highlighting/coloring.

Update: After adding the C# tag to the question, syntax highlighting now works.

share|improve this question
    
Yet another good reason to add a language tag to questions... – Cody Gray Aug 8 '11 at 9:57
    
@Cody Gray: not really, since the question is not about the C# language itself. It just happens that the OP used C# (but he could have used VB.NET and hit the exact same problem). – M4N Aug 8 '11 at 9:59
up vote 8 down vote accepted

Code is highlighted depending on the tags associated with it.

Since that question doesn't feature a specific "language" tag or one that allows the interpreted to guess the the fall back is unhighlighted code.

You could add a language specific tag to the question, or have a look at Interface options for specifying language prettify for details on how to make specific code blocks be highlighted with a specific language colouring. The basic rule is:

<!-- language: (language identifier) -->

    code 
share|improve this answer
    
Indeed, adding the C# tag solved it! – M4N Aug 8 '11 at 9:43
2  
    
Ah ha, that's a much better reference, thanks @Jeff. Favourited for future reference. – DMA57361 Aug 8 '11 at 9:48
    
Why isn't the HTML comment working? It says it works even if there is no specific tag present, but it doesn't – Iulian Onofrei Dec 22 '13 at 11:37

You must log in to answer this question.

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