Hightlight a word, but only when it appears between special characters.

Posted by Mesarthim on Fri 15 Sep 2023 08:57 PM — 2 posts, 6,255 views.

#0
Hi there. I've figured out how to highlight words. As an example, I can highlight 'Public' in cyan, and that's great for visibility. But every time I walk into a new room, all instances of public are highlighted and that isn't what I need. I just want chat spam in the [Public] channel to be highlighted.

That's simple enough, add the [ and ] to the word and it's highlighted. But I don't want those characters highlighted. Only the word, but only the word when it's surrounded by those characters. How can I accomplish this?
Australia Forum Administrator #1
Put a backslash before the square brackets, ie.

\[Public\]