<p>This happened to me in Visual Studio 2008 pre and post 2008 sp1 on more than one computer and to someone else I know, so it can't be an isolated incident.</p>

<p>Seemingly random, every so often I lose all syntax highlighting in my aspx page (the html) so that Visual Studio now looks like a really expensive version of notepad.</p>

<p>Does anyone know why does happens?  Better yet, anyone know how to fix it?</p>

[{'answer_id': 45780, 'author': 'Nick Berardi', 'author_id': 17, 'author_profile': 'https://Stackoverflow.com/users/17', 'pm_score': 2, 'selected': False, 'text': '<p>You have basically experienced Visual Studio giving up.  It gives up for many reason, the page is too complicated to highlight which is usually because there are too many syntax errors.  The highlighting is done with some very complicated and intelligent RegEx statements essentially, however if Visual Studio is unable to apply them it just displays black text.</p>\n\n<p>One thing to try is to fix all the syntax issues, if any.</p>\n\n<p>By the way this "giving up" happens in most IDE\'s.  I have seen it happen once or twice in Elcipse too.</p>\n'}, {'answer_id': 215444, 'author': 'cowgod', 'author_id': 6406, 'author_profile': 'https://Stackoverflow.com/users/6406', 'pm_score': 0, 'selected': False, 'text': '<p>when this happens to me, i let it sit there for a minute.  it will usually bring the syntax highlighting back.</p>\n'}, {'answer_id': 215482, 'author': 'Herb Caudill', 'author_id': 239663, 'author_profile': 'https://Stackoverflow.com/users/239663', 'pm_score': 1, 'selected': False, 'text': "<p>Try <strong>Ctrl-K, Ctrl-D</strong> (reformat document). This will usually restore you syntax coloring. If it doesn't, it should tell you where it got confused (e.g. <code>Couldn't reformat due to line 123</code>). </p>\n"}, {'answer_id': 942103, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 3, 'selected': True, 'text': '<p>it happened to me after an uninstall of visual studio using a removal tool at <a href="http://msdn.microsoft.com/en-us/vstudio/bb968856.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/vstudio/bb968856.aspx</a>\nI had to run this before upgrading sql server management studio to 2008 version\nsyntax highlighting has disappeared since because of package loading failures. I didn\'t find the fix yet so if anybody has an idea...</p>\n'}, {'answer_id': 3863020, 'author': 'Eldar', 'author_id': 295832, 'author_profile': 'https://Stackoverflow.com/users/295832', 'pm_score': 0, 'selected': False, 'text': '<p>i had the same problem. Installation of <a href="http://www.usysware.com/dpack/" rel="nofollow">DPack</a></p>\n\n<p>solved this issue</p>\n'}, {'answer_id': 6689135, 'author': 'Andrea', 'author_id': 843955, 'author_profile': 'https://Stackoverflow.com/users/843955', 'pm_score': 0, 'selected': False, 'text': '<p>Enter VS2008, click on Tools/Options </p>\n\n<p>Check <strong>"Show all settings"</strong> option</p>\n\n<p>Choose <strong>Environment/International Settings</strong></p>\n\n<p>Change <strong>the language combo box.</strong></p>\n\n<p>Close <strong>VS2008.</strong> </p>\n'}, {'answer_id': 16401365, 'author': 'Makiyama', 'author_id': 487457, 'author_profile': 'https://Stackoverflow.com/users/487457', 'pm_score': 1, 'selected': False, 'text': '<p>I\'ve followed the instructions from Andrea but had to include the following procedure:</p>\n\n<p>Andrea Instructions:\nEnter VS2008, click on Tools/Options</p>\n\n<p>Check "Show all settings" option</p>\n\n<p>Choose Environment/International Settings</p>\n\n<p>Change the language combo box.</p>\n\n<p>Close VS2008.</p>\n\n<p>...then...\nAfter closing Visual Studio, run this command below from a command prompt with admin permission:</p>\n\n<p>run devenv /resetskippkgs</p>\n\n<p>Reference: <a href="http://forums.asp.net/t/1413383.aspx" rel="nofollow">http://forums.asp.net/t/1413383.aspx</a></p>\n'}]
['https://Stackoverflow.com/questions/45577', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4050/']