Small things

without comments

Pretty PHP code instantly

Have some ugly PHP code you need to beautify? Install the PEAR php_beautifier package and with Mac OS X’s pbcopy/pbpaste commands you’re ready to go.

Copy the source you’re dealing with to the clipboard, and on the command line do this:


$ pbpaste | php_beautifier | pbcopy

Tada! Paste it back into the editor and it’s certainly a lot prettier.

While you’re at the command line, do a man pbcopy for more information about this amazing utility on OSX.

And now, something different. Reading Russell Beattie‘s feed today and came across box.net, a online storage thingy. Seemed cool, complete with some public features so you can share files with others (or other share files with you), and as such I’ll provide you with a link, complete with my email address on it so you can refer me on it. :)

Written by Pedro Cardoso

March 15th, 2006 at 12:37 am

Posted in Apple,Programming