See https://discuss.codemirror.net/t/any-way-to-override-syntax-error-highlighting-in-asp-net-like-code/642