On Thu, Jun 20, 2002 at 02:52:03AM -0700, Steve Freitas wrote:
> Can you guys(/girls?) recommend your favorite (preferably *nix-based) Python
> editor to me? I've tried...

I saw a demonstration of PyCrust last week.  It's not and editor but an
interactive Python shell with word completion context-sensitive help
about the current function, and two side panels that are an object tree
and object browser.  I haven't used it yet but it looks quite
interesting.  If it had an editor, it would make a great IDE.  The
stable version is bundled with wxPython; the development version is at
ttp://sourceforge.net/projects/pycrust/

I use vim for editing, mainly because of the syntax highlighting and
because I'm used to the keystrokes.  Pressing "/" + word + enter is so
much faster and more convenient than pressing ctrl-F (or alt-F or
ctrl-shift-F?) and waiting for the Find dialog to appear, and likewise
for number + "G" instead of ctrl-L to go to a line.  

> Emacs: Its inability to handle triple-quoted blocks properly ruins the
> syntax highlighting, and that's that. 

Vim's syntax highlighting is worse.  It does well with ordinary triple-
quoted strings, but as soon as it sees an apostrophe it switches modes.
Sometimes I put a comment like this after the string:
# ' <-- This line is here to fix vim s syntax highliging.

nedit has the best syntax highligting IMO.  It can switch fonts as well
as colors, so it uses italic for comments.  nedit also has quite
sophisicated block operations: you can drag rectangular chunks around
with the mouse to copy or move them, and the surrounding text moves
around to accomodate it line by line while you're moving.  Sometimes I
use nedit for a change, but it doesn't allow you to embed indentation
rules into the document like vim does, which means new lines have
different indentation than existing lines and Python chokes.  Vim allows
you to put a comment like:
# vim: shiftwidth=4 tabstop=4 expandtab
in the document.  Emacs does this too but with a different syntax.  I
wish the editors would agree on a common syntax for this.

> It sure indents well, though.

Indentation is the biggest reason I don't use emacs.  It
tries to be so smart that it won't let you override its opinion of
where the line should start.  But sometimes I want to put an extra
indent in continuation lines in my comments, and emacs refuses to
allow it.

-- 
-Mike (Iron) Orr, [EMAIL PROTECTED]  (if mail problems: [EMAIL PROTECTED])
   http://iron.cx/     English * Esperanto * Russkiy * Deutsch * Espan~ol


-------------------------------------------------------
                   Bringing you mounds of caffeinated joy
                   >>>     http://thinkgeek.com/sf    <<<

_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to