aramk / crayon-syntax-highlighter

Syntax Highlighter supporting multiple languages, themes, fonts, highlighting from a URL, local file or post text.
https://wordpress.org/plugins/crayon-syntax-highlighter/
GNU General Public License v3.0
1.1k stars 248 forks source link

Razor (New Syntax) #244

Open Meligy opened 9 years ago

Meligy commented 9 years ago

A basic support for Razor will be really great.

Razor is the syntax used in ASP.NET development now, most of this uses ASP.NET MVC which uses Razor instead of webforms syntax, which ASP syntax kind of serves well.

To support Razor we can start with ASP syntax with the following differences:

These are the most important I guess.

Nice to have but can be ignored:

RehanSaeed commented 9 years ago

This would be very useful. Basic C# syntax highlighting is also currently broken and has been for a long time, see the issue I raised here. It seems to get the keywords right but types are usually the wrong colour.