Text generation

Writing scripts inside a worksheet has a lot of inconveniences but the great advantage is to benefit from all edition functionality, mainly column, row and cell formats.

Applying styles to the generation output

The style applied to the cell, row or column containing the script inside the template document is kept in the generation output (color, font, size, alignments).

Template content

Generation output

AB
1 <context model='D:/…/myModel.uml'/> <gendoc>
 [for (p:Package | Package.allInstances())]
2 [p.name/]
3  [/for]
<gendoc>
AB
1
2Actors
3Use case view
4Logical view
5Deployment view
6

All other styles from document templates are kept during generation.