Welcome Guest, Not a member yet? Register   Sign In
printing source code - of the whole project?
#1

[eluser]Tom Vogt[/eluser]
For a contract I need a printed copy of my application source code.

I thought that wasn't so tricky, turns out it is. None of the IDEs or code editors I've checked support printing of multiple files, only of individual files.

Anyone else ever had this problem? How do you print your source code, if you ever do so?
#2

[eluser]Nathan Pitman (Nine Four)[/eluser]
Well I guess you could write a script that would spit the all the relevant code out uninterpreted into an HTML page and then hit print, that way you could also control font size etc with CSS. I assume you'd only be printing specific models, controllers, views, CSS etc?
#3

[eluser]Tom Vogt[/eluser]
Yeah, I've done something like "find application -iname '*.php' -exec print.sh {}" where print.sh does a tiny bit of formating.

But I was wondering. I can't be the only one on the planet with this problem, and I hate re-inventing the wheel.
#4

[eluser]Nathan Pitman (Nine Four)[/eluser]
I've always wanted a simple script to code the number of lines of code which I've written, just so I can say "I wrote x lines of code on this job"! Smile

Would eb great if you could share the script here once it's done...
#5

[eluser]Tom Vogt[/eluser]
For that purpose, I've always used http://www.dwheeler.com/sloccount/




Theme © iAndrew 2016 - Forum software by © MyBB