Continuing the discussion from List of available frameworks:
Have you tried Evernote?
I have found it very useful for this very purpose.
It has got a great search engine internally, and Mac Spotlight, and Google search can also find your Notes. It is not the best snippet manager in the world, but at least they now do have a code snippet block.
If you, or anyone is interested, I’ve written a number of scripts and Keyboard Maestro macros to highly automate my use of Evernote. It has fairly decent scripting support.
Feel free to ask any questions.