Any way to auto highlight specific text?

Hi,

Does anyone know of a way, perhaps a plugin, to automatically highlight a specific text string? For example, I have some #now and #next tags in my todo lists, and I would like them to automatically turn green and orange, respectively. I don’t want to have to manually add any other markup - just looking for a way for those specific tags to be enough and when I remove them, the highlight goes away.

Thanks for any tips,
Rich

Hi @rteakin, try with a css snippet like:

.cm-s-obsidian span.cm-hashtag.cm-tag-now {
  color:green;
}
.cm-s-obsidian span.cm-hashtag.cm-tag-next {
  color:orange;
}

image

2 Likes