How to select part of text in TextArea? For example, I have the start and end position of the text, and I need to change the background color to yellow. How to do it using jQuery or simple JavaScript?
Unfortunately, the item textareais just plain text. You will need to use a WYSIWYG editor such as FCKeditor or TinyMCE (or collapse your own widget based on divwith designmodeor contenteditableif you need highlighting). It can help you. Good luck
textarea
div
designmode
contenteditable
Source: https://habr.com/ru/post/1712987/More articles:How to rank custom search results? - javaNhibernate: QuerySyntaxException: "Class" is not displayed - nhibernateRunning crontab with user input - linuxMySQL, выберите записи по меньшей мере с символами X - string-matchingDoes / abcd ^ $ / i have anything in Perl? - regexRead the html page in asp.net mvc - asp.netHow to protect object fields in Rebol? - rebolcleaning when using exceptions and files in python - pythonstd :: list, std :: vector and malloc () - c ++PHP classes and including files - includeAll Articles