Re: Syntax coloring in Python interpreter



Neil Cerutti wrote:
On 2007-11-01, Chris Mellon <arkanes@xxxxxxxxx> wrote:
On Nov 1, 2007 3:01 PM, Neil Cerutti <horpner@xxxxxxxxx> wrote:
On 2007-11-01, Lee Capps <lcapps@xxxxxxxxxxxxxxx> wrote:
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
.



Relevant Pages

  • RE: Help required - deleting directory R.E.M. from my hard drive?
    ... There's a good article on Windows file naming conventions here: ... A useful feature of this syntax is that it asks the ... support filenames ending in a period (as also mentioned in the MSDN ...
    (microsoft.public.win2000.file_system)
  • Re: Syntax coloring in Python interpreter
    ... which colorizes Ruby syntax on the fly. ... Windows console. ... support when I last looked. ...
    (comp.lang.python)
  • Re: Syntax coloring in Python interpreter
    ... which colorizes Ruby syntax on the fly. ... IPython's syntax coloring doesn't work with Windows 2000 and up, ... relies on ANSI.SYS, which is not supported by the Windows ...
    (comp.lang.python)
  • Re: Syntax coloring in Python interpreter
    ... which colorizes Ruby syntax on the fly. ... IPython's syntax coloring doesn't work with Windows 2000 and up, ... relies on ANSI.SYS, which is not supported by the Windows ...
    (comp.lang.python)
  • Re: Problem with bind_param using DBD::mysql
    ... I didn't realise that windows doesn't have LONG LONG. ... syntax; check the manual that corresponds to your MySQL server version ... Failed 3/113 tests, 97.35% okay ...
    (perl.dbi.users)