Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Can a file be "printed" to a text file with line numbers without pagination.

    General Discussion
    printing
    3
    4
    119
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Bill Fuhrmann
      Bill Fuhrmann last edited by

      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.

      PeterJones 2 Replies Last reply Reply Quote 0
      • PeterJones
        PeterJones @Bill Fuhrmann last edited by

        @Bill-Fuhrmann ,

        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.

        1 Reply Last reply Reply Quote 2
        • PeterJones
          PeterJones @Bill Fuhrmann last edited by

          @Bill-Fuhrmann ,

          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.

          Alan Kilborn 1 Reply Last reply Reply Quote 1
          • Alan Kilborn
            Alan Kilborn @PeterJones last edited by Alan Kilborn

            @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).

            1 Reply Last reply Reply Quote 1
            • First post
              Last post
            Copyright © 2014 NodeBB Forums | Contributors