{"id":18723193,"url":"https://github.com/jf990/highlightjs-qml","last_synced_at":"2026-04-24T22:32:31.580Z","repository":{"id":55454208,"uuid":"206852777","full_name":"jf990/highlightjs-qml","owner":"jf990","description":"highlight.js repo for Qt QML declarative language","archived":false,"fork":false,"pushed_at":"2026-03-05T18:39:38.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-05T21:48:37.979Z","etag":null,"topics":["highlight-qml","highlightjs","qml","qt","webpage"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jf990.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}},"created_at":"2019-09-06T18:31:54.000Z","updated_at":"2026-03-05T18:39:35.000Z","dependencies_parsed_at":"2022-08-15T00:40:15.178Z","dependency_job_id":null,"html_url":"https://github.com/jf990/highlightjs-qml","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jf990/highlightjs-qml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jf990%2Fhighlightjs-qml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jf990%2Fhighlightjs-qml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jf990%2Fhighlightjs-qml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jf990%2Fhighlightjs-qml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jf990","download_url":"https://codeload.github.com/jf990/highlightjs-qml/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jf990%2Fhighlightjs-qml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32243260,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["highlight-qml","highlightjs","qml","qt","webpage"],"created_at":"2024-11-07T13:48:00.252Z","updated_at":"2026-04-24T22:32:31.565Z","avatar_url":"https://github.com/jf990.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# highlightjs-qml\n\n[![License](https://badgen.net/badge/license/Apache-2.0/blue)](https://github.com/jf990/highlightjs-qml/blob/master/LICENSE)\n[![Language](https://badgen.net/badge/language/QML-5.13/purple)](https://doc.qt.io/qt-5/qmlreference.html)\n\nhighlight.js language definition for Qt Company QML declarative language. See [Qt Documentation](https://doc.qt.io/qt-5/qmlreference.html) for language details. See https://highlightjs.org/ for more information about highlight.js.\n\n## Usage\n\nFollow instructions at [highlightjs](https://highlightjs.org/) to learn how to include the library and CSS. Then include `qml` as a registered language.\n\nMark the code you want to highlight with the `qml` class:\n\n```html\n\u003cpre\u003e\u003ccode class=\"qml\"\u003e...\u003c/code\u003e\u003c/pre\u003e\n```\n\nor use JavaScript to dynamically highlight text:\n\n```javascript\nhljs.registerLanguage('qml', window.hljsDefineQML);\nvar highlighted = hljs.highlightAuto(text, [\"qml\"]);\n```\n\n### Webpage\n\nInclude `highlight.js` distribution on your webpage, get the standard highlight.js distribution and then add the QML language highlighter from this repo:\n\n```html\n\u003clink rel=\"stylesheet\" href=\"/path/to/css/default.css\"\u003e\n\u003cscript src=\"/path/to/highlight.js/highlight.pack.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"/path/to/highlightjs-qml/qml.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n    hljs.registerLanguage(\"qml\", window.hljsDefineQML);\n    hljs.initHighlightingOnLoad();\n\u003c/script\u003e\n```\n\n### webpack / rollup / browserify / node\n\n```javascript\nconst hljs = require('highlightjs');\nconst hljsQML = require('highlightjs-qml');\n\nhljsQML(hljs);\nhljs.initHighlightingOnLoad();\n```\n\n## Contributing\n\nDownload this repo and install the dependencies:\n\n```bash\nnpm install\n```\n\nUpdate `qml.js`. Be sure to update the test data `input.txt` to include a test for your changes, or create a new test in `qml-spec.js`. The tests must pass!\n\n```bash\nnpm test\n```\n\nIssue a pull request.\n\n## License\n\nLicensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjf990%2Fhighlightjs-qml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjf990%2Fhighlightjs-qml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjf990%2Fhighlightjs-qml/lists"}