I have just modified my .bash_profile so as to have colors in iTerm and Terminal.

Now, I want to enable syntax highlighting for the Python interactive shell, IDLE-style.

How to do that?

link|improve this question
feedback

1 Answer

up vote 2 down vote accepted

http://bpython-interpreter.org/ appears to do what you want. Please see the quote below.


bpython is a fancy interface to the Python interpreter for Unix-like operating systems (I hear it works fine on OS X). It is released under the MIT License. It has the following features:

  • In-line syntax highlighting.
  • ...

Got here from: http://wiki.python.org/moin/PythonEditors#Enhanced_Python_shells

link|improve this answer
1  
Or ipython. Both are fancier alternatives than the vanilla python interpreter. – vtest Dec 4 '11 at 13:26
@vtest I now added syntax highlighting feature to the ipython features list in the wiki table. Thank you. – Gryllida Dec 4 '11 at 22:29
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.