Skip to content

Conversation

@guardrex
Copy link
Collaborator

@guardrex guardrex commented Jun 5, 2025

Fixes #35584

I don't think there's a reason to stick with CSHTML as the code language now that we have the Razor code language (razor). It only made sense for the period before the Razor code language came out. The content in this article also applies to Blazor, and the markup-based code blocks for Blazor are always Razor.


Internal previews

📄 File 🔗 Preview link
aspnetcore/mvc/views/razor.md aspnetcore/mvc/views/razor

@guardrex guardrex requested a review from tdykstra June 5, 2025 11:17
@guardrex guardrex self-assigned this Jun 5, 2025
@guardrex guardrex closed this Jun 9, 2025
@guardrex guardrex reopened this Jul 9, 2025
@guardrex
Copy link
Collaborator Author

guardrex commented Jul 9, 2025

@tdykstra ... I was going to create a new PR with more changes (other article updates), but I didn't follow through on that plan. Therefore, let's look at this one and see if it makes sense, especially in light of making Blazor (Razor components) the focus of text/examples.

@guardrex
Copy link
Collaborator Author

@tdykstra ... Do you agree with changing the code language to Razor? Razor code is more specific and framework-agnostic. It seems better given that Razor works in CSHTML in MVC/RP and for Razor components in Blazor/MVC/RP.

@tdykstra
Copy link
Contributor

@tdykstra ... Do you agree with changing the code language to Razor? Razor code is more specific and framework-agnostic. It seems better given that Razor works in CSHTML in MVC/RP and for Razor components in Blazor/MVC/RP.

@guardrex You know more about this than I do so I trust your judgment; go ahead and change the code language to Razor

@guardrex guardrex merged commit 5b10fd1 into main Jul 17, 2025
4 checks passed
@guardrex guardrex deleted the guardrex-patch-3 branch July 17, 2025 11:44
guardrex added a commit that referenced this pull request Jul 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change code language to Razor (razor)

3 participants