[Pythonmac-SIG] BBEdit questions

Kevin Altis altis@semi-retired.com
Tue, 30 Apr 2002 15:35:25 -0700


I'm in the process of evaluating BBEdit as a Python editor. I'm using 
version the trial version 6.5.2 on OS X 10.1.4 with the MachoPython 
2.2.1 and wxPython 2.3.3 preview builds available at:

http://sourceforge.net/project/showfiles.php?group_id=10718

In the Text Options dialog I have it set to auto-indent, auto-expand 
tabs (4 spaces) and syntax coloring is on.

I would like to change the default colors being used for syntax coloring 
but can't find the dialog. Does that have to be changed manually in a 
file on disk and if so where?

Auto-indent seems pretty dumb, I have to tab after typing a colon and 
Return so it apparently doesn't understand blocks. If there is a setting 
for this, I would like to change the behavior.

Worse, it doesn't know that the tabs expanded to four spaces, so when 
you have to backspace, so you have to backspace once for each space. 
That is sort of annoying, any workarounds besides always using tabs 
instead of spaces?

Check syntax under the #! menu always complains with an error "The front 
window isn't in a scripting language BBEdit currently recognizes 
(application error code 30001)."

This is sort of strange considering that when I use the Run command it 
promptly displays the syntax error in context.

The Run command does not work with wxPython Mac and MachoPython scripts, 
it appears to go into a loop trying to launch the script while the 
"Script Progress" dialog is up. Run in Terminal seems problematic, it is 
dropping a lot of print statements. I'm not sure if that means it is 
actually causing the wxPython  program I'm testing to drop events or 
whether it means there is a problem between the two processes terminal 
and the wxPython script. Consequently, the only thing that seems to be 
reliable is leaving a terminal open and executing the script directly 
after I've done a Save in BBEdit. I'm aleady used to doing this on 
Windows so that isn't a big deal except for the lack of syntax checking.

I'm sure I'll have other issues, but I thought I should bring these up 
in case there are answers before I post a message to the BBEdit folks.

A wiki or other help page on editing Python scripts on the Mac might be 
helpful to capture some of this knowledge.

ka