You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 4, 2019. It is now read-only.
@adilyalcin I can only advise against using the above named plugins. They may work, but are poorly implemented. A few reasons:
All of them are using either jQuery's .html() method ore the native innerHTML. This will destroy all events in the highlighting context and also triggers generation of the DOM over and over again which is bad for performance
They all aren't hosted on a professional hosting platform like GitHub with issues. Users may not have the chance to submit their problems, so you don't have a guarantee that others didn't encountered problems
They all aren't built upon unit tests. There are dozens of situations which need to be tested in order to guarantee functionality.
They don't escape search terms. Entering * for example may end in unexpected behavior
They may not ignore <script> and <style> tags or tag names in general. Type in e.g. scripthere and you will see that the HTML <script> tag will be highlighted
They may not contain a license information
They may not be maintained
... (I think you get an idea ;-))
Instead, have a look at mark.js which is developed implemenented in several dozen cross-browser unit tests and brings you the benefit to have further options.
Highlight (such as with yellow background) the matching text within the record display.
Some resources:
The text was updated successfully, but these errors were encountered: