morajabi / styled-media-query

💅💍 Better media queries for styled-component
MIT License
1.32k stars 53 forks source link

Syntax highlight for Webstorm? #18

Open SilencerWeb opened 5 years ago

SilencerWeb commented 5 years ago

Any ideas about how to "teach" Webstorm to highlight syntax correctly inside the media query?

Right now it looks like this:

image

I know about the hack with adding css, but maybe there is something better?

image

timhagn commented 4 years ago

Hi @SilencerWeb,

I tried to go at this problem with #20, but sadly the highlighting plugin in IntelliJ / Webstorm only seems to interact with css directly exported from styled-components(/native) : (. So while I'm completely with you, syntax highlighting really would be great, I don't see a way for us to make this possible atm (without rewriting the plugins for the Jetbrains products ; ).

Best,

Tim.

EDIT: Just marked this as invalid cause of this reason.

Spoki4 commented 4 years ago

You can use styled-components plugin and add additional template tag prefixes in plugin settings image image image