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

Double-quotes within HTML attributes break syntax highlighting #144

Open
pinksynth opened this issue Dec 5, 2018 · 3 comments
Open

Double-quotes within HTML attributes break syntax highlighting #144

pinksynth opened this issue Dec 5, 2018 · 3 comments

Comments

@pinksynth
Copy link

pinksynth commented Dec 5, 2018

HTML attributes don't seem to recognize Elixir interpolation, causing them to catch double-quotes within Elixir and close attributes early. See attached image for explanation.

image

Example text:

  <img src="<%= Routes.static_path(@conn, "/images/phoenix.png") %>" alt="Phoenix Framework Logo"/>

Theme used: Atom One Dark

@andreolvr
Copy link

I'm using ElixirLS, and since it's based on this extension, i'm facing the same problem. Using ElixirLS and this extension together seems to solve the problem, but i can't make Emmet work when using this other extension. Do you have any updates on this?

@chaoslogick
Copy link

@andreolvr

make Emmet work when using this other extension

Had this issue, came across this thread. The double quote situation is fixed using the two extensions as you suggested. My Emmet is working however, and I believe it is because I added "HTML (EEx)": "html", to emmet.includeLanguages in settings.json. I can't recall where, but I had read somewhere that there was some change in EEx (the second capital letter is important?) and this is how it needed to be added to Emmet. I'm sure someone has deeper insight to this.

@jamilabreu
Copy link

Seeing the same - @fr1zle, any idea what might be causing it?

Screenshot 2020-03-08 23 29 03

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

4 participants