Project with one template type and multiple file types (Jinja -> sh, py, php, ini, yaml, etc...)
Answered
Hi folks,
So I've looked at the Template Data Languages, but it looks backwards for my needs.
We've got a ton of files that are .sh, .py, .php, .ini, .yaml, etc.
All these files are first run through the Jinja2 template processor.
They are all part of the same project because it's a Salt project.
So what I want is to correctly:
- Syntax highlight the Jinja2 template (implied) and then,
- Syntax highlight AND allow for reformatting the underlying file language as indicated by extension.
I'm not seeing how to do this through the Template Data Language.
For configuration management systems, I would think this would be a very useful ability if it's actually not really doable.
Thanks!
Please sign in to leave a comment.
As far as I understand, the main problem is that IntelliJ IDEA doesn't support data languages feature for Jinja2 template processor? If that is the case, see https://youtrack.jetbrains.com/issue/PY-25277.
That looks like the same issue. Yes. I'll add a link to this post. Thank you Serge.