
Hello:
Seems that there is recently a fashion of having easy ways of collecting and classifying code. I found a web dependent PHP snippet collector that works great with less than 100kb code here: http://php-csl.sf.net/. This, in a minimalist way, lets you easy add some new piece of PHP code for your collection in a classified way (as if it were bookmarks, but the code is stored at a text file). No DB required.
Then, found a Perl desktop app made by OASIS (the XML embassy) at http://www.bahnhof.se/~johanl/perl/Oasis/ that lets you examine any installed-or not installed Perl module. You can read any comment, see the functions. Both have a very nice pretty printing of the code.

Hope it helps.
alberto