bytecode77
bytecode77

Reputation: 14840

Highlight C# code in CodeMirror?

I'm using CodeMirror 5.1. This article shows C# syntax highlighting, but apparently addresses an outdated version of CodeMirror.

Question: How do you achieve true C# highlighting with CodeMirror (and I don't mean the "clike" parser) ?

Note, that this is not a duplicate of this question. The solution there is "clike", which is not what I'm looking for.

Upvotes: 2

Views: 2292

Answers (1)

Marijn
Marijn

Reputation: 8929

The text/x-csharp MIME type defined by the clike mode is a C#-specific mode. If that's not what you are looking for, it would have helped to at least say what your problem with it is.

Upvotes: 5

Related Questions