hacker news Hacker News
  1. new
  2. show
  3. ask
  4. jobs
Hey HN,

I recently found myself needing a quick way to preview HTML and SVG code without having to copy it into an IDE, save it, and then open it in a browser. ChatGPT's new canvas feature is great for generating code, but it doesn't provide a way to preview HTML directly.

To solve this, I made a small bookmarklet that allows you to instantly preview HTML from your clipboard in a new tab. Just copy your HTML, click the bookmarklet, and it will render immediately.

It's a simple tool, but it’s saved me a lot of repetitive steps, and I figured it might help others too.

The bookmarklet code and instructions for saving it are included in the post.

Happy to hear any thoughts or suggestions!

Thanks, and I hope it saves you some time.

loading...