question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plantuml code as comment in any file extension can preview as plantuml

See original GitHub issue

it is feature request i always use plantuml to replace my code comment in program. is it possible to generate UML if code comment is plantuml code? for example

//start
//:initialize;
  var a=1;
  var b=2;
  var c=3;
//  var d=4; <-- do not generate as plantuml if pattern is "//  " but not "//" (no space after //)
//:run program;
if (a==b) {
console.log(c)
}
//end

filter “^//[^ ]” with regex to keep begin with // line

//start
//:initialize;
//:run program;
//end

finally, replace “//” at beginning to be complete plantuml

start
:initialize;
:run program;
end

of course, “//” is editable regex pattern would be nice

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
qjebbscommented, Jan 18, 2019

Thanks for the information, @append is a brilliant solution!

0reactions
d0uubcommented, Jan 18, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

PlantUML - Visual Studio Marketplace
Extension for Visual Studio Code - Rich PlantUML support for Visual ... Preview Diagram, Press Alt + D to start PlantUML preview (option...
Read more >
Embedded diagrams into source code - PlantUML
It is possible to embed PlantUML text diagram into any programming language source code. Just put your diagrams into comments with @startuml and...
Read more >
how to use the plantUML preview in VSCode? - Stack Overflow
You can open the diagram by hitting ALT + D to preview the PlantUML diagram on Windows and Option key + D on...
Read more >
Using PlantUML in VSCode - YouTube
Sous-titré en français!!! This is a short tutorial on how to use PlantUML inside of VisualStudio Code with the PlantUML extension.
Read more >
Markdown native diagrams with PlantUML - Andreas' Blog
All you need to do is to get the PlantUML extension to enable codes native Markdown preview feature to also parse inline diagrams....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found