ich versuchs nochmal zu erklären:
die schönen farben sind nicht in deinem code drin, sondern eine funktion der programmierumgebung, so wie die roten markierungen in word bei der rechtschreibkorrektur - sie sind nicht teil des textes. der text ist nur ascii, so wie es von not-pad erstellt wird: keine farben, keine schriftgrößen, blablubb.

um nun doch an farbigen text zu kommen, pastest du ihn in auf einer nopaste-seite im internet, zb hier:
http://nopaste.tshw.de/11580634959d3be/
dann lässt du dir den html quellcode davon anzeigen, und kopierst da wiederum die bereiche raus, in denen dein code steht, dort steht dann so etwas wie:
><span style="color: #ff0000;">"%s"</span>,fname2<span style="color: #66cc66;">)</span>;</div><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"> fflush<span style="color: #66cc66;">(</span>stdin<span style="color: #66cc66;">)</span>;</div><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"></div><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"> pDatei = fopen<span style="color: #66cc66;">(</span>
nun erzeugst du mit word eine html datei, und pastest das da rein.
ist ein ziemlicher aufwand, aber etwas anderes fällt mir nicht ein.

war das verständlicher?