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

Answered

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
1 comment

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

0

Please sign in to leave a comment.