Search code examples
xmlvb.netvisual-studio-2010editorcdata

Visual Studio's horrendous colorization of CDATA XML blocks in VB.


It really hurts the eyes. I'm using XML Literals as in https://stackoverflow.com/a/1674434/614263 so that I can conveniently have many lines of SQL in my VB.NET program. When I need sql's '<>' (not equal), I'm forced to use CDATA, and VS colorizes those just plain horrible. It's like a super-light grey.

Has anyone encountered this and knows how to fix it, or workaround it?


Solution

  • Go into the options and change it to the color of your choice.

    Tools > Options > Environment > Fonts and Colors > show setting for - text editor.

    VB XML CData Section