YAML ; Multiple highlight defs

0 votes
asked Mar 28, 2022 in Question / help by Verbunk (120 points)
Hi Folks,

For the YAML (or JSON) the syntax given for creating a highlight style for row is,

<style>
yamlDiagram {
    highlight {
      BackGroundColor red
      FontColor white
      FontStyle italic
    }
}
</style>

My attempts to make another highlight style have failed. Sorry for the naive approach but I assumed the 'highlight' tem was just a name for the style elements ... but it seems like a reserved word.

How would I make multiple (named?) defs for different style. A red backgroundColor and green BackgroundColor for example.

Thx!
commented Mar 28, 2022 by The-Lu (57,500 points)
edited Mar 28, 2022 by The-Lu

Hello V.,

It seems that is not yet implemented... but
@PlantUML team: here is a proposal (to be implement) using stereotype... (to debate) :

<style>
    .h1 {
      BackGroundColor green
      FontColor white
      FontStyle italic
    }
    .h2 {
      BackGroundColor red
      FontColor white
      FontStyle italic
    }
</style>
#highlight "french-hens" <<h1>>
#highlight "xmas-fifth-day" / "partridges" <<h2>>

If that make sense...
Regards.
Th.

commented Jan 10 by plantuml (291,220 points)

Many thanks for your proposal, this is now implemented in V1.2023.0

1 Answer

0 votes
answered Jan 19 by The-Lu (57,500 points)

[Just to answer an unanswered question] 

Just FYI:

 this is now implemented in V1.2023.0

Thanks to the PlantUML team. yes
Regards.

...