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.