by mg · 2y ago · 0 comments
https://no-gravity.github.io/html_editor/
This has the benefit that you can also edit the html afterwards.
It also has the function to render the HTML into an image (Via the "Render" button). I wonder if one could feed that image back to ChatGPT to provide visual feedback on what it coded? Maybe it would reply with "Oh, now that I see it, let's make the margins on the header a bit smaller and the background a bit more colorful" :)
Firefox has that built in: right click, “Take Screenshot”. It lets you choose between screenshotting just the visible viewport or the whole page.
Some observations:
This fork throws errors in my console. It seems you added a Cloudflare statistics script that does not work in my browser.
This is also a fork of an old version. Where for example "let x=7" in a script block will error out on the second run.
If you find the time to make a pull request for the vert switcher, we can join forces!
Some of the problems are:
You can't edit the raw HTML because the site injects additional stuff into the HTML you write.
Editing is sluggish because of the heavy processing the site does on every keystroke.
The console gets flooded with stuff not related to the code you write.
It saves the content into the url so you can bookmark and share, without it ever getting saved to their servers. In fact, since it's stored as a bookmark it should never hit their servers at all.