Here's code that I added to my .emacs file to beef up the default syntax
highlighting.  It doesn't do exactly what you requested, but perhaps you can
make it work after playing around with it (I'd be interested to see what you
come up with...):

(add-hook 'ess-mode-hook
  '(lambda()
     (font-lock-add-keywords nil
     '(("\\<\\(if\\|for\\|function\\|return\\)\\>[\n[:blank:]]*(" 1
font-lock-keyword-face) ; must go first to override highlighting below
       ("\\<\\([.A-Za-z][._A-Za-z0-9]*\\)[\n[:blank:]]*(" 1
font-lock-function-name-face) ; highlight function names
       ("[(,][\n[:blank:]]*\\([.A-Za-z][._A-Za-z0-9]*\\)[\n[:blank:]]*=" 1
font-lock-reference-face) ;highlight argument names
       ))
     ))



S. McKay Curtis
Postdoctoral Research Associate
University of Washington
Department of Statistics
Box 354320
Seattle, WA 98195-4320
(206) 543-6851


On Thu, Jul 22, 2010 at 12:00 PM, Rodrigo Gadea <rodrigo.gadea@gmail.com>wrote:

> Hi!
>
> I'm using ESS for a little while and I miss the Kate syntax highlighting,
> it
> was really helpful.
>
> What should I read and where should I put the code (is it already done?) in
> order to:
> - highlight function names besides in its definition
> - highlight comas
> - highlight dollar signs and column names (e.g. 'mydataframe$myvar')
> - highlight square brackets (e.g. '[[ ]]')
> - highlight differently the kinds of comments (#, ##, ##)
>
> Thanks in advance,
> Rodrigo
>
> PS: Congratulations for the work! ESS is very nice!!
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> ESS-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>

	[[alternative HTML version deleted]]

