β‘ Quick Highlight
Highlight and format text during Anki review with keyboard shortcuts.
Select text β press a shortcut β done. No editor, no color picker, no clicks.
Installation β’
Usage β’
Shortcuts β’
Configuration β’
Contributing
The Problem
When reviewing Anki cards, highlighting a word requires way too many steps:
- Click Edit
- Select the text
- Click the color button
- Open the color picker
- Choose a color
- Click OK
- Close the editor
The old way β Edit Current β Color Picker β OK. Tedious.
The Solution
With Quick Highlight, it's just:
- Select text on the card
- Press a shortcut (e.g.
Ctrl+Shift+G)
- β
Done β saved permanently
Words highlighted in green and yellow β applied instantly during review.
Features
- Instant color highlighting β green, yellow, red, orange, blue (or any custom color)
- B Bold text with one shortcut
- Superscript formatting (
xΒ²) for annotations or references
- Paste clipboard as superscript β instantly attach translations or meanings in small superscript font
- Color picker for custom colors on the fly
- Remove formatting to undo highlights/superscripts
- Auto-save β changes are saved to the note immediately
- Syncs everywhere β highlights are stored as HTML, so they show on AnkiMobile & AnkiDroid
- Fully configurable β customize colors and shortcuts via Anki's addon config
- Works on both question and answer sides of the card
Installation
Method 1: Manual Install (from GitHub)
-
Find your Anki addons folder:
- Anki β Tools β Add-ons β Open Add-ons Folder
- Or navigate to
~/.local/share/Anki2/addons21/ (Linux), %APPDATA%\Anki2\addons21\ (Windows), ~/Library/Application Support/Anki2/addons21/ (macOS)
-
Clone or download this repo into the addons folder:
cd ~/.local/share/Anki2/addons21/
git clone https://github.com/samidunimsara/Quick-Highlight.git quick_highlight
Or download the ZIP, extract it, and rename the folder to quick_highlight.
-
Restart Anki
Method 2: AnkiWeb (coming soon)
Usage
- Open a deck and start reviewing cards
- Select any word or phrase by clicking and dragging your mouse over it
- Press a keyboard shortcut β formatting is applied instantly!
- Keep reviewing β changes are saved automatically!
Shortcuts
| Shortcut |
Action |
Description |
Ctrl+Shift+G |
Highlight Green |
Colors selected text green |
Ctrl+Shift+Y |
Highlight Yellow |
Colors selected text yellow |
Ctrl+Shift+R |
Highlight Red |
Colors selected text red |
Ctrl+Shift+O |
Highlight Orange |
Colors selected text orange |
Ctrl+Shift+B |
Bold |
Makes selected text bold (<b>) |
Ctrl+= |
Superscript |
Makes selected text superscript (<sup>) |
Ctrl+Shift+V |
Paste as Superscript |
Pastes clipboard text in small font after selection |
Ctrl+Shift+L |
Color Picker |
Opens color picker dialog for custom colors |
Ctrl+Shift+X |
Remove Formatting |
Strips colors/bold/superscript |
Tip: All shortcuts and colors are customizable β see Configuration below.
Configuration
Go to Tools β Add-ons β Quick Highlight β Config to customize:
{
"colors": {
"green": "#00ff00",
"yellow": "#ffff00",
"red": "#ff0000",
"orange": "#ffa500",
"blue": "#00bfff"
},
"shortcuts": {
"green": "Ctrl+Shift+G",
"yellow": "Ctrl+Shift+Y",
"bold": "Ctrl+Shift+B",
"red": "Ctrl+Shift+R",
"orange": "Ctrl+Shift+O",
"remove": "Ctrl+Shift+X",
"picker": "Ctrl+Shift+L",
"superscript": "Ctrl+=",
"paste_superscript": "Ctrl+Shift+V"
}
}
Adding a new color
- Add the color to
"colors":"pink": "#ff69b4"
- Add a matching shortcut to
"shortcuts":"pink": "Ctrl+Shift+I"
- Restart Anki
How It Works
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Reviewer WebView β
β β
β You select "treibt das RohΓΆl" and press Ctrl+Shift+G β
β β
β ββββββββββββββββββββββββββββββββ β
β β JavaScript (injected) β β
β β 1. Gets selected text β β
β β 2. Wraps in <span> visually β β
β β 3. Sends pycmd() to Python β β
β ββββββββββββββββ¬ββββββββββββββββ β
β β β
β βΌ β
β ββββββββββββββββββββββββββββββββ β
β β Python Addon β β
β β 1. Finds matching note field β β
β β 2. Wraps text with HTML β β
β β 3. Saves to database β β
β β 4. Refreshes card display β β
β ββββββββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Compatibility
| Anki Version |
Status |
| 2.1.50+ |
β
Fully supported |
| 2.1.x (older) |
β
Supported (uses legacy note.flush() fallback) |
| AnkiMobile |
β
Highlights visible (addon runs on desktop only) |
| AnkiDroid |
β
Highlights visible (addon runs on desktop only) |
File Structure
quick_highlight/
βββ __init__.py # Main addon logic
βββ manifest.json # Addon metadata
βββ config.json # Default configuration
βββ config.md # Config documentation (shown in Anki)
βββ screenshots/ # Images for README
βββ LICENSE # MIT License
βββ README.md # This file
Contributing
Contributions are welcome! Feel free to:
See CONTRIBUTING.md for guidelines.
License
This project is licensed under the MIT License β see the LICENSE file for details.
Made for language learners who highlight a lot of words. ππ