razor icon indicating copy to clipboard operation
razor copied to clipboard

Numbers are not colorized properly in C# context in razor

Open DoctorKrolic opened this issue 3 years ago • 0 comments

Version used: VS 2022 v17.4 Preview 3

To reproduce:

  1. Create blazor server app
  2. Go to Counter.razor
  3. In IncrementCount add var a = 10000;
  4. Observe colorization of 10000

Expected behavior: Colorization of 10000 matches colorization of numbers in C# files

Actual behavior: It does not. In C# files numbers are colorized with slight yellow color (dark VS theme): devenv_N5mSvjJNlt ... while in razor file in C# context they are just white: devenv_daUnVRu90Z

DoctorKrolic avatar Oct 13 '22 20:10 DoctorKrolic