\starttext \startlinenumbering \starttyping int x; int y; \stoptyping \stoplinenumbering \stoptext
Renders like this:
1 int x; 2 int y;
How can I make it number the empty line?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.Sign up to join this community
Not sure why
typing don't play nice together, but if you just want display-style verbatim to be numbered you can set up the
typing environment to do that itself:
\setuptyping[numbering=line] \starttext \starttyping int x; int y; \stoptyping \stoptext
produces the following.
1 int x; 2 3 int y;