Some favorite site feeds aggregated locally: iPhone Development RSS   Adobe Labs RSS   Macrumors RSS

Thursday, July 30, 2009

Xcode: Want to print line numbers?

Thursday, July 30, 2009   

I usually like to print out some of my classes and mull them over late at night after getting my ass kicked for the twelfth time in Battlefield 1943 (PS3 or 360, it doesn't matter). I like to have line numbers printed, and by default Xcode does a really lousy job of printing code. So I decided to look around Google and see if there was anything handy.

Sure enough I found a site explaining how to use something called enscript. I installed it and then in the Terminal (remember to sudo su in there), ran the install script. The directions are pretty simple and for the most part it works. I get a lot of wrap-arounds which look ghastly (the default is two columns per landscape page).

You HAVE to open each file in it's own window and then run the shell script. It won't work if you merely select it in the Groups and Files tree. Have fun!
 
 Return to the main page
Comments:

There are currently 0 Comments:

 Leave a comment