Community
    • Login

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

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 1.7k Views
    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
      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
        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
          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
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors