From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.help Subject: Re: Copying Syntax Highlighting to MS-Word? Date: 08 Oct 2004 11:44:26 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1097229107 28305 80.91.229.6 (8 Oct 2004 09:51:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 8 Oct 2004 09:51:47 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 08 11:51:41 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CFrPZ-00079C-00 for ; Fri, 08 Oct 2004 11:51:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CFrWL-0002rc-M0 for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Oct 2004 05:58:41 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-X-Trace: news.uni-berlin.de F6yx/EErJdVvHVAffY26Aw6KtKQnqrrXkssYCkEL/43hkoAPM8 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Xref: shelby.stanford.edu gnu.emacs.help:125780 Original-To: help-gnu-emacs@gnu.org 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:21142 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21142 Reiner Steib writes: > > Is there a way to copy the colors displayed with syntax highlighting > > to MS-Word? > > Maybe you can export HTML using htmlize.el and import it in MS-Word? > I don't know if MS-Word is capable of importing HTML. This procedure > at least works with StarOffice (which is able to save as *.doc). Yes, that works. I do that as a workaround for getting font-locked text from Emacs into Outlook, using a combination of elisp and vbscript. It is a very ugly hack and it only works sometimes: http://groups.google.com/groups?q=w32-fontified-region-to-clipboard&hl=en&lr=&sa=N&tab=wg Tha hack places (or tries to, as I said it works some of the times) on the clipboard so that you can paste it somewhere. /Mathias