dotnet / dotnet/roslyn

Syntax highlighting is interrupted by some elements in blazor

Open
#85,543 0 comments 0 reactions 0 assignees View on GitHub
Area-Razor
Dominant language
C#
Stars
20.7k
Forks
4.3k
PR merge metrics
PR metrics pending

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/t/Syntax-highlighting-is-interrupted-by-so/10688577)._

---
[severity:It's more difficult to complete my work]
The syntax highlighting is interrupted by some elements in blazor.
I'm not sure if it's directly because of the InputText, the span below, or a combination of both or other factors.
As you will see, after the line of the second InputText, you will notice how the syntax highlighting of the yellow labels is interrupted and they turn blue.
After deleting some span code, closing the IDE, and opening it again corrects the problem.
However, if I don't close the IDE, it visually stays as it was, it just refreshes the syntax highlighting when I close the IDE.
It seems that adding a space in front of the '>' corrects the problem.

---
### Original Comments

#### Feedback Bot on 6/23/2024, 06:38 PM:

(private comment, text removed)
#### Phil Allen [MSFT] on 7/2/2024, 02:51 PM:

(private comment, text removed)
#### René Queizán Pérez on 7/11/2024, 00:46 PM:

(private comment, text removed)
#### Feedback Bot on 7/9/2024, 11:05 PM:

(private comment, text removed)
#### Feedback Bot on 7/11/2024, 02:53 PM:

(private comment, text removed)

---
### Original Solutions
(no solutions)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.