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

[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 <address@hidden> writes:

>> Date: Thu, 03 May 2007 01:48:31 +0200
>> From: Bauke Jan Douma <address@hidden>
>> 
>> 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?


reply via email to

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