Had a quick question on colorization / syntax highlighting. I see Monaco supports Monarch-style languages files as collected here.
In this comment, @aeschli indicates that VSCode will mainly be using .tmLanguage files since they're a standard format and well-defined in the community.
The comment also states that Monaco will continue to use the JSON-based Monarch format because of implementation details. This is somewhat a shame - it'd be great if the .tmLanguage format was supported by Monaco! Are there any plans for that in the future, or is it fairly set that only the Monarch format will be supported. Is there an easy way to convert from .tmLanguage to Monarch format? (I'm not closely familiar with either)
For context: I'm looking for Groovy syntax-highlighting (as requested in #129) and trying to figure out how much time/work it'll take to support it.
@JKillian The underlying reason for not being able to support .tmLanguage grammars is very simple:
Thanks for the explanation - your reasoning makes sense to me.
we have experimented with Emscriptem to compile the C library to asm.js, but performance was very poor even in Firefox (10x slower) and extremely poor in Chrome (100x slower).
Neat idea! Too bad it didn't work out.
@alexandrudima Any news on that? Could you please advise on how to implement the tmLanguage feature? There already exists a webassembly version of oniguruma:
https://github.com/NeekSandhu/onigasm
and the webassembly also seems to gain traction:
@czb Say no more!!
Would it be easier to convert a visual studio language extension to a monaco recognized format? Or use the above suggested workarounds to use the theme in monaco? If it's easier to convert the language extension, what would be the best way to achieve that conversion?
I'm trying to convert the following vscode language support.
If your goal is to support just the modern browsers which are webassembly ready, it's recommended to go the easy way.
Rewriting the language syntax vs. plugging some wires.
Most helpful comment
@czb Say no more!!
monaco-textmate