{"id":18718507,"url":"https://github.com/highlightjs/highlightjs-phix","last_synced_at":"2025-10-27T08:46:55.527Z","repository":{"id":174550876,"uuid":"646691875","full_name":"highlightjs/highlightjs-phix","owner":"highlightjs","description":"Highlight.js Grammar for Phix","archived":false,"fork":false,"pushed_at":"2023-11-11T02:26:55.000Z","size":139,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-19T14:04:38.049Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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":null,"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}},"created_at":"2023-05-29T05:58:16.000Z","updated_at":"2023-06-12T01:40:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"ca4e23c5-ea17-4684-96f7-08489e50fb26","html_url":"https://github.com/highlightjs/highlightjs-phix","commit_stats":null,"previous_names":["highlightjs/highlightjs-phix"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/highlightjs/highlightjs-phix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-phix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-phix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-phix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-phix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/highlightjs","download_url":"https://codeload.github.com/highlightjs/highlightjs-phix/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-phix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281241864,"owners_count":26467372,"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","status":"online","status_checked_at":"2025-10-27T02:00:05.855Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-07T13:21:40.150Z","updated_at":"2025-10-27T08:46:55.498Z","avatar_url":"https://github.com/highlightjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![logo](ok.ico)\n\n# Phix - a language grammar for [highlight.js](https://highlightjs.org/)\n\n\u003c!--\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--\u003e\n\nPhix is a hybrid interpreted/compiled general purpose programming language.\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-phix/dist/phix.min.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\"\u003e\n  hljs.registerLanguage(\"phix\",hljsDefinePhix);\n  hljs.highlightAll();\n\u003c/script\u003e\n```\n\n\u003c!--\n### Using directly from the UNPKG CDN (???)\n\n```html\n\u003cscript type=\"text/javascript\"\n  src=\"https://unpkg.com/highlightjs-phix/dist/phix.min.js\"\u003e\u003c/script\u003e\n```\n\n- More info: \u003chttps://unpkg.com\u003e\n\n--\u003e\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 hljsPhix = require('highlightjs-phix');\n\nhljs.registerLanguage(\"phix\", hljsPhix);\nhljs.highlightAll();\n```\n\u003c!--\n### React (???)\n\nYou need to import both Highlight.js and third-party language like Phix:\n\n```js\nimport React, {Component} from 'react'\nimport 'highlight.js/scss/darcula.scss' # your favourite theme\nimport phix from './phix'\nimport hljs from 'highlight.js'\nhljs.registerLanguage('phix', phix);\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=\"phix\"\u003e\n          {children}\n        \u003c/code\u003e\n      \u003c/pre\u003e\n    }\n  }\n}\n\nexport default Highlighter;\n```\n--\u003e\n\n## License\n\nHighlight.js is released under the CC0 1.0 License. See [LICENSE][1] file\nfor details.\n\n### Author\n\nPete Lomax \u003cpetelomax@ymail.com\u003e\n\n### Maintainer\n\nPete Lomax \u003cpetelomax@ymail.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 Phix: \u003chttp://phix.x10.mx\u003e\n\n[1]: https://github.com/highlightjs/highlightjs-phix/blob/master/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhighlightjs%2Fhighlightjs-phix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhighlightjs%2Fhighlightjs-phix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhighlightjs%2Fhighlightjs-phix/lists"}