help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: annotate: printing the buffer/region with annotations


From: Michael Heerdegen
Subject: Re: annotate: printing the buffer/region with annotations
Date: Fri, 09 Aug 2024 18:31:28 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Christopher Howard <christopher@librehacker.com> writes:

> Hi, I started using annotate package and the annotations and code look
> great on the screen. I was trying to figure out if there was some way
> to print out the code+annotations to my printer (or to a printable
> document) without having to take a bunch of screenshots.
>
> Someone on IRC suggested ps-print-buffer-with-faces. This does print
> out in color, but it only prints the code, not the annotations.

It might be that there is no nice direct way using ps-printing.  I see
two possibilities:

- Export the view in text form, in some way.  Seems annotate.el
provides `annotate-integrate-annotations' - this uses the same
buffer/file though, AFAIU, so it might be a bit inconvenient.

- Use a different printing tool.  I'd try htmlize.el: just M-x
htmlize-buffer RET.  If you are lucky (didn't try) the result will
contain the annotations.  Print the html using your browser.  htmlize.el
gives good looking results most of the time.

If none of that works it would probably not be hard to create something
convenient by yourself.


Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]