eclipselabs/eclipse-language-service

Syntax Coloration with TextMate

Closed this issue · 1 comments

I have implemented syntax coloration with TextMate for the LS GenericEditor C#, CSS, JSON.

Here the result:

  • for C#:

syntaxcolorc

  • for JSON:

syntaxcolorjson

  • for CSS:

syntaxcolorcss

If you wish to play with my POC get https://github.com/angelozerr/textmate.java/ and import in your workspace:

  • fr.opensagres.language.textmate.core
  • fr.opensagres.language.textmate.eclipse
  • org.eclipse.languageserver.languages.textmate

However there is a big bugs when TextMate model is synch with editor. It's an hard task, but I hope I will fix it.

I don't think TextMate grammar support belong to this project (which is just about LSP). The colorations for C# here is just for example to make demos look nice, it's not the intent of the project to add coloration with TextMate or whatever.
I'm closing this, however, I'll have a closer look at textmate.java now it supports generic editor. I'll try to setup a demo using textmate.java and LSP4E to build good editors very fast.