I just want to bring up something I had mentioned earlier, which may be useful to some...
Evernote is a great tool for general note taking.
But when it comes to code blocks, and given all of the trouble we're having with Evernote's implementation of it, I have recently started using https://boostnote.io/ for those notes that are heavy on code snippets. Apologies if it's a bit awkward to promote an alternative product in this forum, but I don't see it as a direct competitor. It's just better for the niche use-case of developer oriented notes.