<?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[Distraction-free mode]]></title><description><![CDATA[<p dir="auto">I’ve seen two discussions about a distraction-free mode: <a href="https://sourceforge.net/p/notepad-plus/discussion/331754/thread/c0b3127a/" rel="nofollow ugc">https://sourceforge.net/p/notepad-plus/discussion/331754/thread/c0b3127a/</a> and <a href="https://notepad-plus-plus.org/community/topic/13703/is-there-a-distraction-free-writing-mode-like-vimroom-a-plugin-of-vim" rel="nofollow ugc">https://notepad-plus-plus.org/community/topic/13703/is-there-a-distraction-free-writing-mode-like-vimroom-a-plugin-of-vim</a><br />
In the latter, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/34">@dail</a> posted a nice screenshot of what could be such a mode: the text is centered on screen with wide margins. Would it be possible to have the source code of this plugin? Thank you!</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/14216/distraction-free-mode</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 08:39:15 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/14216.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 Jul 2017 15:52:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Distraction-free mode on Thu, 08 Apr 2021 13:28:14 GMT]]></title><description><![CDATA[<p dir="auto">FYI:<br />
This feature will be in the next release (v7.9.6).</p>
<p dir="auto"><img src="/assets/uploads/files/1617888486556-5726c59e-2b26-4f74-a358-f242c2aa9092-image-resized.png" alt="5726c59e-2b26-4f74-a358-f242c2aa9092-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/64777</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64777</guid><dc:creator><![CDATA[donho]]></dc:creator><pubDate>Thu, 08 Apr 2021 13:28:14 GMT</pubDate></item><item><title><![CDATA[Reply to Distraction-free mode on Wed, 26 Jul 2017 20:28:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/9348">@gracile-fr</a></p>
<p dir="auto">you could use <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/34">@dail</a> s script and ctypes to get the size of the fullscreen notepad++ window like this</p>
<pre><code>import ctypes
from ctypes.wintypes import RECT

FindWindow = ctypes.windll.user32.FindWindowW
GetWindowRect = ctypes.windll.user32.GetWindowRect
Rect = RECT()

nppHandle = FindWindow(u'Notepad++', None)
notepad.runMenuCommand("View", "Post-It")

if GetWindowRect(nppHandle, ctypes.byref(Rect)) != 0:
    w = Rect.right
    editor.setMarginLeft(w/3)
    editor.setMarginRight(w/3)
</code></pre>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/25893</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/25893</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Wed, 26 Jul 2017 20:28:19 GMT</pubDate></item><item><title><![CDATA[Reply to Distraction-free mode on Wed, 26 Jul 2017 19:40:17 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/9348">@gracile-fr</a></p>
<p dir="auto">I don’t have the source code any more. I just did some quick tests on an existing plugin I was working with. To get the basic functionality is easy, just set the margins wide so that it centers the text. You can do some testing with the PythonScript plugin. (Normally I would be a bit biased to use LuaScript but there is an issue using it to set the margins). So using Python:</p>
<pre><code>w = 1980
editor.setMarginLeft(w/3)
editor.setMarginRight(w/3)
notepad.runMenuCommand("View", "Post-It")
</code></pre>
<p dir="auto">That’s the general idea. Obviously the screen width is hard coded, don’t know off the top of my head how to get the width of the editor.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/25892</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/25892</guid><dc:creator><![CDATA[dail]]></dc:creator><pubDate>Wed, 26 Jul 2017 19:40:17 GMT</pubDate></item></channel></rss>