Currently lesspipe.sh only attempts to color some file types based on their extension, and it's missing some file types which could be colored, like html. Both code2color (the default), and pygmentize (with the -g flag) which I've tried, simply output uncolored text if they can't color the specific file, so there's no reason to limit the coloring to a specific set of file types. It would be best, IMO, if lesspipe.sh always tries to color the text regardless of the file's extension (the only exceptions to this are files which aren't text, such as compressed files, mp3 files which lesspipe.sh currently handles, etc.), and let the colorizer do it's magic.
More examples of files which could get colorized but currently don't: makefiles, manpages, csv, css, …
Created attachment 219169 [details, diff] quick patch to color everything I quickly made this patch to color everything. Hopefully it doesn't make too many kittens suffer.
i would add a comment about the colorizer being required to simply pass through the file unmangled if it doesnt support it. that way i dont need to deal with hacks with limited programs.
should be fixed now: http://sources.gentoo.org/sys-apps/less/files/lesspipe.sh?r1=1.40&r2=1.39