Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

Add custom label for bracket syntax

0 votes
Hello,

First thanks for your work !

I would like to know if it is possible to add custom label with the bracket syntax in Deployment diagram.

I know that this type of diagram seems to be under developpment, but I would like to know if it is possible to handle this syntax :

For Class diagram :

***

class foo as "bar"
class bar as "foo" {
 String data
}

***

This syntax works fine, but not for Deployment diagram, for artifact, node, storage, etc :

***

node node_foo as "foo"
node node_bar as "node_foo" {
 artifact node_bar_ar1 as "ar1"
}

***

The first line is well parsed, but not the second one, resulting in syntax error.

 

Thanks!
asked May 6, 2016 in Wanted features by anonymous

1 Answer

0 votes

Thanks for the suggestion...

In last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

You can use [ and ] for using some custom label.

For example, you can have:

@startuml
node bar {
 artifact foo1 [
 foo
 foo2
 ]
 node node2 [
 this
 is
 a
 node
 ]
}
@enduml


Is this what you are looking for ?

This has not been highly tested, so feed back welcome!

answered May 8, 2016 by plantuml (124,290 points)
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...