You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Owen Thomas <ow...@gmail.com> on 2026/04/10 11:50:23 UTC
Code fragment listing that includes line numbers?
I'm just curious to know if there is a way to put together a listing of a
piece of code in Netbeans (whole file, a class, a method etc) that includes
line numbers?
If not, then what other ways might this be done on Linux?
Thanks,
Owen.
Re: Code fragment listing that includes line numbers?
Posted by Owen Thomas <ow...@gmail.com>.
On Fri, 10 Apr 2026 at 22:29, Peter Hull <pe...@gmail.com> wrote:
> On Fri, 10 Apr 2026 at 12:50, Owen Thomas <ow...@gmail.com>
> wrote:
> > If not, then what other ways might this be done on Linux?
>
> You could use "cat -n FILE" and redirect the output to a new file.
Thanks Pete. I'll try that. :)
Re: Code fragment listing that includes line numbers?
Posted by Peter Hull <pe...@gmail.com>.
On Fri, 10 Apr 2026 at 12:50, Owen Thomas <ow...@gmail.com> wrote:
> If not, then what other ways might this be done on Linux?
You could use "cat -n FILE" and redirect the output to a new file.
Pete
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists