By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,543 Members | 2,085 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,543 IT Pros & Developers. It's quick & easy.

Syntax coloring in Python interpreter

P: n/a
Greetings -- as a long time user of both Python and Ruby interpreters,
I got used to the latter's syntax-coloring gem, wirble, which
colorizes Ruby syntax on the fly. Is there anything similar for
Python?

Nov 1 '07 #1
Share this Question
Share on Google+
7 Replies


P: n/a

On Nov 1, 2007, at 1:45 PM, braver wrote:
Greetings -- as a long time user of both Python and Ruby interpreters,
I got used to the latter's syntax-coloring gem, wirble, which
colorizes Ruby syntax on the fly. Is there anything similar for
Python?
I believe IPython can do this:

http://ipython.scipy.org/moin/

---
Lee Capps
Technology Specialist
CTE Resource Center
lc****@cteresource.org

Nov 1 '07 #2

P: n/a
On 2007-11-01, Lee Capps <lc****@cteresource.orgwrote:
>
On Nov 1, 2007, at 1:45 PM, braver wrote:
>Greetings -- as a long time user of both Python and Ruby
interpreters, I got used to the latter's syntax-coloring gem,
wirble, which colorizes Ruby syntax on the fly. Is there
anything similar for Python?

I believe IPython can do this:

http://ipython.scipy.org/moin/
IPython's syntax coloring doesn't work with Windows 2000 and up,
since (last I checked) it relies on a readline.py file, which
relies on ANSI.SYS, which is not supported by the Windows
console.

--
Neil Cerutti
Nov 1 '07 #3

P: n/a
On Nov 1, 2007 3:01 PM, Neil Cerutti <ho*****@yahoo.comwrote:
On 2007-11-01, Lee Capps <lc****@cteresource.orgwrote:

On Nov 1, 2007, at 1:45 PM, braver wrote:
Greetings -- as a long time user of both Python and Ruby
interpreters, I got used to the latter's syntax-coloring gem,
wirble, which colorizes Ruby syntax on the fly. Is there
anything similar for Python?
I believe IPython can do this:

http://ipython.scipy.org/moin/

IPython's syntax coloring doesn't work with Windows 2000 and up,
since (last I checked) it relies on a readline.py file, which
relies on ANSI.SYS, which is not supported by the Windows
console.
If you scroll down about half a page in the above link you'll find a
link to a readline implementation for Windows.
--
Neil Cerutti

--
http://mail.python.org/mailman/listinfo/python-list
Nov 1 '07 #4

P: n/a
On 2007-11-01, Chris Mellon <ar*****@gmail.comwrote:
On Nov 1, 2007 3:01 PM, Neil Cerutti <ho*****@yahoo.comwrote:
>On 2007-11-01, Lee Capps <lc****@cteresource.orgwrote:
>
On Nov 1, 2007, at 1:45 PM, braver wrote:
Greetings -- as a long time user of both Python and Ruby
interpreters, I got used to the latter's syntax-coloring gem,
wirble, which colorizes Ruby syntax on the fly. Is there
anything similar for Python?
I believe IPython can do this:

http://ipython.scipy.org/moin/

IPython's syntax coloring doesn't work with Windows 2000 and
up, since (last I checked) it relies on a readline.py file,
which relies on ANSI.SYS, which is not supported by the
Windows console.

If you scroll down about half a page in the above link you'll
find a link to a readline implementation for Windows.
That pyreadline.py appears to be an improvement on the Windows
support when I last looked (6 months or so ago). Thanks for the
heads up.

--
Neil Cerutti
Nov 1 '07 #5

P: n/a
Neil Cerutti wrote:
On 2007-11-01, Chris Mellon <ar*****@gmail.comwrote:
>On Nov 1, 2007 3:01 PM, Neil Cerutti <ho*****@yahoo.comwrote:
>>On 2007-11-01, Lee Capps <lc****@cteresource.orgwrote:
On Nov 1, 2007, at 1:45 PM, braver wrote:
Greetings -- as a long time user of both Python and Ruby
interpreters, I got used to the latter's syntax-coloring gem,
wirble, which colorizes Ruby syntax on the fly. Is there
anything similar for Python?
>
I believe IPython can do this:

http://ipython.scipy.org/moin/
IPython's syntax coloring doesn't work with Windows 2000 and
up, since (last I checked) it relies on a readline.py file,
which relies on ANSI.SYS, which is not supported by the
Windows console.
If you scroll down about half a page in the above link you'll
find a link to a readline implementation for Windows.

That pyreadline.py appears to be an improvement on the Windows
support when I last looked (6 months or so ago). Thanks for the
heads up.
And it's worth looking at ipykit[1] which is a standalone
bundle of ipython py2exe-ed for Windows users.

TJG

[1] http://ipython.scipy.org/moin/IpyKit
Nov 2 '07 #6

P: n/a
On 2007-11-02, Tim Golden <ma**@timgolden.me.ukwrote:
Neil Cerutti wrote:
>On 2007-11-01, Chris Mellon <ar*****@gmail.comwrote:
>>On Nov 1, 2007 3:01 PM, Neil Cerutti <ho*****@yahoo.comwrote:
On 2007-11-01, Lee Capps <lc****@cteresource.orgwrote:
On Nov 1, 2007, at 1:45 PM, braver wrote:
>Greetings -- as a long time user of both Python and Ruby
>interpreters, I got used to the latter's syntax-coloring gem,
>wirble, which colorizes Ruby syntax on the fly. Is there
>anything similar for Python?
>>
I believe IPython can do this:
>
http://ipython.scipy.org/moin/
IPython's syntax coloring doesn't work with Windows 2000 and
up, since (last I checked) it relies on a readline.py file,
which relies on ANSI.SYS, which is not supported by the
Windows console.
If you scroll down about half a page in the above link you'll
find a link to a readline implementation for Windows.

That pyreadline.py appears to be an improvement on the Windows
support when I last looked (6 months or so ago). Thanks for the
heads up.

And it's worth looking at ipykit[1] which is a standalone
bundle of ipython py2exe-ed for Windows users.

TJG

[1] http://ipython.scipy.org/moin/IpyKit
I installed the new version and the coloring works out of the box
on Windows 2000 with Gary's PyReadline 1.4.4.

--
Neil Cerutti
If you throw at someone's head, it's very dangerous, because in the head is
the brain. --Pudge Rodriguez
Nov 2 '07 #7

P: n/a
On Nov 1, 12:45 pm, braver <delivera...@gmail.comwrote:
Greetings -- as a long time user of both Python and Ruby interpreters,
I got used to the latter's syntax-coloring gem, wirble, which
colorizes Ruby syntax on the fly. Is there anything similar for
Python?
What's wrong with IDLE? There's a plug-in for Eclipse that does syntax
highlighting and more as well. So does ActiveState's ActivePython.
Even Notepad++ can do highlighting.

Mike

Nov 2 '07 #8

This discussion thread is closed

Replies have been disabled for this discussion.