AnkiWeb
- Rating
- 44 (π 41 Β· π 3)
- Updated
- 2024-07-19
- Anki versions
- 23.10.1~
- Description language
- en
AnkiWeb addon 566351439
Inserts syntax-highlighted code snippets into Anki flashcards, with a Python 3 port, unit tests, and support for the latest Anki versions.
Open on AnkiWeb GitHub Ask about alternatives
abandoned
| Min Anki | Max Anki | Updated |
|---|---|---|
| 2.1.49 | 23.10.1+ | 2024-07-19 |
Loadingβ¦
Inserts syntax-highlighted code snippets into Anki notes, with language selection, configurable line numbers, centering, CSS classes, and per-deck language memory.
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.
Provides Anki text formatting buttons for highlight, inline code, code blocks, horizontal lines, lists, indentation, and alignment, configurable through Anki's config manager.
Converts single and triple backticks in Anki's editor into HTML code tags, supporting language classes for blocks and syntax-highlighter integration.
Renders Markdown flashcards with Shiki syntax highlighting, 300+ languages, 60+ themes, code annotations, math, and an AI agent skill via AnkiConnect.
This is a new fork from the original "Syntax Highlighting for Code" (see License and Credits below).
This add-on allows you to insert syntax-highlighted code snippets into the spaced-repetition flashcard app Anki.
The main reasons are:
<p align="center"><img src="screenshots/screenshot_python.png"></p>
<!-- MarkdownTOC levels="1,2,3" -->
<!-- /MarkdownTOC -->
The easiest way to install Syntax Highlighting is through AnkiWeb code 566351439.
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> No support for 2.0 </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 (NG) is
Copyright Β© 2023- Antonio Cavallo
Syntax Highlighting is
Copyright Β© 2018-2019 Aristotelis P. (Glutanimate)
Copyright Β© 2015 Tim Rae
Copyright Β© 2012-2015 Tiago Barroso
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>