[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pdf or ps from emacs syntax highlighted source code
From: |
Hadron |
Subject: |
Re: pdf or ps from emacs syntax highlighted source code |
Date: |
Thu, 03 May 2007 12:13:08 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.99 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
>> 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.
>
That is so, very, very, cool. Emacs never ceases to amaze me.
Can anyone suggest a good varied color "color-theme" for C code that is
then readable when it is printed onto white paper?
- Re: pdf or ps from emacs syntax highlighted source code, Joost Kremers, 2007/05/03
- Re: pdf or ps from emacs syntax highlighted source code, Bauke Jan Douma, 2007/05/03
- Message not available
- Re: pdf or ps from emacs syntax highlighted source code, Hadron, 2007/05/04
- Re: pdf or ps from emacs syntax highlighted source code, Lennart Borgman (gmail), 2007/05/04
- Re: pdf or ps from emacs syntax highlighted source code, Bauke Jan Douma, 2007/05/04
- Re: pdf or ps from emacs syntax highlighted source code, Alexey Pustyntsev, 2007/05/04
- Re: pdf or ps from emacs syntax highlighted source code, Peter Dyballa, 2007/05/05
- Re: pdf or ps from emacs syntax highlighted source code, Alexey Pustyntsev, 2007/05/05