[IPython-dev] terminal syntax highlighting?

Matthias BUSSONNIER bussonniermatthias at gmail.com
Thu Apr 24 11:35:13 EDT 2014


Hi, Gösta

Le 24 avr. 2014 à 17:21, Gösta Ljungdahl a écrit :

> I am sorry for bugging you with a newbie question. I should have posted
> on the user's list.

No, this list is fine. 

> Was there never any syntax
> highlighting in the interactive terminal?
> 
> Please set my mind straight and if there, indeed, was syntax
> highlighting: why is it gone now?

there should be syntax hilight when you look at the source by using `??` like 
In[1]: object ??
… (source syntax hilight)

but it might need the "pygments" library.

As for the cod you are typing, no it is not syntax hilighted, and it is not possible because we 
use deadline to get  user input.

Though bpython [1] use curses which allow syntax hilight, 
and bipython [2] is a new project that use the best of both world if you are adventurous.

-- 
Matthias

[1] http://bpython-interpreter.org/
[2] http://bipython.org/


> 
> Gösta
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140424/49afc8d6/attachment.html>


More information about the IPython-dev mailing list