<?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[Setting a font specific to .txt files]]></title><description><![CDATA[<p dir="auto">I use Notepad++ to edit .txt files in addition to editing code, and I would like to use a monospaced font for all files except .txt files.</p>
<p dir="auto">If I had a specific language I wanted to use a different font for, I could use the Style Configurator to set the font for that language. But I can’t find a way to set the font for .txt files. How can I do this?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/19856/setting-a-font-specific-to-txt-files</link><generator>RSS for Node</generator><lastBuildDate>Sat, 08 Aug 2026 01:29:18 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/19856.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 13 Aug 2020 13:40:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Setting a font specific to .txt files on Thu, 13 Aug 2020 15:21:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/asher-stuhlman" aria-label="Profile: Asher-Stuhlman">@<bdi>Asher-Stuhlman</bdi></a> ,</p>
<blockquote>
<p dir="auto">I would like to use monospaced font for unknown file types and a specific font only for .txt files if possible.</p>
</blockquote>
<p dir="auto">That’s not the way that Notepad++ works.  All unknown file extensions are interpreted by Notepad++ as “Normal Text”, and all Normal Text, whether it ends in <code>.txt</code> or not, get the Default Style applied.  That’s the way Notepad++ was designed.</p>
<p dir="auto">You might be able to get your desired behavior by creating a User Defined Language (UDL) associated with the <code>.txt</code> extension, and use the UDL dialog to set the font for just <code>.txt</code>.  (This would override <code>.txt</code> so it’s using the UDL lexer, and is no longer considered “Normal Text”)</p>
<ul>
<li>official UDL overview: <a href="https://npp-user-manual.org/docs/user-defined-language-system/" rel="nofollow ugc">https://npp-user-manual.org/docs/user-defined-language-system/</a></li>
<li>UDL details: <a href="https://ivan-radic.github.io/udl-documentation/" rel="nofollow ugc">https://ivan-radic.github.io/udl-documentation/</a></li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/56805</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56805</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 13 Aug 2020 15:21:03 GMT</pubDate></item><item><title><![CDATA[Reply to Setting a font specific to .txt files on Thu, 13 Aug 2020 15:09:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> I’m familiar with that feature, but I would like to use monospaced font for unknown file types and a specific font <em>only</em> for .txt files if possible.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56804</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56804</guid><dc:creator><![CDATA[Asher Stuhlman]]></dc:creator><pubDate>Thu, 13 Aug 2020 15:09:14 GMT</pubDate></item><item><title><![CDATA[Reply to Setting a font specific to .txt files on Thu, 13 Aug 2020 14:00:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/asher-stuhlman" aria-label="Profile: Asher-Stuhlman">@<bdi>Asher-Stuhlman</bdi></a> ,</p>
<p dir="auto"><strong>Style Configurator &gt; Global Styles &gt; Default Style</strong> is the style used for normal text (.txt) or any unknown file-types.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56802</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56802</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 13 Aug 2020 14:00:42 GMT</pubDate></item></channel></rss>