[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [emacs-wiki-discuss] Re: including files as-is in muse
From: |
Stefan van der Walt |
Subject: |
Re: [emacs-wiki-discuss] Re: including files as-is in muse |
Date: |
Fri, 13 Jan 2006 00:54:38 +0200 |
User-agent: |
Mutt/1.5.9i |
On Thu, Jan 12, 2006 at 04:47:35PM -0500, Michael Olson wrote:
> Stefan van der Walt <address@hidden> writes:
>
> > I am trying to include a code listing in my wiki, by using the
> > following lisp code:
> >
> > <lisp>
> > (with-temp-buffer
> > (insert "<example>")
> > (insert-file-contents (concat (file-name-directory
> > muse-publishing-current-file) "code.py"))
> > (insert "</example>")
> > (buffer-string)
> > )
> > )
> > </lisp>
> >
> > The <example> tag is parsed, and yet the rest of the code (inside
> > the <example></example>) is also wikified. Is this the expected
> > behaviour?
>
> We'll eventually have an <include> tag, similar to the emacs-wiki one,
> and it will allow you to specify whether or not to mark up the
> inserted text.
In the meantime, is there a kludge I can use to get this going?
Cheers
Stéfan