firefox add-on to grab python code handily?

CM cmpython at gmail.com
Sat May 10 03:58:12 EDT 2008


I encounter a fair number of small Python scripts online, and usually
try them out by copying them to the clipboard, pasting into Notepad,
saving them, and either running them directly or opening them in
IDLE.

And so I was wondering if anyone knew of an extension/add-on/script
for Firefox which would allow a way to do something like this:

user highlights Python code on a webpage
right clicks
selects a menu item, "Save as Python code"
FF pops up a filename dialog or popup for filename
(and, though I don't know if this is possible, runs Python code)

Not an important thing by any means, but it would be a nice
convenience.
I know there are similar add-ons in FF for grabbing highlighted text
and
saving, but they are not good, as they don't seem to preserve line
breaks
properly or append the .py extension, etc.  I've Googled for this and
so far
it seems it doesn't exist.  Anyone know?





More information about the Python-list mailing list