Graphql-tools: Query syntax highlighting support in common editors

Created on 5 Sep 2016  路  8Comments  路  Source: ardatan/graphql-tools

gql queries are most frequently written inline inside .js files. However syntax highlighting doesn't work in these cases. (Only tested atom). Any suggestion for how to get syntax highlighting working with common editors?

image

Most helpful comment

Here's an example of it working with language-babel.
image

All 8 comments

https://github.com/atom/language-javascript/pull/429 Would be nice to be able to add something for https://github.com/gandm/language-babel in case anybody is familiar with it.

Hey currently we don't have any projects about this, @asiandrummer might be working on something though.

I added it to language-javascript already. And for language babel it's been added to 2.37.0 by gandm. https://github.com/gandm/language-babel/issues/242

Here's an example of it working with language-babel.
image

Wow, thank you for doing this! Can you open an issue on the docs repo so that we can list this tool there?

We now have 3 docs and I'm not sure where's the right place to put this. https://github.com/apollostack/core-docs/blob/master/source/index.md? somewhere else?

Yeah, we're working on making that clearer - at the moment we just wanted to ship the new site so that we could iterate on it.

I'd say add it to the front page here for now: http://dev.apollodata.com/tools/

I'm thinking that site will be some of our tools, and some community stuff as well that works with Apollo.

(I'm planning on adding https://github.com/apollostack/eslint-plugin-graphql there as well, so it will fit nicely)

Was this page helpful?
0 / 5 - 0 ratings