If the IDE runs on chrome, maybe you could try to use localStorage. You could JSON.stringify the code and save it on the storage and when you open the IDE, all that has to be done is JSON.parse.
No clue if it works like that in the IDE, but with browsers it works perfectly :)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@Gordon
If the IDE runs on chrome, maybe you could try to use localStorage. You could JSON.stringify the code and save it on the storage and when you open the IDE, all that has to be done is JSON.parse.
No clue if it works like that in the IDE, but with browsers it works perfectly :)