Aspnetcore.docs: Add better support for Razor syntax highlighting

Created on 20 Jun 2018  路  5Comments  路  Source: dotnet/AspNetCore.Docs

Highlight js currently has aspx-csharp and cshtml.

I'm not sure what the difference is between the two but neither highlight Razor syntax very well.

This is what I get in Visual Studio:

image

This is what I get in the docs:
image

Most helpful comment

@scottaddie yes, we're supporting Web Forms right now. Adding cshtml highlighting is in our backlog.

All 5 comments

@vicancy Is this a DocFX issue, or is it an implementation issue on the repo side of things?

The aspx-csharp option sounds like it supports Web Forms syntax highlighting. cshtml is definitely what we want to use.

Pinging @adkinn to comment.

Adding @superyyrrzz to take a look.

@scottaddie yes, we're supporting Web Forms right now. Adding cshtml highlighting is in our backlog.

Closing this issue, since it's already an item on the engineering team's backlog.

Was this page helpful?
0 / 5 - 0 ratings