aDHL

by tine-schreibt
5
4
3
2
1
Score: 56/100

Description

The Another Dynamic Highlights plugin offers a powerful and highly customizable way to highlight text dynamically using user-defined search terms, regular expressions, and styles. You can group highlighters with tags, assign colors and decorations, and control whether matches or their parent lines are highlighted. Highlights persist across sessions and can be toggled globally or per tag. The plugin also supports selection-based highlighting, where words under the cursor or selected text are highlighted on the fly with a delay option and an ignore list for common words.

Reviews

No reviews yet.

Stats

34
stars
7,861
downloads
5
forks
369
days
12
days
12
days
3
total PRs
0
open PRs
0
closed PRs
3
merged PRs
6
total issues
0
open issues
6
closed issues
26
commits

Latest Version

12 days ago

Changelog

  • moved a buttload of dependencies to devDependencies and updated it all

README file from

Github

This plugin is based on 'Dynamic Highlights' by @nothingislost. I fixed a bug in the regEx, but otherwise I left the basic mechanics untouched. I just added a lot more customisability and some usability features, which I hope you find worthwhile.

/// UPDATES -------------------

  • 2026-04-25: @Moyf added a bunch of stuff:

    • Some UI fixes (responsiveness, improved dark mode)
    • Option to duplicate queries
    • A debug mode
  • 2026-03-26: You can now choose the min length of selection highlights. Set it to 1 to work for Chinese characters.

  • 2025-08-16: @leonrjg added capture group functionality. Thank you!

/// ----------------------------

Some of the highlight styles were inspired by those available in 'Highlightr' by @chetachiezikeuzor, so if you're using that, aDHL should fit right in, style wise.

Here's a picture of the settings panel as it looks on desktop, including some use cases and highlighter examples. Scroll down to find all elements explained, left to right, top to bottom. The example queries can be found all the way down.

Persistent highlights

  • Import: Imports settings. Importing highlighters from the original plugin won't work, sorry. But in order to get the benefits of the new plugin, you'll have to touch the settings of each highlighter anyway, so...
  • Export: Exports settings.
  • Toggle: This is The Switch that starts/stops all persistent highlights being rendered; find it in the Command Palette/Hotkey panel.

Define persistent highlighters

  • First Row:
    • First input field: Here you input your highlighter's name.
    • Checkerboard circle: This is the color picker. Click on it to get a... well, picker, and the option to input a hexa or hsla. By default it's set to your chosen accent color with an opacity of 0.25.
    • Second input field: Here you input your search query. It also shows what the highlight will look like. If a highlight seems to not be rendered, try upping the opacity of your color or (mostly if you're using a Dark Theme) changing it altogether.
    • Dropdown: All your tags. Choose one or make a new one. Intended to group your highlighters together and make them easier to manage. Find all your tags in the Command Palette/Hotkey panel.
    • Save button: Save your highlighters.
    • Discard button: Discard changes; useful when you start to edit a highlighter and then think better of it.
  • Second row
    • Dropdown: So many decoration styles! Choose one that fits your vibe and/or purpose.
    • RegEx toggle: Turn regEx on/off. This obviously uses JavaScript flavoured regEx. Find info here: https://www.regular-expressions.info. As I said, I fixed one bug, but there might be some left.
    • Groups toggle: Toggle capture groups on/off.
    • Matches toggle: Toggle on/off if matches will be highlighted.
    • Parent line toggle: Toggle on/off if the parent line of a match will be highlighted.

Your highlighters and tags

  • Sort button: By default newly created tags appear at the top of the list, and newly created highlighters appear at the top inside their tag, its tag also being moved to the top. Once you're done creating, sort it all alphabetically (or don't, I'm not your boss).
  • Caret: UI iconography thingy that tells you that this element can be expanded/collapsed.
  • Tag name: The name of your tag(s). #unsorted is the default tag. Your tags don't need a #, though.
  • Toggle: Starts/stops rendering of all highlighters associated with this tag. Individual highlight settings remain intact.
  • Edit button: Edit the tag name. If you choose a name that already exists, both tags will be merged.
  • Delete button: Delete the tag. This will also delete all highlighters associated with it, but there's a modal and a hurdle before anything is actually deleted, so you should be safe.
  • abc icon: This is a little preview of what your highlighter will look like. I think it's cute.
  • Highlighter name and query/regEx: The name of your highlighter and the stuff that it will highlight. Be sure to check if you have regEx enabled, if your regEx highlight doesn't seem to work.
  • Toggle: Toggle this highlighter on/off.
  • Edit button: Edit your highlighter.
  • Delete button: Delete your highlighter.

Show highlights in reading mode

  • Toggle on or off if you want your highlights to be rendered in reading mode, too.

Enable debug mode

  • If enabled, match details will be logged to the console - provided you have highlighting for reading mode enabled, and you editor is in reading mode.

Hotkeys and command palette

  • All your tags are automatically added to the command palette/hotkeys for toggling. If you want to toggle individual highlighters via palette/hotkey, you can input a comma separated list of their names (case sensitive). Highlighters with the tag '#unsorted' are added automatically.
  • Input field: For the names of the tags whose highlighters you want to toggle individually. Be aware of your spelling, there's no check. Just type or delete away; saving happens automatically, deletions take effect when you reload Obsidian.

Selection highlights

  • Choose a color: Self explanatory, really.
  • Choose a decoration: All the deco available for static highlighters you also can choose for your dynamic highlights.
  • Save button: Save the style you made. I would give you a preview but couldn't figure out how.
  • Cancel button: For when you regret your choices.
  • Highlight all occurrences of the word under the cursor: Is very useful to avoid repetition on the fly. Find a toggle for this in the Control Palette/Hotkey panel. You can also set a delay.
  • Highlight all occurrences of the actively selected text: As the description says. Find a toggle for this also in the Control Palette/Hotkey panel.
  • Mininum selection length: You can set this to 1 so Chinese characters can be highlighted.
  • Maximum number of matches: If the plugin finds more matches than this, highlighting will be blocked.
  • Highlight delay: For when you want the word around your cursor to be highlighted, but only when you stop typing for a moment.
  • Ignored words: A list of words you don't want to be highlighted, even when they are under the cursor. By default this field contains the 100 most commonly used words of the English language. Empty it if you like; saving happens automatically.

Example queries that use regEx

  • Highlight all dialogue:
    • make sure to NOT copy the two backticks ``.
    • "(.*?)" <- Highlights all between two ""
    • '(.*?)' <- Highlights all between two ''
  • Highlight several words:
    • same here; don't copy the two backticks ``.
    • untoward |henceforth |betwixt <- the pipe - | - means 'or', so this highlights all these words; spaces are there to make it more readable, they are also part of the search term, though, so instances where the word is followed by a , won't be highlighted. Keep that in mind when phrasing your search.
    • /untoward |henceforth |betwixt/i <- This highlights all these words, case INsensitive; due to the way regEx is implemented in this plugin, mixing case sensitive and insensitive in a single regEx doesn't work.

And that's it. Let me know if I forgot anything. I might add a modal for on/off toggling, but only if many people would find that useful.

If you want to express your joy at finding this neat little piece of code, you can throw me some coin: https://ko-fi.com/tine_schreibt

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Advanced Codeblock
4 years ago by Lijyze
An obsidian plugin that give additional features to code blocks.
Apple Books - Import Highlights
2 years ago by bandantonio
Import highlights and notes from your Apple Books to Obsidian
Apple Books Highlights
3 years ago by Atif Afzal
Sync your Apple Books highlights in Obsidian
Auto Replacer
10 months ago by Alecell
A live text replacement plugin that applies automatic formatting, corrections, or custom replacements in real-time. Define your own regex-based rules and transformation logic to modify text dynamically as you type.
AutoMover
a year ago by Al0cam
Move files and notes with specified names into their designated folders according to rules you define.
Blue Star
2 years ago by Wang Guoshi
A plugin for Obsidian that generates Anki flashcards in various ways.
Bulk Rename
4 years ago by Oleg Lustenko
Cloze
3 years ago by Vikki
A plugin for Obsidian which enables converting highlights, underlines, bolded texts, or any selected texts into clozes.
Custom Selected Word Count
a year ago by banisterious
Custom Selected Word Count for Obsidian
Dynamic Highlights
4 years ago by nothingislost
An experimental Obsidian plugin that highlights all occurrences of the word under the cursor
Enhanced Annotations
2 years ago by ycnmhd
Extract Highlights
5 years ago by Alexis Rondeau
Manage your highlights in Obsidian by easily creating, removing and exporting them.
File Explorer++
3 years ago by kelszo
A plugin for https://obsidian.md, which enables the ability to hide and pin specific files and folders in the file explorer by applying custom filters.
FileName Styler
a year ago by Marc Feininger
An Obsidian plugin to hide, customize, and decorate file names in the sidebar using regex and customizable profiles.
Find and replace in selection
5 years ago by Dmitry Savosh
Obsidian plugin. Find and replace in selection.
Floating Highlights
3 years ago by Karthik S Raju
This is a plugin for obsidian which highlights a block of text or a word as you scroll down while reading.
Focus and Highlight
4 years ago by BO YI TSAI
A plugin for obsidian to focus and highlight on a specific heading in Reading mode.
Global Search and Replace
3 years ago by Mahmoud Fawzy Khalil
A plugin to do a global search and replace in all your Obsidian vault files.
HamsterBase Official
3 years ago by HamsterBase
Hide Commands in Menu
a year ago by bomian98
Obsidian Plugin, hide different commands in different menus.
Highlight Helper
2 years ago by Chongmyung Park
Helper to collect highlight in Obsidian
Highlight Public Notes
5 years ago by dennis seidel
HiNote
a year ago by Kai
Add comments to highlighted notes, use AI for thinking, and flashcards for memory.
Hypothes.is
5 years ago by weichenw
An Obsidian.md plugin that syncs highlights from Hypothesis.
InfoFlow
a year ago by RockieStar Inc.
Obsidian plugin for InfoFlow.app - This plugin integrates InfoFlow with Obsidian, allowing you to sync your saved articles, web pages, notes, and highlights directly into your Obsidian vault.
Japanese Novel Ruby
2 years ago by quels <@k-quels>
Obsidian plugin for treat Japanese novel ruby
Kindle Highlights
3 years ago by Hady Osman
Sync your Kindle notes and highlights directly into your Obsidian vault
Kindle Highlights Import
10 months ago by Leon Luttenberger
Plugin for Obsidian that allows users to import Kindle highlights into their Obsidian vault.
Kobo Highlights Importer
4 years ago by Flavio Cordari
KoReader Highlight Importer
a year ago by Tahsin Kocaman
Imports highlights and metadata from KoReader into Obsidian notes
Linkify
4 years ago by Matthew Chan
LinkMagic
2 years ago by AndyReifman
MatchSyntax
a year ago by Eda
An Obsidian plugin that lets you write "regex-like" syntax to search the contents of a note, including part-of-speech tagging and (limited) fuzzy matching.
Multiplatform Highlights Importer
2 years ago by wwwkieran
Import and consolidate highlights from different reading sources. Supports reconciling books across reading sources.
Onyx Boox Annotation & Highlight Extractor
4 years ago by Akos Balasko
This tool extracts the highlights and the annotations from OnyxBoox Reading Notes txt files, and converts them to linked zettelkasten literature and permanent notes
PDF Highlights
5 years ago by Alexis Rondeau
Extract highlights, underlines and annotations from your PDFs into Obsidian
Pocketbook Cloud Highlight Importer
3 years ago by Lena Brüder
Imports highlights and notes from books stored in the pocketbook cloud to your obsidian vault
R.E.L.A.X.
2 years ago by Syr
Regex Obsidian Plugin
Raindrop Highlights
4 years ago by kaiiiz
An Obsidian.md plugin that syncs highlights from Raindrop.
Readavocado Sync
4 years ago by Cyrus Zhang
Readavocado obsidian plugin to sync your favorite highlights.
Readwise Community
5 years ago by renehernandez
Sync Readwise highlights into your obsidian vault
Regex Find and Replace
4 years ago by Martin Eder
Plugin for Obsidian, providing search/replace functionality which supports regular expressions and selections.
Regex Line Filter
a year ago by 64MM4-KN1F3
A note filtering plugin for Obsidian
Regex Mark
2 years ago by Mara-Li
Regex Pipeline
5 years ago by No3371
An Obsidian plugin that allows users to setup custom regex rules to automatically format notes.
Sidebar Highlights
10 months ago by trevware
Simple Mention
4 years ago by der-tobi
Obsidian plugin for mentioning people
Tag Links
2 years ago by Zacchary Dempsey-Plante
A plugin for Obsidian that allows tags to be opened as links using a hotkey.
TODO Highlighter
a year ago by Nuraly Dyussenov
Obsidian Plugin that formats the exact string TODO, so it can be easily seen in your notes.
TreeFocus
3 years ago by iOSonntag
Obsidian plugin: Highlight, dim & style your files & folders in the file explorer (navigation) based on predefined or custom rules.
Unearthed (Kindle Sync)
a year ago by CheersCal
URL Formatter
8 months ago by Thomas Snoeck
Automatically formats specific URLs pasted into Obsidian into clean Markdown links.
Vim Yank Highlight
2 years ago by Aleksey Rowan
Highlight yanked text in Vim mode. Enjoy that subtle animation you've missed so much.
Vocabulary Highlighter
2 years ago by eatgrass
Highlight English words according to the frequency with Obsidian
WuCai highlights Official
3 years ago by 希果壳五彩
WuCai highlights Official, for Sync highlights into your obsidian notes