by Aaron Ledray
Cycle through text or highlight colors on selected text using customizable hotkeys.
↓ 13 downloadsUpdated 6d agoMIT
HTML Painter Hotkey
Cycle through text color or highlight color on selected text using keyboard shortcuts in Obsidian.
Features
- Cycle text colors: Apply colors like black → red → blue → green → clear
- Cycle highlight colors: Apply background colors like yellow → cyan → salmon → clear
- Supports any valid CSS color name or hex code
- Customizable color lists in plugin settings
- Selection stays highlighted so you can keep pressing the hotkey to cycle
Usage
- Select any text in your Obsidian note
- Press your assigned hotkey to apply the first color
- Press again to cycle to the next color
- After the final color, the styling is removed (text returns to normal)
Settings
Define your own color sequences in Settings → HTML Painter Hotkey:
- Text Colors: e.g.,
black, red, #0044ff, null - Highlight Colors: e.g.,
yellow, cyan, #fa8072, #ccff00, null
Use null as the last item to add a "clear styling" step at the end of the cycle.
Hotkeys
Go to Settings → Hotkeys and search for "HTML Painter" to assign keys to:
Cycle HTML Text Color on SelectionCycle HTML Highlight (Background Color) on Selection
Installation
From Obsidian Community Plugins
- Open Settings → Community plugins
- Click "Browse" and search for "HTML Painter Hotkey"
- Click Install, then Enable
Manual Installation
- Download
main.js,manifest.json, andstyles.cssfrom the latest release - Create a folder called
html-painter-hotkeyin your vault's.obsidian/plugins/directory - Copy the downloaded files into that folder
- Enable the plugin in Settings → Community plugins
License
MIT
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.