{"id":15394306,"url":"https://github.com/xyproto/splash","last_synced_at":"2025-04-14T10:33:19.109Z","repository":{"id":57488271,"uuid":"127950250","full_name":"xyproto/splash","owner":"xyproto","description":":ocean: Syntax highlight code embedded in HTML with a splash of color. Also includes the auto-updated Chroma style gallery.","archived":false,"fork":false,"pushed_at":"2024-05-23T00:44:43.000Z","size":5820,"stargazers_count":27,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-05-23T01:42:10.620Z","etag":null,"topics":["chroma","css","gallery-page","go","highlighting","html","syntax","syntax-highlighting"],"latest_commit_sha":null,"homepage":"https://xyproto.github.io/splash/docs/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xyproto.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":"2018-04-03T18:19:33.000Z","updated_at":"2024-05-30T03:01:40.821Z","dependencies_parsed_at":"2023-10-16T14:57:39.660Z","dependency_job_id":"64cf9937-60cf-484a-bdf3-b0385ecb701d","html_url":"https://github.com/xyproto/splash","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fsplash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fsplash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fsplash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fsplash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xyproto","download_url":"https://codeload.github.com/xyproto/splash/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248862829,"owners_count":21173894,"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":["chroma","css","gallery-page","go","highlighting","html","syntax","syntax-highlighting"],"created_at":"2024-10-01T15:23:09.291Z","updated_at":"2025-04-14T10:33:19.086Z","avatar_url":"https://github.com/xyproto.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Splash\n\nSyntax highlight code embedded in HTML with a splash of color by using the [chroma](https://github.com/alecthomas/chroma) package.\n\nThe generated output is tested by visual inspection in Chromium, Midori and Netsurf.\n\n## Example usage\n\n```go\npackage main\n\nimport (\n    \"os\"\n\n    \"github.com/xyproto/splash\"\n)\n\nfunc main() {\n    // Read \"input.html\"\n    inputHTML, err := os.ReadFile(\"input.html\")\n    if err != nil {\n        panic(err)\n    }\n\n    // Highlight the source code in the HTML document with the monokai style\n    outputHTML, err := splash.Splash(inputHTML, \"monokai\")\n    if err != nil {\n        panic(err)\n    }\n\n    // Write the highlighted HTML to \"output.html\"\n    if err := os.WriteFile(\"output.html\", outputHTML, 0644); err != nil {\n        panic(err)\n    }\n}\n```\n\n## Available syntax highlighting styles\n\nSee the [Style Gallery](https://xyproto.github.io/splash/docs/) for a full overview of available styles and how they may appear.\n\n## General information\n\n* Version: 1.1.6\n* License: BSD-3\n* Author: Alexander F. Rødseth \u0026lt;xyproto@archlinux.org\u0026gt;\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyproto%2Fsplash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxyproto%2Fsplash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyproto%2Fsplash/lists"}