Styled-jsx: Sublime Text syntax highlight

Created on 18 Apr 2017  路  8Comments  路  Source: vercel/styled-jsx

Are there plans to support Sublime Text syntax highlight?
maybe ride on the babel plugin like styled-components did?

enhancement help wanted

Most helpful comment

Sure @giuseppeg. I'll give it a try

All 8 comments

@maticrivo that would be cool. Would you like to give it a stab?

Sure @giuseppeg. I'll give it a try

@maticrivo What were your experiences?

SublimeBabel is hard.. i couldn't make it to work, I'm currently working without syntax highlighting :(
I haven't closed this so if anyone wants to give it a go he is more then welcome

This would be awesome. Mostly because styled-jsx is silent when an error occurs.

For the moment, as all of my styles are in separate files and they are named the same, I'm using ApplySyntax with this configuration:

{
  "syntax": "CSS/CSS",
  "rules": [
    {
      "file_path": ".*(\\\\|/)style(s).js$"
    }
  ]
}

It's not great as it breaks when you have a variable inside a the template literal, but it's something.

closing for inactivity

Hard to believe there is still not a package available.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

in-in picture in-in  路  4Comments

corysimmons picture corysimmons  路  4Comments

TonyHYK picture TonyHYK  路  4Comments

straxico picture straxico  路  4Comments

adamyonk picture adamyonk  路  3Comments