From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: pdf or ps from emacs syntax highlighted source code Date: Thu, 03 May 2007 06:11:21 +0300 Message-ID: References: <4639234F.4090405@xs4all.nl> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1178161894 18926 80.91.229.12 (3 May 2007 03:11:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 3 May 2007 03:11:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 03 05:11:30 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HjRj8-0007UK-4N for geh-help-gnu-emacs@m.gmane.org; Thu, 03 May 2007 05:11:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HjRpb-0005iB-F0 for geh-help-gnu-emacs@m.gmane.org; Wed, 02 May 2007 23:18:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HjRpP-0005i6-TA for help-gnu-emacs@gnu.org; Wed, 02 May 2007 23:17:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HjRpP-0005hu-CY for help-gnu-emacs@gnu.org; Wed, 02 May 2007 23:17:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HjRpP-0005hr-8e for help-gnu-emacs@gnu.org; Wed, 02 May 2007 23:17:59 -0400 Original-Received: from nitzan.inter.net.il ([213.8.233.22]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HjRiv-0005Jq-1u for help-gnu-emacs@gnu.org; Wed, 02 May 2007 23:11:17 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-84-228-243-207.inter.net.il [84.228.243.207]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id GQT32350 (AUTH halo1); Thu, 3 May 2007 06:11:17 +0300 (IDT) In-reply-to: <4639234F.4090405@xs4all.nl> (message from Bauke Jan Douma on Thu, 03 May 2007 01:48:31 +0200) X-detected-kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:43562 Archived-At: > Date: Thu, 03 May 2007 01:48:31 +0200 > From: Bauke Jan Douma > > 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.