8000 GitHub - deathy/texthighlighter: TextHighlighter allows you to highlight text on web pages.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

deathy/texthighlighter

 
 

Repository files navigation

Forked from original at https://github.com/mir3z/texthighlighter for some minor changes since original is no longer maintained.

##

This repository is no longer maintained!

TextHighlighter

TextHighlighter allows you to highlight text on web pages. Just select it!

Getting started

Download TextHighlighter directly from GitHub or install with Bower:

$ bower install text-highlighter

Add script file to head section of your web page:

<script type="text/javascript" src="TextHighlighter.min.js"></script>

And use it!

var hltr = new TextHighlighter(document.body);

For more details see API reference or Wiki pages on GitHub.

Also check Demos section below for examples of usage.

Features

  • Highlighting of selected text.
  • Highlighting all occurrences of given text (find & highlight).
  • Removing highlights.
  • Selecting highlight color.
  • Serialization & deserialization.
  • Works well in iframes.
  • Keeps DOM clean.
  • No dependencies. No jQuery or other libraries needed.

Compatibility

Should work in all decent browsers and IE >= 9.

Demos

Documentation

You may check API reference or Wiki pages on GitHub.

About

TextHighlighter allows you to highlight text on web pages.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 76.6%
  • HTML 21.4%
  • CSS 2.0%
0