x-syntax
v2.0.0
Published
passthrough tagged template literal for getting vscode syntax highlighting
Downloads
25
Readme
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
}
}
`;