Skip to content

Change code language #35585

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Change code language #35585

wants to merge 1 commit into from

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.

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)
1 participant