Labels: c++ (6) scripting (4) the perfect project (3) coding (1) firefox (1) idea (1)

Sunday, February 4, 2007

Prepare sources in HTML file

This is a quick way to gather all your .h and .cpp files in one HTML file and print them out. dir /o-n /b *.hpp *.h *.cpp | perl -e "print '<html><body><pre>';while(<>){local $/;print'<h1>';print;print'</h1>';open IN, $_;my $t=<IN>;$t =~ s/</&lt;/gs;print $t;}" >src.htm

No comments: