You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
root ee22027d4f
fix rights to 755 (linux actual)
2 years ago
..
demo_highlighter.html fix rights to 755 (linux actual) 2 years ago
demo_highlighter.ipynb fix rights to 755 (linux actual) 2 years ago
export_highlights.html fix rights to 755 (linux actual) 2 years ago
export_highlights.ipynb fix rights to 755 (linux actual) 2 years ago
export_highlights.pdf fix rights to 755 (linux actual) 2 years ago
export_highlights.tex fix rights to 755 (linux actual) 2 years ago
highlighter.css fix rights to 755 (linux actual) 2 years ago
highlighter.js fix rights to 755 (linux actual) 2 years ago
highlighter.yaml fix rights to 755 (linux actual) 2 years ago
icon.png fix rights to 755 (linux actual) 2 years ago
image.gif fix rights to 755 (linux actual) 2 years ago
readme.md fix rights to 755 (linux actual) 2 years ago
tst_highlights.html fix rights to 755 (linux actual) 2 years ago
tst_highlights.ipynb fix rights to 755 (linux actual) 2 years ago
tst_highlights.pdf fix rights to 755 (linux actual) 2 years ago
tst_highlights.tex fix rights to 755 (linux actual) 2 years ago

readme.md

Highlighter

  • Firstable, the extension provides several toolbar buttons for highlighting a selected text within a markdown cell. Three different `color schemes' are provided, which can be easily customized in the stylesheet highlighter.css. The last button enables to remove all highlightings in the current cell.
  • This works both when the cell is rendered and when the cell is in edit mode;
  • In both modes, it is possible to highlight formatted portions of text (In rendered mode, since the selected text loose its formatting, an heuristic is applied to find the best alignment with the actual text)
  • When no text is selected, the whole cell is highlighted;
  • The extension also provides two keyboard shortcuts (Alt-G and Alt-H) which fire the highlighting of the selected text.
  • Highlights can be preserved when exporting to html or to LaTeX -- details are provided in export_highlights

Installation

The extension can be installed with the nice UI available on jupyter_nbextensions_configurator website, which also allows to enable/disable the extension.

You may also install the extension from the original repo: issue

jupyter nbextension install https://rawgit.com/jfbercher/small_nbextensions/master/highlighter.zip  --user

at the command line.

Testing

Use a code cell with

%%javascript
require("base/js/utils").load_extensions("highlighter/highlighter")

Automatic load

You may also automatically load the extension for any notebook via

jupyter nbextension enable highlighter/highlighter