Closed ldijkman closed 2 years ago
Ho @ldijkman
This library already has ACE editor included in source. You can use with
Regarding the preview, this feature is not avalaible but in my opinion is also not necessary because you can simply open another browser tab, edit whatever you want in your own webpage and imnediatly check the result reloading page.
yes your right i can place two browser windows side by side one with editor and one with html preview
but i think it would be nice like next codepen https://codepen.io/ldijkman/full/LYdZpYp
A preview box like that, I think is certainly useful for quickly trying small snippets of code and not entire web pages (which is why there are services like Codepen or Jsfiddle). Personally I still think it is useless, however you can simply put the files of the repository you have linked into the filesystem of the ESP if you like.
If you want to try entire websites I recommend using a service like CodeSandbox (this is your example) where you can put all the files needed.
This library has the main objective of serve the web pages you upload to the filesystem, this means that the development of these web pages can be done anywhere: online, with your local webserver running on a PC or directly with the ESP.
hello
i am using ace on ESP8266 / ESP32 webserver for wifi relais switches i would like to ad live html preview to the ace code text editor (tryit codepen jsfiddle alike)
like https://github.com/geard-dev/web-based-live-code-editor demo https://live-editor.js.org/html.html
but i do not now how to implement it in my editor code
is there anyone that can help me?
Greet Luberth https://github.com/ldijkman/randomnerd_esp32_wifi_manager/tree/main/LAB_Experiments
above code results in next screenshot (running on ESP32 webserver http://garage.local/edit)
would like to have a live html preview panel added like demo on https://github.com/geard-dev/web-based-live-code-editor demo https://live-editor.js.org/html.html