When you use some template engine with IntelliJ IDEA to create a template, you need to specify the template data language for the template, to enable coding assistance and syntax highlighting.
- Open the Settings dialog box.
- Select Project Settings | Template Data Languages.
- In the File/Directory column click the desired item (a template file, a folder with template files, or an entire project). In the Template data language column select the underlying language from the drop-down list.