[ESS] noweb fontification

A.J. Rossini blindglobe at gmail.com
Sat May 14 09:05:37 CEST 2005

Interesting idea -- I hadn't thought of blatantly changing fonts
("folding in/outlining", yes; appropriate font locking, yes; etc).

noweb-font-lock-mode.el (in lisp directory) is your friend, in this
case.  There should be a means to hijack it for the simpler case that
you propose.

Alternatively, need to set the background color for
R-mode/stata-mode/SAS-mode whatever; that should work as well.

(For Sweave work, that would just be R-mode).

To be "correct", you'd probably just change  the background color for
the individual modes "globally" (regardless of whether within noweb
mode or just plain) for visual cueing of the code that you are working
with.   Some form of light pastel for the light mode.


On 5/13/05, Bill Rising <brising at louisville.edu> wrote:
> Hey folks,
> Is there a simple way to have different fontification for basic text
> in the different chunks when using noweb-mode?
> Here's the idea:
> In the doc (for me: LaTeX) sections of the .Rnw document, use the
> normal fontification.
> In the code sections, change the default nothing-special font to
> either have a different foreground color or have a different
> background color?
> It would seem that I could customize something in ESS to do this, but
> I don't see it. It sure would make editing long noweb docs easier, at
> least for a newbie.
> Thanks for any tips,
> Bill
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help


"Commit early,commit often, and commit in a repository from which we can easily
roll-back your mistakes" (AJR, 4Jan05).

A.J. Rossini
blindglobe at gmail.com

More information about the ESS-help mailing list