Open chipbite opened 3 years ago
With PNG and SVG the source is already embedded, in case you need more info:
PNG: https://plantuml.com/command-line#ce21470ab49d1d19 SVG: https://forum.plantuml.net/5797/please-add-the-diagram-source-code-svg-file-like-done-for-files?show=5799#a5799
Hi @fuhrmanator - thanks for your reply and reading my idea.
Given your reply I realize that the idea must have been easy to misunderstand, so I have updated the description of the idea to try and avoid others being confused.
Can you help me, is the idea more clear now?
It's clear to me. I'm pretty busy with other projects right now, but I will be happy to help out eventually.
Feature Request / Idea:
Add support for: Opening and saving plantuml code embedded in image files
Goal/Benefit: Keep plantuml code in the image file, allowing the image to be e g used, exported and manipulated as a file, and referenced in a markdown, for instance.
What: Create and use plantuml diagrams, having the code embedded in the image file (e g png/svg/etc), in a similar fashion to how you can work with .drawio.png/svg files, as supported by the drawio extension (See https://github.com/hediet/vscode-drawio, or section "Editing .drawio.svg/.drawio.png Files" on https://marketplace.visualstudio.com/items?itemName=hediet.vscode-drawio).
How: (if possible) intercept opening of registered file types, such as .puml.png or uml.svg, etc), extract embedded plantuml code and allow it to be edited. Vice versa, intercept save, generate/save updated
image file
(png/svg) with embedded code option set, as is supported by plantuml.So
Thanks for a great plugin!