@user7114 it depends how you did it... The simplest way would be to
write all your code in one big function. You get multi-line editing
then, and it can easily be converted to a string to save with
.toString().
Note: Other (non terminal users) will find these two functions very handy in saving and restoring their user code to the SD drive for backup or SD booting.
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
A much easier way is to include, in Espruino built-in functions, your two code snippets that you wrote in this topic ...
http://forum.espruino.com/conversations/253795/#comment11812662
Note: Other (non terminal users) will find these two functions very handy in saving and restoring their user code to the SD drive for backup or SD booting.