morajabi / styled-media-query

💅💍 Better media queries for styled-component

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Syntax highlight for Webstorm?

SilencerWeb opened this issue · comments

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

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.

commented

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