Community
    • Login

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

    Scheduled Pinned Locked Moved General Discussion
    printing
    4 Posts 3 Posters 2.2k Views 2 Watching
    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 FuhrmannB Offline
      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.

      PeterJonesP 2 Replies Last reply Reply Quote 0
      • PeterJonesP Offline
        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
        • PeterJonesP Offline
          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 KilbornA 1 Reply Last reply Reply Quote 1
          • Alan KilbornA Offline
            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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors