-
-
Notifications
You must be signed in to change notification settings - Fork 170
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
No syntax highlighting with styled-components #333
Comments
I confirm. No syntax highlight for styled-components. |
Can also confirm unfortunately :[ wasn't this merged with #289 ?? |
May be related to #320 |
any progress on this? |
let me share a workaround. It isn't pretty but it works. So @Zip753 you're right with #320. so what needs to be done is to make a new tag. until then you can DIY.
then open a terminal or git shell and go to the sublime package folder: most likely sublime would picked up the package but it wouldn't hurt to restart sublime. After that To set it as the default syntax for a particular extension:
|
thank you @Marinolinderhof it's much better! I still have some issue for "nested styles" (L33 to L51): |
@tchret
let me know if that works |
Yeah it would really be great if the latest version could be published soon? Last publish was in January. |
is there a manual method to download the latest babel-sublime repo and install it on sublime instead of package control? |
@philipbordallo Tried that, not working. Added |
Ok, my fault. I didn't install the plugin from the added repo. Steps:
Styled Components - working! 🎉 |
The step before works with Also, Emmet doesn't work within styles. |
Try https://github.com/borela/naomi it supports styled components, emmet for JSX and it also supports many stage 0 features. |
@borela Thanks! That works great. |
Thanks @borela ❤️️ |
thanks @borela , Naomi rocks! |
For others coming across this, using Naomi as @borela suggests is a drastic change and not without significant issues of its own (e.g., using styled components with Naomi interferes with prettier, causing it to attempt to validate a file as CSS, and prevents Emmet from working properly in most circumstances). |
Thanks for the suggestions @philipbordallo and @selrond - I installed from the repo and it doesn't work well for me: Might be time to switch to VS Code like I've been telling myself to do for the last few years 😛 |
any updates? |
I switched to this: https://github.com/Thom1729/Sublime-JS-Custom. |
This should be fixed in v10.0.0-beta.2. See #379 for more information on the new release. Please report any problems with v10 in a new issue. |
Hi,
I understood babel-sublime could work with
styled-components
, I removed/re-installed the package but I've always this:🔥 👀
The text was updated successfully, but these errors were encountered: