[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Formatting C (or other code) to HTML for blog posts
From: |
Lennart Borgman |
Subject: |
Re: Formatting C (or other code) to HTML for blog posts |
Date: |
Thu, 30 Oct 2008 17:32:27 +0100 |
On Thu, Oct 30, 2008 at 4:45 PM, Alex Bennee <ajb-ml@cbnl.com> wrote:
> Hi,
>
> Is there a function that will format some source code into HTML so I
> don't loose formatting from the spaces and tabs being eaten up. Usually
> I would wrap the code in <pre> but for various reasons this is not so
> easy to do (the blog software chews double spaces).
>
> It would be extra nice if the function did pretty syntax highlighting!
>
> I tried format-encode-region to html but that didn't seem to so what I
> wanted (or at least I didn't see a bunch of &nsp;'s and <br>'s appear).
See http://www.emacswiki.org/emacs-en/PrintWithWebBrowser