Is there a way to turn on python syntax highlighting for Terminal.app on Mac OS X?
If you just want to highlight sources you dump into the terminal a la
try excellent pygments. It actually supports a lot of languages. Run with
If instead you were talking about editing files with syntax highlighting inside a mac terminal, this really depends on the editor.
vimyou want at least these option in
emacsworks right out of the box
- don't ask me about
You can try
ptpython in github, simply
pip install ptpython
and use it with
Try ipython. It highlights syntax and much more.
I haven't tried it on Mac but looks like it must work:
Another option is WxPython and pycrust (which works without Terminal.app :( )