Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

I cannot for the life of me figure out how to use the syntax highlighting for python. It is not in the documentation and I've taken a look at the python grammar file here but all I've gotten is that """#graphql will enable the highlighting BUT that is also inserting #graphql into my query string.

You must be logged in to vote

Replies: 2 comments

Comment options

Hello @jkbrookes2 ! I wrote some tests for this last night and plan to be updating the readme

https://github.com/graphql/graphiql/blob/main/packages/vscode-graphql-syntax/tests/__fixtures__/test.py

I wish i had a better answer for you, but these delimiters are based on what the python clients are using. If you'd like to propose another syntax, please suggest one!

You must be logged in to vote
0 replies
Comment options

I'm also unable to make it works inside python file. No problem for .graphql file. No logs from langage server

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.