[triangle-zpug] editors for python - customizable

TJ Stankus tjstankus at yahoo.com
Thu Dec 1 18:37:01 CET 2005

I feel now like I should clarify my thoughts on jEdit a bit. The reason I
mostly stopped using is twofold:

- Swing's problems with the video card in my Thinkpad. Once I got it all
straightened out a new version of Java screwed it up again. I got sick of
dealing with it.
- I spend a good bit of time on Macs these days and I'm happy with Textmate,
so no need to try jEdit out on Mac.

One other thing to point out about jEdit is Abbreviations, which you can use
for text expansion macros. These are cool and powerful. I'm doing this all
from memory, so forgive me if I'm a bit off. You can setup Abbreviations to be
triggered by the spacebar. One example of a handy abbreviation that I used all
the time with Zope Page Templates was 'sptr ', which expanded to <span
tal:replace="" /> and put the cursor between the quotes. Another example - you
could use Abbreviations to do {} matching for languages that use brackets. You
could really go crazy with abbreviations. This is doable in other editors, in
different ways.

The one killer feature of jEdit that I haven't seen elsewhere, though, is
multiple select. CTRL-\ to toggle it, I think. Really super useful for things
like converting text to html. Select all the paragraphs, individually, then
put <p></p> tags around each in just a couple keystrokes.

Chris is right about the lack of Zope External Editor with jEdit. You can
generally work around it by FTP'ing into Zope from jEdit, if you don't mind
doing that. Even then, with customized content objects, things can get a
little painful.



--- Chris Calloway <cbc at unc.edu> wrote:

> TJ Stankus wrote:
> > jEdit will do what you want.
> I've been a very happy jEdit user for, Idunno, something like six years 
> at least?
> It's scriptable in Jython (and several other ways).
> The "Clipper" plug-in for jEdit does the "libraries of collections of 
> insertable code snippets" thingie you want.
> jEdit does Python syntax highlighting, etc. Perl, and of course, Java, 
> too. Lots of Java code beautification, command completion, API lookup, 
> etc.. For programmers who have to do it all (Python, C, Java, Perl, 
> PHP), it's the shizzy, much more so than all those Emacs adapters.
> It has all kinds of fancy/useful XML task plug-ins.
> And it's pretty easy to modify/fix anything you don't like about it.
> I once said jEdit was a pretty good IDE. Someone corrected me by saying 
> it couldn't be an IDE because it didn't have a layout manager. Someone 
> came out with a layout manager the same day. It's pretty easy to fab up 
> jEdit plug-ins, and there's a huge community for it.
> I went to the Eclipse with Plone presentation at PloneCon. I've always 
> hated Eclipse, but wanted to keep an open mind and see what people were 
> doing with it. There were quite a few people in the room who raised 
> their hands to say they were using jEdit for Python hacking, more than 
> any other editor or IDE.
> jEdit is not a good choice for use with Zope External Editor, however, 
> as it is in that class of editor which operates by "detaching itself 
> from the controlling process." The formal name for that is "MDI" or 
> "Multiple Document Interface." There is a jEdit "server" process which 
> gets a message from a new launcher process each time you fire up a new 
> file to edit from the command line. The launcher process ends after 
> messaging the server with the new file to edit. Zope External Editor, 
> which makes use of a command shell to start an editor, doesn't like 
> this. Zope External Editor just thinks your editor died right after 
> starting, because all it knows about is the launcher process. Most good 
> editors are MDIs, however.
> Enfold Desktop, however, makes Zope External Editor kind of unnecessary, 
> at least for Plone.
> -- 
> Sincerely,
> Chris Calloway
> http://www.seacoos.org
> office: 17-6 Venable Hall   phone: (919) 962-4323
> mail: Campus Box #3300, UNC-CH, Chapel Hill, NC 27599
> _______________________________________________
> triangle-zpug mailing list
> triangle-zpug at starship.python.net
> http://starship.python.net/mailman/listinfo/triangle-zpug

More information about the triangle-zpug mailing list