vscode-plantuml
vscode-plantuml copied to clipboard
Support for use in C-Code comment block
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
*/
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.
It seems that this was solved (#81) but got broken again.
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.
Is this supposed to work? If not, consider this a feature request.
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