-
Notifications
You must be signed in to change notification settings - Fork 0
js_highlight.py
dbarbeau edited this page Apr 24, 2014
·
3 revisions
js_highlight.py is a script to strip off static syntax highlighting from the html output of nbconvert and to customize the CSS classes of the containing <code> or <pre> elements so that your favorite JS syntax highlighter can pick up the code and do its job.
# This one is for Google prettify.
$ nbconvert MyNotebook.ipynb
$ python $IPYTHON_CONTRIB_DIR/publishing/htmltools/js_highlight.py MyNotebook.html "prettyprint lang-{lang}".Aspell
Breakpoints
Chrome Clipboard
Codefolding
Comment Uncomment
Drag and Drop
Execute Timings
Help Panel
Hide Input All
Hierarchical Collapse
International Keymap
Javascript Highlighter
LaTeX Environments
Limit Output
Linenumbers
Navigation Hotkeys
Nbconvert Button
Printview Button
Printviewmenu Button
Python Markdown
Readonly
Rubberband
Runtools
Search & Replace
Search
Shift-Tab 3.x
Skip Traceback