html.tmbundle icon indicating copy to clipboard operation
html.tmbundle copied to clipboard

Include CSS grammar in style attributes

Open KamasamaK opened this issue 6 years ago • 16 comments

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

KamasamaK avatar Jul 13 '18 15:07 KamasamaK

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.

infininight avatar Jul 14 '18 10:07 infininight

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.

revelt avatar Sep 10 '18 10:09 revelt

@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

jamilabreu avatar May 24 '19 02:05 jamilabreu

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?

jeanes1 avatar Nov 08 '19 16:11 jeanes1

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

artyil avatar Dec 03 '19 13:12 artyil

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

sky47sky avatar Dec 06 '19 04:12 sky47sky

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!!

Sahaya-Noel avatar Oct 16 '20 10:10 Sahaya-Noel

Anyone know of any workarounds?

jeanes1 avatar Feb 03 '21 04:02 jeanes1

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

MarcosBaungartner avatar Mar 10 '21 00:03 MarcosBaungartner

+1

dropfr4me avatar May 25 '21 16:05 dropfr4me

Is this still active or has it been forgotten?

nxcco avatar Nov 26 '21 13:11 nxcco

+1

justintroy avatar Feb 12 '22 07:02 justintroy

+1

mark3apps avatar Apr 23 '22 19:04 mark3apps

+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)

ItsCubeTime avatar Aug 18 '22 14:08 ItsCubeTime

+1

predaytor avatar Aug 31 '22 10:08 predaytor

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

CiberNin avatar Sep 10 '24 23:09 CiberNin