{"by":"somefries","descendants":38,"id":41762692,"kids":[41763676,41763160,41764923,41763402,41762929,41763551,41770926,41764205,41762738,41763700,41763019,41770337,41764106,41763005,41762693],"score":130,"text":"Hey HN,<p>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&#x27;s new canvas feature is great for generating code, but it doesn&#x27;t provide a way to preview HTML directly.<p>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.<p>It&#x27;s a simple tool, but it’s saved me a lot of repetitive steps, and I figured it might help others too.<p>The bookmarklet code and instructions for saving it are included in the post.<p>Happy to hear any thoughts or suggestions!<p>Thanks, and I hope it saves you some time.","time":1728273810,"title":"Show HN: Instant HTML Preview Bookmarklet","type":"story","url":"https://gist.github.com/rmtbb/e42d870a59a7f98091e734674831072b"}