In an attempt to improve PlantUML documentation...
Wiki Toc Recent changes View page history Add new chapter Reorder page Raw
![]() |
![]() |
|
LanguageSome editors integrate PlantUML Language highlighting for text files (See here). Since the PlantUML Language definition is still in progress, when new keywords are added in the language, it could be an issue for existing products. An hidden option in the command line allows to turn around this:
This command will output to the standard output a description of the PlantUML Language, quite easy to parse:
So, if you need to do something related to the PlantUML Language, you can parse on the fly this output: your product will always be up-to-date when people will upload the last plantuml.jar version. |
|
Syntax checkIf you have a text, and if you want to know if this text is a valid PlantUML description, you can use the following command:
This prints basic information to the standard output. The first line contains one of the following words : SEQUENCE , STATE ,
CLASS , OBJECT , ACTIVITY , USECASE ,
COMPONENT , OTHER or ERROR
Examples: (@startuml are optional in that usage)
The following text:
will output:
If there is an error in the text, the line number and the description of the error is printed:
will output:
|