Highlighting kills my Razor syntax in Visual Studio 2010

前端 未结 1 1544
礼貌的吻别
礼貌的吻别 2020-12-31 02:30

I\'m using Expression theme in Visual Studio 2010 Ultimate on Windows 7 operating system. (Note: Actually, I\'m not sure this prob

相关标签:
1条回答
  • 2020-12-31 03:00

    You should be able to change the text background for Razor code by:

    1. Opening Visual Studio Options (Under Tools -> Options),
    2. Selecting "Fonts and Colors" (Under Environment in the treeview at left)
    3. Changing the dropdown box at top to "Text Editor" (if that isn't the value already),
    4. Choosing "Razor Code" from the "Display Items" listbox, and
    5. Changing the background color to your liking and clicking "OK" to apply the change.

    There's also an "HTML Server-Side Script" setting that controls the background color of the Razor code delimiters (the @ expression and similar expressions that mark the beginnings of code blocks.)

    HTH,
    Clay

    0 讨论(0)
提交回复
热议问题