CodeDiffer

AnkiWeb addon 441384655

Creates Anki cards with interactive code input and visualizes differences between the user's solution and the correct answer, helping learn APIs; currently work-in-progress.
AI-generated summary; may contain mistakes.

card-creationformattingquizbeta

Open on AnkiWeb GitHub Ask about alternatives

AnkiWeb

Rating
0 (πŸ‘ 0 Β· πŸ‘Ž 0)
Updated
2021-06-15
Anki versions
unknown
Description language
en

Maintenance

abandoned

  • Last update or commit was 1934 days before the snapshot (2021-06-15).

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.0–2021-06-15
History across monthly snapshots

Loading…

Similar addons

Code Your Answer

Provides IDE-style code input during Anki review with character-level diff against the solution, syntax highlighting for 31 languages, keyboard shortcuts, and a custom note type.

review-flowformattingshortcutscard-templatesquiz

Rating 0 πŸ‘ 0 Β· πŸ‘Ž 0 ⭐ 2 Anki 25.02.7~ Updated 2026-06-19
MCQ Generator

Review single- and multiple-choice Anki questions in a clean exam-style screen showing your answer, correct answer, color-coded feedback, optional explanations, and auto-clearing selections.

card-creationreview-flowcard-templatesquiz

Rating 6 πŸ‘ 3 Β· πŸ‘Ž 3 ⭐ 3 Anki 23.10~ Updated 2026-01-07

README

Anki CodeDiffer

Add-on for Anki SRC. It allows you to create cards with interactive input. Also it uses differ to visualize how your input is different from correct answer.

When to use?

This addon should be helpful to learn some new APIs. With it you can learn API not by drilling, but by trying to solve some simple tasks.

How to use?

For example, you can copy/paste some code samples from MDN:

editor

Then you try to input the correct solution on the Question side:

frontside

... and then you can check how close your solution is to the right answer:

backside

Tags [diff][/diff] and [diff-answ][/diff-answ] can be added manually or by editor's buttons.

  • [diff lang='sql' theme='solarized_dark'][/diff] is used to to let add-on figure where to insert code editor, and with which settings;
  • [diff-answ][/diff-answ] is used to to let add-on figure which part of the answer should be used as "correct answer" in code differ.

Supported languages and themes

SUPPORTED_LANGUAGES = [
    'javascript',
    'python',
    'sql',
    'typescript'
]

SUPPORTED_THEMES = [
    'chrome',
    'monokai',
    'solarized_dark',
    'solarized_light'
]

TODO

  1. Research how to add any of Ace's languages/themes on the fly.

Used libraries and resources

<div>Icons made by <a href="https://www.freepik.com/" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a> is licensed by <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0" target="_blank">CC 3.0 BY</a></div>