<?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 highlight single line without caret going to next line]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">Can someone please tell me how can I highlight only one line without caret going to next line. For example I’m trying to edit multiple lines scattered across a file but whenever I highlight a line and try to replace it via ctrl-h, the caret goes to the beginning of the next line and pulls up the line to the line I replaced making file broken.</p>
<p dir="auto">I’m new in all this as it can be noticed so please bear with me, thanks in advance!</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/11282/how-to-highlight-single-line-without-caret-going-to-next-line</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 16:02:33 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/11282.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 11 Feb 2016 10:43:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to highlight single line without caret going to next line on Sat, 26 Mar 2016 22:11:19 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <strong>Darkemis</strong>, <strong>Scott</strong> and <strong>Claudia</strong>,</p>
<p dir="auto">Thanks <strong>Claudia</strong> and <strong>Scott</strong> to make us remember about the difference between the <strong>two</strong> shortcuts <strong>Shift + Down arrow</strong>  and <strong>Shift + End</strong> ! A very little thing that may, sometimes, speed up our N++ work :-)</p>
<p dir="auto">So, when cursor is at the <strong>very beginning</strong> of a line ( column <strong>1</strong> ) :</p>
<ul>
<li>
<p dir="auto"><strong>Shift + Down arrow</strong> selects <strong>all</strong> the contents of this line, <code>WITH</code> its <strong>End of Line</strong> character(s)</p>
</li>
<li>
<p dir="auto"><strong>Shift + End</strong> selects <strong>all</strong> the contents of this line, <code>WITHOUT</code> its <strong>End of Line</strong> character(s)</p>
</li>
</ul>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/14939</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/14939</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 26 Mar 2016 22:11:19 GMT</pubDate></item><item><title><![CDATA[Reply to How to highlight single line without caret going to next line on Fri, 25 Mar 2016 23:07:49 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/william-b" aria-label="Profile: William-B">@<bdi>William-B</bdi></a>,</p>
<p dir="auto">if I understood correctly you could</p>
<ul>
<li>click on the line margin</li>
<li>press shift and then</li>
<li>click last position of the last2hide line.</li>
<li>alt+h</li>
</ul>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/14924</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/14924</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Fri, 25 Mar 2016 23:07:49 GMT</pubDate></item><item><title><![CDATA[Reply to How to highlight single line without caret going to next line on Fri, 25 Mar 2016 18:36:06 GMT]]></title><description><![CDATA[<p dir="auto">I have the same need, but for a different reason.</p>
<p dir="auto">When I want to hide some lines, I click in the line numbers margin area for the first line, drag to the last line I want to select, and then hit Alt-H to hide the lines. Problem is that an additional line beyond the ones I selected gets hidden, because the caret had moved down to the beginning of the next line.  Yes, I could hit Shift-Left first, but that seems a bit awkward.</p>
<p dir="auto">I do appreciate Scott’s &amp; Claudia’s point about the OP’s issue (as long as the REPLACE text includes the EOL, then it’s advantageous to have the selection-driven FIND text do the same).</p>
<p dir="auto">So maybe my problem is less an issue of how Selecting works and more about the way Hide figures out its target?</p>
<p dir="auto">Any thoughts/suggestions would be appreciated.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/14919</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/14919</guid><dc:creator><![CDATA[William B]]></dc:creator><pubDate>Fri, 25 Mar 2016 18:36:06 GMT</pubDate></item><item><title><![CDATA[Reply to How to highlight single line without caret going to next line on Fri, 12 Feb 2016 16:44:45 GMT]]></title><description><![CDATA[<p dir="auto">Hi Scott,</p>
<p dir="auto">you are right, when I used npp the first time, long long time ago, this was one of the things which drove me crazy - but then I found the SHIFT+END ;-))</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/14013</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/14013</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Fri, 12 Feb 2016 16:44:45 GMT</pubDate></item><item><title><![CDATA[Reply to How to highlight single line without caret going to next line on Fri, 12 Feb 2016 02:15:20 GMT]]></title><description><![CDATA[<p dir="auto">I may be remembering wrongly because I’ve used N++ so long, but I think that in the editors I used before if your cursor was in column 1 and you pressed Shift+DownArrow, the entire line was blocked in inverse video but the cursor remained at the end of the line it started on and not the next line (as N++ does it).  I think that is what the OP didn’t like, and I tried to help explain and make the OP feel better about how it works in N++ in my earlier reply.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13998</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13998</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Fri, 12 Feb 2016 02:15:20 GMT</pubDate></item><item><title><![CDATA[Reply to How to highlight single line without caret going to next line on Fri, 12 Feb 2016 01:05:22 GMT]]></title><description><![CDATA[<p dir="auto">By using the keys SHIFT+END</p>
<p dir="auto">and you don’t have to excuse, I’m not a native speaker a simply didn’t understand it.</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13995</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13995</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Fri, 12 Feb 2016 01:05:22 GMT</pubDate></item><item><title><![CDATA[Reply to How to highlight single line without caret going to next line on Fri, 12 Feb 2016 00:44:03 GMT]]></title><description><![CDATA[<p dir="auto">Basically what I wanted to know is if there is a way to select a line without automatically highlighting the end characters which make caret move to the beginning of the next line, because when I try to replace the line I intended it moves that line below it to the replaced one since end characters (which were hidden and I didn’t know about them) are highlighted and carried into replace tool.</p>
<p dir="auto">Sorry for confusion, I hope this clears it up a bit.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13993</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13993</guid><dc:creator><![CDATA[Darkemis]]></dc:creator><pubDate>Fri, 12 Feb 2016 00:44:03 GMT</pubDate></item><item><title><![CDATA[Reply to How to highlight single line without caret going to next line on Thu, 11 Feb 2016 23:11:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/darkemis" aria-label="Profile: Darkemis">@<bdi>Darkemis</bdi></a></p>
<p dir="auto">sorry, I don’t get what you were talking about and I’m curious what it is so<br />
excuse me while I’m stepping in and rephrase a bit.</p>
<blockquote>
<p dir="auto">Can someone please tell me how can I highlight only one line without caret going to next line.</p>
</blockquote>
<p dir="auto">By using SHIFT+END</p>
<blockquote>
<p dir="auto">For example I’m trying to edit multiple lines scattered across a file but whenever I highlight a line and try to replace it via ctrl-h, the caret &gt;goes to the beginning of the next line and pulls up the line to the line I replaced making file broken.</p>
</blockquote>
<p dir="auto">But this means that your clipboard data has already the end of line chars (carriage return new line feed) added, meaning<br />
you selected it.</p>
<p dir="auto">As said, it might be that I’m completely wrong, but …</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13985</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13985</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Thu, 11 Feb 2016 23:11:18 GMT</pubDate></item><item><title><![CDATA[Reply to How to highlight single line without caret going to next line on Thu, 11 Feb 2016 22:51:07 GMT]]></title><description><![CDATA[<p dir="auto">Right, I thought that might be the case. It’ll take a bit to get used to it and I can see how it can be useful in other cases, I just hoped there was a way to change how it works. Thanks for information on how it works.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13984</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13984</guid><dc:creator><![CDATA[Darkemis]]></dc:creator><pubDate>Thu, 11 Feb 2016 22:51:07 GMT</pubDate></item><item><title><![CDATA[Reply to How to highlight single line without caret going to next line on Thu, 11 Feb 2016 13:24:38 GMT]]></title><description><![CDATA[<p dir="auto">This is just “how it works”.  When what you describe occurs, N++ is blocking the entire line, including the line-ending.  If you don’t want the line ending, simply decrease the width of the block by one position (usually shift+left arrow).  This will move the cursor up to the previous line because it will now be between the last non-line-ending character and the line-ending.</p>
<p dir="auto">And, the behavior you “don’t like” is actually perfect when you are going to move the entire line somewhere else–you wouldn’t want an empty line replacing what is cut out (arguable, maybe you would), and where you paste it it would join with a line at the paste point, and I’m sure that would bug you too.</p>
<p dir="auto">In short, I think it is just something in N++ that you have to get used to.  I did.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13958</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13958</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Thu, 11 Feb 2016 13:24:38 GMT</pubDate></item></channel></rss>