472,364 Members | 2,166 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,364 software developers and data experts.

Syntax coloring in Python interpreter

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
7 2409

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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Ruthless | last post by:
hello. I've got a simple question. I've searched on google for PHP scripts coloring syntax e.g. asm, c, c++, bash etc. I've only found some CGI, apps, modules for Apache - but i can't use...
699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
11
by: Xah Lee | last post by:
in some online documentations, for examples: http://perldoc.perl.org/perlref.html http://www.ccs.neu.edu/home/dorai/t-y-scheme/t-y-scheme-Z-H-17.html http://www.haskell.org/hawiki/HaskellDemo ...
0
by: Markk | last post by:
Hi. I would like to ask If somebody don't have any small sample to coloring XML syntax, e.g. in RichTextBox. It can be in VB.NET or C#. I watched on SharpDevelop, but I could not understand...
2
by: Dan | last post by:
I'd like to show some XML text into an (editable) text box with some syntax coloring for tags, attributes etc. I don't need a full-blown commercial control, I'd just like to do some coloring on...
5
by: DIBS | last post by:
I'm new to Python and I don't understand what I'm doing wrong. I'm running windows xp. In the command line window, I type: Python Sudoku.py and I get the response" SyntaxError: invalid...
3
by: astromog | last post by:
I have some significantly extended syntax for Python that I need to create a reference implementation for. My new syntax includes new keywords, statements and objects that are sort of like classes...
3
by: mosi | last post by:
Python matrices are usually defined with numpy scipy array or similar. e.g. I would like to have easier way of defining matrices, for example: Any ideas how could this be done? The ";" sign...
3
by: sandromani | last post by:
Hi all, I am writing a webbased notepad and want to include syntax-coloring. The approach I have used is to set the font color and background color of the textarea to transparent, and place the...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
2
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.