{"id":16985144,"url":"https://github.com/jecolon/discourse-highlightjs-zig","last_synced_at":"2026-03-12T00:35:14.420Z","repository":{"id":175866968,"uuid":"654587906","full_name":"jecolon/discourse-highlightjs-zig","owner":"jecolon","description":"Discourse theme component to add Highlight.js syntax highlighting for Zig.","archived":false,"fork":false,"pushed_at":"2024-06-20T18:36:29.000Z","size":23,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T19:06:51.708Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jecolon.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":"2023-06-16T13:08:09.000Z","updated_at":"2024-08-09T07:40:00.000Z","dependencies_parsed_at":"2024-01-27T21:33:50.390Z","dependency_job_id":"d6520bda-015c-4d71-99ab-a9590dae11ec","html_url":"https://github.com/jecolon/discourse-highlightjs-zig","commit_stats":null,"previous_names":["jecolon/discourse-highlightjs-zig"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jecolon/discourse-highlightjs-zig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jecolon%2Fdiscourse-highlightjs-zig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jecolon%2Fdiscourse-highlightjs-zig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jecolon%2Fdiscourse-highlightjs-zig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jecolon%2Fdiscourse-highlightjs-zig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jecolon","download_url":"https://codeload.github.com/jecolon/discourse-highlightjs-zig/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jecolon%2Fdiscourse-highlightjs-zig/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30408588,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T22:36:59.286Z","status":"ssl_error","status_checked_at":"2026-03-11T22:36:57.544Z","response_time":84,"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":[],"created_at":"2024-10-14T02:42:44.916Z","updated_at":"2026-03-12T00:35:14.387Z","avatar_url":"https://github.com/jecolon.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discourse Highlight.js Zig\n\nThis Discourse theme component adds syntax highlighting for the `zig` programming language.\n\n## Installation\n\n1. Add a \"remote\" theme component in Discourse admin console,\nuse `https://github.com/jecolon/discourse-highlightjs-zig` repository URL.\n\n2. Add `zig` to the `highlighted languages` list in Discourse Settings.\n\n\n## How it works\n\nDiscourse uses Highlight.js library to highlight code syntax.\n\nNote that Discourse does not use the latest version of Highlight.js. To check the hljs version being used by your \nDiscourse instance, open your Discourse website, go to the developer console, and type: `hljs.versionString`.\n\nThis means the online documentation of Highlight.js might not work for you, so you will need to choose the right \nrelease tag in GitHub and navigate to the `/docs`.\n\n## Develop and test locally\n\nWhile developing locally, edit `function zig_language_definition()` in file `_dev/shared.js`.\n\nOpen `_dev/test-syntax-highlight.html` in your browser to preview highlighted `zig` code. It is also where you add more \nsample `zig` code for the preview.\n\nThis file is ignored by Discourse and is only used to preview syntax highlighting locally before pushing the new version.\n\nOnce done, copy the `zig_language_definition()` language definition function over to `common/head_tag.html`, which is \nthe file loaded by Discourse.\n\n**Note**. When updating the version of Highlight.js, you also need to update the version referenced by the `\u003cscript\u003e` tag:\n\n`\u003cscript type=\"text/javascript\" src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/highlight.min.js\"\u003e\u003c/script\u003e`\n\n## CSS Styles\n\nSyntax highlighting styles are defined in `common/common.scss`. Note that even though it will be SASS-compiled by \nDiscourse when the theme is installed, we don't use any of the SASS features in it because we want it to work in our \nlocal preview file. In fact, we load it as a `css` file in there, so it's not compiled.\n\nPlease keep this in mind when adding more styles.  We want our local develop preview file to keep functioning.\n\n## Authors\n\nAfter contributing, please don't forget to add yourself to the list:\n\n* [Jose Colon](https://github.com/jecolon)\n* Based on the excellent work by Anton Andriievskyi at https://github.com/Jai-Community/discourse-highlightjs-jai\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjecolon%2Fdiscourse-highlightjs-zig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjecolon%2Fdiscourse-highlightjs-zig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjecolon%2Fdiscourse-highlightjs-zig/lists"}