How can I use SQL and Freemarker highlighting at the same time?
Answered
I use mybatis in combination with freemarker.
Freemarker-specific code is not highlighted
How can I use SQL and Freemarker highlighting at the same time?
Below is a code example
SQL is language injected into the text block
@Lang(FreeMarkerLanguageDriver.class)
@Select("""
SELECT
*
FROM
test
WHERE
id = <@p name="now"/>
""")
`<@p name="now"/>` is in error

Please sign in to leave a comment.
Hello,
Currently nested injections aren't supported. Feel free to create feature request on YouTrack: https://youtrack.jetbrains.com/issues/IDEA
Thank you for answering.
i will request it later
Is it possible to customize SQL injections to ignore errors from <@p to />?
Sorry, it's also not possible.