How do you color a partition in new Activity syntax?

0 votes
asked Apr 11 in Question / help by alevinetx (260 points)

Old syntax would support coloring a partition via:

partition Audience #LightSkyBlue {

However, in the new syntax, that fails. I tried putting it before, with a colon, as used for coloring other elements

#LightSkyBlue:partition Audience {

  but, that also fails.

What am I doing wrong?

Thank you !

1 Answer

+1 vote
answered Apr 12 by plantuml (179,660 points)
selected Apr 12 by alevinetx
 
Best answer

The exact syntax is

@startuml
:foo1;
partition #LightSkyBlue foo3 {
:foo2;
}
@enduml

Hope this helps!

commented Apr 12 by plantuml (179,660 points)
We will probably change this to accept the old syntax order
commented Apr 12 by alevinetx (260 points)
Great, thank you!

Whichever way, would you please update the documentation to reflect?


Thank you much!
commented 2 days ago by anonymous
I think that in the current version, it is the name of the partition then its color

@startuml
:foo1;
partition foo3 #LightSkyBlue {
:foo2;
}
@enduml
...