I have a textarea that user will type his input in, and I want to change the color for specific words I'm expecting to find in the input string for example I'm expecting the user to type the following:
"My name is Maryam and My age is 24"
so I want to change the color for My name and My age to blue and i want this change to take place once the user type 'My name' or 'My age'. AND TO SHOW THE COLORED TEXT INSIDE THE TEXTAREA..
is there is a way to do this using css, html or javascript ?