<?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[Adding linebreaks below characters]]></title><description><![CDATA[<p dir="auto">I need to add a linebreak below a line that contains “--------------” hyphens.  And I need to know how to make a whole line bold if it contains a specific word or is below the hyphen and linebreak</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/22179/adding-linebreaks-below-characters</link><generator>RSS for Node</generator><lastBuildDate>Sat, 06 Jun 2026 22:37:23 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/22179.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 24 Nov 2021 21:48:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Adding linebreaks below characters on Sat, 27 Nov 2021 19:18:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kracovwolf" aria-label="Profile: kracovwolf">@<bdi>kracovwolf</bdi></a> said in <a href="/post/71633">Adding linebreaks below characters</a>:</p>
<blockquote>
<p dir="auto">so i should swap out the asterisks for &lt;b&gt; or style="font-weight: bold;?</p>
</blockquote>
<p dir="auto">You should do that…if that is what you want to obtain.<br />
I think you can do a <em>BIT</em> of your own thinking here.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71634</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71634</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 27 Nov 2021 19:18:39 GMT</pubDate></item><item><title><![CDATA[Reply to Adding linebreaks below characters on Sat, 27 Nov 2021 18:25:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> I was wondering why you were using the asterisk, since its not the html tag for bold.  so i should swap out the asterisks for &lt;b&gt; or style="font-weight: bold;?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71633</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71633</guid><dc:creator><![CDATA[kracovwolf]]></dc:creator><pubDate>Sat, 27 Nov 2021 18:25:10 GMT</pubDate></item><item><title><![CDATA[Reply to Adding linebreaks below characters on Sat, 19 Nov 2022 21:16:00 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/kracovwolf" aria-label="Profile: kracovwolf">@<bdi>kracovwolf</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Well, You didn’t say that an <strong>empty</strong> line was already present between the <strong><code>----</code></strong> line and the line which must be changed as <strong>bold</strong> !</p>
<p dir="auto">So, here is the <strong>final</strong> solution which works in the <strong>two</strong> cases !</p>
<p dir="auto">With the <em>INPUT</em> text, below :</p>
<pre><code class="language-diff">FIRST case :

-----
Title_1
Text here
...
...


SECOND case :

-----

Title_2
Other Text here
...
...
</code></pre>
<p dir="auto">And using the <strong>regex</strong> S/R :</p>
<ul>
<li>
<p dir="auto">SEARCH <strong><code>(?-s)^-{5,}(\R)\R?(.+)</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>-----\1\1**\2**</code></strong></p>
</li>
</ul>
<p dir="auto">You should get the <strong>expected</strong> text :</p>
<pre><code class="language-diff">FIRST case :

-----

**Title_1**
Text here
...
...


SECOND case :

-----

**Title_2**
Other Text here
...
...
</code></pre>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71625</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71625</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 19 Nov 2022 21:16:00 GMT</pubDate></item><item><title><![CDATA[Reply to Adding linebreaks below characters on Sat, 27 Nov 2021 11:58:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> didn’t seem to work</p>
<p dir="auto"><img src="https://camo.nodebb.org/2e5ae38efd09e3f8a94bebf2cee3053f12e64f4f?url=https%3A%2F%2Fi.imgur.com%2FHGJT8oQ.jpg" alt="alt text" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/71623</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71623</guid><dc:creator><![CDATA[kracovwolf]]></dc:creator><pubDate>Sat, 27 Nov 2021 11:58:37 GMT</pubDate></item><item><title><![CDATA[Reply to Adding linebreaks below characters on Sat, 19 Nov 2022 21:13:13 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/kracovwolf" aria-label="Profile: kracovwolf">@<bdi>kracovwolf</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Ah… yes, <strong>regular expressions</strong> are the <em>school of precision</em> !</p>
<p dir="auto">So, you mean that you have this kind of <em>INPUT</em> text :</p>
<pre><code class="language-diff">-----
Title here
Text here
...
...
</code></pre>
<p dir="auto">and that you <strong>expect</strong> the <em>OUTPUT</em> text below :</p>
<pre><code class="language-diff">-----

**Title here**
Text here
...
...
</code></pre>
<p dir="auto">Right ? If so, use the following <strong>regex</strong> S/R :</p>
<p dir="auto">SEARCH <strong><code>(?-s)^-{5,}(\R)(.+)</code></strong></p>
<p dir="auto">REPLACE <strong><code>-----\1\1**\2**</code></strong></p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71622</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71622</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 19 Nov 2022 21:13:13 GMT</pubDate></item><item><title><![CDATA[Reply to Adding linebreaks below characters on Sat, 27 Nov 2021 01:57:18 GMT]]></title><description><![CDATA[<p dir="auto">I’m not sure if it works well.  It does add a linebreak, but I forgot that I’m supposed to type words after the linebreak.  And the whole line (title) is supposed to have the bold tag.</p>
<p dir="auto">like</p>
<pre><code>------

**Title**
text here
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/71621</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71621</guid><dc:creator><![CDATA[kracovwolf]]></dc:creator><pubDate>Sat, 27 Nov 2021 01:57:18 GMT</pubDate></item><item><title><![CDATA[Reply to Adding linebreaks below characters on Fri, 26 Nov 2021 09:58:16 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/kracovwolf" aria-label="Profile: kracovwolf">@<bdi>kracovwolf</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/neil-schipper" aria-label="Profile: neil-schipper">@<bdi>neil-schipper</bdi></a> and <strong>All</strong>,</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kracovwolf" aria-label="Profile: kracovwolf">@<bdi>kracovwolf</bdi></a>, as your number of <strong>dashes</strong> is <strong>not</strong> the same between your <strong>first</strong> post and your <strong>raw</strong> text, in <strong>reverse</strong> video, here is my regex solution :</p>
<ul>
<li>
<p dir="auto">SEARCH <strong><code>^-{5,}(\R)</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>$0\1</code></strong></p>
</li>
</ul>
<p dir="auto">which adds an <strong>empty</strong> line, <strong>right after</strong> any line of, at least, <strong><code>5</code></strong> <strong>dashes</strong>, <strong>beginning</strong> a line</p>
<hr />
<p dir="auto">Regarding your <strong>second</strong> problem and assuming your <strong>statement</strong> :</p>
<blockquote>
<p dir="auto">And I need to know how to make a whole line bold if it contains a specific word or is below the hyphen and linebreak</p>
</blockquote>
<p dir="auto">Here is a regex alternative to the  <a class="plugin-mentions-user plugin-mentions-a" href="/user/neil-schipper" aria-label="Profile: neil-schipper">@<bdi>neil-schipper</bdi></a> solution :</p>
<ul>
<li>
<p dir="auto">SEARCH <strong><code>(?-s).*Place of interest.*|-{5,}\R\R\K.+</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>&lt;bold&gt;$0&lt;/bold&gt;</code></strong></p>
</li>
</ul>
<hr />
<p dir="auto"><strong>Notes</strong> :</p>
<ul>
<li>
<p dir="auto">For these <strong>two</strong> regex S/R , select the <strong><code>Regular expression</code></strong> search <strong>mode</strong> and <strong>tick</strong> the <strong><code>Wrap around</code></strong> option</p>
</li>
<li>
<p dir="auto">For the <strong>last</strong> regex S/R, you must use the <strong><code>Replace All</code></strong> button ( Do <strong>not</strong> use the <strong><code>Replace</code></strong> button ! )</p>
</li>
</ul>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71602</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71602</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 26 Nov 2021 09:58:16 GMT</pubDate></item><item><title><![CDATA[Reply to Adding linebreaks below characters on Fri, 26 Nov 2021 02:02:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/neil-schipper" aria-label="Profile: neil-schipper">@<bdi>neil-schipper</bdi></a> said in <a href="/post/71595">Adding linebreaks below characters</a>:</p>
<blockquote>
<p dir="auto">.<em>?Phrase of interest.</em>? and replacing with &lt;bold&gt;(1)&lt;/bold&gt;.</p>
</blockquote>
<p dir="auto">That’s also wrong.</p>
<p dir="auto"><code>(.*?Phrase of interest.*?$)</code><br />
<code>&lt;bold&gt;\1&lt;/bold&gt;</code><br />
(tested)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71598</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71598</guid><dc:creator><![CDATA[Neil Schipper]]></dc:creator><pubDate>Fri, 26 Nov 2021 02:02:23 GMT</pubDate></item><item><title><![CDATA[Reply to Adding linebreaks below characters on Fri, 26 Nov 2021 01:57:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/neil-schipper" aria-label="Profile: neil-schipper">@<bdi>neil-schipper</bdi></a> oops: <code>\1&lt;bold&gt;\2&lt;/bold&gt;</code> (tested)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71597</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71597</guid><dc:creator><![CDATA[Neil Schipper]]></dc:creator><pubDate>Fri, 26 Nov 2021 01:57:32 GMT</pubDate></item><item><title><![CDATA[Reply to Adding linebreaks below characters on Fri, 26 Nov 2021 01:30:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kracovwolf" aria-label="Profile: kracovwolf">@<bdi>kracovwolf</bdi></a> said in <a href="/post/71574">Adding linebreaks below characters</a>:</p>
<blockquote>
<p dir="auto">or is below the hyphen and linebreak</p>
</blockquote>
<p dir="auto">Let us know if you solve your first two needs, then someone will help you with the third…</p>
<p dir="auto">ok, roughly it will be finding something like <code>(\-\R\R)(.*)</code> and replacing with <code>(1)&lt;bold&gt;(2)&lt;/bold&gt;</code> (and keep <code>. matches newline</code> not checked).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71596</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71596</guid><dc:creator><![CDATA[Neil Schipper]]></dc:creator><pubDate>Fri, 26 Nov 2021 01:30:48 GMT</pubDate></item><item><title><![CDATA[Reply to Adding linebreaks below characters on Fri, 26 Nov 2021 01:20:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kracovwolf" aria-label="Profile: kracovwolf">@<bdi>kracovwolf</bdi></a> OK, I think you have enough to go on now for your first need, no?</p>
<p dir="auto">For your second need, it will be using a regex, something along the lines of finding <code>.*?Phrase of interest.*?</code> and replacing with <code>&lt;bold&gt;(1)&lt;/bold&gt;</code>. (These are guidelines, not a tested solution. Try to have some fun with it.)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71595</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71595</guid><dc:creator><![CDATA[Neil Schipper]]></dc:creator><pubDate>Fri, 26 Nov 2021 01:20:49 GMT</pubDate></item><item><title><![CDATA[Reply to Adding linebreaks below characters on Fri, 26 Nov 2021 00:43:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/neil-schipper" aria-label="Profile: neil-schipper">@<bdi>neil-schipper</bdi></a> Yes sorry I forgot that I was multitasking with a html editor, so yes to the tags.</p>
<p dir="auto">For the hyphens, I just need to make</p>
<pre><code>this:
text
----------
Specific word

into:
text
----------

Specific word
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/71593</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71593</guid><dc:creator><![CDATA[kracovwolf]]></dc:creator><pubDate>Fri, 26 Nov 2021 00:43:47 GMT</pubDate></item><item><title><![CDATA[Reply to Adding linebreaks below characters on Fri, 26 Nov 2021 00:37:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kracovwolf" aria-label="Profile: kracovwolf">@<bdi>kracovwolf</bdi></a><br />
Is a correct restatement of your first need the following: Replace<br />
“hyphens + one newline”<br />
with<br />
“hyphens + two newlines”<br />
?</p>
<p dir="auto">If so, play with Find&amp;Replace function in <em>Extended</em> mode. You will need to worry about finding and replacing each newline as the pair \r\n (ie, CR,LF as made visible when you turn on <code>View -&gt; Show Symbol -&gt; Show End of Line</code>. If you screw this up, other software that processes the file may misbehave.</p>
<p dir="auto">As for your second need, npp, as a text editor does not embolden text (even though it allows bolded fonts for styling). Do you mean something like wrapping text with html tags?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71592</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71592</guid><dc:creator><![CDATA[Neil Schipper]]></dc:creator><pubDate>Fri, 26 Nov 2021 00:37:06 GMT</pubDate></item></channel></rss>