microsoft / monaco-editor

A browser based code editor
https://microsoft.github.io/monaco-editor/
MIT License
40.62k stars 3.61k forks source link

Add SAS syntax highlighting #2613

Open Mr-ZBin opened 3 years ago

Mr-ZBin commented 3 years ago

Hi,

I'm a SAS user, and would you mind adding SAS syntax highlighting?

SAS (full name: statistical analysis system, referred to as SAS) is one of the largest private software companies in the world. It is a statistical analysis software developed by North Carolina State University in 1966.

Code looks like below screenshot: image

Thanks

hediet commented 3 years ago

SAS is on place 21 on the TIOBE index, so I think its relevance definitely justifies including a grammar for it.

We are very open for a PR on this!

Please have a look at how other languages are defined in https://github.com/microsoft/monaco-languages.

Mr-ZBin commented 2 years ago

Hi,

Do we need to custom syntax highlighting on SAS language by ourselves? The monaco editor has been supporting 77 basic-languages but not include the SAS language .

Thanks.

allanbowe commented 2 years ago

My team are keen to build this extension, so that we can offer syntax highlighting in https://github.com/sasjs/server, however - we need sponsorship

Mr-ZBin commented 2 years ago

Hi,

What can I do for the sponsorship? Actually, I'm not famililar with javascript.

allanbowe commented 2 years ago

@Mr-ZBin - we have JavaScript developers and SAS expertise, just looking for a project or company that is willing to share the resource cost (which we can subsidise) of building the feature.

Happy to discuss more - feel free to contact us on: https://sasapps.io/contact

XiaoPengYouzzZ commented 1 year ago

@Mr-ZBin Hello, I want to know if you have finally completed this task, integrating the sas language into the monaco editor. If not, do you have any other solutions? I'm currently facing this challenge as well.

Mr-ZBin commented 1 year ago

@Mr-ZBin Hello, I want to know if you have finally completed this task, integrating the sas language into the monaco editor. If not, do you have any other solutions? I'm currently facing this challenge as well.

No, I use VSCode with Official SAS Language Extension at present.

XiaoPengYouzzZ commented 1 year ago

@Mr-ZBin Okay, thank you for your reply. I tried to do this work in the custom language of the monaco editor, but it was not successful because I needed to customize the sas language rules. I will try using the sas extension of VSCode directly. Thank you again for your help.