Page 1 of 1

TemplateFunction

PostPosted: Fri Jan 18, 2013 9:35 am
by meierd
Hi,

What is the purposes of attribute filetype in a TemplateFunction (and why it get's not automatically set until I extracting the subtemplate form the parent template)?

Re: TemplateFunction

PostPosted: Fri Jan 18, 2013 9:41 am
by reto
The file type in the template function has the same purpose as the file ending in the template editor. It chooses a syntax style model to highlight language keywords and comments.

If your template function generates java code, use java als filetype. If you plan to write C++ code, use hpp or cpp as file type.

* See also http://www.actifsource.com/tutorials/co ... style.html

There are discussions to refactor this part of the model.