{"id":13524584,"url":"https://github.com/halo-sigs/plugin-highlightjs","last_synced_at":"2026-02-27T20:03:24.424Z","repository":{"id":116775863,"uuid":"556216832","full_name":"halo-sigs/plugin-highlightjs","owner":"halo-sigs","description":"集成 highlight.js 为文章提供代码块高亮渲染","archived":false,"fork":false,"pushed_at":"2025-03-18T02:40:35.000Z","size":6573,"stargazers_count":9,"open_issues_count":7,"forks_count":8,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-26T09:12:14.678Z","etag":null,"topics":["halo","halo-plugin","highlightjs"],"latest_commit_sha":null,"homepage":"https://halo.run/store/apps/app-sqpgf","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/halo-sigs.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":"2022-10-23T10:39:57.000Z","updated_at":"2025-03-18T02:40:39.000Z","dependencies_parsed_at":"2024-01-13T22:54:54.013Z","dependency_job_id":"dd20b5b5-5143-4889-9bb3-0dd64a6f4fc2","html_url":"https://github.com/halo-sigs/plugin-highlightjs","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":"halo-dev/plugin-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halo-sigs%2Fplugin-highlightjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halo-sigs%2Fplugin-highlightjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halo-sigs%2Fplugin-highlightjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halo-sigs%2Fplugin-highlightjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/halo-sigs","download_url":"https://codeload.github.com/halo-sigs/plugin-highlightjs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248582729,"owners_count":21128438,"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":["halo","halo-plugin","highlightjs"],"created_at":"2024-08-01T06:01:11.442Z","updated_at":"2026-02-27T20:03:24.419Z","avatar_url":"https://github.com/halo-sigs.png","language":"CSS","funding_links":[],"categories":["Halo 2.0"],"sub_categories":["插件"],"readme":"# plugin-highlightjs\n\n主题端的代码块高亮插件，集成了 [highlight.js](https://github.com/highlightjs/highlight.js)。\n\n⚠️ 注意：此插件即将进入维护状态（仅修复问题，不再添加新功能），目前推荐使用功能更加全面的 [Shiki 代码高亮](https://www.halo.run/store/apps/app-kzloktzn)插件。\n\n## 开发环境\n\n```bash\ngit clone git@github.com:halo-sigs/plugin-highlightjs.git\n\n# 或者当你 fork 之后\n\ngit clone git@github.com:{your_github_id}/plugin-highlightjs.git\n```\n\n```bash\ncd path/to/plugin-highlightjs\n```\n\n```bash\n# macOS / Linux\n./gradlew build\n\n# Windows\n./gradlew.bat build\n```\n\n修改 Halo 配置文件：\n\n```yaml\nhalo:\n  plugin:\n    runtime-mode: development\n    classes-directories:\n      - \"build/classes\"\n      - \"build/resources\"\n    lib-directories:\n      - \"libs\"\n    fixedPluginPath:\n      - \"/path/to/plugin-highlightjs\"\n```\n\n## 使用方式\n\n1. 在 [Releases](https://github.com/halo-sigs/plugin-highlightjs/releases) 下载最新的 JAR 文件。\n2. 在 Halo 后台的插件管理上传 JAR 文件进行安装。\n\n\u003e 需要注意的是，首次安装之后，需要进入插件设置页面保存一次设置，才能正常使用。\n\n## 主题适配\n\n此插件无需主题主动适配即可使用，其原理就是将 `highlight.js` 所需的依赖引入和初始化代码都自动插入到了内容页面上。因此，主题开发者无需再针对代码高亮进行适配开发，如果有特殊的需求，建议共同完善此插件。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalo-sigs%2Fplugin-highlightjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhalo-sigs%2Fplugin-highlightjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalo-sigs%2Fplugin-highlightjs/lists"}