<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to get breakpoint list ?]]></title><description><![CDATA[<p dir="auto">Hello, when you click in the margin a blue circle appears, I suppose it is a breakpoint, anyway is it possible to get a list of these circles fro a plugin ?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/19422/how-to-get-breakpoint-list</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Jul 2026 23:59:37 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/19422.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 18 May 2020 12:36:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to get breakpoint list ? on Mon, 17 Apr 2023 17:56:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a>,</p>
<blockquote>
<p dir="auto"><s>(I’m also really surprised that Michael’s code worked for him a few years ago; I don’t believe the definition of the MASK field of SCI_MARKERNEXT has changed in the last three years.)</s></p>
</blockquote>
<p dir="auto">Nevermind.  The definition of Notepad++'s MARK_BOOKMARK <em>has</em> changed in the last three years.  Specifically, in <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/commit/9455684b429449f668c1aedb77ec9dcb1642c244" rel="nofollow ugc">v8.4.6 in Sept 2022</a>, it was changed from 24 to 20 to work with Scintilla 5.3.0.</p>
<p dir="auto">So just changing that single line to</p>
<pre><code>SET LOCAL MASK ~ 1&lt;&lt;20
</code></pre>
<p dir="auto">would have been sufficient.</p>
<p dir="auto">In case you don’t understand: 3 years ago, when Michael wrote the script, bookmarks used mark#24, so <code>SET LOCAL MASK ~ 1&lt;&lt;24</code> set the mask to 0x1000000, so if bit #24 matched, it would say the line number.</p>
<p dir="auto">With v8.4.6 and newer, that marker is in bit #20, so if you only are looking at bit#24, it’s not going to find it.  Your code, with 0xFFFFFF on the other hand, was looking at all marker numbers from 0 to 23, so it would find marker#20 as the bookmark line.  But it would also find any of the other markers on those lines, even the ones that aren’t bookmarks – so it would find markers you weren’t looking for.  If you file happened to have other marker types – like if you had any hidden lines due to <strong>View &gt; Hide Lines</strong> or code folding in your active lexer – then it would report false matches.</p>
<h4>Marker Number References</h4>
<ul>
<li><a href="https://www.scintilla.org/ScintillaDoc.html#Markers" rel="nofollow ugc">Scintilla reserves #25-31</a> for folding margins</li>
<li><a href="https://www.scintilla.org/ScintillaDoc.html#Markers" rel="nofollow ugc">Scintilla reserves #21-24</a> for Change History</li>
<li><a href="https://github.com/notepad-plus-plus/notepad-plus-plus/blob/83b0b1e4ce6634adf80b72c4d5422b34080d9c21/PowerEditor/src/ScintillaComponent/ScintillaEditView.h#L115-L119" rel="nofollow ugc">Notepad++ reserves #16-20</a> for “internal use” (specifically, 18 &amp; 19 for hidden lines, and 20 for bookmarks, with two more for future use)</li>
<li><a href="https://github.com/notepad-plus-plus/notepad-plus-plus/blob/83b0b1e4ce6634adf80b72c4d5422b34080d9c21/PowerEditor/src/ScintillaComponent/ScintillaEditView.h#L115-L119" rel="nofollow ugc">Notepad++ allows #0-15</a> for plugins to use, but makes no guarantee that two plugins won’t try to make use of the same marker.</li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/85745</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85745</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 17 Apr 2023 17:56:42 GMT</pubDate></item><item><title><![CDATA[Reply to How to get breakpoint list ? on Mon, 17 Apr 2023 17:43:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bambofy" aria-label="Profile: Bambofy">@<bdi>Bambofy</bdi></a> ,</p>
<p dir="auto">I’m not sure why you <em>completely</em> reworked <a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: Michael-Vincent">@<bdi>Michael-Vincent</bdi></a>’s script, instead of just fixing the third line to</p>
<pre><code>SET LOCAL MASK ~ (1&lt;&lt;24) -1
</code></pre>
<p dir="auto">It seems that would have been a lot less work for you than redoing all the logic, slightly differently.</p>
<p dir="auto"><s>(I’m also really surprised that Michael’s code worked for him a few years ago; I don’t believe the definition of the MASK field of SCI_MARKERNEXT has changed in the last three years.)</s></p>
<p dir="auto">As far as redirecting the NppExec output to a file, did you look in <strong>Plugins &gt; NppExec &gt; Help/Manual</strong>, looking at section 4.5?  Because section 4.5 is completely devoted to how to redirect output in NppExec, so that would seem like a natural place to start.  As a hint, if you previously had</p>
<pre><code>echo HI
</code></pre>
<p dir="auto">you could replace it with</p>
<pre><code>cmd /c echo HI &gt; outputfile.txt
</code></pre>
<p dir="auto">to redirect it to overwrite outputfile.txt,<br />
or</p>
<pre><code>cmd /c echo HI &gt;&gt; outputfile.txt
</code></pre>
<p dir="auto">to redirect it to append to outpputfile.txt</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85744</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85744</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 17 Apr 2023 17:43:47 GMT</pubDate></item><item><title><![CDATA[Reply to How to get breakpoint list ? on Mon, 17 Apr 2023 17:16:20 GMT]]></title><description><![CDATA[<p dir="auto">Sorry to bump this really old thread but the NppExec scripts above weren’t working for me, so i tried to write one myself. Here it is, when it finishes running it will echo a string which can be copied into another file.</p>
<pre><code>cls
set local currentline = 0
set local breakpoints = ""
:repeat
sci_sendmsg SCI_MARKERNEXT $(currentline) 0xFFFFFF
// If marker next fails then we exit.
if $(MSG_RESULT) == -1) 
    exit
// Next marker exists.
else 
    // Check if the market has looped back to 0.
    if $(MSG_RESULT) &lt; $(currentline)
        echo $(breakpoints)
        exit
    else
        // Increment the resulting line by 1.
        set local currentline ~ $(MSG_RESULT) + 1
        set local breakpoints = ${breakpoints} $(FILE_NAME) $(currentline) \r\n
    endif
    goto repeat
endif


</code></pre>
<p dir="auto">I couldn’t quite figure out how to make NppExec write to a file, so if anyone can add that i’d be really grateful.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85743</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85743</guid><dc:creator><![CDATA[Bambofy]]></dc:creator><pubDate>Mon, 17 Apr 2023 17:16:20 GMT</pubDate></item><item><title><![CDATA[Reply to How to get breakpoint list ? on Wed, 20 May 2020 15:09:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> said in <a href="/post/54138">How to get breakpoint list ?</a>:</p>
<blockquote>
<p dir="auto">BTW, I wasn’t complaining about Notepad++'s default bookmark symbol image in any way</p>
</blockquote>
<p dir="auto">Didn’t think you were :-) it was more of an exercise to see if I could do it.  I have an NppExec ‘marker’ script that adds different colored “bookmarks” by placing normal bookmarks and then converting them.  So I <em>though</em> it’d be possible to just change the default symbol / color.</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54139</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54139</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Wed, 20 May 2020 15:09:20 GMT</pubDate></item><item><title><![CDATA[Reply to How to get breakpoint list ? on Wed, 20 May 2020 15:01:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: Michael-Vincent">@<bdi>Michael-Vincent</bdi></a></p>
<p dir="auto">Yes, that is good information.<br />
The Pythonscript implementation is very similar and straightforward.</p>
<p dir="auto">BTW, I wasn’t complaining about Notepad++'s default bookmark symbol image in any way.  Just wondering/commenting on its possible origins.  It hadn’t occurred to me that the origins might be with an earlier VS version.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54138</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54138</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 20 May 2020 15:01:02 GMT</pubDate></item><item><title><![CDATA[Reply to How to get breakpoint list ? on Wed, 20 May 2020 14:52:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> said in <a href="/post/54131">How to get breakpoint list ?</a>:</p>
<blockquote>
<p dir="auto">The obvious stock Scintilla choice (had it been used) would have been:</p>
</blockquote>
<p dir="auto">Do you have NppExec (or Python Script) that allows a script to run at startup?</p>
<pre><code>SCI_SENDMSG SCI_MARKERDEFINE 24 SC_MARK_BOOKMARK
SCI_SENDMSG SCI_MARKERSETFORE 24 255
SCI_SENDMSG SCI_MARKERSETBACK 24 255
</code></pre>
<p dir="auto">(Python Scrip implementation will vary ;-)</p>
<p dir="auto"><img src="/assets/uploads/files/1589986337584-51712cda-f98a-4ef9-a53f-1ff0492dc7ab-image.png" alt="51712cda-f98a-4ef9-a53f-1ff0492dc7ab-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54133</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54133</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Wed, 20 May 2020 14:52:24 GMT</pubDate></item><item><title><![CDATA[Reply to How to get breakpoint list ? on Wed, 20 May 2020 14:24:32 GMT]]></title><description><![CDATA[<p dir="auto">Tangential to the topic, but not quite off-topic:</p>
<p dir="auto">I started working with an older version of Visual Studio recently, due to what is used for certain projects at work.</p>
<p dir="auto">I notice that its breakpointing symbol is VERY similar to Notepad’s bookmark image, the main difference being coloring:</p>
<p dir="auto"><img src="/assets/uploads/files/1589983999063-f93d525e-93a7-4a2c-9890-145ab778a422-image.png" alt="f93d525e-93a7-4a2c-9890-145ab778a422-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">In the past I’ve had a passing thought of “where did the design for the N++ bookmark come from?” as it isn’t a stock Scintilla indicator symbol like those shown <a href="https://www.scintilla.org/ScintillaDoc.html#Markers" rel="nofollow ugc">HERE</a> (with a little “scrolldown” from where that link goes).</p>
<p dir="auto">Perhaps this “red” older-Visual-Studio BP symbol (shown above) was the origin of the N++ bookmark symbol.</p>
<p dir="auto">The obvious stock Scintilla choice (had it been used) would have been:</p>
<p dir="auto"><img src="/assets/uploads/files/1589984376182-06636eee-70c1-41af-95d2-0980fe38644f-image.png" alt="06636eee-70c1-41af-95d2-0980fe38644f-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">BTW, current VS (2019) BP symboling is much less “fancy”; appears rather flat:</p>
<p dir="auto"><img src="/assets/uploads/files/1589984514160-0142c89a-c1d3-45d0-b448-5f7675597295-image.png" alt="0142c89a-c1d3-45d0-b448-5f7675597295-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/54131</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54131</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 20 May 2020 14:24:32 GMT</pubDate></item><item><title><![CDATA[Reply to How to get breakpoint list ? on Mon, 18 May 2020 16:04:00 GMT]]></title><description><![CDATA[<p dir="auto">@Gregory-D said in <a href="/post/54008">How to get breakpoint list ?</a>:</p>
<blockquote>
<p dir="auto">Then right code is:</p>
</blockquote>
<p dir="auto">Yup - methinks that’s correct.</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54009</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54009</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Mon, 18 May 2020 16:04:00 GMT</pubDate></item><item><title><![CDATA[Reply to How to get breakpoint list ? on Mon, 18 May 2020 16:02:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: Michael-Vincent">@<bdi>Michael-Vincent</bdi></a> said in <a href="/post/54006">How to get breakpoint list ?</a>:</p>
<blockquote>
<p dir="auto">The Scintilla docs <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a>  linked are crucial since the Notepad++ editing component is based on Scintilla.  As for “translating” my NppExec script to C++:</p>
</blockquote>
<p dir="auto">I’m sure about that, but what Alan Kilborn doesn’t understand is that my problem is not about Scintilla api that is documented but with the c++ conversion.<br />
Then right code is:</p>
<pre><code>				long line = 1;
				int mask = (1 &lt;&lt; 24);
				int result=::SendMessage(curScintilla, SCI_MARKERNEXT, line, mask);
</code></pre>
<p dir="auto">You helped me, thanks.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54008</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54008</guid><dc:creator><![CDATA[Gregory D.]]></dc:creator><pubDate>Mon, 18 May 2020 16:02:32 GMT</pubDate></item><item><title><![CDATA[Reply to How to get breakpoint list ? on Mon, 18 May 2020 16:01:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: Michael-Vincent">@<bdi>Michael-Vincent</bdi></a> said in <a href="/post/54006">How to get breakpoint list ?</a>:</p>
<blockquote>
<p dir="auto">SendMessage(getCurScintilla(), SCI_MARKERNEXT, line, mask);</p>
</blockquote>
<p dir="auto">sorry:</p>
<pre><code>int markerAtLine = ::SendMessage(getCurScintilla(), SCI_MARKERNEXT, line, mask);
</code></pre>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54007</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54007</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Mon, 18 May 2020 16:01:57 GMT</pubDate></item><item><title><![CDATA[Reply to How to get breakpoint list ? on Mon, 18 May 2020 16:00:06 GMT]]></title><description><![CDATA[<p dir="auto">@Gregory-D</p>
<p dir="auto">I think maybe you’re not connecting the dots.  The <a href="https://www.scintilla.org/ScintillaDoc.html" rel="nofollow ugc">Scintilla docs</a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a>  linked are <em><strong>crucial</strong></em> since the Notepad++ editing component is based on Scintilla.  As for “translating” my NppExec script to C++:</p>
<pre><code>

HWND getCurScintilla()
{
    int which = -1;
    ::SendMessage( nppData._nppHandle, NPPM_GETCURRENTSCINTILLA, 0,
                   ( LPARAM )&amp;which );
    return ( which == 0 ) ? nppData._scintillaMainHandle :
           nppData._scintillaSecondHandle;
}

[...]
int line = 0;
int mask = 1&lt;&lt;24;
SendMessage(getCurScintilla(), SCI_MARKERNEXT, line, mask);
</code></pre>
<p dir="auto">That should get you the first bookmark since N++ uses 24 as the bookmark marker and thus bitshitfted 24 is the mask the Scintilla call requires.  You’ll need to put your own C++ code / logic around that to determine if you’ve found them all and how to find the next one, but again, my NppExec “pseudo” code should help you with that - as will the <a href="https://www.scintilla.org/ScintillaDoc.html" rel="nofollow ugc">Scintilla docs</a>.</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54006</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54006</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Mon, 18 May 2020 16:00:06 GMT</pubDate></item><item><title><![CDATA[Reply to How to get breakpoint list ? on Mon, 18 May 2020 15:54:33 GMT]]></title><description><![CDATA[<p dir="auto">@Gregory-D said in <a href="/post/53999">How to get breakpoint list ?</a>:</p>
<blockquote>
<p dir="auto">long line = 0;<br />
int marker = 0;<br />
::SendMessage(curScintilla, SCI_MARKERGET, line, (LPARAM)&amp;marker);</p>
</blockquote>
<p dir="auto">This is :</p>
<pre><code>long line = 0;
int marker=::SendMessage(curScintilla, SCI_MARKERGET, line, 0);
</code></pre>
<p dir="auto">Right ?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54005</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54005</guid><dc:creator><![CDATA[Gregory D.]]></dc:creator><pubDate>Mon, 18 May 2020 15:54:33 GMT</pubDate></item><item><title><![CDATA[Reply to How to get breakpoint list ? on Mon, 18 May 2020 15:43:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: Michael-Vincent">@<bdi>Michael-Vincent</bdi></a> Thank you for the code, what I don’t understand is how to turn that in c++, the functino is ::SendMessage(getCurrScintilla(), &lt;MESSAGE&gt;, wParam, lParam)),  then I need to put pos, mask and the result in wparam and lparam, 3 parameters into 2 ?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54004</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54004</guid><dc:creator><![CDATA[Gregory D.]]></dc:creator><pubDate>Mon, 18 May 2020 15:43:10 GMT</pubDate></item><item><title><![CDATA[Reply to How to get breakpoint list ? on Mon, 18 May 2020 15:36:02 GMT]]></title><description><![CDATA[<p dir="auto">I just need help for notepad++ plugin development in c++, you redirect me to scintilla api documentation, which has nothing to do with c++.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> said in <a href="/post/54002">How to get breakpoint list ?</a>:</p>
<blockquote>
<p dir="auto">I did point you to the documentation, and a specific function in those docs, but then in your follow-on posting you seemed to ignore that and went with a different function</p>
</blockquote>
<p dir="auto">Sorry I followed your link and see that SCI_MARKERGET returns the bookmark at a specific line, perfect for a test. I tested and it doesn’t work. But even if you’re convinced I’m a bad programmer, you think I would have more chance with SCI_MARKERNEXT that seems more advanced.<br />
If you tell me why I get “0”, I’ll can understand and make both work, but you doesn’t seem to know c++, then just tell me that.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54003</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54003</guid><dc:creator><![CDATA[Gregory D.]]></dc:creator><pubDate>Mon, 18 May 2020 15:36:02 GMT</pubDate></item><item><title><![CDATA[Reply to How to get breakpoint list ? on Mon, 18 May 2020 13:50:24 GMT]]></title><description><![CDATA[<p dir="auto">@Gregory-D said in <a href="/post/53999">How to get breakpoint list ?</a>:</p>
<blockquote>
<p dir="auto">you should have just said, "no it’s not too much complicated, you just have to get the current scintilla, like that [little code] and retrieve the bookmark for each line like that [little code].</p>
</blockquote>
<p dir="auto">I don’t know…<br />
Nobody here is going to “spoon feed” you every little detail.<br />
If you’re a plugin writer, a certain level of “sophistication” is assumed.<br />
Pointing you to the documentation should be enough.<br />
Of course, I <em>did</em> point you to the documentation, and a specific function in those docs, but then in your follow-on posting you seemed to ignore that and went with a <em>different</em> function…<br />
I’m not sure what to think.<br />
I wish you good luck with your endeavors.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54002</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54002</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 18 May 2020 13:50:24 GMT</pubDate></item><item><title><![CDATA[Reply to How to get breakpoint list ? on Mon, 18 May 2020 13:42:24 GMT]]></title><description><![CDATA[<p dir="auto">@Gregory-D</p>
<p dir="auto">In my notes on bookmark manipulation I have this thread and specifically <a href="https://community.notepad-plus-plus.org/post/32663">THIS POST</a> noted.<br />
The logic flow there can probably help you.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54001</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54001</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 18 May 2020 13:42:24 GMT</pubDate></item><item><title><![CDATA[Reply to How to get breakpoint list ? on Mon, 18 May 2020 13:40:28 GMT]]></title><description><![CDATA[<p dir="auto">@Gregory-D said in <a href="/post/53999">How to get breakpoint list ?</a>:</p>
<blockquote>
<p dir="auto">Ok, that part work, I get the scintilla for the current document, but for the next part I don’t find example, I tried that:</p>
</blockquote>
<p dir="auto">Here is some <a href="https://github.com/d0vgan/nppexec" rel="nofollow ugc">NppExec</a> code to iterate the bookmarks in the active document.</p>
<pre><code>SET LOCAL POS = 0
SET LOCAL FOUND = 0
SET LOCAL MASK ~ 1&lt;&lt;24

:LISTNEXT
SCI_SENDMSG SCI_MARKERNEXT $(POS) $(MASK)
IF $(MSG_RESULT)==-1 GOTO STOP

NPP_CONSOLE on
SET LOCAL FOUND = 1
SET LOCAL LINE ~ $(MSG_RESULT) + 1
SCI_SENDMSG SCI_GETLINE $(MSG_RESULT) @""
ECHO $(FULL_CURRENT_PATH):$(LINE):	$(MSG_LPARAM)

SET LOCAL POS = $(LINE)
GOTO LISTNEXT

:STOP
IF $(FOUND)==0 THEN
    MESSAGEBOX "No Bookmarks Found"
ENDIF
</code></pre>
<p dir="auto">The API calls are pretty much the same (SCI_SENDMSG = ::SendMessage(getCurrScintilla(), &lt;MESSAGE&gt;, wParam, lParam)) and you can do C++ looping much cleaner than the GOTO required in NppExec.</p>
<p dir="auto">I usually try to mock something up in NppExec (or “<a href="https://metacpan.org/pod/Win32::Mechanize::NotepadPlusPlus::Notepad" rel="nofollow ugc">PerlScript</a>” or <a href="http://npppythonscript.sourceforge.net/" rel="nofollow ugc">PythonScript</a>) before trying to add to a plugin.</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54000</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54000</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Mon, 18 May 2020 13:40:28 GMT</pubDate></item><item><title><![CDATA[Reply to How to get breakpoint list ? on Mon, 18 May 2020 13:32:56 GMT]]></title><description><![CDATA[<p dir="auto">I’m not offended, just surprised of you’re way to reply, you should have just said, "no it’s not too much complicated, you just have to get the current scintilla, like that [little code] and retrieve the bookmark for each line like that [little code]. But that’s ok, I ask, I work.<br />
Then I did that :</p>
<pre><code>int which = -1;
::SendMessage(nppData._nppHandle, NPPM_GETCURRENTSCINTILLA, 0, (LPARAM)&amp;which);
if (which == -1)
	return FALSE;
HWND curScintilla = (which == 0) ? nppData._scintillaMainHandle : nppData._scintillaSecondHandle;
</code></pre>
<p dir="auto">Ok, that part work, I get the scintilla for the current document, but for the next part I don’t find example, I tried that:</p>
<p dir="auto">long line = 0;<br />
int marker = 0;<br />
::SendMessage(curScintilla, SCI_MARKERGET, line, (LPARAM)&amp;marker);</p>
<p dir="auto">But it always gave 0, can you enlighten me ?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/53999</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/53999</guid><dc:creator><![CDATA[Gregory D.]]></dc:creator><pubDate>Mon, 18 May 2020 13:32:56 GMT</pubDate></item><item><title><![CDATA[Reply to How to get breakpoint list ? on Mon, 18 May 2020 13:05:47 GMT]]></title><description><![CDATA[<p dir="auto">@Gregory-D said in <a href="/post/53994">How to get breakpoint list ?</a>:</p>
<blockquote>
<p dir="auto">Do you mean it’s complicated to get a list of bookmark ?</p>
</blockquote>
<p dir="auto">To ask such a question in that way leads me to believe that it might be complicated for <em>you</em>.<br />
Haha.<br />
Just a joke, don’t get offended!</p>
<p dir="auto">But, I pointed you to the documentation, which I presume you looked at before you replied with the above question.<br />
And did you see a function there that instantly provides you with a list of bookmarks?<br />
No, because there isn’t such a function.<br />
To get the bookmarks you have to iterate and build any list you want yourself.<br />
You would probably use <a href="https://www.scintilla.org/ScintillaDoc.html#SCI_MARKERNEXT" rel="nofollow ugc">THIS</a> to do that.<br />
And you would also need to know that the marker number that N++ uses for bookmarks is decimal 24.</p>
<p dir="auto">So, overall, is it complicated?<br />
I suppose that depends upon your knowledge and your perspective.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/53996</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/53996</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 18 May 2020 13:05:47 GMT</pubDate></item><item><title><![CDATA[Reply to How to get breakpoint list ? on Mon, 18 May 2020 12:53:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> said in <a href="/post/53993">How to get breakpoint list ?</a>:</p>
<blockquote>
<p dir="auto">You can read about their implementation HERE although that won’t make you an instant expert on how a plugin can gain access.</p>
</blockquote>
<p dir="auto">Do you mean it’s complicated to get a list of bookmark ?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/53994</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/53994</guid><dc:creator><![CDATA[Gregory D.]]></dc:creator><pubDate>Mon, 18 May 2020 12:53:13 GMT</pubDate></item><item><title><![CDATA[Reply to How to get breakpoint list ? on Mon, 18 May 2020 12:50:38 GMT]]></title><description><![CDATA[<p dir="auto">@Gregory-D said in <a href="/post/53990">How to get breakpoint list ?</a>:</p>
<blockquote>
<p dir="auto">is it possible to get a list of these circles fro a plugin</p>
</blockquote>
<p dir="auto">Are you asking if it is possible for a plugin to know if a line has a bookmark or not?</p>
<p dir="auto">If so then the answer is yes.<br />
The bookmark is manipulated as something called a “marker”.<br />
You can read about their implementation <a href="https://www.scintilla.org/ScintillaDoc.html#Markers" rel="nofollow ugc">HERE</a> although that won’t make you an instant expert on how a plugin can gain access.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/53993</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/53993</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 18 May 2020 12:50:38 GMT</pubDate></item><item><title><![CDATA[Reply to How to get breakpoint list ? on Mon, 18 May 2020 12:45:58 GMT]]></title><description><![CDATA[<p dir="auto">@Gregory-D said in <a href="/post/53990">How to get breakpoint list ?</a>:</p>
<blockquote>
<p dir="auto">I suppose it is a breakpoint,</p>
</blockquote>
<p dir="auto">Not a breakpoint, as Notepad++ is not a debugger/IDE.</p>
<p dir="auto">It’s a <em>Bookmark</em> ; see the <em>Mark</em> tab in the <em>Find</em> window (for setting bookmarks via a search), and also the <em>Search</em> menu’s <em>Bookmark</em> menu (for manipulating bookmarked content).</p>
<p dir="auto">For those unfamiliar, this is what the OP is seeing:</p>
<p dir="auto"><img src="/assets/uploads/files/1589805942795-f818d694-7122-4468-b601-1ef7424e0bd1-image.png" alt="f818d694-7122-4468-b601-1ef7424e0bd1-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/53992</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/53992</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 18 May 2020 12:45:58 GMT</pubDate></item></channel></rss>