How can I use SQL and Freemarker highlighting at the same time?

已回答

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

 

0

Hello,

Currently nested injections aren't supported. Feel free to create feature request on YouTrack: https://youtrack.jetbrains.com/issues/IDEA

0

Thank you for answering.

i will request it later 

Is it possible to customize SQL injections to ignore errors from <@p to />? 

 

0

Sorry, it's also not possible.

0

请先登录再写评论。