Hi Filip!
Thanks for replying! Your method is very clever! However, in my case, I need to be able to isolate more than a word.
I managed to make something (see file attached) where a second text layer calculates how many characters there are in the top text layer (excluding punctuation and spaces) and replaces the letter for “N” with a super heavy stroke on it so it appears like squares.
Now my next step is to rig the same set up as in the smart highlighter preset to be able to put some words in between a set of characters (i.e.: The word [color] is now in square brackets so it would be highlighted.”
The only potential issue is that some letter are thinner than the letter “N”. Like if you have a sentence with many letters “I” the highlighted part might look a bit longer.
Let me know if this makes sense to you !
Thanks and have a good day !