Support for XML Mixed Case Tags

I have the following XML code:

But when displayed in CodeMirror it changes all the closing tags to lowercase and displays them in red:

How to fix this?

CodeMirror will not make random changes to your code when you load it into the editor (see this example). I am pretty sure some other part of your system is the source of this issue.