To date I've been using a program called 'Snippets (Version 0.8.2)' by a Uladzimir Prudnikau to store my bits of Arduino code but this program no longer has a home page or any development since about 2012 and has no capability to download or backup my snippets.
Recently, after a lot of searching I discovered a free app MassCode which suits all of my requirements including saving into a JSON database which should allow archiving all of my snippets.
Code is available at GitHub - massCodeIO/massCode: A free and open source code snippets manager for developers
I'd like to open a discussion on any other sucessful freeware. The author would if possible like a donation if the program is usable.
Regards all