Community
    • Login

    Opened files fully expanded

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    3 Posts 3 Posters 80 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.
    • Christian HoffmannC
      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
        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
          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 2
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors