No syntax highlighting in view macro - Help #4478
Replies: 1 comment
-
|
Here's an example of the syntax highlighting I get on a slightly larger block inside the view macro. This is ordinary Rust syntax highlighting (tags and components are functions, variables are variables, strings are strings) because it is a macro that emits ordinary Rust code, so rust-analyzer emits the correct Rust semantic tokens.
If you're looking for something more like HTML syntax highlighting of the view macro as if it were HTML and not Rust code -- I'm not sure, I've never used or wanted that. I do know people have worked on something like that using tree-sitter. I'm not sure what kind of VS Code has for tree-sitter, but neovim and Emacs both support it. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So i am trying to get into using leptos but i can't get syntax highlighting for my html text, it's just regular rust highlighting, i have the leptos-vscode extension and leptosfmt, but no matter what i try i can't find a solution and i can't find anyone talking about this being an issue, i have been stuck with this for many hours please help.
Beta Was this translation helpful? Give feedback.
All reactions