4 ms·
I wish my IDE could interpret a special comment like /* img "doc/uml.png" */ or something similar that it would use to display an image inline with my so
by criddell 9y ago
I wish my IDE could interpret a special comment like
/* img "doc/uml.png" */
or something similar that it would use to display an image inline with my source code. There are so many times I've created a FSM diagram with graphviz + dot that I'd love to include inline.
- FroshKiller 9y agoIsn't that a feature of TempleOS? You can embed any content in any file, including images in source code?
- AlexeyBrin 9y agoEmacs can do it, see https://stackoverflow.com/questions/15759901/insert-a-picture-in-code-comment-via-emacs https://stackoverflow.com/questions/15759901/insert-a-pictur... I'm sure you can find similar extensions for VSCode or Atom.
- tobych 9y agoJetBrains IDEs can do almost this using the PlantUML plugin (see my comment above): you just have to write a little graphml code to show the PNG. It's not inline with the source code, but in a separate pane. But a documentation generator (such as Sphinx) could show the image inline, with a little plugin.
- criddell 9y agoI have done this with a documentation generator (doxygen) but I want it in Visual Studio. There is a plugin for it, but it's pretty buggy. It would be nice if it were a core capability.