[R] R-code in html help pages: syntax highlighting
Waclaw.Marcin.Kusnierczyk at idi.ntnu.no
Tue Mar 17 10:20:49 CET 2009
Romain Francois wrote:
> Wacek Kusnierczyk wrote:
>>> Duncan Murdoch wrote:
>>>> So if you've got high standards, it's probably quite hard. On the
>>>> other hand, if you're willing to accept the usual sort of errors that
>>>> syntax highlighters make, it's not so bad, but not trivial.
>> 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?
> It would certainly be useful to make a difference between the first
> one (call to the mean function from base) and the last one.
of course! i was referring to duncan's prompt use of the term 'error'
in this context.
More information about the R-help