vscode-elixir icon indicating copy to clipboard operation
vscode-elixir copied to clipboard

Double-quotes within HTML attributes break syntax highlighting

Open pinksynth opened this issue 7 years ago • 3 comments

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

pinksynth avatar Dec 05 '18 16:12 pinksynth

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?

andreolvr avatar Jan 17 '19 20:01 andreolvr

@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.

chaoslogick avatar Nov 11 '19 02:11 chaoslogick

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

Screenshot 2020-03-08 23 29 03

jamilabreu avatar Mar 09 '20 03:03 jamilabreu