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.

Set background color for one note

0 votes

Hi,

It's possible to change activities and conditionnal items color with :

- a "#ColorCode" before the activity.

- a "#ColorCode:" before the "if".

But there is no way to set a note color.

 

@startuml
 
start
#green:if (Turn On The Game?) then (yes)
  :Having Fun;
else (no)
  #red:Not Having Fun;
  note right:sad note is sad
endif
stop
 
@enduml
 
 
It would be helpful to have a similar syntax to set notes background color, like "#ColorCode:note:My note", if possible.
 
Thanks.
asked Jun 30, 2016 in Wanted features by legz (490 points)
edited Jun 30, 2016 by legz

1 Answer

0 votes
 
Best answer

Thanks for the suggestion!

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

You can have:

@startuml
start
if (Turn On The Game?) then (yes)
  :Having Fun;
  note left #red
    this
    is
    note
  end note
else (no)
  :Not Having Fun;
  note right #blue :sad note is sad
endif
stop
@enduml


Is this what you are expecting ?

Regards,

answered Jul 1, 2016 by plantuml (112,180 points)
selected Jul 1, 2016 by legz
Thanks, that's perfect:)
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...