Quick Highlight - Highlight & format text during review with shortcuts

AnkiWeb addon 540440922

Applies color highlights, bold, superscript, and formatting removal to selected text during review via customizable keyboard shortcuts, automatically saving changes as synced HTML.
AI-generated summary; may contain mistakes.

formattingshortcutsmobile-compatible

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
2 (πŸ‘ 1 Β· πŸ‘Ž 1)
Updated
2026-08-18
Anki versions
2.1.1~
License
MIT (from the license file in the package)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JSON
Description language
en

Maintenance

active

  • Last update or commit: 2026-08-18 (75 days before the snapshot).
  • Commits in the last year: 3.
  • Issues: 2 open, 0 closed.
  • Pull requests: 0 open, 0 merged.

Will it work on my Anki?

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

Loading…

Similar addons

Set Color and Maybe Format

Configurable keyboard shortcuts set text foreground colors while editing or browsing with a field selected, and a modifier key also toggles formatting such as bold, italic, underline, superscript, or subscript.

formattingshortcuts

2 votes 0% approval πŸ‘ 0 Β· πŸ‘Ž 2 Anki 2.1.43~ Updated 2021-04-11
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
Highlight Color Shortcut

Highlights selected text in eight configurable colors via Ctrl+Alt plus the color's first letter, with an optional bold setting and support for standard or hex color codes.

formattingshortcuts

21 votes 65% approval πŸ‘ 18 Β· πŸ‘Ž 3 ⭐ 0 Anki 2.1.16~ Updated 2021-04-01
Text Tools in Right-Click Menu

Adds a Text Tools menu to the editor's right-click menu with formatting, insertion, and editing commands, plus configurable quick items, user words, and optional reviewer support.

formatting

12 votes 55% approval πŸ‘ 10 Β· πŸ‘Ž 2 ⭐ 3 Anki 25.09.2~ Updated 2026-04-03

Description

⚑ Quick Highlight β€” Highlight & format text during review

No more opening the editor, selecting text, opening the color picker, and clicking OK just to highlight a single word. Simply select text during review and press a keyboard shortcut.

πŸš€ Features

  • 🎨 Instant Color Highlights: Green, yellow, red, orange, blue (and custom colors)
  • B Instant Bold: Bold any text with one shortcut
  • πŸ“ Superscript (xΒ²): Format annotations, small notes, or references
  • πŸ“‹ Paste as Superscript: Instantly attach clipboard text in small superscript font
  • 🎯 Color Picker: Pick custom colors on the fly
  • 🧹 Remove Formatting: Strip colors, bold, or superscripts instantly
  • πŸ’Ύ Auto-save: Saves directly into your note fields immediately
  • πŸ“± Full Sync Support: Standard HTML that syncs and displays on AnkiMobile (iOS) & AnkiDroid

⌨️ Default Shortcuts

  • Ctrl+Shift+G β€” Green Highlight: Colors selected text green
  • Ctrl+Shift+Y β€” Yellow Highlight: Colors selected text yellow
  • Ctrl+Shift+R β€” Red Highlight: Colors selected text red
  • Ctrl+Shift+O β€” Orange Highlight: 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: Appends clipboard content as small superscript
  • Ctrl+Shift+L β€” Color Picker: Opens color picker dialog for custom colors
  • Ctrl+Shift+X β€” Remove Formatting: Strips highlights and formatting

βš™οΈ Customization

All shortcuts and colors can be customized under Tools β†’ Add-ons β†’ Quick Highlight β†’ Config.

You can add custom colors (e.g., pink, purple) and assign any custom keyboard shortcut combinations.

README

⚑ 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:

  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

The old tedious workflow
The old way β€” Edit Current β†’ Color Picker β†’ OK. Tedious.

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

Highlighted card during review
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)

  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)

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.


Made for language learners who highlight a lot of words. πŸŒπŸ“š