[IPython-dev] how to implement syntax highlighting for a new language
Robert Dodier
robert.dodier at gmail.com
Sun Aug 9 17:14:44 EDT 2015
Hi,
I have been working on Maxima-Fishbowl, an IPython kernel for the
computer algebra system Maxima. I would like to provide syntax
highlighting for Maxima code in the web browser and in documents
converted by nbconvert.
I gather that nbconvert uses pygments for syntax highlighting. It
looks like I could easily create a highlighter for Maxima by modifying
the one for MuPAD (a similar system). How can I tell IPython to use
the new highlighter?
I haven't been able to figure out how the browser does highlighting.
Fishbowl (Common Lisp kernel) has some custom Javascript which
apparently implements a highlighter based on CodeMirror. Is that the
usual way to go for new languages?
Thanks for your help, I appreciate it very much.
best,
Robert Dodier
More information about the IPython-dev
mailing list