Anki add-on: Greg’s Code Highlighter v1

⚠️ DEPRECATION NOTICE This add-on version is deprecated and will no longer receive feature updates. It has been replaced by the v2 version: Greg’s Code Highlighter . It should continue to work for any foreseeable future though. An Anki plugin that creates highlighted code blocks. This plugin uses a colorscheme that works in day and night modes. It also works on both, Anki for desktop and AnkiDroid. Migration to v2 You only need to do this migration if you wish to uninstall this v1 add-on. You may continue using the v1 add-on if it works fine for you. You may even have both v1 and v2 installed. Install the new v2 add-on using code: 1527277801 (and restart Anki). In Anki’s menu bar, run Tools > Migrate Code to v2 Pygments . Uninstall this v1 add-on, and restart Anki. Caveats This add-on adds a custom stanza to your card templates. This is necessary to have the add-on work in an upgradeable manner. The add-on provides a convenient menu command to removing all stanzas if you decide you want to remove the plugin. Use Select text that you want to create a code block from or copy code to clipboard and put a cursor at its desired destination. Press CTRL+' or click the add-on’s button. For more information, consult the README . Feedback If you have any suggestions, let me know at this plugin’s GitHub . I use the plugin personally, and I’m open to improving it.

GitHub repository: gregorias/anki-code-highlighter
Repository description: Anki plugin for code syntax highlighting.
Languages: Python, CSS, Shell, HTML, Just, JavaScript
Topics: anki, anki-addon, syntax-highlighting