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

Add support for styled-components syntax highlighting #1714

Closed
wants to merge 11 commits into from

Commits on Jan 23, 2019

  1. 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 committed Jan 23, 2019
    Configuration menu
    Copy the full SHA
    d8c9dc7 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2019

  1. Use tabs in test

    Max Stoiber committed Jan 24, 2019
    Configuration menu
    Copy the full SHA
    88577db View commit details
    Browse the repository at this point in the history
  2. Use tabs in prism-javascript

    Max Stoiber committed Jan 24, 2019
    Configuration menu
    Copy the full SHA
    8604cb7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    16dd092 View commit details
    Browse the repository at this point in the history
  4. Add peerDep from javascript to css

    Max Stoiber committed Jan 24, 2019
    Configuration menu
    Copy the full SHA
    a512962 View commit details
    Browse the repository at this point in the history
  5. Run gulp

    Max Stoiber committed Jan 24, 2019
    Configuration menu
    Copy the full SHA
    49e6801 View commit details
    Browse the repository at this point in the history
  6. Use minimal regexp for styled-components matching

    Max Stoiber committed Jan 24, 2019
    Configuration menu
    Copy the full SHA
    4ae2565 View commit details
    Browse the repository at this point in the history
  7. Added createTemplate

    RunDevelopment committed Jan 24, 2019
    Configuration menu
    Copy the full SHA
    0d3968c View commit details
    Browse the repository at this point in the history
  8. Adjusted tests

    RunDevelopment committed Jan 24, 2019
    Configuration menu
    Copy the full SHA
    1b5462e View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2019

  1. Merge pull request #1 from RunDevelopment/js-styles

     Added `createTemplate`
    mxstbr authored Jan 26, 2019
    Configuration menu
    Copy the full SHA
    0b0f603 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2019

  1. Resolved conflict

    RunDevelopment committed Mar 11, 2019
    Configuration menu
    Copy the full SHA
    e29d735 View commit details
    Browse the repository at this point in the history