3

For a few days (weeks?), I don't have syntax highlighting any longer for C# code I'm writing, unless I add:

<!-- language: c# -->

before the piece of code.

Here's the example of code which will appear plain black if <!-- language: c# --> is missing.

Is this affecting only me? Is it expected?

  • Sometimes there's a lag, but that seems very strange. – user53019 Jul 29 '14 at 17:41
4

The language highlighting rules are determined by the tags applied to the question. In this case, the question doesn't have any language tags, so it looks like you need to be explicit. You'd also have to be explicit in the event that your code was in a language that was not part of the question's tags.

  • Thank you for the clarification. Indeed, I suppose that none of the recent questions I answered where I encountered the issue were tagged C#. – Arseni Mourzenko Jul 29 '14 at 18:06

You must log in to answer this question.

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