Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is there any way to embed diagrams in code comments and have it render in any IDE or source code hosting platform?

Am I wrong for wanting this?



As in "ASCII art"?

Generalized to "Unicode art" input, with smoothed output in SVG format:

https://github.com/blampe/goat


That's interesting.

I was thinking something like this:

println 'hello world';

/* #mermaid graph TD; A-->B; A-->C; B-->D; C-->D; */

When the file is viewed in the IDE or git web host the image is rendered in the text viewer.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: