{"id":18718528,"url":"https://github.com/highlightjs/highlightjs-solidity","last_synced_at":"2026-03-11T03:32:29.684Z","repository":{"id":34954320,"uuid":"171414198","full_name":"highlightjs/highlightjs-solidity","owner":"highlightjs","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-23T11:59:55.000Z","size":81,"stargazers_count":50,"open_issues_count":8,"forks_count":17,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-09-08T03:46:55.621Z","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":"wtfpl","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,"publiccode":null,"codemeta":null}},"created_at":"2019-02-19T05:56:06.000Z","updated_at":"2025-01-30T07:29:35.000Z","dependencies_parsed_at":"2024-01-23T21:55:22.823Z","dependency_job_id":"e53a9394-e4d8-4b5b-88d2-8e227d000f75","html_url":"https://github.com/highlightjs/highlightjs-solidity","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/highlightjs/highlightjs-solidity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-solidity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-solidity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-solidity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-solidity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/highlightjs","download_url":"https://codeload.github.com/highlightjs/highlightjs-solidity/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhighlightjs-solidity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30369379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"online","status_checked_at":"2026-03-11T02:00:07.027Z","response_time":84,"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:48.548Z","updated_at":"2026-03-11T03:32:29.667Z","avatar_url":"https://github.com/highlightjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"`highlight.js` syntax definition for Solidity.\n\nFor more about highlight.js, see https://highlightjs.org/\n\nFor more about Solidity, see http://docs.soliditylang.org/\n\n### Usage\n\nIf you're not using a build system and just want to embed this in your webpage:\n\n```html\n\u003cscript type=\"text/javascript\" src=\"/path/to/highlight.min.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"/path/to/solidity.min.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"/path/to/yul.min.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\"\u003e\n    hljs.highlightAll();\n\u003c/script\u003e\n```\n\nIf you're using webpack / rollup / browserify / node:\n   \n```javascript\nvar hljs = require('highlightjs');\nvar hljsDefineSolidity = require('highlightjs-solidity');\n\nhljsDefineSolidity(hljs);\nhljs.initHighlightingOnLoad();\n```\n\nDoing this will define both `solidity` and `yul` languages.\n\nIf you want to use this in your webpage, this package uses highlight.js's CDN build system to build its Solidity and Yul grammars.\n\n### Compatibility\n\nThis package is not currently compatible with highlight.js version 11.\n\n### Advanced\n\nThis is a pretty simple package, the only thing you might want to do differently is name the languages something other than `solidity` or `yul`. If you want to do this, simply `import { solidity, yul } from 'highlightjs-solidity';` and do `hljs.registerLanguage('othername1', solidity);` and `hljs.registerLanguage('othername2', yul);`.\n\n### About the author\n\nOriginally authored by [pospi](http://pospi.spadgos.com), currently maintained by \u003cimg src=\"https://www.trufflesuite.com/img/truffle-logomark.svg\" width=\"15\" /\u003e[Truffle](https://www.trufflesuite.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhighlightjs%2Fhighlightjs-solidity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhighlightjs%2Fhighlightjs-solidity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhighlightjs%2Fhighlightjs-solidity/lists"}