<?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 add a gap between letters and border of N++ window?]]></title><description><![CDATA[<p dir="auto">I switched off the numeration of lines and margin and grey border of N++ window.</p>
<p dir="auto">Now I get this layout:<br />
<img src="/assets/uploads/files/1602751248538-f5834744-255a-4d1a-b39c-fcdec427e475-image.png" alt="f5834744-255a-4d1a-b39c-fcdec427e475-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The problem is text is too close to window border:</p>
<p dir="auto">I want to add 1 mm gap like a standard Notepad app in Windows do:<br />
<img src="/assets/uploads/files/1602751424851-d0efcb21-a46d-4c46-8e02-a13efe96876d-image.png" alt="d0efcb21-a46d-4c46-8e02-a13efe96876d-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><strong>Please explain, how to add 1 mm gap?</strong></p>
<p dir="auto">I do not want to turn on margin at all:<br />
<img src="/assets/uploads/files/1602751557980-42ee560c-d0a8-4c6b-9b55-fd98fff05101-image.png" alt="42ee560c-d0a8-4c6b-9b55-fd98fff05101-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20157/how-to-add-a-gap-between-letters-and-border-of-n-window</link><generator>RSS for Node</generator><lastBuildDate>Sun, 07 Jun 2026 22:55:51 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20157.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 15 Oct 2020 08:46:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to add a gap between letters and border of N++ window? on Tue, 23 Feb 2021 14:20:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nikola" aria-label="Profile: Nikola">@<bdi>Nikola</bdi></a> ,</p>
<blockquote>
<p dir="auto">if the border was only white not gray</p>
</blockquote>
<p dir="auto"><strong>Settings &gt; Style Configurator &gt; Language: <code>Global Styles</code> &gt; Style: <code>Fold Margin</code></strong>, change the <strong>Background Colour</strong> to white (or whatever non-gray color you prefer)</p>
<blockquote>
<p dir="auto">I wanted to try the trick with Pyton Script plugin but I would need step by step instructions</p>
</blockquote>
<ol>
<li><strong>Plugins &gt; Plugins Admin</strong>: in the <strong>Available</strong> tab, enable <code>☑ Python Script</code> and <strong>Install</strong>.  Notepad++ should restart after installing the plugin</li>
<li><strong>Plugins &gt; Python Script &gt; Scripts</strong>: in the resulting sub-menu, Ctrl+Click on the <code>Startup (user)</code><br />
(if you normal-click, it will run the script; ctrl+click will edit the script – you want to edit it)</li>
<li>It will open a file in Notepad++.  At the end of that file, add the lines<pre><code>editor1.setMarginLeft(30)
editor2.setMarginLeft(30)
</code></pre>
and save that file.</li>
<li><strong>Plugins &gt; Python Script &gt; Configuration…</strong>.  Change the <strong>Initialisation:</strong> drop-down to <code>ATSTARTUP</code>, and click <strong>OK</strong></li>
<li>Exit and restart Notepad++.</li>
</ol>
<p dir="auto">This should set wider margins.  If it’s too wide or too narrow, use a smaller or larger number than 30 (bigger number means wider)</p>
<p dir="auto">If it doesn’t work for you, show us your <strong>? &gt; Debug Info</strong>, and give us screenshots showing your edited <code>startup.py</code> open in Notepad++, and maybe with the <strong>Plugins &gt; Python Script &gt; Show Console</strong> showing, so we can see if there are any unexpected error messages</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63153</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63153</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 23 Feb 2021 14:20:11 GMT</pubDate></item><item><title><![CDATA[Reply to How to add a gap between letters and border of N++ window? on Tue, 23 Feb 2021 13:37:26 GMT]]></title><description><![CDATA[<p dir="auto">Hi all!<br />
My first post on this forum, so sorry for my noob question. I really don’t get it if this question is solved? I wanted to try the trick with Pyton Script plugin but I would need step by step instructions since I’m no programmer.</p>
<p dir="auto">So basically I need exactly what the OP asked, ability to change how close is the text from the left border. I would be satisfied with space that I get when choosing <strong>Settings&gt;Preferences&gt;Margine/Border/Edge&gt;Folder Margin Style</strong> if the border was only white not gray (dotted pattern).</p>
<p dir="auto">Not directly related but for the record if chose any other option for Folder Margin Style (Arrow, Circle tree, Box tree) the margin looks the same as in the picture bellow. Also border radius (which is not what I need) doesn’t work, if  I change the number the radius stays the same, “No edge” option works fine. I’m on Windows10.</p>
<p dir="auto"><img src="/assets/uploads/files/1614087111865-capture.jpg" alt="Capture.JPG" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/63150</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63150</guid><dc:creator><![CDATA[Nikola]]></dc:creator><pubDate>Tue, 23 Feb 2021 13:37:26 GMT</pubDate></item><item><title><![CDATA[Reply to How to add a gap between letters and border of N++ window? on Sat, 17 Oct 2020 18:47:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a></p>
<p dir="auto">Yea, I think I suggested that same thing in a prior time I posted something like my last post in this thread.  What I don’t understand is why we haven’t banned this “thing”.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58685</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58685</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 17 Oct 2020 18:47:16 GMT</pubDate></item><item><title><![CDATA[Reply to How to add a gap between letters and border of N++ window? on Sat, 17 Oct 2020 18:11:30 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></p>
<p dir="auto">If we consider how often the answers are far off, I start to think that this is a Bot/AI someone is testing against the forum.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58682</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58682</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Sat, 17 Oct 2020 18:11:30 GMT</pubDate></item><item><title><![CDATA[Reply to How to add a gap between letters and border of N++ window? on Fri, 16 Oct 2020 11:56:33 GMT]]></title><description><![CDATA[<p dir="auto">Future readers:  Please disregard the posting here (and anywhere else on this site) by <a class="plugin-mentions-user plugin-mentions-a" href="/user/makwana-prahlad" aria-label="Profile: Makwana-Prahlad">@<bdi>Makwana-Prahlad</bdi></a> .  It is talking about something irrelevant to the topic at hand.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58659</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58659</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 16 Oct 2020 11:56:33 GMT</pubDate></item><item><title><![CDATA[Reply to How to add a gap between letters and border of N++ window? on Fri, 16 Oct 2020 03:39:53 GMT]]></title><description><![CDATA[<p dir="auto">Hello,<a class="plugin-mentions-user plugin-mentions-a" href="/user/evgeny-morozov" aria-label="Profile: Evgeny-Morozov">@<bdi>Evgeny-Morozov</bdi></a></p>
<p dir="auto">Please follow this steps,To How to add a gap between letters and border of N++ window?</p>
<p dir="auto"><strong>Step 1:-</strong> Open your file in Notepad++<br />
<strong>Step 2:-</strong> Press <strong>Ctrl+H</strong> to open the Replace window.<br />
<strong>Step 3:-</strong> Change the <strong>“Search Mode”</strong> to Regular expression.<br />
<strong>Step 4:-</strong> In the <strong>“Find what”</strong> box, type (\n|^)<br />
<strong>Step 5:-</strong> In the <strong>“Replace with”</strong> box, type \1<br />
<strong>Step 6:-</strong> Then click <strong>“Replace All”</strong></p>
<p dir="auto"><strong>Note:</strong> If you want tabs instead of spaces, a tab character can be typed with Alt+09</p>
<p dir="auto">I hope this information will be useful to you.<br />
Thank you.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58652</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58652</guid><dc:creator><![CDATA[Makwana Prahlad]]></dc:creator><pubDate>Fri, 16 Oct 2020 03:39:53 GMT</pubDate></item><item><title><![CDATA[Reply to How to add a gap between letters and border of N++ window? on Thu, 15 Oct 2020 18:10:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/evgeny-morozov" aria-label="Profile: Evgeny-Morozov">@<bdi>Evgeny-Morozov</bdi></a></p>
<p dir="auto">Great that it works - still confused that calling the two methods from the console didn’t work.</p>
<p dir="auto">So the only other thing is that your <strong>user</strong> <a href="http://startup.py" rel="nofollow ugc">startup.py</a> should only contain the two setMarginLeft… lines. The other stuff will get initialized from the <em>standard</em> <a href="http://startup.py" rel="nofollow ugc">startup.py</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58651</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58651</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Thu, 15 Oct 2020 18:10:27 GMT</pubDate></item><item><title><![CDATA[Reply to How to add a gap between letters and border of N++ window? on Thu, 15 Oct 2020 18:06:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> said in <a href="/post/58647">How to add a gap between letters and border of N++ window?</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/evgeny-morozov" aria-label="Profile: Evgeny-Morozov">@<bdi>Evgeny-Morozov</bdi></a></p>
<p dir="auto"><img src="/assets/uploads/files/1602783556556-b3d5c721-8f4d-4b46-b790-d37521c520b9-image.png" alt="b3d5c721-8f4d-4b46-b790-d37521c520b9-image.png" class=" img-fluid img-markdown" /></p>
</blockquote>
<p dir="auto">Surprisingly it works!<br />
Maybe I have not closed one txt file opened in N++</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58649</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58649</guid><dc:creator><![CDATA[Evgeny Morozov]]></dc:creator><pubDate>Thu, 15 Oct 2020 18:06:15 GMT</pubDate></item><item><title><![CDATA[Reply to How to add a gap between letters and border of N++ window? on Thu, 15 Oct 2020 17:39:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/evgeny-morozov" aria-label="Profile: Evgeny-Morozov">@<bdi>Evgeny-Morozov</bdi></a></p>
<p dir="auto"><img src="/assets/uploads/files/1602783556556-b3d5c721-8f4d-4b46-b790-d37521c520b9-image.png" alt="b3d5c721-8f4d-4b46-b790-d37521c520b9-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/58647</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58647</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Thu, 15 Oct 2020 17:39:21 GMT</pubDate></item><item><title><![CDATA[Reply to How to add a gap between letters and border of N++ window? on Thu, 15 Oct 2020 17:38:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> said in <a href="/post/58643">How to add a gap between letters and border of N++ window?</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/evgeny-morozov" aria-label="Profile: Evgeny-Morozov">@<bdi>Evgeny-Morozov</bdi></a></p>
<p dir="auto">Can you post your debug-info, which is available from ? menu?</p>
</blockquote>
<p dir="auto">Can you please explain there to find that debug info?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58646</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58646</guid><dc:creator><![CDATA[Evgeny Morozov]]></dc:creator><pubDate>Thu, 15 Oct 2020 17:38:18 GMT</pubDate></item><item><title><![CDATA[Reply to How to add a gap between letters and border of N++ window? on Thu, 15 Oct 2020 17:00:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/evgeny-morozov" aria-label="Profile: Evgeny-Morozov">@<bdi>Evgeny-Morozov</bdi></a></p>
<p dir="auto">Can you post your debug-info, which is available from ? menu?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58643</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58643</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Thu, 15 Oct 2020 17:00:45 GMT</pubDate></item><item><title><![CDATA[Reply to How to add a gap between letters and border of N++ window? on Thu, 15 Oct 2020 16:19:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> said in <a href="/post/58626">How to add a gap between letters and border of N++ window?</a>:</p>
<blockquote>
<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/58619">How to add a gap between letters and border of N++ window?</a>:</p>
<blockquote>
<p dir="auto">You probably don’t have any margin turned on</p>
</blockquote>
<p dir="auto">Curious, how would one do that? I was under the impression that the<br />
blank margin is always active.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/evgeny-morozov" aria-label="Profile: Evgeny-Morozov">@<bdi>Evgeny-Morozov</bdi></a><br />
Npp knows two editor objects named <code>editor1</code> and <code>editor2</code>.<br />
<code>editor</code> points to one of those and is the current one used.<br />
Change your code to</p>
<pre><code>editor1.set...
editor2.set...
</code></pre>
<p dir="auto">to be sure that both editor objects are affected. In addition I would recommend not to use the standard <a href="http://startup.py" rel="nofollow ugc">startup.py</a> file but to create a user <a href="http://startup.py" rel="nofollow ugc">startup.py</a>. Simply by using the PythonScript menu and choose <code>New script</code> and name it <code>startup.py</code>.</p>
<p dir="auto">Can you check if you see an error in the PythonScript console?<br />
Plugins-&gt;PythonScript-&gt;Show Console</p>
</blockquote>
<p dir="auto">It does not work too. :((((</p>
<p dir="auto">I created user scrypt <a href="http://startup.py" rel="nofollow ugc">startup.py</a>.</p>
<p dir="auto">Here is contents:</p>
<p dir="auto"><img src="/assets/uploads/files/1602778392459-87c7027b-625b-4bff-afd7-5688f28cbebf-image.png" alt="87c7027b-625b-4bff-afd7-5688f28cbebf-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I restarted Notepad++<br />
Run scrupt using menu:</p>
<p dir="auto"><img src="/assets/uploads/files/1602778542263-e7f8f92c-abd3-411d-9c55-86e05f61fd9a-image.png" alt="e7f8f92c-abd3-411d-9c55-86e05f61fd9a-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">But there is still no space:<br />
<img src="/assets/uploads/files/1602778580432-ff216fea-7565-46ee-b19d-65eaa29e0e25-image.png" alt="ff216fea-7565-46ee-b19d-65eaa29e0e25-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Console is empty<br />
<img src="/assets/uploads/files/1602778624191-247de44e-27a3-448d-a316-c42f07abe2c7-image.png" alt="247de44e-27a3-448d-a316-c42f07abe2c7-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I enter commands manually:<br />
<img src="/assets/uploads/files/1602778713249-6bc86517-d5eb-4b5d-b7f3-129e67a4dae1-image.png" alt="6bc86517-d5eb-4b5d-b7f3-129e67a4dae1-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">But nothing happens</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58639</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58639</guid><dc:creator><![CDATA[Evgeny Morozov]]></dc:creator><pubDate>Thu, 15 Oct 2020 16:19:08 GMT</pubDate></item><item><title><![CDATA[Reply to How to add a gap between letters and border of N++ window? on Thu, 15 Oct 2020 15:43:13 GMT]]></title><description><![CDATA[<p dir="auto">Yes, took me some time to figure out that this isn’t one of the other<br />
margins while I was testing it some time ago. :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58637</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58637</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Thu, 15 Oct 2020 15:43:13 GMT</pubDate></item><item><title><![CDATA[Reply to How to add a gap between letters and border of N++ window? on Thu, 15 Oct 2020 15:41:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a></p>
<p dir="auto">Ah, it is somewhat confusing because it isn’t a real “margin” like the others I called out.<br />
So, apparently it was just that the OP had some sort of problem getting the Pythonscript solution to work.<br />
Maybe should try a NppExec solution?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58636</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58636</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 15 Oct 2020 15:41:47 GMT</pubDate></item><item><title><![CDATA[Reply to How to add a gap between letters and border of N++ window? on Thu, 15 Oct 2020 15:28:38 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></p>
<p dir="auto"><a href="https://www.scintilla.org/ScintillaDoc.html#SCI_SETMARGINLEFT" rel="nofollow ugc">https://www.scintilla.org/ScintillaDoc.html#SCI_SETMARGINLEFT</a></p>
<p dir="auto">uses the blank margin to insert space between the border and the text.<br />
Hence the solution provided by <a class="plugin-mentions-user plugin-mentions-a" href="/user/nick-brown" aria-label="Profile: Nick-Brown">@<bdi>Nick-Brown</bdi></a> should work and this<br />
margin is not, as far as I know, related to the other “visible” margins.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58633</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58633</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Thu, 15 Oct 2020 15:28:38 GMT</pubDate></item><item><title><![CDATA[Reply to How to add a gap between letters and border of N++ window? on Thu, 15 Oct 2020 14:51:09 GMT]]></title><description><![CDATA[<p dir="auto">Regarding:</p>
<p dir="auto">“You probably don’t have any margin turned on”</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> said :</p>
<blockquote>
<p dir="auto">Curious, how would one do that? I was under the impression that the<br />
blank margin is always active.</p>
</blockquote>
<p dir="auto">What is this “blank margin”??</p>
<p dir="auto">So without any plugins that might create additional margins, I think N++ has 3 possible margins:</p>
<ol>
<li>Line number</li>
<li>Bookmark</li>
<li>Fold (for certain <em>Language</em> types, e.g. Python)</li>
</ol>
<p dir="auto">If you have them all turned off, like this (see the red dots):</p>
<p dir="auto"><img src="/assets/uploads/files/1602773347729-6b059aba-e086-47a7-a7dd-21c4a096628a-image.png" alt="6b059aba-e086-47a7-a7dd-21c4a096628a-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Then you have a “don’t have any margin turned on” situation – or maybe I’m misunderstanding something?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58630</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58630</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 15 Oct 2020 14:51:09 GMT</pubDate></item><item><title><![CDATA[Reply to How to add a gap between letters and border of N++ window? on Thu, 15 Oct 2020 13:23:50 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/2323" rel="nofollow ugc">https://github.com/notepad-plus-plus/notepad-plus-plus/issues/2323</a> &lt;&lt; closed unnecessarily because the extra space may be important for some. You can ask to  reopen.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58627</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58627</guid><dc:creator><![CDATA[ArkadiuszMichalski]]></dc:creator><pubDate>Thu, 15 Oct 2020 13:23:50 GMT</pubDate></item><item><title><![CDATA[Reply to How to add a gap between letters and border of N++ window? on Thu, 15 Oct 2020 13:07:22 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/58619">How to add a gap between letters and border of N++ window?</a>:</p>
<blockquote>
<p dir="auto">You probably don’t have any margin turned on</p>
</blockquote>
<p dir="auto">Curious, how would one do that? I was under the impression that the<br />
blank margin is always active.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/evgeny-morozov" aria-label="Profile: Evgeny-Morozov">@<bdi>Evgeny-Morozov</bdi></a><br />
Npp knows two editor objects named <code>editor1</code> and <code>editor2</code>.<br />
<code>editor</code> points to one of those and is the current one used.<br />
Change your code to</p>
<pre><code>editor1.set...
editor2.set...
</code></pre>
<p dir="auto">to be sure that both editor objects are affected. In addition I would recommend not to use the standard <a href="http://startup.py" rel="nofollow ugc">startup.py</a> file but to create a user <a href="http://startup.py" rel="nofollow ugc">startup.py</a>. Simply by using the PythonScript menu and choose <code>New script</code> and name it <code>startup.py</code>.</p>
<p dir="auto">Can you check if you see an error in the PythonScript console?<br />
Plugins-&gt;PythonScript-&gt;Show Console</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58626</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58626</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Thu, 15 Oct 2020 13:07:22 GMT</pubDate></item><item><title><![CDATA[Reply to How to add a gap between letters and border of N++ window? on Thu, 15 Oct 2020 12:54:35 GMT]]></title><description><![CDATA[<p dir="auto">@Дмитрий-Трошин</p>
<p dir="auto"><em>Border Width</em> doesn’t do <em>anything</em> for what seems to be the OP’s complaint.  I’ll show you:</p>
<p dir="auto">Border Width = 2:</p>
<p dir="auto"><img src="https://camo.nodebb.org/b3ec51793dbb45c388dc30b685dfa801e45526ff?url=https%3A%2F%2Fi.imgur.com%2F9ZYCD3w.png" alt="Imgur" class=" img-fluid img-markdown" /></p>
<p dir="auto">Border Width = 30 (max):</p>
<p dir="auto"><img src="https://camo.nodebb.org/e99efd151eb5e5907ec63801d72503fff974457f?url=https%3A%2F%2Fi.imgur.com%2FhwJLu9j.png" alt="Imgur" class=" img-fluid img-markdown" /></p>
<p dir="auto">See how the <code>b</code> in <code>blah</code> has nothing like the “1 mm gap” the OP desires with EITHER border width setting?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58623</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58623</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 15 Oct 2020 12:54:35 GMT</pubDate></item><item><title><![CDATA[Reply to How to add a gap between letters and border of N++ window? on Thu, 15 Oct 2020 12:46:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nick-brown" aria-label="Profile: Nick-Brown">@<bdi>Nick-Brown</bdi></a> <img src="/assets/uploads/files/1602765963116-screenshot_241.png" alt="Screenshot_241.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/58621</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58621</guid><dc:creator><![CDATA[TroshinDV]]></dc:creator><pubDate>Thu, 15 Oct 2020 12:46:06 GMT</pubDate></item><item><title><![CDATA[Reply to How to add a gap between letters and border of N++ window? on Thu, 15 Oct 2020 12:06:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/evgeny-morozov" aria-label="Profile: Evgeny-Morozov">@<bdi>Evgeny-Morozov</bdi></a></p>
<p dir="auto">You probably don’t have any margin turned on, so setting a width doesn’t do much for you.</p>
<p dir="auto">Why not turn on the line-number or bookmark margins?</p>
<p dir="auto">I have trouble understanding why a small number of people are bothered by how close their text is to a window edge.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58619</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58619</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 15 Oct 2020 12:06:51 GMT</pubDate></item><item><title><![CDATA[Reply to How to add a gap between letters and border of N++ window? on Thu, 15 Oct 2020 11:52:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nick-brown" aria-label="Profile: Nick-Brown">@<bdi>Nick-Brown</bdi></a> said in <a href="/post/58610">How to add a gap between letters and border of N++ window?</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/evgeny-morozov" aria-label="Profile: Evgeny-Morozov">@<bdi>Evgeny-Morozov</bdi></a></p>
<p dir="auto">using the Python Script plugin and the following</p>
<p dir="auto">editor.setMarginLeft(99)</p>
<p dir="auto">where 99 is the number of pixels for the left margin, the default is 1 pixel.</p>
</blockquote>
<p dir="auto">It does not work for me…</p>
<p dir="auto">I added editor.setMarginLeft(99) in <a href="http://startup.py" rel="nofollow ugc">startup.py</a></p>
<p dir="auto"><img src="/assets/uploads/files/1602762721442-c9496913-8aef-4198-9e90-caad9164b28f-image.png" alt="c9496913-8aef-4198-9e90-caad9164b28f-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">and choosed ATSTARTUP option in confog window:</p>
<p dir="auto"><img src="/assets/uploads/files/1602762649174-eba44f65-2c76-4697-bdd7-de6523b3398e-image.png" alt="eba44f65-2c76-4697-bdd7-de6523b3398e-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">What do I do wrong?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58613</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58613</guid><dc:creator><![CDATA[Evgeny Morozov]]></dc:creator><pubDate>Thu, 15 Oct 2020 11:52:24 GMT</pubDate></item><item><title><![CDATA[Reply to How to add a gap between letters and border of N++ window? on Thu, 15 Oct 2020 09:23:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/evgeny-morozov" aria-label="Profile: Evgeny-Morozov">@<bdi>Evgeny-Morozov</bdi></a></p>
<p dir="auto">using the Python Script plugin and the following</p>
<p dir="auto">editor.setMarginLeft(99)</p>
<p dir="auto">where 99 is the number of pixels for the left margin, the default is 1 pixel.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58610</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58610</guid><dc:creator><![CDATA[Nick Brown]]></dc:creator><pubDate>Thu, 15 Oct 2020 09:23:51 GMT</pubDate></item></channel></rss>