<?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[When finding in files is it possible to show more than one line?]]></title><description><![CDATA[<p dir="auto">I looked around through AI and Google and did not see a solution to this. So apologize if this is an old rathole. However when searching using Find In Files. I would like to see more text above and/or below the keyword I am searching for. I am gathering with the default implementation of Notepad++ that is not possible but wondering if there was a plugin to help with this perhaps? Support for multiple keywords would be an additional plus.</p>
<p dir="auto">I was looking at some other off the shelf tools and Notepad++ would be a better place to execute this type of search imo. The file extensions I am looking through are non-standard but do contain searchable text but the tool I looked at did not allow other non standard extensions. So Notepad++ had a leg up there.</p>
<p dir="auto">Now if can get a bigger chunk of text surrounding the keyword returned. Problem is there are thousands of files I need to search through searching for the keyword “error” and I don’t have time to open each one to figure out more details about the error.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/27631/when-finding-in-files-is-it-possible-to-show-more-than-one-line</link><generator>RSS for Node</generator><lastBuildDate>Fri, 14 Aug 2026 18:48:27 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/27631.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 14 Aug 2026 14:39:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to When finding in files is it possible to show more than one line? on Fri, 14 Aug 2026 15:48:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/petey200" aria-label="Profile: petey200">@<bdi>petey200</bdi></a> ,</p>
<p dir="auto">The Search Results panel is designed to only show one line per match (even if you do a search expression that matches text that crosses over lines, it will only show the first line of the match).  There isn’t a way to increase context.</p>
<blockquote>
<p dir="auto">Support for multiple keywords would be an additional plus.</p>
</blockquote>
<p dir="auto">The existing regular expression (regex) feature already handles that.</p>
<ul>
<li>Find What = <code>\b(George|Gracie|whale)\b</code>
<ul>
<li>the <code>\b</code> matches “word boundary” so it would match <code>George</code> but not <code>Georgene</code>, etc.</li>
<li>the <code>(...)</code> makes a group - without this logical group, the <code>\b</code> would have to be repeated at the beginning and end of each word, like <code>\bGeorge\b|\bGracie\b|\bwhale\b</code></li>
<li>the <code>|</code> means “OR”</li>
<li>translated to english, this Find What means “match a boundary, then <code>George</code> or <code>Gracie</code> or <code>whale</code>, then another boundary”</li>
</ul>
</li>
<li>Match Case = off</li>
<li>Search Mode = Regular Expression</li>
<li><code>. matches newline</code> = off</li>
</ul>
<p dir="auto"><img src="/assets/uploads/files/1786722146144-7274a6f0-798a-4c00-9466-d487a784e5af-image.jpeg" alt="7274a6f0-798a-4c00-9466-d487a784e5af-image.jpeg" class=" img-fluid img-markdown" /></p>
<p dir="auto">–<br />
From our FAQ section, the Generic Regular Expression formula FAQ links to a post <a href="/topic/22677">Generic Regex: Logic Gates for Regular Expressions</a> which explains how to match lines with AND, OR, Exclusive-OR, and similar logical constructs.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/106099</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/106099</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 14 Aug 2026 15:48:24 GMT</pubDate></item></channel></rss>