• Stars
    star
    126
  • Rank 284,543 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 7 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

VSCode syntax highlighting for today's JavaScript

vscode-language-babel

Show your support by following me on Twitter @michaelgmcd

JavaScript syntax highlighting for ES201x, React JSX, Flow and GraphQL.

I highly recommend using this syntax highlighting with a theme that supports it.

Screenshot

This project supports:

  • ES201x JavaScript

  • React (including JSX)

  • FlowType

  • Support for GraphQL code highlighting within template strings:

    Relay.QL`This is how Relay Classic uses template strings`;
    graphql`This is how Relay Modern uses template strings`;
    gql`This is how Apollo for GraphQL uses template strings`;
    /* GraphQL */ `For cases where no template tag function is available`;
  • styled-components, emotion CSS inside tagged template strings plus additional highlighting via /* CSS */ comment

Comparison to Sublime Babel

See #1