Style Participant By Name

0 votes
asked Jan 15, 2021 in Question / help by David

Hello,

Wondering if it's possible to change the style on a participant after it is declared, by referring to it by name.  I've searched and can't find anything that would allow me to do this.

i.e. I can make the participant red during declaration (in a variety of manners), but not afterwards.

My end goal is to import a base set of participants from a shared puml file, but want the ability to change colours on some of those depending on the diagram I am making at this time.


Example:

Shared File:

@startuml

participant Bob
participant Andy
participant Sally

@enduml

Specific Diagram Goal:

---

@startuml

!include ./shared.puml

participant Bob #red
Bob -> Andy: Hello
Andy -> Sally: Hello
Sally -> Bob: Hi

@enduml

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...