Can line numbers be copied
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Can line numbers be copied
I need to reference line numbers when documenting some source code. I'd like to turn line numbers on in TextPad and then copy the text, including the line numbers, and paste it into my other publishing tool. Can this be done? I've searched the forums and the options but don't see a way to do it.
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
-
- Posts: 14
- Joined: Wed Feb 02, 2005 3:05 am
- Location: Why do you want to know? <_< >_>
- Contact:
And yet another possibility, if you have grep: This can be installed as a tool in Textpad.
Code: Select all
grep -n ^ <filename>