TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: An IDE that lets you add photos as comments?

1 点作者 seany622 个月前
I always catch myself screenshotting stuff and trying to drop it in as code comments, much like one would when writing up technical docs on Notion or Google Docs.<p>Anyone that currently does this &#x2F; is working on it? I guess this would need to be supported by version control as well? The programming language too maybe?

3 条评论

bbb6512 个月前
Picotron[1] has this feature, I don’t remember the exact format but essentially you have a special comment syntax that includes a base64 encoded lz4 compressed string that stores the image, every text widget on the system supports it and renders it as an image, and it turns back to text when your cursor is on that line.<p>[^1]: <a href="https:&#x2F;&#x2F;www.lexaloffle.com&#x2F;picotron.php" rel="nofollow">https:&#x2F;&#x2F;www.lexaloffle.com&#x2F;picotron.php</a>
gus_massa2 个月前
The IDE of Racket can do that. I can&#x27;t find an example in the official docs, but I found this in google <a href="https:&#x2F;&#x2F;www.teach.cs.toronto.edu&#x2F;~heap&#x2F;Racket&#x2F;values.html" rel="nofollow">https:&#x2F;&#x2F;www.teach.cs.toronto.edu&#x2F;~heap&#x2F;Racket&#x2F;values.html</a>
mattl2 个月前
You’d need to provide a text alternative for those images too. Given that idea, I’d embed the screenshots into documentation&#x2F;wiki pages where you can embed them in their entirety and provide the alternative text needed as well as any other information needed.