Closed PavelTurk closed 10 months ago
If you haven't done so already, I think you're likely to get a helpful response posting on a forum specializing in Java regex.
I found solution here - https://superuser.com/a/1153242/491751. So, final pattern that worked for me is
private static final Pattern XML_TAG = Pattern.compile("(?<ELEMENT>(</?\\h*)(\\w+)([^<>]*)(\\h*/?>))"
+"|(?<COMMENT><!--[\\s\\S\\n]*?-->)");
This is my highlighter:
This is xml code that breaks my highlighter:
And this is what I have:
Could anyone say how to fix it?