\starttext

\starttyping
line 1 !
line 2 !
line 3 !
line 4 !
line 5 !
line 6 !
\stoptyping

\starttyping[range={2,3}]
line 1
line 2 !
line 3 !
line 4
line 5
line 6
\stoptyping

\starttyping[range={2,-3}]
line 1
line 2 !
line 3 !
line 4
line 5
line 6
\stoptyping

\stoptext
