Jack Jansen | 7cc5735 | 1998-08-18 14:54:11 +0000 | [diff] [blame] | 1 | "Run as Python" -- a BBEdit extension to make the Python interpreter execute the |
| 2 | contents of the current window. |
| 3 | |
Jack Jansen | 7cc5735 | 1998-08-18 14:54:11 +0000 | [diff] [blame] | 4 | version 0.2.3, 18 september 1996 |
| 5 | |
Jack Jansen | ff4e62d | 2001-03-27 21:37:06 +0000 | [diff] [blame^] | 6 | Note by Jack: |
| 7 | Also check out the BBPy.lm contributed software, which is a Python language |
| 8 | module for BBedit, providing syntax coloring and function/class navigation. |
| 9 | |
Jack Jansen | 7cc5735 | 1998-08-18 14:54:11 +0000 | [diff] [blame] | 10 | contents: |
| 11 | - "Run as Python" -- the extension |
| 12 | - PythonSlave.py -- the "slave" script that handles the AppleEvents |
| 13 | |
| 14 | - source -- source code & CW9 project for the extension |
| 15 | |
| 16 | quickstart: |
| 17 | - drop "Run as Python" in BBEdit extensions folder |
| 18 | - double-click PythonSlave.py |
| 19 | - start BBEdit |
| 20 | - type some code |
| 21 | - go to Extensions menu: "Run as Python" |
| 22 | - be happy |
| 23 | |
| 24 | warning: |
| 25 | since PythonSlave.py runs its own event loop and we have no interface |
| 26 | to SIOUX you *cannot* copy from the console. Duh. |
| 27 | |
| 28 | extra feature: |
| 29 | while PythonSlave.py is running you can still double-click Python |
| 30 | documents, they will get executed as if Python was not already running. |
| 31 | |
| 32 | bugs: |
| 33 | perhaps |
| 34 | |
| 35 | acknowledgements: |
| 36 | - Thanks to Joseph Strout for valuable input and beta testing. |
| 37 | - Thanks to Mark Roseman for providing code that can launch |
| 38 | PythonSlave.py from BBEdit. |
| 39 | |
| 40 | |
| 41 | Have fun with it! |
| 42 | Please report bugs, or fix 'em. Suggestions are always welcome. |
| 43 | |
| 44 | Just van Rossum, Letterror |
| 45 | <just@knoware.nl> |