Community
    • Login

    Header plugin

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 3 Posters 1.4k 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.
    • Aleksandr ShchepkinA Offline
      Aleksandr Shchepkin
      last edited by

      Hello friends, can you tell me if there is any add-on or plugin for Notepad++ for the following purpose.
      There is a very large text, divided by headings, I need to be able to view all headings and quickly go to them, to the desired place in the text by clicking the mouse.

      Mark OlsonM PeterJonesP 2 Replies Last reply Reply Quote 0
      • Mark OlsonM Offline
        Mark Olson @Aleksandr Shchepkin
        last edited by

        @Aleksandr-Shchepkin
        How large of a file is it? 10MB? 100MB or larger? A few hundred KB? Is it plain text, or is it some special file type like INI?

        The best solution is going to depend on your answer to those questions.

        1 Reply Last reply Reply Quote 3
        • PeterJonesP Online
          PeterJones @Aleksandr Shchepkin
          last edited by

          @Aleksandr-Shchepkin ,

          My first thought would be “custom FunctionList” definition. How effective and/or difficult that is will depend on your answers to Mark’s questions.

          But if you have a unique extension (maybe *.myfile), and/or the file is already in a built-in file format or you have a User Defined Language for the file type – maybe the Markdown UDL that ships with N++, for example – then you just need to figure out a regex that will find the “headings”, and then can create a FunctionList definition that will put those in the FunctionList panel. But even if it’s a plaintext .txt file, you can use the functionList\normal.xml to define a Function List rule for even plaintext.

          Aleksandr ShchepkinA 1 Reply Last reply Reply Quote 4
          • Aleksandr ShchepkinA Offline
            Aleksandr Shchepkin @PeterJones
            last edited by

            Friends, you’ve helped me so much, I’m so happy. I have a txt file with more than 16000 lines, size 1,6 mb. I created an xml file in the functionList folder with the following code:
            <NotepadPlus>
            <functionList>
            <parser displayName=“XML” id=“xml”>
            <function
            mainExpr=“#([^#<]+)”
            displayMode=“$functionName”>
            </function>
            </parser>
            </functionList>
            </NotepadPlus>

            And indeed now, I have a set of headers displayed on the right (the headers start with the # symbol).
            The file is constantly growing, so far everything is working very well, thanks.

            1 Reply Last reply Reply Quote 3

            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