Some features have been put in PlantUML to help others people to integrate PlantUML in other tools.
Language
Some 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 product.
An hidden option in the command line allows to turn arround this:
;type ;10 abstract actor class component enum interface object participant state usecase ;keyword ;43 @enduml @startuml activate alt [..] up ;preprocessor ;6 !define !endif !ifdef !ifndef !include !undef ;skinparameter ;145 ActivityArrowFontColor ActivityArrowFontName [..] UsecaseStereotypeFontSize UsecaseStereotypeFontStyle ;color ;140 AliceBlue AntiqueWhite Aqua [..] WhiteSmoke Yellow YellowGreen ;EOF
Syntax check
If you have a text, and if you want to know if this text is a valid PlantUML description, you can use the following command:SEQUENCE, STATE,
CLASS, OBJECT, ACTIVITY, USECASE,
COMPONENT, OTHER or ERROR
Examples: (@startuml are optionnal in that usage)
The following text:
Bob -> Alice : hello
SEQUENCE (2 participants)
actor Bob actor Bob Bob -> Alice : hello
ERROR 2 Duplicate participant : Bob