Code Template Syntax

Code Templates are written using Enterprise Architect's Code Template Editor. The Code Template Editor supports syntax highlighting of the Code Template Framework language.

Syntax Elements

Elements

Detail

See also

Basic Constructs

Templates can contain:

  • Literal Text
  • Variables
  • Macros
  • Calls to other templates

Variables Call Templates From Templates Macros Literal Text

Comments

If you want to add comments to the templates, use the command:

     $COMMENT="text"

where "text" is the text of the comment; this must be enclosed in quotes.

The command is case-sensitive, and must be typed in upper case.

Learn more