Is it possible to highlight MyBatis SQL inside scala xml literal?

已回答

I would like to highlight MyBatis SQL in Scala xml literals, for example:

def xsql = <xsql>
    SELECT * FROM FOO WHERE BAR = ${{something}}
</xsql>

I've tried adding custom language injections rule but without success.

Thanks.

0

No, there is no way to inject a language between these xml tags in Scala code.

0

请先登录再写评论。