I am making a program to search for characters in the desired . I need to color the specific character that i found in text area. How can I colo
As @Mohamed-Yousef said in his comment, I don't think you can put tags or styles inside a .
An alternative would be to use an user-editable For example: With this, if you search for "e", you can make a JS script to add styled elements around all the "e"s, so that your Try this example (which actually turned out really well, I'm surprised).