<?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 Notepad++ selects autocomplete?]]></title><description><![CDATA[<p dir="auto">Hi Guys,</p>
<p dir="auto">I’m really new to Notepad++'s autocomplete, and I cannot figure out how NP++ selects which autocomplete file to use. Specifically, I want to to apply an autocomplete file for files named “config.txt” (and, possibly, “*.config.txt”). For the syntax highlighting part, I managed to create my user defined syntax, and it recognizes files named “config.txt” (although it does not recognizes “anythingelse.config.txt”). I have a very basic autocomplete (with a single keyword for testing), in which I entered the same name for the language that I specified for the UDL file. Yet, autocomplete does not work. What do I need to do to have NP++ use my autocomplete XML for a specific file name or file name pattern?</p>
<p dir="auto">(Interesting enough, if I rename my autocomplete file to txt.xml, no autocompletion works at all, I mean it gets broken for other languages, too. Is there perhaps a way to check logs of NP++ to see what might have gone so wrong?)</p>
<p dir="auto">Thanks Guys,<br />
Gus</p>
<p dir="auto">ps. Yes, I googled for it before posting :), with not much fortune</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/21229/how-notepad-selects-autocomplete</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 00:09:00 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/21229.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 27 May 2021 21:06:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How Notepad++ selects autocomplete? on Sat, 29 May 2021 18:01:12 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> and <a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: Michael-Vincent">@<bdi>Michael-Vincent</bdi></a>, would you mind if I summon you to see a <a href="https://community.notepad-plus-plus.org/topic/21242/autocomplete-to-properly-recognize-keywords-with-dash">new post of mine</a> to see if you have an idea for another autocomplete issue? It’s different from this one and I did not want to mess up this thread with a different issue.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/66475</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/66475</guid><dc:creator><![CDATA[gusztavj]]></dc:creator><pubDate>Sat, 29 May 2021 18:01:12 GMT</pubDate></item><item><title><![CDATA[Reply to How Notepad++ selects autocomplete? on Sat, 29 May 2021 17:52:43 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> Yes, it works, but beforehand I found a different link that was not working. :)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/66473</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/66473</guid><dc:creator><![CDATA[gusztavj]]></dc:creator><pubDate>Sat, 29 May 2021 17:52:43 GMT</pubDate></item><item><title><![CDATA[Reply to How Notepad++ selects autocomplete? on Sat, 29 May 2021 16:58:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gusztavj" aria-label="Profile: gusztavj">@<bdi>gusztavj</bdi></a> said in <a href="/post/66467">How Notepad++ selects autocomplete?</a>:</p>
<blockquote>
<p dir="auto">And finally… I did not find the documentation page at <a href="https://npp-user-manual.org/docs/auto-completion/" rel="nofollow ugc">https://npp-user-manual.org/docs/auto-completion/</a>, only a link to a non-existing page.</p>
</blockquote>
<p dir="auto">That page exists (I even just checked using your exact link).  Maybe you encountered a brief time when there was a server problem…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/66472</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/66472</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sat, 29 May 2021 16:58:32 GMT</pubDate></item><item><title><![CDATA[Reply to How Notepad++ selects autocomplete? on Sat, 29 May 2021 15:44:08 GMT]]></title><description><![CDATA[<p dir="auto">And finally… I did not find the documentation page at <a href="https://npp-user-manual.org/docs/auto-completion/" rel="nofollow ugc">https://npp-user-manual.org/docs/auto-completion/</a>, only a link to a non-existing page. Now that I know the AC file needs to be named after the language name, life is much happier… :D</p>
<p dir="auto">Thanks for all your great help!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/66467</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/66467</guid><dc:creator><![CDATA[gusztavj]]></dc:creator><pubDate>Sat, 29 May 2021 15:44:08 GMT</pubDate></item><item><title><![CDATA[Reply to How Notepad++ selects autocomplete? on Sat, 29 May 2021 12:09:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: Michael-Vincent">@<bdi>Michael-Vincent</bdi></a> , tried to move them around, to place <code>grapefruitDiet</code> before <code>grapefruit-diet</code> and the other way around, but with no effect. <code>grapefruitDiet</code> is always recognized, the other is never recognized. :( Became clueless again. Yet, thanks for your help and tips.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/66456</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/66456</guid><dc:creator><![CDATA[gusztavj]]></dc:creator><pubDate>Sat, 29 May 2021 12:09:20 GMT</pubDate></item><item><title><![CDATA[Reply to How Notepad++ selects autocomplete? on Sat, 29 May 2021 11:29:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gusztavj" aria-label="Profile: gusztavj">@<bdi>gusztavj</bdi></a> said in <a href="/post/66449">How Notepad++ selects autocomplete?</a>:</p>
<blockquote>
<p dir="auto">Am I overlooking something?</p>
</blockquote>
<p dir="auto">Looks good, but I thought keywords needed to be in alphabetical order?</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/66451</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/66451</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Sat, 29 May 2021 11:29:53 GMT</pubDate></item><item><title><![CDATA[Reply to How Notepad++ selects autocomplete? on Sat, 29 May 2021 11:18:57 GMT]]></title><description><![CDATA[<p dir="auto">A small clarification: it offers the name <code>grapefruit-diet</code>, but does not show the overloads, so nothing appears after typing the bracket, pressing CTRL+SPACE or CTRL+SHIFT+SPACE.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/66450</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/66450</guid><dc:creator><![CDATA[gusztavj]]></dc:creator><pubDate>Sat, 29 May 2021 11:18:57 GMT</pubDate></item><item><title><![CDATA[Reply to How Notepad++ selects autocomplete? on Sat, 29 May 2021 11:13:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: Michael-Vincent">@<bdi>Michael-Vincent</bdi></a> said in <a href="/post/66419">How Notepad++ selects autocomplete?</a>:</p>
<blockquote>
<p dir="auto">That should be an easy fix.</p>
</blockquote>
<p dir="auto">I wish it were! :) First, thanks for mentioning this attribute. I took a look at the source code, but did not recognized it. But unfortunately it still does not work for me. Here is my piece of code, the AC file:</p>
<pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
&lt;NotepadPlus&gt;
    &lt;AutoComplete language="weirdAl"&gt;
        &lt;Environment ignoreCase="yes" startFunc="(" stopFunc=")" paramSeparator="," terminal=";" additionalWordChars="-"/&gt;
	&lt;KeyWord name="grapefruit-diet" func="yes"&gt;
          &lt;Overload retVal="" descr="drink grapefruit juice only"&gt;
            &lt;Param name="SeedlessStuff" /&gt;
          &lt;/Overload&gt;
          &lt;Overload retVal="" descr="drink grapefruit only"&gt;
	    &lt;Param name="Shapes" /&gt;
	    &lt;Param name="Seasons" /&gt;
          &lt;/Overload&gt;
	&lt;/KeyWord&gt;
	&lt;KeyWord name="position" func="yes"&gt;
          &lt;Overload retVal="" descr="elements's position"&gt;
            &lt;Param name="on x axis" /&gt;
            &lt;Param name="on y axis" /&gt;
            &lt;Param name="on z axis" /&gt;
          &lt;/Overload&gt;
	&lt;/KeyWord&gt;		
	&lt;KeyWord name="grapefruitDiet" func="yes"&gt;
	  &lt;Overload retVal="" descr="eat grapefruit only"&gt;
	    &lt;Param name="Seedless" /&gt;
	  &lt;/Overload&gt;
	  &lt;Overload retVal="" descr="eat grapefruit only"&gt;
	    &lt;Param name="Shape" /&gt;
	    &lt;Param name="Season" /&gt;
	  &lt;/Overload&gt;
	&lt;/KeyWord&gt;
    &lt;/AutoComplete&gt;
&lt;/NotepadPlus&gt;
</code></pre>
<p dir="auto">It works for <code>grapefruitDiet</code> and <code>position</code>, but doesn’t offer anything for <code>grapefruit-diet</code>.</p>
<p dir="auto">Am I overlooking something?</p>
<p dir="auto">Cheers.<br />
Gus</p>
]]></description><link>https://community.notepad-plus-plus.org/post/66449</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/66449</guid><dc:creator><![CDATA[gusztavj]]></dc:creator><pubDate>Sat, 29 May 2021 11:13:35 GMT</pubDate></item><item><title><![CDATA[Reply to How Notepad++ selects autocomplete? on Fri, 28 May 2021 17:58:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gusztavj" aria-label="Profile: gusztavj">@<bdi>gusztavj</bdi></a> said in <a href="/post/66418">How Notepad++ selects autocomplete?</a>:</p>
<blockquote>
<p dir="auto">autocomplete does not work if the language, as defined in the UDL file, contains keywords with a hyphen in it.</p>
</blockquote>
<p dir="auto">That <em>should</em> be an easy fix.  In the <code>autoCompletion\weirdAl.xml</code>  file, add the <code>additionalWordChars="-"</code> parameter like so:</p>
<pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
&lt;NotepadPlus&gt;
        &lt;AutoComplete language="weirdAl"&gt;
                &lt;Environment ignoreCase="no" .....   additionalWordChars="-"/&gt;
                &lt;KeyWord name=" ...
</code></pre>
<p dir="auto">I have an autoCompletion file for Powerwhell and most Powershell commands are Verb-Thing (e.g., <code>Write-Host</code>, <code>Get-Item</code>) so I include the <code>additionalWordChars="-"</code> and it works for me.</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/66419</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/66419</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Fri, 28 May 2021 17:58:37 GMT</pubDate></item><item><title><![CDATA[Reply to How Notepad++ selects autocomplete? on Fri, 28 May 2021 17:54:29 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>, this is what I found: autocomplete does not work if the language, as defined in the UDL file, contains keywords with a hyphen in it. The actually weird language for what I wanted to create an autocomplete file includes lot of keywords of this kind, such as “category-keyword”. For these, no autocomplete tip will pop up. Even worse, the values of these so-called tags are followed by a space, so a line of the file looks like this:</p>
<p dir="auto">category-keyword “value”<br />
or<br />
position 0, 1, 0</p>
<p dir="auto">Now it would be okay to type a ( character after a tag name to display the hint, but the hyphen makes this language incompatible with the auto-complete logic. :(</p>
<p dir="auto">Anyway, thanks a lot for your efforts in explaining this whole situation.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/66418</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/66418</guid><dc:creator><![CDATA[gusztavj]]></dc:creator><pubDate>Fri, 28 May 2021 17:54:29 GMT</pubDate></item><item><title><![CDATA[Reply to How Notepad++ selects autocomplete? on Fri, 28 May 2021 16:48:53 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the response again. I have NP++ 7.9.5, and here are my autocomplete settings, seemingly the same as yours:</p>
<p dir="auto"><img src="/assets/uploads/files/1622220469099-ac-settings.png" alt="Autocomplete settings" class=" img-fluid img-markdown" /></p>
<p dir="auto">The portable version just works fine. I’ll try to add my files to the portable instance and see if it works, and let you know about it.</p>
<p dir="auto">Cheers,<br />
Gus</p>
]]></description><link>https://community.notepad-plus-plus.org/post/66417</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/66417</guid><dc:creator><![CDATA[gusztavj]]></dc:creator><pubDate>Fri, 28 May 2021 16:48:53 GMT</pubDate></item><item><title><![CDATA[Reply to How Notepad++ selects autocomplete? on Sun, 05 Dec 2021 23:47:47 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> said in <a href="/post/66409">How Notepad++ selects autocomplete?</a>:</p>
<blockquote>
<p dir="auto">Did you re-start Notepad++ after putting the UDL and autoCompletion XML files in the right folders?</p>
</blockquote>
<p dir="auto">Sorry, I re-read and saw you’d already answered that one.</p>
<p dir="auto">The more I thought about this not working for you, the more confused I got.  I don’t see why it wouldn’t be working… if you’re in a version of Notepad++ new enough that it comes with the <code>autoCompletion\</code> folder (it used to be named something else), then all the syntax shown <em>should</em> work.</p>
<p dir="auto">I decided to bundle up a zipfile of my working portable version.  So for the next week or so, the URL <s><code>URL REDACTED</code></s> will download a zipfile with a complete portable, including my <code>autoCompletion\weirdAl.xml</code> and <code>userDefineLangs\weirdAl-udl.xml</code>.  When I unzip these to a known writeable location, then run the portable notepad++.exe from the unzipped folder, if I use <code>Ctrl+Shift+Space</code> inside the <code>grapefruitDiet()</code> parentheses, it pops up the parameter-hint auto-completion, and if I start typing the <code>t</code>, <code>i</code>, or <code>g</code> that start the three function keywords, the function-name auto-completion pops up.  Since the portable zip contains all the config files including sessions, etc, you should be in a state to immediately test this working copy after unzipping.</p>
<p dir="auto"><img src="/assets/uploads/files/1622212217100-cf4f6886-24a9-4bf7-81d7-ca23076729b0-image.png" alt="cf4f6886-24a9-4bf7-81d7-ca23076729b0-image.png" class=" img-fluid img-markdown" /></p>
<h3><em>caveat</em></h3>
<p dir="auto">It’s always dangerous to download files from unknown sources.  I am claiming that I haven’t done anything malicious in this zipfile, but you need to use download wisdom.  It is my recommendation to at the very least run a virus checker on the zipfile and the unzipped contents.</p>
<p dir="auto"><strong>Future Readers</strong>: The download will go away in the near future, so you will likely get 404-not-found.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/66414</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/66414</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sun, 05 Dec 2021 23:47:47 GMT</pubDate></item><item><title><![CDATA[Reply to How Notepad++ selects autocomplete? on Fri, 28 May 2021 13:09:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gusztavj" aria-label="Profile: gusztavj">@<bdi>gusztavj</bdi></a> said in <a href="/post/66399">How Notepad++ selects autocomplete?</a>:</p>
<blockquote>
<p dir="auto">Can you find any discrepancies here?</p>
</blockquote>
<p dir="auto">Sorry, everything looks right.</p>
<p dir="auto">Did you re-start Notepad++ after putting the UDL and autoCompletion XML files in the right folders?</p>
<p dir="auto">Could you screenshot your <strong>Settings &gt; Preferences &gt; Auto-completion</strong> settings?</p>
<p dir="auto">Could you copy/paste your <strong>?</strong>-menu’s <strong>Debug Info</strong>?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/66409</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/66409</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 28 May 2021 13:09:46 GMT</pubDate></item><item><title><![CDATA[Reply to How Notepad++ selects autocomplete? on Fri, 28 May 2021 08:57:17 GMT]]></title><description><![CDATA[<p dir="auto">Peter, I can’t tell what grateful I am for your extensive and clear reply!</p>
<p dir="auto">So, everything works fine, but the autocomplete fails… :) I’m just showing you a few screens, probably you can spot some error I did not manage to recognize.</p>
<p dir="auto">To check if folder locations are fine, here’s the UDL folder:<br />
<img src="/assets/uploads/files/1622192007055-udl-folder.png" alt="My UDL folder" class=" img-fluid img-markdown" /></p>
<p dir="auto">I don’t have userDefineLanguage.xml at all (deleted it beforehand).</p>
<p dir="auto">And the autocomplete folder:<br />
<img src="/assets/uploads/files/1622192048802-ac-folder.png" alt="The autoComplete folder" class=" img-fluid img-markdown" /></p>
<p dir="auto">This one is my UDL file with the relevant parts:<br />
<img src="/assets/uploads/files/1622192077898-udl-file.png" alt="UDL contents" class=" img-fluid img-markdown" /></p>
<p dir="auto">And the autocomplete:<br />
<img src="/assets/uploads/files/1622192094241-ac-file.png" alt="Autocomplete file" class=" img-fluid img-markdown" /></p>
<p dir="auto">And this shows the example file with syntax recognized, but autocomplete not working (although it’s turned on and works for other langs):<br />
<img src="/assets/uploads/files/1622192132481-example-file.png" alt="Example file" class=" img-fluid img-markdown" /></p>
<p dir="auto">Can you find any discrepancies here? I’ve exited and restarted Notepad++ after every operation as you also suggested.</p>
<p dir="auto">Stay safe,<br />
Gus</p>
]]></description><link>https://community.notepad-plus-plus.org/post/66399</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/66399</guid><dc:creator><![CDATA[gusztavj]]></dc:creator><pubDate>Fri, 28 May 2021 08:57:17 GMT</pubDate></item><item><title><![CDATA[Reply to How Notepad++ selects autocomplete? on Thu, 27 May 2021 23:57:59 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> said in <a href="/post/66386">How Notepad++ selects autocomplete?</a>:</p>
<blockquote>
<p dir="auto">&lt;INSERT&gt;</p>
</blockquote>
<p dir="auto">Sorry, I meant to paste my image there:</p>
<p dir="auto"><img src="/assets/uploads/files/1622159867794-c112319c-5289-410a-ba98-e7c6079ef7d9-image.png" alt="c112319c-5289-410a-ba98-e7c6079ef7d9-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/66388</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/66388</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 27 May 2021 23:57:59 GMT</pubDate></item><item><title><![CDATA[Reply to How Notepad++ selects autocomplete? on Thu, 27 May 2021 23:53:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gusztavj" aria-label="Profile: gusztavj">@<bdi>gusztavj</bdi></a> ,</p>
<p dir="auto">The auto-completion selected should be based on the active Language-menu selection (the syntax highlighter selected).</p>
<p dir="auto">For getting it to work for you: First, the <code>*.config.txt</code> is adding complication.  Get everything working without that weird naming convention first, before trying the complicated multi-level extensions.</p>
<p dir="auto">Let’s start with the simpler situation, where I want a “weirdAl” filetype with the extension <code>.wa</code>.  First, I created my UDL, and gave it three keywords: <code>thisKeywordIsJustSixWordsLong</code> and <code>itsChristmasAtGroundZero</code> in group 1, and <code>grapefruitDiet</code> in group 2</p>
<p dir="auto">I did an <strong>Export</strong> of my UDL into the <code>userDefineLangs</code> folder (so it ends up in the folder, rather than the old-style <code>userDefineLang.xml</code> containing all of them), and then clicked <strong>Remove</strong> (so that there wouldn’t be conflicting versions in both the old file and the new subfolder). Exiting Notepad++ and restarting shows that the weirdAl UDL is still there.  If I create a file, assign that Language&gt;weirdAl, it properly syntax highlights.  Save it as <code>example.wa</code> and close it.</p>
<p dir="auto">Next step: creating the weirdAl.xml that goes in <code>autoCompletion\</code> folder.</p>
<pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
&lt;NotepadPlus&gt;
	&lt;AutoComplete language="weirdAl"&gt;
		&lt;Environment ignoreCase="no" startFunc="(" stopFunc=")" paramSeparator="," terminal=";" /&gt;
		&lt;KeyWord name="thisKeywordIsJustSixWordsLong" /&gt;
		&lt;KeyWord name="itsChristmasAtGroundZero" /&gt;
		&lt;KeyWord name="grapefruitDiet" func="yes"&gt;
			&lt;Overload retVal="" descr="eat only grapefruit"&gt;
				&lt;Param name="Seedless" /&gt;
			&lt;/Overload&gt;
			&lt;Overload retVal="" descr="eat only grapefruit"&gt;
				&lt;Param name="Shape" /&gt;
				&lt;Param name="Season" /&gt;
			&lt;/Overload&gt;
		&lt;/KeyWord&gt;
	&lt;/AutoComplete&gt;
&lt;/NotepadPlus&gt;
</code></pre>
<p dir="auto">Save that file.  Exit Notepad++.  Restart.</p>
<p dir="auto">Open <code>example.wa</code>: it auto-recognizes as weirdAl filetype!  Success #1.</p>
<p dir="auto">Start typing one of the three keywords, and it starts normal autocompletion! Success #2.</p>
<p dir="auto">Type <code>grapefruit(</code>, and it pops up the parameter auto-complete!  Success #3.  Here’s a screenshot.</p>
<p dir="auto">&lt;INSERT&gt;</p>
<p dir="auto">Now we know that the UDL is working correctly, as is the weirdAl auto-complete.</p>
<p dir="auto">Create a new file, called <code>example.notwa</code>, so it doesn’t have the right extension, and manually choose Language&gt;weirdAl.   Type the <code>grap</code> and it asks for auto-complete; complete it, type the <code>(</code>, and it prompts for the parameters: so auto-complete is fully recognized no matter the file extension, as long as the right UDL is selected.  Success #4.</p>
<p dir="auto">At this point, if you open <code>config.txt</code> or <code>*.config.txt</code> and manually assign your UDL, you should be confident that it will auto-complete correctly.</p>
<p dir="auto">So now it’s a matter of auto-recongizing your weird <code>*.config.txt</code>.</p>
<p dir="auto">In my example, I will use <code>wa.txt</code> and <code>*.wa.txt</code>.  In the UDL extension field, I added <code>wa.txt</code> so its value is <code>wa wa.txt</code> … Create a new file, and save as <code>wa.txt</code>.  To my surprise, it successfully immediately applied weirdAl as the Language, and auto-completed.  Nearly done!</p>
<p dir="auto">File &gt; New, and save as <code>blah.wa.txt</code>.  It considers it a normal text file rather than a weirdAl file.  Failure #1.</p>
<p dir="auto">I don’t think you’re going to be able to auto-recognize <code>*.config.txt</code> – at least, I couldn’t, with <code>*.wa.txt</code> .</p>
<p dir="auto">If you are willing to install the PythonScript plugin, you can have it check the active filename whenever you activate a buffer, and have it change the language to the right UDL if the name ends in <code>.config.txt</code> … If you are willing to do that, and need help, let us know.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/66386</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/66386</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 27 May 2021 23:53:19 GMT</pubDate></item></channel></rss>