Display PlantUML version in a diagram

0 votes
asked Apr 24, 2020 in Question / help by anonymous
Hello

I would like to know if its possible to display PlantUML version directly in a diagram via a macro or command.

I do not control the PlantUML execution, it is embedded in a Draw.io graph which is itself embedded in the Confluence wiki framework.

merci

Loic

1 Answer

0 votes
answered Apr 24, 2020 by plantuml (295,000 points)

You can use :

@startuml
legend
<size:8> Rendered with Plantuml Version %version() </size>
end legend
@enduml

Is this what you are looking for ?

commented Apr 27, 2020 by anonymous
Hello

Exactly, but it seems not to work, whether embedded or using the regular standalone application (1.2019.8).

Is the builtin function %version() quite recent ?

I will test with the latest.

merci

Loic
commented Apr 27, 2020 by anonymous
When I say it doesn't work, it displays the string "%version()"
commented Apr 27, 2020 by plantuml (295,000 points)
Yes, %version() is very recent.
commented Apr 27, 2020 by anonymous
Ok, works using 1.2020.8. I will check the version with my admin.
commented Feb 8, 2021 by anonymous

A bit late to the party, but the following should work with older versions:

@startuml
version
@enduml

Since "version" must be on its own, it's only useful to check the current version of PlantUML.

...