Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax hlighting & formatting in editors? #422

Open
futile opened this issue Feb 22, 2024 · 1 comment
Open

Syntax hlighting & formatting in editors? #422

futile opened this issue Feb 22, 2024 · 1 comment

Comments

@futile
Copy link

futile commented Feb 22, 2024

Hi!

More a question, but does anybody have syntax highlighting and/or formatting for html! {}-blocks inside a Rust-file configured?

Using neovim, but any pointers would be cool! :)

@futile
Copy link
Author

futile commented Feb 24, 2024

Update: It looks like my editor is actually capable of rendering it somewhat correctly.

Here is a screenshot of what it looks like right now:

image

Before, when I created the issue, all the text in the html!-tag was just red, which really did not work well. Now there are still some issues, but at least basic highlighting seems to "just work"?

Edit: This is what "all red" looks like, guess my editor is not deterministic :(

image

Ah, it seems to be specifically treesitter in my case. If I disable it, I get mostly the syntax highlighting from the first image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant