Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add syntax highlighting in export code for "json", "cypher" and "graphql" #35

Open
shivam-880 opened this issue Jun 28, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@shivam-880
Copy link

Proposal

Add syntax highlighting in export code for "json", "cypher" and "graphql". This will make the code readable.

Example:

type Movie {
    movieId: ID! 
    title: String!
    runtime: Int
    adult: Boolean!
    avgRating: Float
    numVotes: Int
    genres: [Genre] @relationship(type: "IN_GENRE", direction: OUT)
    releasedInYear: [Year] @relationship(type: "RELEASED_IN", direction: OUT)
    selves: [Person] @relationship(type: "SELF_IN", direction: IN)
    directors: [Person] @relationship(type: "DIRECTOR_IN", direction: IN)
    writers: [Person] @relationship(type: "WRITER_IN", direction: IN)
    actors: [Person] @relationship(type: "ACTOR_IN", direction: IN)
    actress: [Person] @relationship(type: "ACTRESS_IN", direction: IN)
    composers: [Person] @relationship(type: "COMPOSER_IN", direction: IN)
    productionDesigners: [Person] @relationship(type: "PRODUCTION_DESIGNER", direction: IN)
    editors: [Person] @relationship(type: "EDITOR_IN", direction: IN)
    cinematographers: [Person] @relationship(type: "CINEMATOGRAPHER_IN", direction: IN)
    archiveFootages: [Person] @relationship(type: "ARCHIVE_FOOTAGE_IN", direction: IN)
    archiveSounds: [Person] @relationship(type: "ARCHIVE_SOUND_IN", direction: IN)
}

Instead of:

type Movie {
    movieId: ID! 
    title: String!
    runtime: Int
    adult: Boolean!
    avgRating: Float
    numVotes: Int
    genres: [Genre] @relationship(type: "IN_GENRE", direction: OUT)
    releasedInYear: [Year] @relationship(type: "RELEASED_IN", direction: OUT)
    selves: [Person] @relationship(type: "SELF_IN", direction: IN)
    directors: [Person] @relationship(type: "DIRECTOR_IN", direction: IN)
    writers: [Person] @relationship(type: "WRITER_IN", direction: IN)
    actors: [Person] @relationship(type: "ACTOR_IN", direction: IN)
    actress: [Person] @relationship(type: "ACTRESS_IN", direction: IN)
    composers: [Person] @relationship(type: "COMPOSER_IN", direction: IN)
    productionDesigners: [Person] @relationship(type: "PRODUCTION_DESIGNER", direction: IN)
    editors: [Person] @relationship(type: "EDITOR_IN", direction: IN)
    cinematographers: [Person] @relationship(type: "CINEMATOGRAPHER_IN", direction: IN)
    archiveFootages: [Person] @relationship(type: "ARCHIVE_FOOTAGE_IN", direction: IN)
    archiveSounds: [Person] @relationship(type: "ARCHIVE_SOUND_IN", direction: IN)
}

Note:

Probably you could use https://highlightjs.org/ for this purpose.

@apcj
Copy link
Contributor

apcj commented Jul 4, 2021

Hi @iamsmkr, will look into this at some point. Thanks for the suggestion.

@apcj apcj added the enhancement New feature or request label Jul 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants