I would like to make the snippets in js-mode
available in web-mode
.
There is no too many snippets in web-mode
. What should I do to use javascript or HTML snippets in web-mode
?
Inside the snippets folder of web-mode, you can create a file called .yas-parents
and just put the modes you want to include into web-mode, in your case, js-mode
.
Several other modes use the same structure, for instance, most programming language modes have the prog-mode as parent (which contains generic stuff programmers use such as TODOs)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With