AnkiWeb
- Rating
- 257 (👍 208 · 👎 49)
- Updated
- 2018-10-07
- Anki versions
- unknown
- Description language
- en
AnkiWeb addon 1463041493
Inserts syntax-highlighted code snippets into Anki notes, with language selection, configurable line numbers, centering, CSS classes, and per-deck language memory.
Open on AnkiWeb GitHub Ask about alternatives
abandoned
| Min Anki | Max Anki | Updated |
|---|---|---|
| 2.1.0 | – | 2018-10-07 |
Loading…
Adds dynamic syntax highlighting for code during Anki review via custom template filter using Pygments, without modifying notes, with language guessing and triple-backtick snippets.
Adds an integrated CodeMirror code editor to Anki flashcards with syntax highlighting, themes, live preview, configurable languages and note types, and mobile highlighting.
Inserts syntax-highlighted code snippets into Anki flashcards, with a Python 3 port, unit tests, and support for the latest Anki versions.
Renders Markdown flashcards with Shiki syntax highlighting, 300+ languages, 60+ themes, code annotations, math, and an AI agent skill via AnkiConnect.
Quickly adds syntax highlighting to selected or pasted code in Anki's editor, with line numbers, CSS themes, font size, hotkeys, and per-deck language memory.
Adds syntax highlighting, autocompletion, custom templates, cursor-position memory, external-editor integration, search, and backup to Anki's template editor.
<p align="center"><img src="screenshots/screenshot_python.png"></p>
<h2 align="center">Syntax Highlighting for Anki</h2>
<p align="center"> <a title="Latest (pre-)release" href="https://github.com/glutanimate/syntax-highlighting/releases"><img src ="https://img.shields.io/github/release-pre/glutanimate/syntax-highlighting.svg?colorB=brightgreen"></a> <a title="License: GNU AGPLv3" href="https://github.com/glutanimate/syntax-highlighting/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-GNU AGPLv3-green.svg"></a> <a title="Rate on AnkiWeb" href="https://ankiweb.net/shared/info/1463041493"><img src="https://glutanimate.com/logos/ankiweb-rate.svg"></a> <br> <a title="Buy me a coffee :)" href="https://ko-fi.com/X8X0L4YV"><img src="https://img.shields.io/badge/ko--fi-contribute-%23579ebd.svg"></a> <a title="Support me on Patreon :D" href="https://www.patreon.com/bePatron?u=7522179"><img src="https://img.shields.io/badge/patreon-support-%23f96854.svg"></a> <a title="Follow me on Twitter" href="https://twitter.com/intent/user?screen_name=glutanimate"><img src="https://img.shields.io/twitter/follow/glutanimate.svg"></a> </p>
Allows you to insert syntax-highlighted code snippets into the spaced-repetition flashcard app Anki.
<!-- MarkdownTOC levels="1,2,3" -->
<!-- /MarkdownTOC -->
The easiest way to install Syntax Highlighting is through AnkiWeb.
Please click on the entry corresponding to your Anki version:
<details>
<summary><i>Anki 2.1</i></summary>
.ankiaddon packages..ankiaddon package from the releases tab (you might need to click on Assets below the description to reveal the download links).ankiaddon package onto the add-ons list</details>
<details>
<summary><i>Anki 2.0</i></summary>
Syntax Highlighting.py file if it already exists.syntax_highlighting folder. If so:
meta.json file, copy the file to a safe location. This will allow you to preserve your current settings.syntax_highlighting folderSyntax Highlighting.py and syntax_highlighting into the add-ons foldermeta.json file back into the directory if you created a copy beforehand.</details>
For further information on the use of this add-on please check out the description text for AnkiWeb.
With Anki add-on builder installed:
git clone https://github.com/glutanimate/syntax-highlighting.git
cd syntax-highlighting
aab build
For more information on the build process please refer to aab's documentation.
Contributions are welcome! Please review the contribution guidelines on how to:
Syntax Highlighting is
Copyright © 2012-2015 Tiago Barroso
Copyright © 2015 Tim Rae
Copyright © 2018-2019 Aristotelis P. (Glutanimate)
Syntax Highlighting is based on Syntax Highlighting for Code by Tiago Barroso. All credit for the original add-on goes to him. A major thanks is also due for Tim Rae, who extended the original add-on with CSS support.
The 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.
Syntax Highlighting ships with the following third-party open-source software:
Syntax 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 file that accompanied this program.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.
<b> <div align="center">The continued development of this add-on is made possible <br>thanks to my <a href="https://www.patreon.com/glutanimate">Patreon</a> and <a href="https://ko-fi.com/X8X0L4YV">Ko-Fi</a> supporters. <br>You guys rock ❤️ !</div> </b>