2

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.

1
  • Either this question is a duplicate of the one linked (which I think it is, even if you don't like the answer), or it's off topic because it asks us to find a tool or resource. Commented Apr 15, 2015 at 11:57

1 Answer 1

5

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.

Sign up to request clarification or add additional context in comments.

2 Comments

The problem is that c-like is nothing like C#. It merely highlights numbers. Where do I define this MIME type?
Great! Now that looks more line C#. It's not the same colors, but close enough. Thanks :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.