[ESS] ESS in brew syntax files

Matthew Fidler matthew.fidler at gmail.com
Thu Sep 8 20:11:43 CEST 2011


I would talk with Lennart Borgman and see if this can be added to his
nxhtml-mode or not. He already supports language chunks. He may also
be able to point you where to go to do this yourself.

If that doesn't work there us also noweb and other alternatives. I
believe there is a node on the emacs wiki about multiple major modes.

Matt

On Sep 8, 2011, at 11:52, Sven Hartenstein <lists at svenhartenstein.de> wrote:

> 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 at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help



More information about the ESS-help mailing list