Quick Highlight - Highlight & format text during review with shortcuts

AnkiWeb addon 540440922

Highlights and formats selected text during Anki review via customizable keyboard shortcuts, including colors, bold, superscript, formatting removal, and auto-save.
AI-generated summary; may contain mistakes.

formattingshortcutsmobile-compatible

Open on AnkiWeb GitHub Ask about alternatives

AnkiWeb

Rating
1 (πŸ‘ 1 Β· πŸ‘Ž 0)
Updated
2026-08-18
Anki versions
2.1.1~
Description language
en

Maintenance

active

  • Last update or commit was 44 days before the snapshot (2026-08-18).

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.1+2026-08-18
History across monthly snapshots

Loading…

Similar addons

Shortcut Styler

Applies customizable keyboard shortcuts to add text colors and background highlights to selected text in Anki's editor, supporting multiple styling actions per shortcut.

formattingshortcuts

Rating 8 πŸ‘ 8 Β· πŸ‘Ž 0 Anki 2.1.1~ Updated 2025-01-07
Quick Colour Changing

Assign shortcut keys to set selected editor text to specific colours, customizable via Config in Anki 2.1 (source edit in Anki 2.0).

formattingshortcuts

Rating 124 πŸ‘ 106 Β· πŸ‘Ž 18 Anki 23.10~ Updated 2023-10-19

README

<p align="center"> <h1 align="center">⚑ Quick Highlight</h1> <p align="center"> <strong>Highlight and format text during Anki review with keyboard shortcuts.</strong> </p> <p align="center"> Select text β†’ press a shortcut β†’ done. No editor, no color picker, no clicks. </p> <p align="center"> <a href="#installation">Installation</a> β€’ <a href="#usage">Usage</a> β€’ <a href="#shortcuts">Shortcuts</a> β€’ <a href="#configuration">Configuration</a> β€’ <a href="#contributing">Contributing</a> </p> </p>


The Problem

When reviewing Anki cards, highlighting a word requires way too many steps:

  1. Click Edit
  2. Select the text
  3. Click the color button
  4. Open the color picker
  5. Choose a color
  6. Click OK
  7. Close the editor

<p align="center"> <img src="screenshots/old_workflow.png" alt="The old tedious workflow" width="700"> <br> <em>The old way β€” Edit Current β†’ Color Picker β†’ OK. Tedious.</em> </p>

The Solution

With Quick Highlight, it's just:

  1. Select text on the card
  2. Press a shortcut (e.g. Ctrl+Shift+G)
  3. βœ… Done β€” saved permanently

<p align="center"> <img src="screenshots/review_card.png" alt="Highlighted card during review" width="700"> <br> <em>Words highlighted in green and yellow β€” applied instantly during review.</em> </p>

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)

  1. 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)
  2. 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.

  3. Restart Anki

Method 2: AnkiWeb (coming soon)

<!-- Install from AnkiWeb: Quick Highlight --> <!-- Or paste code XXXXXXXX in Tools β†’ Add-ons β†’ Get Add-ons -->

Usage

  1. Open a deck and start reviewing cards
  2. Select any word or phrase by clicking and dragging your mouse over it
  3. Press a keyboard shortcut β€” formatting is applied instantly!
  4. 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

  1. Add the color to "colors":
    "pink": "#ff69b4"
    
  2. Add a matching shortcut to "shortcuts":
    "pink": "Ctrl+Shift+I"
    
  3. 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.


<p align="center"> Made for language learners who highlight a lot of words. πŸŒπŸ“š </p>