From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bauke Jan Douma Newsgroups: gmane.emacs.help Subject: Re: pdf or ps from emacs syntax highlighted source code Date: Thu, 03 May 2007 22:41:04 +0200 Organization: a training zoo Message-ID: <463A48E0.5030605@xs4all.nl> References: Reply-To: bjdouma@xs4all.nl NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1178224929 3660 80.91.229.12 (3 May 2007 20:42:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 3 May 2007 20:42:09 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Joost Kremers Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 03 22:42:05 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 1Hji7o-0005gq-8P for geh-help-gnu-emacs@m.gmane.org; Thu, 03 May 2007 22:42:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HjiEM-00037F-If for geh-help-gnu-emacs@m.gmane.org; Thu, 03 May 2007 16:48:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HjiDU-000223-Ln for help-gnu-emacs@gnu.org; Thu, 03 May 2007 16:47:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HjiDS-0001yq-VN for help-gnu-emacs@gnu.org; Thu, 03 May 2007 16:47:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HjiDS-0001yd-JG for help-gnu-emacs@gnu.org; Thu, 03 May 2007 16:47:54 -0400 Original-Received: from smtp-vbr6.xs4all.nl ([194.109.24.26]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hji6t-0002ig-C6 for help-gnu-emacs@gnu.org; Thu, 03 May 2007 16:41:07 -0400 Original-Received: from [192.168.1.240] (skyscraper.xs4all.nl [82.95.236.142]) (authenticated bits=0) by smtp-vbr6.xs4all.nl (8.13.8/8.13.8) with ESMTP id l43Kf5Ff030344; Thu, 3 May 2007 22:41:05 +0200 (CEST) (envelope-from bjdouma@xs4all.nl) User-Agent: Thunderbird 2.0.0.0 (X11/20070326) In-Reply-To: X-Virus-Scanned: by XS4ALL Virus Scanner X-detected-kernel: FreeBSD 4.6-4.9 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:43621 Archived-At: Joost Kremers wrote on 03-05-07 02:31: > Bauke Jan Douma wrote: >> 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? > > does ps-print-buffer-with-faces do what you want? Actually -- as soon as I had posted the question here, I came up with another preferable requisite: a html version of the syntax highligted code. Wouldn't necessarily have to be the same color-theme as emacs. I suppose though that's off-topic here. Unless anybody has a quick suggestion... I see google has some response on this, I'll have to see if anything is workable. Regards, bj