GraphQL Syntax SupportAdds full GraphQL syntax highlighting and language support such as bracket matching.
You'll want to install this if you do not use Embedded Language Usage### Javascript & TypescriptThe following delimiters are accepted for syntax highlighting. If you are using any of these patterns and they do not work, please open an issue! Template Literal Expressions
you can use these template tag literal expressions anywhere you like of course
and in typescript, template tag expressions with type arguments
Function Expressionsas well as normal function expressions with template literals
there is a bug with function expressions with type arguments like these that we need to fix:
Note, inline Comment-Delimited patterns
For full autocompletion, validation and other features, you can install
Markdownbacktick code blocks
embedded graphql in js & ts codeblockssimple js/ts
ScalaUsing a
Using a comment-delimited pattern:
Other languagesWe actually support other languages than this! just need to extend this readme even further! 🥵 ContributingFeel free to open a PR to fix, enhance any language support, or even add new languages 😍 see: Usage NoteWe would love for the other graphql extension authors to freely use this syntax
extension as well! Even if your extension is designed to replace
LicenseMIT License Copyright 2022 GraphQL Contributors |