I'd like to create an input field for a memory game where every correct letter is (in plaintext) displayed green and every incorrect letter is displayed red inside the input field.
The word that has to be entered is available as a string, so I can compare the input with the solution.
How can I make each letter in the input field a different color based on wrong (red) or right (green)?
I found this solution for random colors but i don't really get the transfer to my case.