Skip to content

Instantly share code, notes, and snippets.

@flekschas
Last active April 11, 2023 03:34
Show Gist options
  • Save flekschas/b7c712a888aee864adc3 to your computer and use it in GitHub Desktop.
Save flekschas/b7c712a888aee864adc3 to your computer and use it in GitHub Desktop.
Add Syntax Highlighting for Cypher in Sublime Text 3

Credit goes to

  1. Jan Klaas Kollhof (and Fred Benenson)
  2. Chris Skardon

Installation

Since the original plugin has been developed for Sublime Text 2 we have to install it manually.

  1. Go to https://github.com/fredbenenson/sublime-cypher, download ZIP of the repo, extract the content and rename the folder to ‘Cypher’. You can download the original repo from https://github.com/kollhof/sublime-cypher but Fred Benenson introduced a handy fix for UTF-8 data, which hasn't integrated at the point of this writing.

  2. Open Sublime Text 3, and go to ‘Browse Packages’ (CTRL + COMMAND + P then type ‘browse’ and hit ENTER)

  3. In the file browser's window, move the previously downloaded folder from Step 1 into here.

  4. Restart Sublime Text 3.

  5. Open a file containing some Cypher queries and switch to Cypher mode (CTRL + COMMAND + P then type ‘Cypher’ and hit ENTER)

@BSCowboy
Copy link

Thanks for creating the installation.

@radcliff
Copy link

🥇

@chaonan99
Copy link

You may still need to modify Cypher.py if you are using Python3. I've fixed this compatibility problem in my fork.

@gsumar
Copy link

gsumar commented May 8, 2018

Nice

Copy link

ghost commented Jun 6, 2018

Let say you are in PHP syntax mode. Easily switch to Cypher by clicking on the PHP text at the bottom right. You will find a list of language syntaxes to choose from there.

@lovesuper
Copy link

Thank you very much!

@BeardedUncleX
Copy link

fantastic!

@cskardon
Copy link

Hey @flekschas - Just fyi - I've added all the 4.1 keywords and functions in my fork (https://github.com/cskardon/sublime-cypher) based off of @fredbenenson's fork.

@unenuncasabe
Copy link

You are the very best. Thank youuu :)

@oelakad
Copy link

oelakad commented Feb 10, 2023

Thanks much, Helpful

@blizzardwj
Copy link

Why are there few people using the Cypher language? Are there any other alternative languages?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment