<?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[Remove blank (empty) lines]]></title><description><![CDATA[<p dir="auto">I must be very stupid.  I select a section (right-click and hold, select, release right-click)<br />
Edit &gt; Line operations &gt; Remove Empty Lines and NotePad++ removes ALL the empty lines in the entire document!</p>
<p dir="auto">Thanks for your help</p>
<p dir="auto">abc</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/17039/remove-blank-empty-lines</link><generator>RSS for Node</generator><lastBuildDate>Mon, 17 Aug 2026 16:28:37 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/17039.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 02 Feb 2019 18:28:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Remove blank (empty) lines on Thu, 14 Feb 2019 20:13:55 GMT]]></title><description><![CDATA[<p dir="auto">Thanks all for your help - a couple of no so very obvious tips for dopes like me.</p>
<ol>
<li>
<p dir="auto">Don’t be surprised if the Notepad++ 32bit x86 that you installed to get TextFX working  automagically transforms itself to Notepad++ 64bit x64 and nice new TextFX disappears.   Most peculiar - may have something to do with an update?  Never seen that sort of behaviour before and no, I have not been eating magic mushrooms and I know where my apps and stuff live.</p>
</li>
<li>
<p dir="auto">Download the 64bit version of NppTextFX.dll as above, but WAIT!<br />
<em>First</em> of all you’ll have to create a nice new little folder called NppTextFX for NppTextFX.dll to live in.   Now you can put the 64bit version of NppTextFX.dll in its own little folder and all will be happy. Just plonking it in the Plugins folder don’t work.</p>
</li>
</ol>
<p dir="auto">Thanks everyone!</p>
<p dir="auto">abc</p>
]]></description><link>https://community.notepad-plus-plus.org/post/39757</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/39757</guid><dc:creator><![CDATA[Andrew Bruce-Chwatt144]]></dc:creator><pubDate>Thu, 14 Feb 2019 20:13:55 GMT</pubDate></item><item><title><![CDATA[Reply to Remove blank (empty) lines on Sun, 03 Feb 2019 16:28:44 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>
<blockquote>
<p dir="auto">Interesting why you chose ^$\R over the simpler ^\R</p>
</blockquote>
<p dir="auto">just for you alan, just for you 😉</p>
<p dir="auto">you are right again.<br />
i guess it’s because i’m used to pcre/php regex style (thus my often different syntax, and abundant use of non greedy wildcard patterns) and binary safety (theoretical sequence of lf, cr, lf or cr, cr, lf). but in this case such thing will never happen, and even if it would, with an additional lf or cr, my example would not delete the empty line, as it is of course not empty …</p>
<p dir="auto">… in other words: my <code>$</code> is just complete and utterly useless 😂😂😂</p>
]]></description><link>https://community.notepad-plus-plus.org/post/39312</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/39312</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Sun, 03 Feb 2019 16:28:44 GMT</pubDate></item><item><title><![CDATA[Reply to Remove blank (empty) lines on Sun, 03 Feb 2019 15:59:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/meta-chuh" aria-label="Profile: Meta-Chuh">@<bdi>Meta-Chuh</bdi></a></p>
<p dir="auto">Interesting why you chose <code>^$\R</code> over the simpler <code>^\R</code>… So yes, these will get truly empty lines.</p>
<p dir="auto">To get lines which <em>appear</em> empty as well, but may not be, go with <code>^\h*\R</code>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/39311</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/39311</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 03 Feb 2019 15:59:28 GMT</pubDate></item><item><title><![CDATA[Reply to Remove blank (empty) lines on Sun, 03 Feb 2019 14:27:53 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>
<blockquote>
<p dir="auto">but after the fact I’m thinking that a regex solution would have been simpler.</p>
</blockquote>
<p dir="auto">yes, you are correct.<br />
unfortunately no-one posted a regex solution yet (s.h) 😉</p>
<p dir="auto"><strong>regex solution to remove all empty lines from a marked selection:</strong></p>
<ul>
<li>
<p dir="auto">mark the text section, where all empty lines should be removed</p>
</li>
<li>
<p dir="auto">open the menu: <code>search &gt; replace</code> and enter:</p>
</li>
</ul>
<p dir="auto">find what: <code>^$\R</code><br />
replace with: (leave this empty)<br />
search mode: regular expression</p>
<ul>
<li>check “in selection” and hit replace all</li>
</ul>
<p dir="auto">note: only completely empty lines, without spaces or tabs, will be removed using this example.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/39304</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/39304</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Sun, 03 Feb 2019 14:27:53 GMT</pubDate></item><item><title><![CDATA[Reply to Remove blank (empty) lines on Sun, 03 Feb 2019 13:57:45 GMT]]></title><description><![CDATA[<p dir="auto">Good that the OP got it working, but after the fact I’m thinking that a regex solution would have been simpler.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/39302</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/39302</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 03 Feb 2019 13:57:45 GMT</pubDate></item><item><title><![CDATA[Reply to Remove blank (empty) lines on Sun, 03 Feb 2019 13:22:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/andrew-bruce-chwatt144" aria-label="Profile: Andrew-Bruce-Chwatt144">@<bdi>Andrew-Bruce-Chwatt144</bdi></a></p>
<p dir="auto">thank you for reporting back, glad you got it running. 👍</p>
<p dir="auto">also thanks for the reminder, that the textfx plugin is not available at the notepad++ x64 plugins admin. my apologies, i completely forgot about that.</p>
<p dir="auto">ps: notepad++ 32 bit is fine, as long as your documents are smaller than about 512mb (i’m on 32 bit to, for compatibility reasons and more available plugins).</p>
<p dir="auto">note: if you ever want to play around with textfx 64 bit in the future (has to be installed manually):<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/chcg" aria-label="Profile: chcg">@<bdi>chcg</bdi></a> recently pointed out that the experimental textfx 64 bit plugin dll can be downloaded here:<br />
<a href="https://github.com/HQJaTu/NPPTextFX/blob/VS2017-x64/bin/x64/NppTextFX.dll" rel="nofollow ugc">https://github.com/HQJaTu/NPPTextFX/blob/VS2017-x64/bin/x64/NppTextFX.dll</a><br />
(see his original post <a href="https://notepad-plus-plus.org/community/topic/16934/missing-textfx-pugin-developers-please-take-note/11" rel="nofollow ugc">&gt;&gt;&gt; here &lt;&lt;&lt;</a>)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/39301</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/39301</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Sun, 03 Feb 2019 13:22:50 GMT</pubDate></item><item><title><![CDATA[Reply to Remove blank (empty) lines on Sun, 03 Feb 2019 12:48:27 GMT]]></title><description><![CDATA[<p dir="auto">Very many thanks!</p>
<p dir="auto">I had to convert to the 32-bit version to get it working, but that’s no big deal.<br />
What a pleasure!  I was SURE that I was being stupid and missing something.</p>
<p dir="auto">Allbest</p>
<p dir="auto">Andrew</p>
]]></description><link>https://community.notepad-plus-plus.org/post/39300</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/39300</guid><dc:creator><![CDATA[Andrew Bruce-Chwatt144]]></dc:creator><pubDate>Sun, 03 Feb 2019 12:48:27 GMT</pubDate></item><item><title><![CDATA[Reply to Remove blank (empty) lines on Sat, 02 Feb 2019 19:59:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/andrecool-68" aria-label="Profile: andrecool-68">@<bdi>andrecool-68</bdi></a></p>
<blockquote>
<p dir="auto">Delete blank lines (containing space characters) , this does not suit you?</p>
</blockquote>
<p dir="auto">unfortunately not. the built in “delete blank lines” deletes all blank lines in a document.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/andrew-bruce-chwatt144" aria-label="Profile: Andrew-Bruce-Chwatt144">@<bdi>Andrew-Bruce-Chwatt144</bdi></a> needs to only delete blank lines from the part of the file he has selected (marked), and not the entire document.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/39262</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/39262</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Sat, 02 Feb 2019 19:59:08 GMT</pubDate></item><item><title><![CDATA[Reply to Remove blank (empty) lines on Sat, 02 Feb 2019 19:27:07 GMT]]></title><description><![CDATA[<p dir="auto">Delete blank lines (containing space characters) , this does not suit you?</p>
<p dir="auto"><img src="https://i.imgur.com/kNEGO0d.png" alt="" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/39261</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/39261</guid><dc:creator><![CDATA[andrecool-68]]></dc:creator><pubDate>Sat, 02 Feb 2019 19:27:07 GMT</pubDate></item><item><title><![CDATA[Reply to Remove blank (empty) lines on Sun, 03 Feb 2019 12:41:40 GMT]]></title><description><![CDATA[<p dir="auto">welcome to the notepad++ community, <a class="plugin-mentions-user plugin-mentions-a" href="/user/andrew-bruce-chwatt144" aria-label="Profile: Andrew-Bruce-Chwatt144">@<bdi>Andrew-Bruce-Chwatt144</bdi></a></p>
<blockquote>
<p dir="auto">I must be very stupid …</p>
</blockquote>
<p dir="auto">no, not at all, it’s the same for all of us.</p>
<blockquote>
<p dir="auto">I select a section (right-click and hold, select, release right-click)<br />
Edit &gt; Line operations &gt; Remove Empty Lines and NotePad++ removes ALL the empty lines in the entire document!</p>
</blockquote>
<p dir="auto">unfortunately the menu <code>edit &gt; line operations &gt; remove empty lines</code> only handles the entire document.</p>
<p dir="auto">but you can remove empty lines from a text selection, by installing the textfx plugin.<br />
once textfx is installed, select the text you want to handle, and go to the menu <code>textfx &gt; textfx edit &gt; delete blank lines</code> as shown at the screenshot below.</p>
<p dir="auto"><img src="https://i.imgur.com/fLWqrsI.png" alt="Imgur" class=" img-fluid img-markdown" /></p>
<p dir="auto">textfx install guide for notepad++ version 7.6.3:<br />
to install the textfx plugin, go to the menu <code>plugins &gt; plugins admin</code><br />
enter textfx in the search bar and hit next until you see textfx characters.<br />
mark it and hit install as seen at the screenshot below.</p>
<p dir="auto"><img src="https://i.imgur.com/vUTTroN.png" alt="Imgur" class=" img-fluid img-markdown" /></p>
<p dir="auto">if you have an older version of notepad++, please post your debug information here, so we can make a guide for you if necessary<br />
(menu: ? &gt; debug info)</p>
<p dir="auto">i hope this was of service.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/39260</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/39260</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Sun, 03 Feb 2019 12:41:40 GMT</pubDate></item></channel></rss>