Skip to content
Prev 173949 / 398506 Next

R-code in html help pages: syntax highlighting

Romain Francois wrote:
it would be good to know what you mean by 'errors'.  syntax highlighters
are, in principle, *syntax* highlighters.  in the example above, the
first and sixth occurrences of 'mean' are in the operator position, the
others are not -- would it be *syntactically* inappropriate to
color-code the former in one way, and the latter in another?  why should
a *syntax* highlighter care about what's the object referred to by
'mean' in this or other context?

otherwise, it would certainly be fun to have a semantic highlighter for r.

(..)
the 'benchmark' you are talking about is only as good as the perl
scripts were.  i have had a look at a couple of perl scripts in the r
sources, and it seemed like there was quite some space for improvement.


vQ