I use Evernote as fragments, etc., mainly from various websites. The web clipper browser plugin allows me to create notes directly on Evernote with highlighting (as shown on the original website). Adding tags and additional comments is very important along with sharing and accessibility (between work / home / mobile phone in my case).
For my own snippets from the IDE / editor, I usually take a screenshot or if I want to keep copy-paste, I just add the text / source file to Evernote.
source
share