commented library tags remain highlighted in JSP

Answered

IU-241.18034.62, JRE 17.0.11+1-b1207.24x64 JetBrains s.r.o., OS Windows 11(amd64) v10.0 , screens 9600.0x6000.0, 3840.0x2400.0, 5760.0x3240.0

I'm sorry if this is duplicate.

please let me know how to disable syntax highlighting on tag libraries when it's been commented.

I appreciate your time. Thanks.

0
3 comments
Avatar
Yaroslav Bedrov

Hello,

Is it full file content? As far as I know this type of comments is not supported in JSP.

0

So it could be done by using <%-- --%> .
but <ctrl><shift>/ generates /**/ type of comment inside of <script> tag so… 

the only workaround I found is to create a live template for a JavaScript file to generate <%-- --%>

please let me know if there's a better way, otherwise I guess I have to deal with it.

Thank you for helping!

0
Avatar
Yaroslav Bedrov

Thanks!

This behavior is intentional: https://youtrack.jetbrains.com/issue/IDEA-336550

0

Please sign in to leave a comment.