Writing scripts inside a Text editor has a lot of inconveniences but the great advantage is to benefit from all text edition functionalities, mainly styles and formatting, from the Text editor.
The style applied to the script inside template document is kept in the generation output (color, font, size, alignment,…).
Template content |
Generation output |
<context model=‘…’/> |
Actors |
With the same example as in the previous paragraph, other style information such as bullets or numbering can be used for generation.
Template content |
Generation output |
<context model=‘…’/>
[/for] |
|
Template content |
Generation output |
<context model=‘…’/>
[for (p2:Package|p.ownedElement->filter(Package))]
[/for] |
|
All other styles from document templates are kept during generation.