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.
Feel free to ask any questions.