• Login
Community
  • Login

Saving Session does not include bookmarked lines in XML file

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
5 Posts 2 Posters 311 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.
  • P
    Peter Rudloff
    last edited by Nov 1, 2023, 1:45 PM

    It was a great help! After spellchecking a document with DSpellcheck, you could bookmark all lines with misspelled words. When saving the session to a XML file, this document included a reference to all bookmarked lines. Today I used this procedure (after quite a while) again but did not find this reference. Is there any idea how to initiate this session- information again?

    P 1 Reply Last reply Nov 1, 2023, 2:00 PM Reply Quote 0
    • P
      PeterJones @Peter Rudloff
      last edited by Nov 1, 2023, 2:00 PM

      @Peter-Rudloff said in Saving Session does not include bookmarked lines in XML file:

      hen saving the session to a XML file, this document included a reference to all bookmarked lines. Today I used this procedure (after quite a while) again but did not find this reference.

      Weird.

      It works for me in Notepad++ v8.5.8 with DSpellCheck 1.5: I opened a file that had misspellings, used Plugins > DSpellCheck > Additional Actions > Bookmark Lines with Misspelling, saw the bookmarks appear, exited Notepad++, restarted Notepad++, and the bookmarks were still there.

      Can you share your ?-menu’s Debug Info?

      Also, after going through that procedure, File > Open %AppData%\Notepad++\session.xml – for any file that had bookmarks, the session.xml should have a series of <Mark line="#" /> elements inside the <File ...>...</File> tag for that particular file: for example, the one I just tested had the following entry:

      <File firstVisibleLine="2" xOffset="0" scrollWidth="6893" startPos="613" endPos="613" selMode="0" offset="0" wrapCount="1" lang="Markdown (preinstalled)" encoding="-1" userReadOnly="no" filename="C:\...\Peter&apos;s Scratchpad.md" backupFilePath="" originalFileLastModifTimestamp="85260024" originalFileLastModifTimestampHigh="31067339" tabColourId="-1" mapFirstVisibleDisplayLine="-1" mapFirstVisibleDocLine="-1" mapLastVisibleDocLine="-1" mapNbLine="-1" mapHigherPos="-1" mapWidth="-1" mapHeight="-1" mapKByteInDoc="512" mapWrapIndentMode="-1" mapIsWrap="no">
          <Mark line="2" />
          <Mark line="5" />
          <Mark line="11" />
          <Mark line="18" />
          <Mark line="20" />
          <Mark line="52" />
          <Mark line="53" />
          <Mark line="54" />
          <Mark line="55" />
          <Mark line="56" />
          <Mark line="80" />
          <Mark line="93" />
          <Mark line="94" />
      </File>
      
      1 Reply Last reply Reply Quote 2
      • P
        Peter Rudloff
        last edited by Nov 1, 2023, 4:39 PM

        Notepad++ v8.5.8 (64-bit)
        Build time : Oct 15 2023 - 21:43:56
        Path : C:\Program Files\Notepad++\notepad++.exe
        Command Line :
        Admin mode : OFF
        Local Conf mode : OFF
        Cloud Config : OFF
        OS Name : Windows 10 Pro (64-bit)
        OS Version : 22H2
        OS Build : 19045.2130
        Current ANSI codepage : 1252
        Plugins :
        ComparePlugin (2.0.2)
        DSpellCheck (1.4.23)
        JSMinNPP (1.2006)
        Linter (0.1)
        mimeTools (2.9)
        NppConverter (4.5)
        NppExport (0.4)

        Thank you for your quick answer. The XML file you show is exactly what I expected. I repeated it a few times. When using ‘Save session’ you can select a file. Neither the XML I selected nor the session.XML in appdata\roaming\notepad++\ had any <Mark-tag. The Debug info you asked for is included. By the way, the blue bullet in front of the lines with miss-spellings has changed to a green perpendicular line. Is it the same in your version?

        P 1 Reply Last reply Nov 1, 2023, 5:41 PM Reply Quote 0
        • P
          PeterJones @Peter Rudloff
          last edited by Nov 1, 2023, 5:41 PM

          @Peter-Rudloff said,

          DSpellCheck (1.4.23)
          

          Maybe try v1.5, which is the most recent (and what I have)

          By the way, the blue bullet in front of the lines with miss-spellings has changed to a green perpendicular line. Is it the same in your version?

          I still see bookmarks as the blue bullet.

          e03d67e7-5885-4c6d-8a83-8fdbdb23b49c-image.png

          The green perpendicular line means “this file has been saved since the last changes to these lines”, and it will change to orange (like in my screenshot) if there have been changes since the last save (or in my case, if it’s a new file that’s never been saved before).

          When using ‘Save session’ you can select a file. Neither the XML I selected nor the session.XML in appdata\roaming\notepad++\ had any <Mark-tag.

          At this point, you need to have something bookmarked for it to show the <Mark tag… If you’re not seeing the blue bullets, I am not convinced you have anything bookmarked.

          • Check to make sure Settings > Preferences > Margins/Border/Edge has ☑ Display Bookmark checkmarked. (large screenshot at end of post)
          • Try doing a manual bookmark by clicking or right clicking in the bookmark margin, or Ctrl+F2 to toggle the active line’s bookmark.
          • Try re-running Plugins > DSpellCheck > Additional Actions > Bookmark Lines with Misspelling . If you have misspelled words, they should have squiggles and a blue bullet indicating the bookmark.

          If you don’t see the blue bullets after those checks, take a screenshot and paste it in your reply here.

          aec8c728-d8a4-4f52-adc1-c62944d72c44-image.png

          1 Reply Last reply Reply Quote 1
          • P
            Peter Rudloff
            last edited by Nov 1, 2023, 6:41 PM

            THANK YOU! Version 1.5 solved all problems! Blue bullets and Mark tags are back.

            1 Reply Last reply Reply Quote 0
            3 out of 5
            • First post
              3/5
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors