<?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[I want to fold in text files.]]></title><description><![CDATA[<p dir="auto">I created a User Defined Language called TXT and then selected it from the Language menu. There must be more steps because I’ve chosen folding options from the View menu.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/25543/i-want-to-fold-in-text-files</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 08:02:16 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/25543.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 01 Mar 2024 14:48:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to I want to fold in text files. on Tue, 05 Mar 2024 16:17:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/luis-pi%C3%B1a-iii" aria-label="Profile: Luis-Piña-III">@<bdi>Luis-Piña-III</bdi></a> said in <a href="/post/93416">I want to fold in text files.</a>:</p>
<blockquote>
<p dir="auto">How do I set an extension for TXT?</p>
</blockquote>
<p dir="auto">Once you’ve saved your UDL, when you look at the <strong>Language &gt; User Defined Language &gt; Define your language…</strong> dialog box and have that language selected, you get a <strong>Ext:</strong> box, where you can type <code>txt</code> to define that <code>*.txt</code> will be interpreted as your UDL.  (You can see this box in my screenshot in my first reply, above.)</p>
<p dir="auto"><a href="https://npp-user-manual.org/docs/user-defined-language-system/#udl-dialog-box-or-window" rel="nofollow ugc">https://npp-user-manual.org/docs/user-defined-language-system/#udl-dialog-box-or-window</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/93417</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93417</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 05 Mar 2024 16:17:49 GMT</pubDate></item><item><title><![CDATA[Reply to I want to fold in text files. on Tue, 05 Mar 2024 16:10:16 GMT]]></title><description><![CDATA[<p dir="auto">How do I set an extension for TXT?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93416</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93416</guid><dc:creator><![CDATA[Luis Piña III]]></dc:creator><pubDate>Tue, 05 Mar 2024 16:10:16 GMT</pubDate></item><item><title><![CDATA[Reply to I want to fold in text files. on Mon, 04 Mar 2024 13:54:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/luis-pi%C3%B1a-iii" aria-label="Profile: Luis-Piña-III">@<bdi>Luis-Piña-III</bdi></a> said in <a href="/post/93384">I want to fold in text files.</a>:</p>
<blockquote>
<p dir="auto">Do I need to select the UDL for every tab that I open?</p>
</blockquote>
<p dir="auto">If you have an extension set for your UDL, then if you open a file with that extension, it will automatically apply your UDL for that tab (even if you do something weird like assign your UDL the extension <code>txt</code> – the UDL extension list overrides the builtin filetype extension list).</p>
<p dir="auto">But if you just use <strong>File &gt; New</strong> (or the toolbar or keyboard shortcut equivalent), then you will have to use <strong>Language &gt; MyUDLName</strong> (or do a <strong>File &gt; Save As</strong> and give it an extension which matches your UDL definition).</p>
<p dir="auto">The same is true of every built-in filetype as well (when you create a new file, you have to manually assign the language or do SaveAs; when you open an existing file, it knows).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93388</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93388</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 04 Mar 2024 13:54:29 GMT</pubDate></item><item><title><![CDATA[Reply to I want to fold in text files. on Mon, 04 Mar 2024 10:45:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/luis-pi%C3%B1a-iii" aria-label="Profile: Luis-Piña-III">@<bdi>Luis-Piña-III</bdi></a> Do I need to select the UDL for every tab that I open?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93384</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93384</guid><dc:creator><![CDATA[Luis Piña III]]></dc:creator><pubDate>Mon, 04 Mar 2024 10:45:39 GMT</pubDate></item><item><title><![CDATA[Reply to I want to fold in text files. on Fri, 01 Mar 2024 15:18:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/luis-pi%C3%B1a-iii" aria-label="Profile: Luis-Piña-III">@<bdi>Luis-Piña-III</bdi></a> ,.</p>
<p dir="auto">It’s foldable for me:</p>
<p dir="auto"><img src="/assets/uploads/files/1709306290804-3c09a622-8ab7-4c20-9659-83d51d3a863b-image.png" alt="3c09a622-8ab7-4c20-9659-83d51d3a863b-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1709306305082-ccf077c9-9b4c-4c3d-a4e8-9a49a23de43d-image.png" alt="ccf077c9-9b4c-4c3d-a4e8-9a49a23de43d-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">In your UDL definition for this “TXT” language, did you actually define the <strong>Folding In Code</strong> Open/Close keywords?  Because that’s what’s required to tell Notepad++ where to start and end the folds when you use the <strong>View</strong> menu’s folding commands.</p>
<p dir="auto">Can you show us a screenshot of the UDL for TXT? Please include the line numbers and fold margin on the left, the status bar at the bottom, and enough text in the screenshot that we can see that you actually have text which matches the Open/Close keywords defined for your UDL.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93336</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93336</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 01 Mar 2024 15:18:26 GMT</pubDate></item></channel></rss>