How can I escape a colon?

0 votes
asked May 10, 2017 in Bug by ntwrkguru (120 points)
I am attempting to diagram this:

Host: /var/opt/app -> Container: /var/opt/app

Which produces a syntax error. I've tried to escape the colons with \: and with ':' and with ":"

1 Answer

+1 vote
answered May 11, 2017 by plantuml (298,440 points)

If you are drawing a sequence diagram, you can have:

@startuml
participant "Host: /var/opt/app" as Host
participant "Container: /var/opt/app" as Container
Host-> Container
@enduml


If you are drawing a component/deployment diagram, you can have:

@startuml
component "Host:\n /var/opt/app" as Host
component "Container:\n /var/opt/app" as Container
Host --> Container
@enduml


Hope this help!
 

...