<?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 can i get a specific deserialized code in npp++ to c#]]></title><description><![CDATA[<p dir="auto">Hi , I’m writing a plugin with C#. The plugin deserializing  data from a server(data is a script and it includes code , id , name etc.)  and puts data to notepad++ file. I have to select  this data’s code part from the file and serialize it again and patch it back to server, after editing the code  . My problem is i dont know how to select the part i wanted ?<br />
<img src="/assets/uploads/files/1632902148132-getscript1.png" alt="GetScript1.PNG" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1632902231056-getscriptcode.png" alt="GetScriptCode.PNG" class=" img-fluid img-markdown" /></p>
<p dir="auto">e.g Plugin have to select function automatically after I edited the code</p>
<p dir="auto"><img src="/assets/uploads/files/1632902765523-patchcodepart1.png" alt="PatchCodePart1.PNG" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1632902775860-patchcodepart2.png" alt="PatchCodePart2.PNG" class=" img-fluid img-markdown" /></p>
<p dir="auto">This is the part that i have to write selecting and patching codes</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/21902/how-can-i-get-a-specific-deserialized-code-in-npp-to-c</link><generator>RSS for Node</generator><lastBuildDate>Fri, 12 Jun 2026 02:40:46 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/21902.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 29 Sep 2021 08:08:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How can i get a specific deserialized code in npp++ to c# on Wed, 29 Sep 2021 08:33:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yunus-emre-k%C3%BCt%C3%BCk%C3%A7%C3%BC" aria-label="Profile: Yunus-Emre-Kütükçü">@<bdi>Yunus-Emre-Kütükçü</bdi></a><br />
I’m not sure I understand this correctly. Do you mean the entire content?<br />
If so, then <a href="https://www.scintilla.org/ScintillaDoc.html#SCI_GETTEXT" rel="nofollow ugc">SCI_GETTEXT</a> is the way to go.<br />
If you want to have only the part that contains the changed lines, then you<br />
you have to work with <a href="https://www.scintilla.org/ScintillaDoc.html#Markers" rel="nofollow ugc">markers</a>.<br />
Find them, find the start and end position of that line and use <a href="https://www.scintilla.org/ScintillaDoc.html#SCI_GETRANGEPOINTER" rel="nofollow ugc">SCI_GETRANGEPOINTER</a> to retrieve the text.</p>
<p dir="auto">I don’t know if this is relevant in your case, but make sure you consider text encoding.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/70129</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/70129</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 29 Sep 2021 08:33:45 GMT</pubDate></item></channel></rss>