Sql Syntax Highlighting does not work in xml files

Answered

Hi. now Sql Syntax Highlighting does not work in xml files. (mybatis)

but tags work.

 

example:    

select tag and id, resulttype are highlighting 

but,

select *
from all 

it's just plain text!!  

<select id="getdata" resultType="dto" >
select *
from all
</select>

 

how can i setting this? 

 

 

 

0
5 comments
Please try to unable / inject SQL language again while putting your cursor in the SQL and pressing the alt+enter key .

BTW, the IDE does not support mybatis framework out of the box. You can try some 3rd party plugins like https://plugins.jetbrains.com/plugin/14297-my-mybatis .
1

Thank you for your answer.  

sql files work perfectly. but xml files are still not work. do you have any idea? 

I don't have a sql... 

BTW, According to your advice, i install my-batis plugin. thank you. 

 

0

Can you please attach a screenshot of your editor?

Regarding unable / inject SQL language I mean the operation like below.

0

hi. here my editor screenshot. 

are "inject SQL language" and "inject SqlDelight" the same? 

 

0

Looks like you are using the IntelliJ IDEA Community Edition. It's not supported.

There'll be no database dialect for such as MySQL and Postgresql etc.

0

Please sign in to leave a comment.