I had this exact problem.
I wrote an image formatter for Pygments (included in the main distribution).
Please do not hate me for such an abomination, but yes, it highlights the highlighted code as png or jpg or whatever. Thus, it has no external dependencies, etc.
pygmentize -f png -o mysource.png mysource.cs
I try to make sure that I always refer to the text version of the source for copying people.
Ali Afshar
source share