Including Line Numbers in Text
Posted: Fri Jan 20, 2006 7:37 pm
Hi, folks.
I am a long-time (and happy) user of TextPad. I am using version 4.7.3, paid mode.
I am about to try something new, and am hoping it can be done with TextPad: I would like line numbers to be included in the text of a document. So far, I know Preferences can be set so that line numbers will print with a document. But can I also specify a setting such that line numbers actually become part of the document, so that they get copied over to, say, a Word document?
Here's exactly what I want to do:
I have written several "C" programs in the Microsoft Visual C++ programming environment. I would like to copy the source code for those programs into webpages:
1) Cntrl-A to select everything (within the programming environment);
2) Cntrl-C to copy text;
3) Cntrl-V to paste the text into TextPad;
4) Insert the additional HTML code to convert the document into an HTML page for posting on a website.
Step 4 is the one about which I am unsure; I would like the line numbers to show up in the final webpage so that specific lines of code may be discussed in tutorials or discussions about the program.
So . . . rather than manually type in each line number, can TextPad save me this step?
Sincerely,
Michael
I am a long-time (and happy) user of TextPad. I am using version 4.7.3, paid mode.
I am about to try something new, and am hoping it can be done with TextPad: I would like line numbers to be included in the text of a document. So far, I know Preferences can be set so that line numbers will print with a document. But can I also specify a setting such that line numbers actually become part of the document, so that they get copied over to, say, a Word document?
Here's exactly what I want to do:
I have written several "C" programs in the Microsoft Visual C++ programming environment. I would like to copy the source code for those programs into webpages:
1) Cntrl-A to select everything (within the programming environment);
2) Cntrl-C to copy text;
3) Cntrl-V to paste the text into TextPad;
4) Insert the additional HTML code to convert the document into an HTML page for posting on a website.
Step 4 is the one about which I am unsure; I would like the line numbers to show up in the final webpage so that specific lines of code may be discussed in tutorials or discussions about the program.
So . . . rather than manually type in each line number, can TextPad save me this step?
Sincerely,
Michael