If you save the session into a file with the extension R.out, and then open
it in ESS
in emacs, you will get the syntax highlighting.

On Fri, Jan 27, 2012 at 2:03 PM, Ajay Askoolum <aa2e72e@yahoo.co.uk> wrote:

> 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]]
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html<http://www.r-project.org/posting-guide.html>
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]

