-
Notifications
You must be signed in to change notification settings - Fork 61
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
Support for inline LiveView templates #184
Comments
This is certainly the repo but I am not quite sure how to implement it. Perhaps look at how other languages do something similar. I think Ruby for example does <<-SQL and so on. A PR is welcome! |
Cool, I'll look into it. Thanks |
Did you figure it out? VS Code is the only editor I know of that currently does it. |
I started and made this https://gist.github.com/egze/07721af578b18d349f0e8571f115d6aa But it is buggy. Doesn't highlight properly stuff like Maybe there is a good tool where you can load existing syntax rules and then see the effect, as you make changes? I found https://eeyo.io/iro/ but also couldn't figure out how to import existing Elixir rules. If this is even possible. |
I prefer Sublime over VS code and Atom but I agree extending syntax highlighting is a real pain. I think @josevalim and @ankopainting had the right idea but I don't have the know how to implement it. Thanks for your effort. |
What is the right place to add support for inline templates?
Here is an example:
Ideally I would like the part inside the sigil to be highlighted as eex html template.
The text was updated successfully, but these errors were encountered: