google / cel-spec

Common Expression Language -- specification and binary representation
https://cel.dev
Apache License 2.0
2.93k stars 227 forks source link

Monaco Editor language support #337

Open dwilt opened 9 months ago

dwilt commented 9 months ago

I'm looking to put CEL into a Monaco instance so I can have syntax highlighting and autocomplete. I've done some googling but haven't come across a custom language file that someone built for Monaco and its not supported as a default language. Does anyone here know if this has already been built?

mjudeikis commented 7 months ago

+1 on this

peppescg commented 5 months ago

+1

kantord commented 4 months ago

You might have some luck following this guide: https://ohdarling88.medium.com/4-steps-to-add-custom-language-support-to-monaco-editor-5075eafa156d

kantord commented 4 months ago

Or it seems like there is an already existing vscode extension for this: https://github.com/hmarr/vscode-cel

Although it uses TextMate grammars, which I guess Monaco cannot directly consume. But there seems to be another GitHub project that promises to do that: https://github.com/zikaari/monaco-editor-textmate

Lirontal1 commented 2 months ago

Will also appreciate adding support for this