Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9843

Automating Find & Replace to change font colour

$
0
0

I write about the card game bridge, so I need to automate this formatting all the time:

Find all "♣" and color the text green (#00b700).
Find all "♦" and color the text orange (#ff8100).
Find all "♥" and color the text red (#ff0000).
Find all "♠" and color the text blue (#0000ff).

Screenshot of what the script should do.

@Mark built me a script to do this, but I'm getting this error:

"TypeError: Cannot find function setFontColor in object Text."

Would someone please have a look at the script and try to spot the solution? Thanks


Viewing all articles
Browse latest Browse all 9843

Trending Articles