{"id":18718513,"url":"https://github.com/highlightjs/highlightjs-cypher","last_synced_at":"2025-07-02T10:32:11.680Z","repository":{"id":36734840,"uuid":"171108931","full_name":"highlightjs/highlightjs-cypher","owner":"highlightjs","description":"Cypher language syntax highlighting plugin for highlight.js","archived":false,"fork":false,"pushed_at":"2025-03-28T02:09:07.000Z","size":94,"stargazers_count":11,"open_issues_count":2,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-15T20:41:55.177Z","etag":null,"topics":["cypher","highlight","highlight-js","highlightjs","neo4j"],"latest_commit_sha":null,"homepage":"https://highlight.js","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/highlightjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-02-17T10:30:17.000Z","updated_at":"2025-06-12T20:37:40.000Z","dependencies_parsed_at":"2025-04-12T14:03:07.751Z","dependency_job_id":"57cba1da-16f6-4a86-9e70-907ce7fbb734","html_url":"https://github.com/highlightjs/highlightjs-cypher","commit_stats":{"total_commits":40,"total_committers":4,"mean_commits":10.0,"dds":0.375,"last_synced_commit":"59c705e00c259f31b34dc37531284c18867896a1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/highlightjs/highlightjs-cypher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-cypher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-cypher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-cypher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-cypher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/highlightjs","download_url":"https://codeload.github.com/highlightjs/highlightjs-cypher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-cypher/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263120678,"owners_count":23416869,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cypher","highlight","highlight-js","highlightjs","neo4j"],"created_at":"2024-11-07T13:21:41.915Z","updated_at":"2025-07-02T10:32:11.655Z","avatar_url":"https://github.com/highlightjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![logo](logo.svg)\n\n# Cypher - a language grammar for [highlight.js](https://highlightjs.org/)\n\n![version](https://badgen.net/npm/v/highlightjs-cypher) ![license](https://badgen.net/badge/license/CC0%201.0/blue)\n![install size](https://badgen.net/packagephobia/install/highlightjs-cypher) ![minified size](https://badgen.net/bundlephobia/min/highlightjs-cypher)\n[![Build Status](https://travis-ci.com/highlightjs/highlightjs-cypher.svg?branch=master)](https://travis-ci.com/highlightjs/highlightjs-cypher)\n\nCypher is a declarative graph query language created by [Neo4j](https://neo4j.com/) for the graph database management system.\n\n## Usage\n\nSimply include the Highlight.js library in your webpage or Node app, then load this module.\n\n### Static website or simple usage\n\nSimply load the module after loading Highlight.js. You'll use the minified version found in the `dist` directory. This module is just a CDN build of the language, so it will register itself as the Javascript is loaded.\n\n```html\n\u003cscript type=\"text/javascript\" src=\"/path/to/highlight.min.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" charset=\"UTF-8\"\n  src=\"/path/to/highlightjs-cypher/dist/cypher.min.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\"\u003e\n  hljs.highlightAll();\n\u003c/script\u003e\n```\n\n### Using directly from the UNPKG CDN\n\n```html\n\u003cscript type=\"text/javascript\"\n  src=\"https://unpkg.com/highlightjs-cypher/dist/cypher.min.js\"\u003e\u003c/script\u003e\n```\n\n- More info: \u003chttps://unpkg.com\u003e\n\n### With Node or another build system\n\nIf you're using Node / Webpack / Rollup / Browserify, etc, simply require the language module, then register it with Highlight.js.\n\n```javascript\nvar hljs = require('highlightjs');\nvar hljsCypher = require('highlightjs-cypher');\n\nhljs.registerLanguage(\"cypher\", hljsCypher);\nhljs.highlightAll();\n```\n\n### React\n\nYou need to import both Highlight.js and third-party language like Cypher:\n\n```js\nimport React, {Component} from 'react'\nimport 'highlight.js/scss/darcula.scss' # your favourite theme\nimport cypher from './cypher'\nimport hljs from 'highlight.js'\nhljs.registerLanguage('cypher', cypher);\n\nclass Highlighter extends Component\n{\n  constructor(props)\n  {\n    super(props);\n    hljs.highlightAll();\n  }\n\n  render()\n  {\n    let {children} = this.props;\n    return\n    {\n      \u003cpre ref={(node) =\u003e this.node = node}\u003e\n        \u003ccode className=\"cypher\"\u003e\n          {children}\n        \u003c/code\u003e\n      \u003c/pre\u003e\n    }\n  }\n}\n\nexport default Highlighter;\n```\n\n## License\n\nHighlight.js is released under the CC0 1.0 License. See [LICENSE][1] file\nfor details.\n\n### Author\n\nJohannes Wienke \u003clanguitar@semipol.de\u003e\n\n### Maintainer\n\nGustavo Reis \u003cgusbemacbe@gmail.com\u003e\n\n## Links\n\n- The official site for the Highlight.js library is \u003chttps://highlightjs.org/\u003e.\n- The Highlight.js GitHub project: \u003chttps://github.com/highlightjs/highlight.js\u003e\n- Learn more about Cypher: \u003chttps://neo4j.com/docs/cypher-manual/current/#cypher-intro\u003e\n\n[1]: https://github.com/highlightjs/highlightjs-cypher/blob/master/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhighlightjs%2Fhighlightjs-cypher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhighlightjs%2Fhighlightjs-cypher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhighlightjs%2Fhighlightjs-cypher/lists"}