I need to highlight specific text inside textarea. I searched a lot online but most of them have stated that its impossible to highlight specific text inside textarea. Instead we should use content editable div as such. But I need to highlight text inside textarea. Is there any way to do that? Some have stated that if textarea is wrapped with pre tag ,then its possible. But am blank how to use pre tag with textarea.