[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pdf or ps from emacs syntax highlighted source code
From: |
Eli Zaretskii |
Subject: |
Re: pdf or ps from emacs syntax highlighted source code |
Date: |
Thu, 03 May 2007 06:11:21 +0300 |
> Date: Thu, 03 May 2007 01:48:31 +0200
> From: Bauke Jan Douma <bjdouma@xs4all.nl>
>
> Does anyone know if and how I can create a pdf or postscript file from
> source code I'm editing in emacs, which I have syntax highlighted in
> emacs, and which syntax-highlighting (except for the background color,
> which in my case is almost black) I would like to preserve in the
> created pdf/ps file?
"M-x ps-print-buffer-with-faces" will produce PostScript, and will
write it to a file if you invoke it with an argument.
> Or is their any other tool that might be able to do something like
> this? The source code is C, but it would be nice to have it for php,
> (bourne) shell, etc.
ps-print-buffer-with-faces works for any buffer.