jEdit (www.jedit.org) is an excellent programmer's editor writtin in Java (source code is GPL'ed). It has a plug-in architecture with many plug-ins available, one of which allows you to write macros for the editor using Jython (which would probably require some knowledge of Java libraries but is otherwise Python). Alx