Inject <script>
to expand DOM selection on mouse-up.
hise
reads HTML or plaintext from input file and adds a <script>
tag that, when viewing in a web browser, will add an event listener to highlight matching text on mouse selection.
# wrap arbitrary output
$ ps --sort=pcpu | head | hise -r
# with source-highlight
$ source-highlight -i index.js | hise
# with marked
$ marked README.md | hise
Hint: use bcat to pipe HTML output to a browser tab.
Appends the script to an HTML page. If input is not HTML but plaintext, wraps it in <pre>
first.
Reads <file>
or stdin, writes to stdout.
Wrap input stream in a <pre>
tag.
Ignore case when matching a string.
npm install -g hise
MIT