note assigne different styles

0 votes
asked Jun 3, 2020 in Question / help by Morjo
Hello

It is possible to define two styles for notes and assign different style to different notes into same diagram?

Morjo

1 Answer

0 votes
answered Jun 3, 2020 by The-Lu (64,760 points)

Hello M.,

For what kind of diagram?

For Sequence diagram, see:

And with style (see https://plantuml.com/en/style-evolution):


[Click to see code on PlantUML server]

For Class diagram, see, first example on the doc.:

but style seems to be KO.

For Component and deployement, see:

But it seems to be KO, here is an example (on 2020.11):

@startuml
'skinparam useBetaStyle true
<style>
note {
  FontSize 10
  BackGroundColor #fff
  .green {
        BackgroundColor green
   }
}
</style>

node n
file f
note<<green>> left of n: note that is green
@enduml

If that can help,

Regards,
Th.

...