Allows you to insert syntax-highlighted code snippets into the spaced-repetition flashcard app Anki.
The easiest way to install Syntax Highlighting is through AnkiWeb.
Please click on the entry corresponding to your Anki version:
.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 listSyntax 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.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.