Custom JS tag in *.ftl file

Answered

Hi, I have a custom macro (with nested directive) for declaring js code parts in ftl files:

<@script.javascript>
[...] some js code [...]
</@script.javascript>

This works great in freemarker but all js code in tags (macro call) : <@script.javascript> is recognized as a normal text.

I'm trying to define custom language Injection but with positive effect.

 

My custom injection settings (both not working):

 

Is any way to set up JS idea features in this tags?

0
1 comment
Official comment

There's no such possibility currently. I've filed a feature request, which you can vote/watch: https://youtrack.jetbrains.com/issue/IDEA-172671

Please sign in to leave a comment.