Community
    • Login

    how to automatically make a numbered list

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 3 Posters 6.7k Views 3 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.
    • Ibraheem raadI Offline
      Ibraheem raad
      last edited by

      6c31ca1c-1600-4215-98bd-8830cb700d8f-image.png
      as the title says is there a way for me to automatically make a numbered list like this?
      thx in advance

      PeterJonesP mkupperM 2 Replies Last reply Reply Quote 0
      • PeterJonesP Online
        PeterJones @Ibraheem raad
        last edited by PeterJones

        @Ibraheem-raad ,

        Occasionally, people have indicated that they might want to develop a plugin to help with making outlines (including numbered lists), but they’ve all apparently been abandoned, because I’ve never seen such a plugin released.

        If you’ve already got all the lines, like

        first
        second
        third
        fourth
        

        then you could do a column select before the first column, and use Alt+C (Edit > Column Editor) to auto-number those rows… but if you want to be able to hit ENTER at the end of row 26, and have it automatically insert 27. for you, that feature doesn’t exist in Notepad++ itself or in any plugin that I know of.

        If you want the manual way, the steps I would use are:

        1. Get your text, with one line per bullet point
        2. use Replace dialog in Regular Expression mode to search for ^ and insert .\x20 to insert a . and space at the beginning of every row
        3. use column selection to highlight the column just before the dot (click to the left of the dot on first line, then Alt+Drag the mouse to the dot on the last line to get a vertical 0-width selection; alternately, click just before first dot, then Edit > Begin/End Select in Column Mode, go to the end of the file, just before the last dot, then Edit > Begin/End Select in Column Mode again to get that same selection)
        4. Use the Column Editor to insert the numbers.

        … But I had also remembered previous discussions about automatic outlines/numbering, and thought someone might have written a script. I did some searching, and I think I found it: this script might be able to help you – if it’s not the exact format of prefix on the line that you need, it’s not that difficult to modify the script to use that alternate prefix. And if you don’t already use the PythonScript plugin, we do have a FAQ for running a script in PythonScript to help get you started using that script.

        Ibraheem raadI 1 Reply Last reply Reply Quote 2
        • mkupperM Offline
          mkupper @Ibraheem raad
          last edited by

          @Ibraheem-raad Besides @PeterJones’ answer which pretty much covers the subject there is also the topic of “outlines.” If you search the forums for the word “outline” or “outlines” then you will see the discussions.

          1 Reply Last reply Reply Quote 1
          • Ibraheem raadI Offline
            Ibraheem raad @PeterJones
            last edited by

            @PeterJones ok, thx for clearing things up

            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