From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: pdf or ps from emacs syntax highlighted source code
Date: Thu, 03 May 2007 06:11:21 +0300 [thread overview]
Message-ID: <ulkg64n52.fsf@gnu.org> (raw)
In-Reply-To: <4639234F.4090405@xs4all.nl> (message from Bauke Jan Douma on Thu, 03 May 2007 01:48:31 +0200)
> 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.
next prev parent reply other threads:[~2007-05-03 3:11 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-02 23:48 pdf or ps from emacs syntax highlighted source code Bauke Jan Douma
2007-05-03 3:11 ` Eli Zaretskii [this message]
2007-05-03 20:40 ` Bauke Jan Douma
2007-05-03 20:44 ` Drew Adams
[not found] ` <mailman.153.1178162282.32220.help-gnu-emacs@gnu.org>
2007-05-03 10:13 ` Hadron
[not found] <mailman.151.1178150118.32220.help-gnu-emacs@gnu.org>
2007-05-03 0:31 ` Joost Kremers
2007-05-03 20:41 ` Bauke Jan Douma
2007-05-04 8:43 ` Kai Grossjohann
2007-05-04 9:33 ` Peter Dyballa
[not found] ` <mailman.219.1178268675.32220.help-gnu-emacs@gnu.org>
2007-05-04 12:17 ` Hadron
2007-05-04 13:00 ` Lennart Borgman (gmail)
2007-05-04 23:19 ` Bauke Jan Douma
2007-05-05 1:33 ` Alexey Pustyntsev
2007-05-05 8:46 ` Peter Dyballa
2007-05-06 2:42 ` Alexey Pustyntsev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ulkg64n52.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).