Community
    • Login

    A Plug-In that adds "persistent" line numbers to text?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 2.1k 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.
    • Kent HartlandK Offline
      Kent Hartland
      last edited by

      Hi, noob here. This is a pretty cool little editor.

      Is there a way to add line numbers to the text? Not the standard NPP line numbering but numbers that remain after you copy/paste the text out (like when you print text).

      Obviously, I want it for programming code so the program’s Error handler can report the line number of the error.

      It would really be cool if you could also specify a beginning number. That way all the code modules of a program would each have unique line numbers. But that is not a have-to-have.

      1 Reply Last reply Reply Quote 0
      • cipher-1024C Offline
        cipher-1024
        last edited by

        NPP can do it natively. Stackoverflow has a solution that allows you to number lines, starting at any number and you can choose how it increments. Basically you do a column selection at the beginning of the lines you want to number, and then choose Edit->Column Editor and use the dialog box to complete the process. It is a pretty neat editor, isn’t it?

        1 Reply Last reply Reply Quote 1
        • Kent HartlandK Offline
          Kent Hartland
          last edited by

          Indeed, it is a nice editor! I like it!

          Thanks, Cipher-1024, that solved my Line Numbering and Commenting Out Code questions.

          1 Reply Last reply Reply Quote 0

          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