This extension saves the contents of your IDLE shell or editor window as XHTML
This extension saves the contents of your IDLE shell or editor window as XHTML (using Stylesheets to preserve all color and formatting information).
Copy IDLE2HTML.py to the idlelib folder of your python installation. Append the contents of ‘config-extensions.txt’ to your ‘config-extensions.def’ file (also in the idlelib folder) and restart IDLE.
For more information on extending IDLE read ‘config-main.def’, ‘config-extensions.def’ and ‘extend.txt’
Select ‘Save as HTML’ from the ‘Options’ menue and specify the filename in the FileDialog window. The HTML file is created immediately.
Tested with IDLE 1.1.3, 1.2, 2.6b1 and 3.0a1