Is there a way to disable the @code highlighting for razor files?
This is just a color scheme preference, that you can easily change in the settings, by disabling Background in:
Background
Editor/Color Scheme/ASP.NET/Razor/Code Block