Colorful Highlights

approvedunreviewed

by Moy

Colorize highlights with emoji prefixes to create a colorful highlighted-text effect.

★ 12 stars↓ 2,003 downloadsUpdated 1mo agoMIT

Colorful Highlights

Obsidian Downloads Release Issues Stars

简体中文

Want colored highlights in Obsidian? Colorize ==highlights== with emoji prefixes. Text like ==🔴important content== is rendered as a red highlight — the emoji is hidden by default and shown while editing.

Features

  • Custom emoji prefixes — map any emoji to 5 color slots (yellow / green / red / purple / blue), expandable to 10 (orange / cyan / magenta / gray / Black (Spoiler)) via the extended-colors toggle in settings. Each color can be shown or hidden independently. For example, 🍎 can represent red and 🍌 can represent yellow. The first emoji in each slot is used when writing highlights.
  • Live Preview & Source mode — Live Preview shows only the colored highlight style; the emoji appears when the cursor enters the highlight. Source mode can optionally keep the emoji visible.
  • Highlight styles — default, half-strike, double-strike, underline, wavy line, underline only, wavy line only, rounded, outline, gradient, text color, and Apple Notes.
  • Default highlight color — plain ==text== without an emoji can map to a color slot; switching to that color does not add an emoji prefix.
  • Commands & context menu — toggle highlights, highlight with a specific color, or remove highlights. Select text (or an existing highlight) and right-click to access the color actions.

Menu

Usage

  1. Select text and run Highlight with red (or any color) from the command palette — the selection becomes ==🔴text==.
  2. Run another color command to switch colors; run Toggle highlight to remove the highlight.
  3. Right-click selected text to find the same color actions in the editor menu.
  4. Or type the syntax manually: ==🔵any emoji prefix works==.

Example:

This is some ==🔴important text==.
This is a ==🔵theoretical description==, and ==🟢the correct way to handle it==.

Styles

Choose a highlight style in Settings:

Style settings

Example results:

Highlight styles

Settings

SettingDescription
Enable colorful highlightsMaster switch for parsing and decoration.
Highlight styleDefault / half-strike / double-strike / underline / wavy line / underline only / wavy line only / rounded / outline / gradient / text color / Apple Notes.
Default highlight colorColor for plain ==text==; switching to it removes the emoji prefix.
Color intensityBackground color mix percentage (10–100%).
Secondary color intensitySecond layer of double-strike, line colors, and the gradient bottom (10–100%).
Color renderingPlugin styles paint the background directly; theme native only overrides --text-highlight-bg and lets your theme paint highlights.
Decorate in editor / Reading viewToggle each surface independently.
Extended colorsReveal five extra color slots (orange / cyan / magenta / gray / Black (Spoiler)) in commands, menus, and settings. Use the toggle beside each color to keep only the colors you prefer. Off by default.
ColorsChoose a hex color for each regular slot; Black (Spoiler) uses a fixed text-colored cover. The toggle beside each color controls whether it appears in mappings, commands, menus, and rendering.
Emoji mappingsMap multiple different emojis to a specific color. You do not need to use every emoji; all of them can represent the corresponding color, but usually only the first one is needed for write-back.
Custom color namesCustom display names for the colors. Give them meaning for a color-coding system that fits your workflow. This affects the editor menu and commands; leave blank to use the color name. Off by default.

Compatibility

  • Works on desktop and mobile (isDesktopOnly: false).
  • Requires Obsidian 1.13.0+.
  • Uses only local parsing and rendering — no network requests, no data leaves your vault.
  • Theme compatibility: the plugin deliberately avoids !important so it cooperates with theme styles. A theme that styles highlights with !important rules will override the plugin's highlight styling.

Credits

The emoji-highlight mechanism was originally built as PR #114 for Sidebar Highlights. This plugin extracts that feature into a standalone package. If you also use Sidebar Highlights, the two plugins coexist: this one renders colors in the editor and Reading view, while the sidebar plugin manages highlights and comments.

The ==🔴red== syntax was inspired by the Octarine project.

Star History

Star History Chart

More from Moy

If you appreciate my plugin design and quality, check out my other Obsidian plugins:

PluginDescriptionStats
Yearly GlanceSee your whole year's key events at a glance.Obsidian Downloads GitHub Stars
Easy CopyEasily copy formatted text, or copy elegant links.Obsidian Downloads GitHub Stars
Better LinksThe link popover editor you absolutely need.Obsidian Downloads GitHub Stars
Style ContextSet your Obsidian background to any image in your vault.Obsidian Downloads GitHub Stars
Harbor TabA beautiful new tab page with quick file search and creation.Obsidian Downloads GitHub Stars
Single Choice PropertyKeep selected list properties to only one value.Obsidian Downloads GitHub Stars

See all my plugins on my Obsidian Community page.

Friend plugins I contributed to: Note Toolbar & Typify ❤️

Support

If you like Colorful Highlights, consider buying me a coffee on Ko-fi ☕

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.