Closed nliechti closed 6 months ago
I spent several days trying to implement support for Jinja2 templates and found that IntelliJ's support for the Jinja2 template language PSI tree is quite limited. Calculating element hierarchy on my own was a bit challenging, and it was difficult to achieve correctness without built-in IDE support. After trying various workarounds, I have finally found what seems to be a viable implementation. Please install it and provide me with feedback.
If it does not work, please config your IDE as follows: https://stackoverflow.com/a/53168017
Tested with Intellij 2020.3 and 2022.3 and 2023.2
Hey man. Thank you very much for the work you are doing.
Seems to be working perfect on small to medium complex files. Large 150+ lines with dozens of if/for there seem to be some just left uncolored.
Doesn't bother me that much as it is "clearly" not working there and not wrongly colored.
Maybe we get better IDE Support in the future.
Just made some enhancements, and it looks great with HTML right now:
Please support us before creating a feature request, thanks for your support 😁
Please check
Your programming languages
Expected Behavior
Current Behavior
Code examples