I found a thread: Highlighting kills my Razor syntax in Visual Studio 2010 , asking and explaining how to turn off the highlighting for Razors code.
The problem is,
As an addition to Mateusz Rogulski & goku_da_master's answers, if you select Automatic for the Item background instead of Black (for dark theme), the setting will continue to work if you change the VS theme.