Hacker News new | past | comments | ask | show | jobs | submit login

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.




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

Search: