I noticed a bug/feature with the syntax highlighting where two-character capitalized identifiers are not being highlighted inside code blocks. This does not appear to be a problem in the case of two-letter identifiers where only one of the letters is capitalized. I.e. System.IO fails to highlight "IO", but System.Io would be fully highlighted. Example is C#:

Two letter identifiers are black instead of green http://img444.imageshack.us/img444/2459/syntaxhighlighting.jpg

I apologize if this has been inquired upon before, I didn't see it in my brief search.

  • Does Encoding.UTF8 something special that it's not been marked red? ;)
    – user138231
    Apr 19, 2010 at 22:55
  • Nope I just didn't event notice it in there. I suppose it would be more accurate then to say that it fails to highlight non-camel-cased statements. Apr 20, 2010 at 0:31
  • 1
    All-uppercased identifiers are usually amenend as constants. My IDE also highlights constants differently.
    – user138231
    Apr 21, 2010 at 17:41

2 Answers 2


Markdown does only formatting. Syntax highlighting is actually done by Prettify. You can report issues over there.

  • Should I migrate my question there then? Admins? Apr 20, 2010 at 2:39
  • No, it's a 3rd party library. Just report it independently.
    – user138231
    Apr 20, 2010 at 2:54

Markdown isn't perfect at syntax highlighting -- usually this is because it fails to guess the language, and various languages use the same syntax to mean different things (which should be highlighted differently).

Suggestions for improving this have been made in the past.


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