2.0.0 • Published 6 months ago

x-syntax v2.0.0

Weekly downloads
16
License
MIT
Repository
github
Last release
6 months ago

x-syntax

Simple passthrough tagged template literal function for getting vscode syntax highlighting. Import the function using a variable name like css or graphql to get highlighting:

import css from 'x-syntax';

const myCss = css`
  body {
    display: none;
  }
`;
import graphql from 'x-syntax';

const query = graphql`
  mutation CreateDownload($data: DownloadInput!) {
    result: createDownload(data: $data) {
      _id
    }
  }
`;