README file from
GithubSelection Format Toolbar
An Obsidian plugin that shows a floating formatting toolbar whenever you select text in the editor — no keyboard shortcuts or menus needed.
Features
Select any text (with the mouse or Shift+arrow keys) and a toolbar pops up above the selection with:
- Bold and Italic toggles
- H1–H6 — set the heading level of the selected line(s); click the same level again to remove the heading
- Highlight colors — six color swatches (yellow, green, blue, pink, orange, purple) that wrap the selection in a colored highlight, plus a ✕ button to remove it
- The text stays selected after each action, so you can chain formats (e.g. bold + highlight)
- Press
Escape, scroll, or click elsewhere to dismiss the toolbar
Highlights use inline <mark> tags, so the colors render in both Live Preview and Reading mode.
Installation
From the community plugin directory
- Open Settings → Community plugins in Obsidian
- Click Browse and search for "Selection Format Toolbar"
- Install and enable it
With BRAT (beta)
- Install the BRAT plugin
- Add
avinashingit/selection-format-toolbaras a beta plugin
Manual
- Download
main.js,manifest.json, andstyles.cssfrom the latest release - Copy them into
YourVault/.obsidian/plugins/selection-format-toolbar/ - Reload Obsidian and enable the plugin in Settings → Community plugins
Usage
- Select some text in any note (source mode or Live Preview)
- Click a button on the toolbar that appears:
B/Itoggle bold and italicH1–H6set or clear the heading level- Color dots apply a highlight in that color;
✕removes the highlight