Since it's a bit of a pain to re-write your code over and over again every time that you restart the terminal we should provide a way of saving the code to the disk. Since you have a webserver set up you should be able to simply load the contents of the monaco browser into a file when the user clicks the "save code" button.
This should be a dropdown menu or something, or should automatically save on change and allow you to save to a different file if you select the save as button.
Since it's a bit of a pain to re-write your code over and over again every time that you restart the terminal we should provide a way of saving the code to the disk. Since you have a webserver set up you should be able to simply load the contents of the monaco browser into a file when the user clicks the "save code" button.
This should be a dropdown menu or something, or should automatically save on change and allow you to save to a different file if you select the save as button.