3 ms·
I don't use zed or svelte, but this looks like the zed picture is missing a treesitter parser for svelte. Many editors have basic regex-based highlighting for m
by TonyStr 5mo ago
I don't use zed or svelte, but this looks like the zed picture is missing a treesitter parser for svelte. Many editors have basic regex-based highlighting for many languages, and optional, more advanced, highlighting available through extensions. You may also get some semantic highlights provided by a language server if your editor uses the Language Server Protocol as well.
I found one extension from a web search. Did you try this?
https://zed.dev/extensions/svelte https://zed.dev/extensions/svelte
- thecatapps 5mo agoIt's been a while, but from what I remember you need that extension for any highlighting at all, and that screenshot is with it installed. Also, if I recall, it's something about that extension using an outdated treesitter parser or something along those lines.
- giancarlostoro 5mo agoSounds to me like one major Zed enhancement should be to suggest plugins if you open specific programming language files...
- notpeter 5mo agoIt does this, but only for a couple dozen file extensions -- .svelte is one of them. https://github.com/zed-industries/zed/blob/c8f09caee42ea4e27991ca55257f6f9c7d7c67d2/crates/extensions_ui/src/extension_suggest.rs#L15 https://github.com/zed-industries/zed/blob/c8f09caee42ea4e27...