Can a file be "printed" to a text file with line numbers without pagination.
-
I can print to a generic text printer with line numbers but that includes page breaks.
I want to save or print to an ascii text file with NO FORMATTING. -
Notepad++ is a text editor. It is editing plain text files with no formatting (line breaks, line numbers, syntax highlight) inherent in the file. The .txt file is plain text with no formatting. So the file that you are editing is already in the condition that you describe you want as the “output”, so I am a bit confused what you are asking for.
Any colors/formatting you see while editing are just the way that Notepad++ displays the text. And Notepad++ prints to a printer based on the printing settings.
-
Sorry, wait, I misread. You want to create a second version of the file that has the line numbers added?
You are right, that isn’t what Notepad++ does. Notepad++'s printer driver is designed to always include page breaks while printing (printing is meant to go to the printer, after all, and printers have defined page sizes).
You could save a second copy of the file, then use the advice in this recent conversation to insert line numbers in the text itself. That way, when it’s on disk, it will have the line numbers included.
-
@Bill-Fuhrmann said:
I can print to a generic text printer with line numbers but that includes page breaks.
@PeterJones said:
You could save a second copy of the file, then use the advice in this recent conversation to insert line numbers in the text itself.
As an alternative to Peter’s advice, perhaps you could take the file with the pagebreaks and remove those after-the-fact (if pagebreaks are the only undesirable content).