plantuml中的内联评论
是否可以在 plantuml (Markdown格式)中写入内联评论?
例如,我想达到以下结果,
@startuml
participant Alice as A
participant Bob as B
A -> B ' Here I would like to have my comment
...
@enduml
我知道可以使用以下符号:
' This is a comment on a single line
A -> B: Hello World
/' Multiple
comment
lines '/
我发现奇怪的是这种样式:
participant Alice as A /' Why does this comment work? '/
适用于参与者,可以成功使用。只有使用参考文献而不是工作。
带有'
和的解决方案 -
表示法,此处无法正常工作。
我已经检查了以下资源:
这里有可能吗?
Is it possible to write an inline comment in the PlantUML (Markdown format)?
For example, I would like to achieve the following result
@startuml
participant Alice as A
participant Bob as B
A -> B ' Here I would like to have my comment
...
@enduml
I know that the following notations can be used:
' This is a comment on a single line
A -> B: Hello World
/' Multiple
comment
lines '/
What I find strange is that this style:
participant Alice as A /' Why does this comment work? '/
works for the participants and can be used successfully. Only with the references this does not work.
The solutions with the '
and --
notation which were mentioned here do not work properly.
I already checked the following sources:
Is there a possibility here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据最新规范,您有三个选项可以在
*。puml
文件中添加注释部分:1)简单注释
所有以简单Quote
'
'< /代码>是评论。
2)块评论
strong *您使用postrophe
'
,然后您也可以在使用/'
启动的几行,'/
结束。3)将块评论放在同一行上
参考: qa-3906 和
According to the latest specification, you have three options to add comment section in a
*.puml
file:1) Simple comment
Everything that starts with simple quote
'
is a comment.2) Block comment
Block comment use C-style comments except that instead of
*
you use an apostrophe'
, then you can also put comments on several lines using/'
to start and'/
to end.3) Put block comment on the same line
Reference: QA-3906 and QA-3910