Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For large XML files it seems like the Visual Studio text editor will not attempt to do syntax highlighting, so everything is black and white.

Is there a way to force it to parse for highlighting?

share|improve this question
Just how large are we talking about here? – Karan Nov 23 '12 at 21:32
@Karan I'm sorry, it's 14MB. – Louis Dec 16 '12 at 2:37
Actually, I just noticed the Output window shows a warning: 'file.xml' is too large to open with XML editor. The maximum file size is '10' MB. Please update the registry key 'HKCU\Software\Microsoft\VisualStudio\11.0_Config\XmlEditor\MaxFileSizeSupported‌​ByLanguageService' to change the maximum size. Changed that fixed it =! – Louis Dec 16 '12 at 2:41
up vote 1 down vote accepted

It turns out the maximum file size for the XML editor is 10 MB. After changing the limit in the following key, syntax highlighting is back with no noticeable performance issues:


Run regedit to navigate to that path in the Windows Registry. HKCU stands for HKEY_CURRENT_USER.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .