Wikipedia:WikiProject C/C++/Syntax highlighting

It would be nice to make full use of HTML's facility with text formatting in code samples. Following are proposals for syntax highlighting.

Standard colors
While the usual white or off-white background is reasonably well suited for plain encyclopedic text, it's poor at providing the contrast needed to easily distinguish color. Thus, colored text should preferably be placed on a dark background to allow a broad range of colors to be used. Note, however, that pure blue is less visible against black than against white.

The default colors are proposed to be as follows (it will of course be possible to override them with style sheets):