As I saw in the reference it could be possible to implement a snippet feature, but I really don’t know how to do it… Can I have a simple example of how can I implement that feature?
Hey thank you for you answer, I have the feeling that in these examples with Javascript, snippets are embedded in the language mode. In my case I don’t want to create a mode just add snippets as adding extensions to my setup. I tried to understand how it’s made but for the moment it’s too complicated for me. It’s why I would like to have a little example.
Thank you marijn, this is working pretty well.
Do you think is possible to do the same but with a legacy language? In my case with scheme? I mean I understand you example but when I import a language with : StreamLanguage.define(“scheme”), I can’t use data.of method on it, or (I suppose) I missed something.
Sorry it’s anoying and I feel a little ambarassed I would really like to understand better all of this but I have started codemirror 6 since only few days now… Anyway thank you very much for your help