
\setuplayout[height=fit,header=0pt,footer=0pt,topspace=0pt,bottom=0pt]

\setuplinenumbering
  [location=right, % inright
    align=left,
    % width=-\textwidth, % numbers on the right side (with align=right)
    % command=\WatchThis, % do not work
    distance=1pt,
    style=\ssx]

\def\WatchThis#1%
  {\ifodd\linenumber
     \definecolor[linecolor][red]%
   \else
     \definecolor[linecolor][green]%
   \fi
   \inframed
     [offset=1pt,frame=off,background=color,backgroundcolor=linecolor]
     {#1}}

\setupdelimitedtext
  [blockquote]
  [before=\startlinenumbering,
    after=\stoplinenumbering,
    style=\tfx\setupinterlinespace]



\starttext \showframe

\dorecurse{4}{\input tufte \par}

\startlinenumbering
  \dorecurse{4}{\input tufte \par}
\stoplinenumbering

\dorecurse{4}{\input tufte \par}

\startblockquote
  \dorecurse{3}{\input tufte \par}
\stopblockquote

\stoptext

%%% Local Variables: 
%%% mode: context
%%% TeX-master: t
%%% End: 
