Allows you to insert syntax-highlighted code snippets into the spaced-repetition flashcard app Anki.
AnkiWeb
Manual installation
Anki 2.0
- Go to Tools → Add-ons → Open add-ons folder
- Find and delete
Syntax Highlighting.py
andsyntax_highlighting
if they already exist - Download and extract the latest Anki 2.0 add-on release from the releases tab
- Move
Syntax Highlighting.py
andsyntax_highlighting
into the add-ons folder - Restart Anki
Anki 2.1
- Go to Tools → Add-ons → Open add-ons folder
- See if the
syntax_highlighting
folder already exists - If you would like to keep your settings thus far: Find the
meta.json
file contained within and copy it to a safe location. - Proceed to delete the
syntax_highlighting
folder - Download and extract the latest Anki 2.1 add-on release from the releases tab
- Rename the extracted folder to
syntax_highlighting
and move it into the add-ons directory - Optional: Place the
meta.json
file back in the directory if you created a copy beforehand. - Restart Anki
For further information on the use of this add-on please check out the original add-on description.
Copyright © 2012-2015 Tiago Barroso
Copyright © 2015 Tim Rae
Copyright © 2018 Aristotelis P.
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:
- Pygments v2.2.0. Copyright (c) 2006-2017 by the Pygments Team. Licensed under the BSD license.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.