Cycle through text color or highlight color on selected text using keyboard shortcuts in Obsidian.
- 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
- 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)
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.
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
- Open Settings → Community plugins
- Click "Browse" and search for "HTML Painter Hotkey"
- Click Install, then Enable
- 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
MIT