Saving Session does not include bookmarked lines in XML file
-
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?
-
@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, thesession.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'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>
-
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?
-
@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.
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.
- Check to make sure Settings > Preferences > Margins/Border/Edge has
-
THANK YOU! Version 1.5 solved all problems! Blue bullets and Mark tags are back.