textmate / html.tmbundle

TextMate support for HTML
76 stars 95 forks source link

Include CSS grammar in style attributes #88

Open KamasamaK opened 6 years ago

KamasamaK commented 6 years ago

Would it cause any issues to add source.css to the value of style attributes?

infininight commented 6 years ago

Currently this isn't really possible due to how the CSS grammar is structured. The HTML grammar is already structured to be ready for when the CSS grammar is restructured/redone though.

revelt commented 6 years ago

hi all, Is there a ticket issued for CSS grammar to be re-structured?

If so, please link here. If not, let's create one (I'm not sure where exactly) so people can see it's got a chance of being worked on.

Currently, looking at this ticket, I don't see what's "the next step", is the issue moving. It seems VSCode's HTML inline CSS highlighting depends on this issue.

jamilabreu commented 5 years ago

@infininight i hope this is the right place to ask! I'm looking into this issue, any guidance at all would be appreciated:

https://github.com/dracula/visual-studio-code/issues/86#issuecomment-495434222

Image: https://user-images.githubusercontent.com/33581079/44486178-3baf1500-a629-11e8-80c6-5734c1858faa.png

jeanes1 commented 4 years ago

As HTML email developers, we rely heavily on inline CSS syntax highlighting. VS not having this is the only reason I haven't switched over. Here's a screenshot illustrating the difference in having CSS inline syntax highlighting or not - https://i.imgur.com/h5EkNXE.png

Does anyone think this will ever be fixed/implemented?

artyil commented 4 years ago

Is it going to be supported? What is the implementation complexity here? I can try to help

sky47sky commented 4 years ago

Can this be looked into? This is one of the last things I'm trying to customize after switching to VSCode.

Sahaya-Noel commented 4 years ago

Yeah Please try to implement this. This is the only feature that makes me switch to sublime text and back to VSCode. Thanks in advance!!

jeanes1 commented 3 years ago

Anyone know of any workarounds?

MarcosBaungartner commented 3 years ago

Syntax highlighting for inline CSS in HTML is very important! It would be great if VSCode developers could implement this feature.

dropfr4me commented 3 years ago

+1

nxcco commented 2 years ago

Is this still active or has it been forgotten?

justintroy commented 2 years ago

+1

mark3apps commented 2 years ago

+1

ItsCubeTime commented 2 years ago

+1

Theres an extension that enables this btw: https://marketplace.visualstudio.com/items?itemName=outofsync42.inline-css-color (albeit its a little tedious to setup as it requires you to manually modify your settings.json)

predaytor commented 2 years ago

+1

CiberNin commented 1 month ago

I'm certain that interest for this feature remains strong.

rusproject commented 1 week ago

+1. Take my vote for this feature. This is especially an issue when trying to switch from Sublime to VSCode to refactor older projects with a lot of inline CSS.