Highlight C# code in CodeMirror? - 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.

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.

Related

Parsing support in vscode namespace

VS Code has basic parsing support out of the box (e.g. highlighting matching brackets, line comments and block comments). Is it possible to use this parser in an extension or do you know of a good parser that is accessible from TypeScript?
Sam Harwell is working on a TS runtime for the ANTLR tool, which I started using in an vscode extension to parse text. Still in early alpha state but already usable.

what happened to gtk_source_iter_forward_search in gtksourceview-3.0

I've looked at the GtkSourceView 3 Reference Manual, and I've googled for a while, but I cannot find any mention of why gtk_source_iter_forward_search was dropped from gtksourceview or what should be used instead.
I've also looked at the features link at the gtksourceview website where it lists as a feature: Caseless UTF-8 compliant search.
I've looked at the gedit source ver 3.2.6 (since I know they use gtksourceview), but they seem to be using gedit_document_search_forward, which I'm guessing comes from some other library. So my question is, what happened to the search capabilities in gtksourceview? Is there another library that provides similar functionality to gtk_source_iter_forward_search, or is it now done another way within gtksourceview?
I originally wrote my editor in gtksourceview-2.0, now I am rewriting it using gtksourceview-3.0, and I have an established search forward function based on the gtk_source_iter_forward_search function.
Thanks.
Always browse the source if you want to know these things. I found in this commit that GtkSourceIter was removed because the functionality was moved to GtkTextIter.

How can I add functionalities to Sublime Text 2?

I recently discovered this Sublime Text editor, and since I love to code with it, I would like to add more custom functionalities to it.
Is it possible to use some scripting language to enhance its core features? I found some python references on the main folder, but I didn't find anything useful in the documentation on the official site. I guess the editor is written in Python?
Until now I managed only to add custom snippets, but that's not what I'm looking for.
Any help?
I figured it out anyway, looks like I didn't look well enough in the docs.

syntax highlight with objective-c

i'm looking for a objective-c class that supports syntax hightlighting a string.
is there something like that existing?
this should work on iphone!
Firstly, it really depends on what programming language you need to process, so you should include that.
Secondly, while I don't know of any syntax highlighters that are written in C or ObjC, there are several written in JS. You could load up the code in a UIWebView and run the JS syntax highlighter on it. That would probably work pretty well.
You'll have to do this yourself, unfortunately. But if you check iPhone OS 3.2, there are some helpful bits in there. (There is an NDA in place, so more can't be revealed directly in this public area. Check out Apple's dev forums.)
Though CoreText precisely does what you want in Mac OS X, It's not yet available on iPhone OS 3.1.X. However, Syntax highlighting is far more easier if you use javascript based highlighter as pointed by Colin

OpenOffice syntax highlighting

I have some big documentation to do that will contain pieces of code I'd like to give the conventional "coding language" syntax highlighting. I've searched the styles feature to do such a thing, but there is no way to do that (in fact I could only found a forum where people were fighting about adding this feature or not, but this is not the point).
There is an abandoned extension for OpenOffice, but using it freezes my installation of OpenOffice.
What's the easiest way to do this? Should I try to recompile the extension and debug it (although I'm already having a hard time compiling another Java project), or maybe I should use a macro? How to implement this?
One possibility is to use one of the many code to html tools out there and then include the html in your OpenOffice document (using "File..." on the Insert menu).
One possibility is highlight. Vim has a :TOhtml command that will convert the current file to syntax highlighted html using the current colour scheme. I've not tried it, but this looks promising. There are also a few online ones, such as this. I'm sure there are a great many other options.