-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add support for styled-components syntax highlighting #1714
Closed
Commits on Jan 23, 2019
-
Add support for styled-components syntax highlighting
[styled-components](https://github.com/styled-components/styled-components) is a widely used CSS-in-JS library. It lets users write their CSS in JavaScript as CSS strings. For example: ``` const Button = styled.button` color: blue; background: red; ` ``` This PR adds support for highlighting the styled-components template strings as CSS. We have been running this exact code [on the styled-components website for almost two years](https://github.com/styled-components/styled-components-website/blob/bbfcb0d21aaec9e8202609a67e7bba5278042056/utils/prismTemplateString.js) and it has worked perfectly. I have added tests for the feature and am willing to maintain this going forward.
Max Stoiber committedJan 23, 2019 Configuration menu - View commit details
-
Copy full SHA for d8c9dc7 - Browse repository at this point
Copy the full SHA d8c9dc7View commit details
Commits on Jan 24, 2019
-
Max Stoiber committed
Jan 24, 2019 Configuration menu - View commit details
-
Copy full SHA for 88577db - Browse repository at this point
Copy the full SHA 88577dbView commit details -
Max Stoiber committed
Jan 24, 2019 Configuration menu - View commit details
-
Copy full SHA for 8604cb7 - Browse repository at this point
Copy the full SHA 8604cb7View commit details -
Do not modify string regex for styled-components compatibility
Max Stoiber committedJan 24, 2019 Configuration menu - View commit details
-
Copy full SHA for 16dd092 - Browse repository at this point
Copy the full SHA 16dd092View commit details -
Add peerDep from javascript to css
Max Stoiber committedJan 24, 2019 Configuration menu - View commit details
-
Copy full SHA for a512962 - Browse repository at this point
Copy the full SHA a512962View commit details -
Max Stoiber committed
Jan 24, 2019 Configuration menu - View commit details
-
Copy full SHA for 49e6801 - Browse repository at this point
Copy the full SHA 49e6801View commit details -
Use minimal regexp for styled-components matching
Max Stoiber committedJan 24, 2019 Configuration menu - View commit details
-
Copy full SHA for 4ae2565 - Browse repository at this point
Copy the full SHA 4ae2565View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d3968c - Browse repository at this point
Copy the full SHA 0d3968cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b5462e - Browse repository at this point
Copy the full SHA 1b5462eView commit details
Commits on Jan 26, 2019
-
Merge pull request #1 from RunDevelopment/js-styles
Added `createTemplate`
Configuration menu - View commit details
-
Copy full SHA for 0b0f603 - Browse repository at this point
Copy the full SHA 0b0f603View commit details
Commits on Mar 11, 2019
-
Configuration menu - View commit details
-
Copy full SHA for e29d735 - Browse repository at this point
Copy the full SHA e29d735View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.