savehistory writes all the executed lines from the session.

How can I write everything (executed lines and output) from the active session to a file?

Using Edit | Select All then Edit Copy, I can copy everything to the clipboard and write the whole thing to a file manually.

If I just used the clipboard, I can paste the whole content into another edittor (for documentation). Is there a way to copy the content of the session with the syntax colouring?

Thanks.
	[[alternative HTML version deleted]]

