I would like to do something similar for an HTML document or a PDF. How should I implement this feature?
For an html document, I would consider simple javascript / css encoding.
Try FastPDFKit, you can search and the results will be highlighted.
http://mobfarm.eu/fastpdfkit
iBook uses JavaScript to retrieve selected text and uses Images to display the selected portion.
Source: https://habr.com/ru/post/1751939/More articles:Reading a number from a C ++ file - c ++Firing a custom event in Rx JS - javascriptUsing Velocity WebappResourceLoader with Spring - springproblem with reading and writing to internal memory - androidСоздание пользовательского драйвера ODBC/OLE в С# - c#Zend_Db_Table_Abstract remove - zend-frameworkICU Cycling - c ++Encryption of messages sent to WCF services hosted on a server with a real IP address - security.hide () /. show () and droppable - jqueryTypeError: unsupported operand type - pythonAll Articles