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.

Please close this if there's a reason that I don't recall for sticking with CSHTML.


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
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