Persistent Highlight and Remove

AnkiWeb addon 2113208103

Adds a toolbar for highlighting selected text in yellow during review or preview and removing only its own highlights, saving changes as HTML in note fields.
AI-generated summary; may contain mistakes.

formatting

Open on AnkiWeb Ask about alternatives

AnkiWeb

Votes
0 (πŸ‘ 0 Β· πŸ‘Ž 0)
Updated
2026-10-25
Anki versions
24.11.9~
Languages
Python, JavaScript, CSS, JSON
Description language
en

Maintenance

active

  • Last update or commit: 2026-10-25 (7 days before the snapshot).

GitHub

No GitHub repository linked.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
24.1124.11.9+2026-10-25
History across monthly snapshots

Loading…

Similar addons

Shortcut Styler

Applies customizable text colors and background highlights to selected editor text via configurable keyboard shortcuts.

formattingshortcuts

8 votes 68% approval πŸ‘ 8 Β· πŸ‘Ž 0 Anki 2.1.1~ Updated 2025-01-07
Quick Highliter - Review Screen Text Highlighter

Highlights selected question or answer text on the review screen via a four-color palette, saving highlights as persistent HTML with eraser and undo support.

formatting

1 votes 21% approval πŸ‘ 1 Β· πŸ‘Ž 0 Anki 2.1.2~ Updated 2026-07-01

Description

Select words during review or in a card preview and click Highlight to save yellow highlighting. Select highlighted words and click Remove to remove only this add-on’s highlights. Remove does not delete words or clear other formatting.

Highlights are saved in the original note fields as HTML, survive reopening Anki, and sync with notes. Changes use Anki’s normal undo system. The toolbar itself is not stored in notes.

Setup required

Default fields: Question inside a .question element; Answer inside an .answer element. Each selector must match exactly one complete, unmodified field on that card side. The toolbar appears only on cards with configured fields.

For Basic notes with Front and Back fields, use Tools β†’ Add-ons β†’ this add-on β†’ Config:

{"fields":{"Front":".question","Back":".answer"},"note_types":[]}

Front template:

<div class="question">{{Front}}</div>

Back template:

{{FrontSide}}
<hr id="answer">
<div class="answer">{{Back}}</div>

An empty note_types list permits all note types with matching fields. To restrict it, list exact note type names.

Limitations

Selections must stay in one field. Cloze replacements, filtered fields, MathJax rendering, partial-field templates and scripts that rewrite text are unsupported. Text or note changes since selection are rejected before writing. Only this add-on’s highlight wrappers are removed. Back up your collection before first use of an add-on that edits notes.

Compatible with existing OGCO Persistent Highlighter markup. Do not install alongside a second copy of that add-on. Tested against Anki Desktop 24.11 APIs, with automated tests for HTML preservation, Unicode boundaries, save/remove and stale-write rejection. Newer releases have not been verified. Desktop only; saved HTML can sync to other clients.

MIT licensed. The download contains complete Python, JavaScript and CSS source, a README and LICENSE. Rename a copy of the .ankiaddon file to .zip to inspect or modify it.