vscode-plantuml icon indicating copy to clipboard operation
vscode-plantuml copied to clipboard

Support for use in C-Code comment block

Open pegasus17 opened this issue 3 years ago • 4 comments

Hello, We are using the PlantUML diagrams in the documentation of C-Code (multi-line comments). It would be great the have c-file supported.

Within a standard multi-line comment it does not work

/*
 * @startuml
 * start
 * end
 * @enduml
 */

With a modified comment block without '*' for the PlantUML section is work in the current plugin version.

/*
 @startuml
 start
 end
 @enduml
 */

pegasus17 avatar Jun 15 '21 12:06 pegasus17

Hello,

we have a similar problem when using /// (doxygen) comment block style, so this also doesn't work:

 /// @startuml
 /// start
 /// end
 /// @enduml

It renders to an empty white image.

Would be great if these comment styles could be supported.

soc-scrambler avatar Jun 23 '21 09:06 soc-scrambler

It seems that this was solved (#81) but got broken again.

franciscorba avatar Jul 12 '21 14:07 franciscorba

I was expecting this plugin to work like the Eclipse plugin - https://plantuml.com/eclipse which can display diagrams from DSL in comments inside comments in code source files and headers.
image Is this supposed to work? If not, consider this a feature request.

phatpaul avatar Apr 23 '24 18:04 phatpaul

Oops it does work for me! It just wasn't obvious. Maybe include a tip like this in the readme?

Place cursor inside a block of uml, then type 'F1' and select PlantUML: Preview Current Diagram

image

phatpaul avatar Apr 23 '24 18:04 phatpaul