paperlined.org
apps > syntax_highlighting
document updated 13 years ago, on Sep 10, 2010
This does a pretty good job describing how 256 color mode works.

I modified the 256colors2.pl program slightly, to make it display the color codes.