Bỏ qua đến nội dung

Shortcut Styler

Chờ xử lý #anki #addon #shortcut #styler
Unknown
7/1/2025

Cách tải addon Shortcut Styler

Bạn có thể tải addon bằng một trong hai cách sau:

Click nút Copy bên dưới để copy code vào clipboard

1779816603

Sau đó mở Anki → Tools → Add-ons → Get Add-ons → Dán code → OK

Mở trang addon trên AnkiWeb và tìm mã code ở cuối trang

Mở trên AnkiWeb

Cuộn xuống cuối trang AnkiWeb, tìm dòng có mã code 1779816603 và copy

7

Mô tả chi tiết

Shortcut Styler

This addon enhances Anki’s editor by allowing users to easily apply text colors and background highlights to selected text using customizable keyboard shortcuts. Whether you’re looking to make your flashcards more visually engaging or emphasize key points, this addon provides a seamless way to style your text directly in the editor.

Features Customize text foreground colors (text color). Apply background highlights (text highlighting). Fully configurable keyboard shortcuts for quick access. Supports multiple actions per shortcut—combine text and highlight changes under a single key press. How to Use the Addon

Install the Addon:

Download and install the addon through Anki’s addon manager or by pasting the addon code.

Apply Styles:

Open the editor in Anki. Select the text you want to style. Use the configured keyboard shortcuts to apply text colors or highlights. Configuring Keyboard Shortcuts

You can customize the keyboard shortcuts and their associated actions by editing the addon’s config.json file.

Step-by-Step Tutorial:

Locate the Configuration File:

In Anki, go to Tools > Add-ons. Find the addon in the list and click Config.

Understand the Configuration Format: The configuration file is a JSON object that contains a list of keys. Each key specifies:

color: The color to apply (hex code, e.g., “#FF0000” for red). shortcut: The keyboard shortcut to trigger the action (e.g., “Ctrl+R”). type: The type of action (“Foreground” for text color, “Background” for highlighting).

Example configuration:

{ “keys”: [ [“#FF0000”, “Ctrl+R”, “Foreground”], // Red text [“#FFFF00”, “Ctrl+H”, “Background”], // Yellow highlight [“#00FF00”, “Ctrl+G”, “Background”], // Green highlight [“#0000FF”, “Ctrl+B”, “Foreground”] // Blue text ] }

Edit the Shortcuts:

Add, remove, or modify the entries in the keys list. For example: To set Ctrl+Y to make text orange: [“#FFA500”, “Ctrl+Y”, “Foreground”]. To set Ctrl+Alt+H for a blue highlight: [“#ADD8E6”, “Ctrl+Alt+H”, “Background”].

Save Changes:

After editing the file, click Save in the configuration editor. Restart Anki to apply the changes. Examples of Customization Highlight key phrases with yellow using Ctrl+H. Use Ctrl+R to make text red for errors or warnings. Combine foreground and background changes under one shortcut: Add both [“#FF0000”, “Ctrl+Shift+R”, “Foreground”] and [“#FFFF00”, “Ctrl+Shift+R”, “Background”] to make text red with a yellow highlight. Support and Feedback

If you encounter any issues or have suggestions for improvement, feel free to contact the developer via the addon page.


Reviews (7)

👍 2025-10-27

Thank you very much for this helpful addon.

Be advised Mac users: Due to how the Qt-Framework used by Anki is working, to target the ”⌘ Command” key you will need to use “Ctrl” in the config.js, and to target the ”⌃ Control” key you will need to use “Meta”. Furthermore, I had to restart Anki after changing ”⌃ Control” (i.e., by using “Meta”) keyboard shortcuts.

👍 2025-09-06

Thank you!

👍 2025-07-16

TOP!! Era exatamente o que tava procurando.

👍 2025-06-14

I love this add-on. I’ve been looking for a way to use keyboard shortcuts to highlight stuff, and this is going to be a tremendous help for creating anki cards. Thank you!!!!

👍 2025-04-22

this is amazing, thank you

👍 2025-04-21

works like a charm. able to customize both text color and highlight color shortcuts.

👍 2025-02-21

MUITO BOM!