I'd like to announce a very simple online editor in a browser window for your Lua code. It's an old project but I got it working on a recent NodeMCU/SDK and added a syntax highlighting editor so you might like to give it a try. It does not need an Internet connection, does not use cloud service or a third party server. It's running on your ESP8266, creates a web server there so you can simply access it in your (W)LAN using your web browser.
Source code is in GitHub: https://github.com/joysfera/nodemcu-web-ide
Enjoy,
Petr