Display YAML Data
YAML format is widely used in software.
You can use PlantUML to visualize your data.
To activate this feature, the diagram must:
* begin with @startyaml
keyword
* end with @endyaml
keyword.
Specific key (with symbols or unicode)
[Ref. QA-13376]
Highlight parts
Normal style
@startyaml
#highlight "french-hens"
#highlight "xmas-fifth-day" / "partridges"
doe: "a deer, a female deer"
ray: "a drop of golden sun"
pi: 3.14159
xmas: true
french-hens: 3
calling-birds:
- huey
- dewey
- louie
- fred
xmas-fifth-day:
calling-birds: four
french-hens: 3
golden-rings: 5
partridges:
count: 1
location: "a pear tree"
turtle-doves: two
@endyaml
Customised style
@startyaml
#highlight "french-hens"
#highlight "xmas-fifth-day" / "partridges"
doe: "a deer, a female deer"
ray: "a drop of golden sun"
pi: 3.14159
xmas: true
french-hens: 3
calling-birds:
- huey
- dewey
- louie
- fred
xmas-fifth-day:
calling-birds: four
french-hens: 3
golden-rings: 5
partridges:
count: 1
location: "a pear tree"
turtle-doves: two
@endyaml
[Ref. QA-13288]
Using (global) style
With style
You can use link::style-evolution[style] to change rendering of elements.
[Ref. QA-13123]