Razor syntax highlighting for Ace editor [duplicat

2019-06-09 18:03发布

问题:

This question already has an answer here:

  • Ace Editor Plugin for MVC Razor syntax [closed] 1 answer

Razor is a combination of HTML and C#. But neither ACE or Codemirror have Razor in their modes scripts.

Does anybody have a Razor mode for either of these or any other editors?

Thanks in advance

回答1:

This question: < How to do embedded highlightings in Ace editor if embedding requires proper brace nesting? > have mostly working c# Razor mode for Ace, you can ask its author to make a pr to Ace.