I just noticed that the color of this code doesn't look right in the code block.
List<int> will give
<int> a red color, as will
List<int> is colored correctly, as is
List<Integer>. And by "correctly" I mean the way Visual Studio renders the color.
--Addition by Kevin Vermeer--
Here's how Stack Overflow renders the code:
and here's how Visual Studio renders the code:
Integer class is undefined here
Here's an example on a live Stack Overflow question:
Clarification from OP
This question took more bashing than I had expected. I'll try to explain the question and myself a bit further, without starting a discussion.
booletc. are data types that almost always appear in blue, at least when posting c# code to SO. That's why I found it odd when it was colored red within
>tags, and even the tags themselves appear in red. I think this would have been more consistent:
And by consistent I don't mean how Visual Studio colors the code but keeping the colors consistent within a code-block on SO. That means data types should be blue even when appearing between
The reason I put the word
correctlyin scare quotes is because I know there is no correct way of coloring code and that Visual Studio is not the standard (although it sure looks like the coloring of C# code on SO tries to follow that of Visual Studio).
Scare quotes may indicate that the writer does not accept the usage of the phrase (or the phrase itself), that the writer feels its use is potentially ironic, or that the writer feels it is a misnomer. -Wikipedia
...More often though, scare quotes (which are also sometimes called sneer quotes) are used to impart a sense of irony or disdain.
-Quick and Dirty Tips