Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlight for Webstorm? #18

Open
SilencerWeb opened this issue Jul 7, 2019 · 2 comments
Open

Syntax highlight for Webstorm? #18

SilencerWeb opened this issue Jul 7, 2019 · 2 comments
Labels

Comments

@SilencerWeb
Copy link

SilencerWeb commented Jul 7, 2019

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
Copy link
Collaborator

timhagn commented Oct 26, 2019

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
Copy link

Spoki4 commented Mar 22, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants