Hi, Sven.  Have you considered using the Babel feature of Emacs Org-Mode?

    http://orgmode.org/worg/org-contrib/babel/intro.html

-- Mike




>________________________________
>From: Sven Hartenstein <lists@svenhartenstein.de>
>To: ess-help@r-project.org
>Sent: Thursday, September 8, 2011 9:52 AM
>Subject: [ESS] ESS in brew syntax files
>
>Dear ESScians,
>
>I am looking for a way to use ESS in files containing brew template
>syntax. So, to have ESS mode in the R code chunks, like in Sweave
>files with Rnw-mode. For those of you who do not know brew template
>syntax yet, I attach an example below.
>
>Has anyone experience, ideas, or hints?
>
>Sven
>
>
>=== example brew template syntax file content ===
>
><p>This is <b>some HTML</b>.</p>
><h2>And another line of HTML</h2>
><%
># This is R code
>x <- rnorm(5)
>y <- paste(1:5)
>z <- x*y
>%>
>The largest number is <%= max(x) %>.<br />
>More HTML here.<br />
>That is it.
>
>______________________________________________
>ESS-help@r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/ess-help
>
>
>
	[[alternative HTML version deleted]]

