{"id":15017280,"url":"https://github.com/glutanimate/syntax-highlighting","last_synced_at":"2025-08-21T02:31:30.288Z","repository":{"id":47166323,"uuid":"122787392","full_name":"glutanimate/syntax-highlighting","owner":"glutanimate","description":"A fork of Tiago Barroso's Syntax Highlighting add-on with support for Anki 2.1","archived":false,"fork":false,"pushed_at":"2024-01-23T15:07:52.000Z","size":1403,"stargazers_count":115,"open_issues_count":39,"forks_count":26,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-08T01:51:24.650Z","etag":null,"topics":["anki","anki-addon","pygments","syntax-highlighting"],"latest_commit_sha":null,"homepage":"https://ankiweb.net/shared/info/1463041493","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/glutanimate.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","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},"funding":{"patreon":"glutanimate","ko_fi":"glutanimate"}},"created_at":"2018-02-24T22:57:39.000Z","updated_at":"2025-03-11T00:53:02.000Z","dependencies_parsed_at":"2024-09-20T14:30:32.139Z","dependency_job_id":"fb57f5ec-eb14-4175-883c-23137d413635","html_url":"https://github.com/glutanimate/syntax-highlighting","commit_stats":{"total_commits":55,"total_committers":10,"mean_commits":5.5,"dds":"0.21818181818181814","last_synced_commit":"d8287ae604e9fdc8e3f0cc2e0ced9857cf9cedf4"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/glutanimate/syntax-highlighting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glutanimate%2Fsyntax-highlighting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glutanimate%2Fsyntax-highlighting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glutanimate%2Fsyntax-highlighting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glutanimate%2Fsyntax-highlighting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glutanimate","download_url":"https://codeload.github.com/glutanimate/syntax-highlighting/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glutanimate%2Fsyntax-highlighting/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271416847,"owners_count":24755971,"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","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"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":["anki","anki-addon","pygments","syntax-highlighting"],"created_at":"2024-09-24T19:50:15.207Z","updated_at":"2025-08-21T02:31:29.920Z","avatar_url":"https://github.com/glutanimate.png","language":"Python","readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"screenshots/screenshot_python.png\"\u003e\u003c/p\u003e\n\n\u003ch2 align=\"center\"\u003eSyntax Highlighting for Anki\u003c/h2\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca title=\"Latest (pre-)release\" href=\"https://github.com/glutanimate/syntax-highlighting/releases\"\u003e\u003cimg src =\"https://img.shields.io/github/release-pre/glutanimate/syntax-highlighting.svg?colorB=brightgreen\"\u003e\u003c/a\u003e\n\u003ca title=\"License: GNU AGPLv3\" href=\"https://github.com/glutanimate/syntax-highlighting/blob/master/LICENSE\"\u003e\u003cimg  src=\"https://img.shields.io/badge/license-GNU AGPLv3-green.svg\"\u003e\u003c/a\u003e\n\u003ca title=\"Rate on AnkiWeb\" href=\"https://ankiweb.net/shared/info/1463041493\"\u003e\u003cimg src=\"https://glutanimate.com/logos/ankiweb-rate.svg\"\u003e\u003c/a\u003e\n\u003cbr\u003e\n\u003ca title=\"Buy me a coffee :)\" href=\"https://ko-fi.com/X8X0L4YV\"\u003e\u003cimg src=\"https://img.shields.io/badge/ko--fi-contribute-%23579ebd.svg\"\u003e\u003c/a\u003e\n\u003ca title=\"Support me on Patreon :D\" href=\"https://www.patreon.com/bePatron?u=7522179\"\u003e\u003cimg src=\"https://img.shields.io/badge/patreon-support-%23f96854.svg\"\u003e\u003c/a\u003e\n\u003ca title=\"Follow me on Twitter\" href=\"https://twitter.com/intent/user?screen_name=glutanimate\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/glutanimate.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nAllows you to insert syntax-highlighted code snippets into the spaced-repetition flashcard app [Anki](https://apps.ankiweb.net/).\n\n### Table of Contents \u003c!-- omit in toc --\u003e\n\n\u003c!-- MarkdownTOC levels=\"1,2,3\" --\u003e\n\n- [Installation](#installation)\n- [Documentation](#documentation)\n- [Building](#building)\n- [Contributing](#contributing)\n- [License and Credits](#license-and-credits)\n\n\u003c!-- /MarkdownTOC --\u003e\n\n### Installation\n\n#### AnkiWeb \u003c!-- omit in toc --\u003e\n\nThe easiest way to install Syntax Highlighting is through [AnkiWeb](https://ankiweb.net/shared/info/1463041493).\n\n#### Manual installation \u003c!-- omit in toc --\u003e\n\nPlease click on the entry corresponding to your Anki version:\n\n\u003cdetails\u003e\n\n\u003csummary\u003e\u003ci\u003eAnki 2.1\u003c/i\u003e\u003c/summary\u003e\n\n1. Make sure you have the [latest version](https://apps.ankiweb.net/#download) of Anki 2.1 installed. Earlier releases (e.g. found in various Linux distros) do not support `.ankiaddon` packages.\n2. Download the latest `.ankiaddon` package from the [releases tab](https://github.com/glutanimate/syntax-highlighting/releases) (you might need to click on *Assets* below the description to reveal the download links)\n3. From Anki's main window, head to *Tools* → *Add-ons*\n4. Drag-and-drop the `.ankiaddon` package onto the add-ons list\n5. Restart Anki\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\n\u003csummary\u003e\u003ci\u003eAnki 2.0\u003c/i\u003e\u003c/summary\u003e\n\n1. Go to *Tools* → *Add-ons* → *Open add-ons folder*\n2. Find and delete the `Syntax Highlighting.py` file if it already exists.\n3. See if you can find a `syntax_highlighting` folder. If so:\n    1. If the folder contains a `meta.json` file, copy the file to a safe location. This will allow you to preserve your current settings.\n    2. Proceed to delete the `syntax_highlighting` folder\n4. Download and extract the latest Anki 2.0 add-on release from the [releases tab](https://github.com/glutanimate/syntax-highlighting/releases) (you might need to click on *Assets* below the description to reveal the download links)\n5. Move the extracted `Syntax Highlighting.py` and `syntax_highlighting` into the add-ons folder\n6. Optional: Place the `meta.json` file back into the directory if you created a copy beforehand.\n7. Restart Anki\n\n\u003c/details\u003e\n\n### Documentation\n\nFor further information on the use of this add-on please check out [the description text](docs/description.md) for AnkiWeb.\n\n### Building\n\nWith [Anki add-on builder](https://github.com/glutanimate/anki-addon-builder/) installed:\n\n    git clone https://github.com/glutanimate/syntax-highlighting.git\n    cd syntax-highlighting\n    aab build\n\nFor more information on the build process please refer to [`aab`'s documentation](https://github.com/glutanimate/anki-addon-builder/#usage).\n\n### Contributing\n\nContributions are welcome! Please review the [contribution guidelines](./CONTRIBUTING.md) on how to:\n\n- Report issues\n- File pull requests\n- Support the project as a non-developer\n\n### License and Credits\n\n*Syntax Highlighting* is\n\n*Copyright © 2012-2015 [Tiago Barroso](https://github.com/tmbb)*\n\n*Copyright © 2015 [Tim Rae](https://github.com/timrae)*\n\n*Copyright © 2018-2019 [Aristotelis P.](https://glutanimate.com/) (Glutanimate)*\n\n*Syntax Highlighting* is based on [*Syntax Highlighting for Code*](https://github.com/tmbb/SyntaxHighlight) by [Tiago Barroso](https://github.com/tmbb). All credit for the original add-on goes to him. A major thanks is also due for [Tim Rae](https://github.com/timrae), who extended the original add-on with CSS support.\n\nThe present fork and update to Anki 2.1 was made possible through the generous support of a fellow Anki user who would like to remain anonymous.\n\n*Syntax Highlighting* ships with the following third-party open-source software:\n\n- [Pygments](http://pygments.org/) v2.2.0. Copyright (c) 2006-2017 by the Pygments Team. Licensed under the BSD license.\n\nSyntax Highlighting is free and open-source software. The add-on code that runs within Anki is released under the GNU AGPLv3 license, extended by a number of additional terms. For more information please see the [LICENSE](https://github.com/glutanimate/syntax-highlighting/blob/master/LICENSE) file that accompanied this program.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.\n\n----\n\n\u003cb\u003e\n\u003cdiv align=\"center\"\u003eThe continued development of this add-on is made possible \u003cbr\u003ethanks to my \u003ca href=\"https://www.patreon.com/glutanimate\"\u003ePatreon\u003c/a\u003e and \u003ca href=\"https://ko-fi.com/X8X0L4YV\"\u003eKo-Fi\u003c/a\u003e supporters.\n\u003cbr\u003eYou guys rock ❤️ !\u003c/div\u003e\n\u003c/b\u003e","funding_links":["https://patreon.com/glutanimate","https://ko-fi.com/glutanimate","https://ko-fi.com/X8X0L4YV","https://www.patreon.com/bePatron?u=7522179","https://www.patreon.com/glutanimate"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglutanimate%2Fsyntax-highlighting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglutanimate%2Fsyntax-highlighting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglutanimate%2Fsyntax-highlighting/lists"}