• Stars
    star
    103
  • Rank 333,046 (Top 7 %)
  • Language
    Python
  • License
    Other
  • Created over 6 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A fork of Tiago Barroso's Syntax Highlighting add-on with support for Anki 2.1

Syntax Highlighting for Anki


Allows you to insert syntax-highlighted code snippets into the spaced-repetition flashcard app Anki.

Table of Contents

Installation

AnkiWeb

The easiest way to install Syntax Highlighting is through AnkiWeb.

Manual installation

Please click on the entry corresponding to your Anki version:

Anki 2.1
  1. Make sure you have the latest version of Anki 2.1 installed. Earlier releases (e.g. found in various Linux distros) do not support .ankiaddon packages.
  2. Download the latest .ankiaddon package from the releases tab (you might need to click on Assets below the description to reveal the download links)
  3. From Anki's main window, head to Tools β†’ Add-ons
  4. Drag-and-drop the .ankiaddon package onto the add-ons list
  5. Restart Anki
Anki 2.0
  1. Go to Tools β†’ Add-ons β†’ Open add-ons folder
  2. Find and delete the Syntax Highlighting.py file if it already exists.
  3. See if you can find a syntax_highlighting folder. If so:
    1. If the folder contains a meta.json file, copy the file to a safe location. This will allow you to preserve your current settings.
    2. Proceed to delete the syntax_highlighting folder
  4. Download and extract the latest Anki 2.0 add-on release from the releases tab (you might need to click on Assets below the description to reveal the download links)
  5. Move the extracted Syntax Highlighting.py and syntax_highlighting into the add-ons folder
  6. Optional: Place the meta.json file back into the directory if you created a copy beforehand.
  7. Restart Anki

Documentation

For further information on the use of this add-on please check out the description text for AnkiWeb.

Building

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.

Contributing

Contributions are welcome! Please review the contribution guidelines on how to:

  • Report issues
  • File pull requests
  • Support the project as a non-developer

License and Credits

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:

  • Pygments v2.2.0. Copyright (c) 2006-2017 by the Pygments Team. Licensed under the BSD license.

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.


The continued development of this add-on is made possible
thanks to my Patreon and Ko-Fi supporters.
You guys rock ❀️ !

More Repositories

1

review-heatmap

Anki add-on to help you keep track of your review activity
Python
1,146
star
2

image-occlusion-enhanced

Anki add-on that transforms images into cloze tests
JavaScript
382
star
3

cloze-overlapper

Anki add-on for memorizing lists and enumerations
Python
214
star
4

PDFMtEd

View and modify PDF metadata on Linux graphically
Shell
179
star
5

anki-addons-misc

Various add-ons I've written for Anki
Python
166
star
6

wordlist-medicalterms-en

Dictionary of English medical terms for LibreOffice/OpenOffice/Android/Word
148
star
7

simple-google-tts

Use Google text-to-speech on your Linux desktop
Perl
113
star
8

anki-addon-builder

Build tool for Anki add-ons
Python
86
star
9

popup-dictionary

Pop-up Dictionary Add-on for Anki
Python
72
star
10

mini-format-pack

Extends Anki 2.1 with a number of additional text formatting buttons
Python
45
star
11

MoodyRain

Generate custom ambient soundscapes on Linux
Shell
41
star
12

hunspell-en-med-glut

Hunspell dictionary of English medical terms
36
star
13

pdf-glossary

PDF Glossary Export Add-on for Anki
Python
28
star
14

speed-focus-mode

Speed Focus Mode add-on for Anki
Python
27
star
15

note-organizer

Note Organizer Add-on for Anki
Python
25
star
16

unified-remote-anki

Unified Remote for Anki
Lua
25
star
17

frozen-fields

A fork of Tiago Barroso's Frozen Fields add-on with support for Anki 2.1
Python
23
star
18

colorful-tags

Colorful Tags add-on for Anki (formerly known as Hierarchical Tags 2)
Python
23
star
19

pytest-anki

A pytest plugin for testing Anki add-ons
Python
19
star
20

internal-references

Internal References Add-on for Anki
Python
18
star
21

html-cleaner

HTML Cleaner Add-on for Anki
C
17
star
22

advanced-previewer

Advanced Previewer Add-on for Anki
Python
16
star
23

anki-cli-remote

Control Anki's user interface remotely through a command-line-utility
Python
14
star
24

sequence-inserter

Sequence Inserter Add-on for Anki
Python
13
star
25

puppy-reinforcement

Puppy Reinforcement add-on for Anki
Python
13
star
26

batch-editing

Batch Editing add-on for Anki
Python
13
star
27

spotify_playlist_exporter

Parses Spotify URIs and exports track data to a CSV file
Shell
12
star
28

highlight-search-results

Highlight Search Results in the Browser add-on for Anki
Python
12
star
29

progress-bar

Progress Bar add-on for Anki
Python
12
star
30

memobeam

Beam Anki decks right into your brain!
Python
9
star
31

reset-card-scheduling

Fork of baitisj/anki-reset-card-scheduling with some added features and support for Anki 2.1
Python
9
star
32

review-feedback

Visual Feedback for Reviews add-on for Anki
Python
8
star
33

hitmarkers

Hitmarkers add-on for Anki
Python
8
star
34

SVG2PNG

Simple Nautilus script to convert SVG to PNG based on DPI or resolution.
Shell
8
star
35

sticky-searches

Sticky Searches add-on for Anki
Python
7
star
36

spell-checker-public

Temporary repository to host bug reports and documentation for the Spell Checker Anki add-on
7
star
37

codewars

My Python and Java solutions to Codewars challenges
Python
6
star
38

browser-external-note-editor

External Note Editor for the Browser add-on for Anki
Python
6
star
39

sublime-deselect

Adds a "deselect" hotkey to Sublime Text
Python
6
star
40

wordlist-medicalterms-de

Dictionary of German medical terms for LibreOffice/OpenOffice/Android/Word
6
star
41

anki-libaddon

Python
5
star
42

bettertags-public

Temporary repository to host bug reports and documentation for the BetterTags Anki add-on
5
star
43

spotify-tools

A collection of bash scripts for Spotify on Linux
Shell
5
star
44

yadPush

A simple Pushbullet GUI client for Linux
Shell
4
star
45

docs

Shared documentation for my GitHub projects
4
star
46

coronavirus-tracker

Coronavirus Tracker add-on for Anki
Python
4
star
47

sublime-open-in-nautilus

Sublime Text plugin that opens files in Nautilus (default file manager for GNOME and Unity)
Python
4
star
48

hunspell-en-med-glut-workaround

A workaround to make hunspell-en-med-glut work under LibreOffice
3
star
49

hint-hotkeys

Hint Hotkeys add-on for Anki
Python
3
star
50

anjoy-public

Temporary repository to host bug reports and documentation for the AnJoy Anki add-on
3
star
51

tempthrottlergui

GUI frontend for sepero's temp-throttle
Shell
2
star
52

github-labels-anki

Placeholder repo used for issues label sync
2
star
53

import-bug-test

Import Bug Test add-on for Anki
Python
2
star
54

exam-notifier-public

Temporary repository to host bug reports and documentation for the Exam Notifier Anki add-on
2
star
55

sublime-create-backup-copy

Sublime Text plugin that creates time-stamped backup copies of files
Python
2
star
56

sublime-make-file-executable

Sublime Text plugin that adds a quick shortcut to make the current file executable
Python
1
star
57

colorful-tags-public

Temporary repository to host bug reports and documentation for the Colorful Tags Anki add-on
1
star
58

misc-scripts

A collection of miscellaneous scripts that don't warrant a repository of their own
Shell
1
star
59

anki__Open_linked_pdf-_docs-_epub-_audio-_video-_etc_in_external_Program

HTML
1
star
60

editor-find-replace

Find and Replace in Editor Add-on for Anki
Python
1
star
61

custom-text-backup

Custom Text Backup Add-on for Anki
Python
1
star
62

edit-field-during-review-fork

Python
1
star