Add support for other templating languages
See original GitHub issueHi!
I use Windi with Eleventy and so I use Nunjucks templates. This works well, no issues about it. Even though there’s no official support for it (yet?) this works completely fine, every features including the analyzer works perfectly
However, this extension doesn’t work on .njk files even though they’re (mostly) normal html files due to it only triggering on .html, .vue etc files. Changing the extension manually to make it so it enables itself on .njk files (adding them to package.json and filetypes.ts like php files are) works perfectly. However, of course this breaks whenever the extension is updated
I was wondering if a way to add it to other file formats without having to hack the extension would be possible. For instance, vscode-auto-close-tag allows this through a parameter called auto-close-tag.activationOnLanguage
another reference might be the official emmet settings for doing so emmet.includeLanguages
Please note that I’m not asking for Nunjucks support to be added, VS Code doesn’t even support them by default. I’m asking for a way to support file types arbitrarily 😅
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (5 by maintainers)
greater than release v0.11.1, you should be able to define custom language mapping with
ok cool… i will have this feature ready for next release 😃