Community
    • Login

    Opened files fully expanded

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    3 Posts 3 Posters 1.2k Views 1 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.
    • Christian HoffmannC Offline
      Christian Hoffmann
      last edited by

      Hi,
      In Notepad++, I have a working memo, and I open the useful parts.
      But every day, when I open Notepad++, since an update, the file is completely unfolded.

      Mark OlsonM mpheathM 2 Replies Last reply Reply Quote 0
      • Mark OlsonM Offline
        Mark Olson @Christian Hoffmann
        last edited by Mark Olson

        @Christian-Hoffmann
        Is your “working memo” highlighted in a built-in language (like C++ or Python) or a user-defined language?

        I know almost nothing about code folding in Notepad++, because I never make use of it. That said, your answer to my above question might help someone more knowledgeable solve your problem.

        I’m pretty sure that Notepad++ does not store code folding information to the hard drive. If that’s true, there’s no way for Notepad++ to remember how your code was folded between sessions.

        1 Reply Last reply Reply Quote 2
        • mpheathM Offline
          mpheath @Christian Hoffmann
          last edited by

          @Christian-Hoffmann

          Tested v8.8.1 being quite a new and clean portable and reopens new 1 folded

          Set as Python language folded at if on line 1. Programmatically regarded as line 0.

          new 1:

          if a:
              b
          

          session.xml:

          <?xml version="1.0" encoding="UTF-8" ?>
          <NotepadPlus>
              <Session activeView="0">
                  <mainView activeIndex="0">
                      <File firstVisibleLine="0" xOffset="0" scrollWidth="39" ... snipped ...>
                          <Fold line="0" />
                      </File>
                  </mainView>
                  <subView activeIndex="0" />
              </Session>
          </NotepadPlus>
          

          See the xml tag Fold. Folding is saved and restored.

          More details might be needed to solve your issue, like version being used … as ? -> Debug info... shows.

          1 Reply Last reply Reply Quote 4

          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