Skip to content

Incorrect code formatting in Tab.razor example #30157

@TheAtomicOption

Description

@TheAtomicOption

In the "Pass data across a component hierarchy" section, the code for Tab.razor has incorrect syntax highlighting for the closing html tags and much of the @code { } block.

This appears to be a failure to switch back to expecting html from expecting csharp when parsing the closing quote at the end of class="nav-link @TitleCssClass". Changing to class="nav-link @(TitleCssClass)" might avoid this parsing error.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions