{"id":15017220,"url":"https://github.com/midrare/anki-code-highlight","last_synced_at":"2026-02-07T23:31:25.399Z","repository":{"id":223565716,"uuid":"759235417","full_name":"midrare/anki-code-highlight","owner":"midrare","description":"Syntax highlighting for code blocks in Anki","archived":false,"fork":false,"pushed_at":"2024-02-20T19:20:08.000Z","size":142,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-27T23:19:13.663Z","etag":null,"topics":["anki","anki-addon","code-highlight","syntax-highlighting"],"latest_commit_sha":null,"homepage":"","language":"CSS","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/midrare.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2024-02-18T02:36:21.000Z","updated_at":"2024-12-13T03:15:50.000Z","dependencies_parsed_at":"2024-02-20T23:23:31.672Z","dependency_job_id":"ec59bb00-1c35-4b08-aa84-a49f8307e153","html_url":"https://github.com/midrare/anki-code-highlight","commit_stats":null,"previous_names":["midrare/anki-code-highlight"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midrare%2Fanki-code-highlight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midrare%2Fanki-code-highlight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midrare%2Fanki-code-highlight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midrare%2Fanki-code-highlight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/midrare","download_url":"https://codeload.github.com/midrare/anki-code-highlight/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245007240,"owners_count":20546144,"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":["anki","anki-addon","code-highlight","syntax-highlighting"],"created_at":"2024-09-24T19:50:03.508Z","updated_at":"2026-02-07T23:31:25.333Z","avatar_url":"https://github.com/midrare.png","language":"CSS","readme":"# anki-code-highlight\n\n**Code highlighting for Anki.**\n\n![Screenshot](screen.png)  \n\n\n## Getting Started\n\n### Prerequisites\n \n  1. Go to Anki -\u003e Tools (menubar) -\u003e Add-ons -\u003e Install from file  \n  2. Select file downloaded from releases page  \n\n## Usage\nIn the note editor, click the `\u003c\u003e` button and enclose your code in `\u003cpre\u003e\u003ccode\u003e ... \u003c/code\u003e\u003c/pre\u003e`. In the previewer and reviewer, code highlighting will be applied automatically.\n\nBy default, the programming language is auto-detected. You can manually specify the language editing the `class` attribute e.g. `\u003ccode class=\"language-cpp\"\u003e`. Look in `highlightjs/languages` for the list of language codes you can choose from.  Consider doing this if auto-detecting takes too long (makes the reviewer lag).\n\n*anki-code-highlight* is non-invasive; it doesn't modify your original note to add the highlighting. If you disable or uninstall *anki-code-highlight*, your `pre code` blocks just return to being normal `pre code` blocks.\n\nYou can change the font size in the config file. Any valid [CSS font-size property](https://www.w3schools.com/css/css_font_size.asp) is valid in this field.\n\nThe color scheme can changed by setting the config file. Look in `highlightjs/styles` for the list of color schemes you can choose from.\n\n## License\nDistributed under the MIT license. See `LICENSE.txt` for more information\n\n\n## Acknowledgements\nUses [highlight.js](https://highlightjs.org/), included under the BSD 3-Clause license. See `highlightjs/LICENSE` file for license details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmidrare%2Fanki-code-highlight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmidrare%2Fanki-code-highlight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmidrare%2Fanki-code-highlight/lists"}