[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ess-help
Subject:    Re: [ESS] noweb fontification
From:       "A.J. Rossini" <blindglobe () gmail ! com>
Date:       2005-05-14 7:05:37
Message-ID: 1abe3fa9050514000550cb87c9 () mail ! gmail ! com
[Download RAW message or body]

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.

best,
-tony


On 5/13/05, Bill Rising <brising@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@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
> 


-- 
best,
-tony

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

A.J. Rossini
blindglobe@gmail.com


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic