<?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[Changing language association of file extension]]></title><description><![CDATA[<p dir="auto">Hi everyone,<br />
I’d like to change the language association of the file extension “inc” from Pascal to Assembly language.<br />
I already modified the “ext” attributes in “langs.xml” in the AppData\Roaming\Notepad++ directory accordingly (deleted “inc” in “pascal” entry, inserted it in “asm” entry). However, the changes don’t take effect after several times closing and reopening Notepad++; opened *.inc files are still associated with Pascal.<br />
Could anybody please help to solve this problem?<br />
Thanks in advance!</p>
<p dir="auto">[Edit:] My debug info:<br />
Notepad++ v8.5.2   (64-bit)<br />
Build time : Apr  4 2023 - 19:55:32<br />
Path : C:\Program Files\Notepad++\notepad++.exe<br />
Command Line :<br />
Admin mode : OFF<br />
Local Conf mode : OFF<br />
Cloud Config : OFF<br />
OS Name : Windows 10 Pro (64-bit)<br />
OS Version : 22H2<br />
OS Build : 19045.2846<br />
Current ANSI codepage : 1252<br />
Plugins :<br />
mimeTools (2.9)<br />
NppConverter (4.5)<br />
NppExport (0.4)</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/24370/changing-language-association-of-file-extension</link><generator>RSS for Node</generator><lastBuildDate>Tue, 06 Oct 2026 00:51:58 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/24370.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 16 Apr 2023 12:25:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Changing language association of file extension on Sun, 16 Apr 2023 16:54: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><br />
OK, after reopening the *.inc file, it seems to work now. Thank you!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85721</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85721</guid><dc:creator><![CDATA[jofe95]]></dc:creator><pubDate>Sun, 16 Apr 2023 16:54:14 GMT</pubDate></item><item><title><![CDATA[Reply to Changing language association of file extension on Sun, 16 Apr 2023 16:52:26 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><br />
Thanks for explaining this. I honestly had forgotten that this behavior existed. I was on the verge of submitting a feature request at the official repo because it seemed like some files whose extensions had UDL file associations were not being lexed on startup, and then it turned out that it was just that they were not lexed when I last closed Notepad++.</p>
<p dir="auto">I wonder if there’s a way to override this behavior? (Yes, probably PythonScript, but I consider that the method of last resort)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85719</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85719</guid><dc:creator><![CDATA[Mark Olson]]></dc:creator><pubDate>Sun, 16 Apr 2023 16:52:26 GMT</pubDate></item><item><title><![CDATA[Reply to Changing language association of file extension on Sun, 16 Apr 2023 15:59:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jofe95" aria-label="Profile: jofe95">@<bdi>jofe95</bdi></a> said in <a href="/post/85711">Changing language association of file extension</a>:</p>
<blockquote>
<p dir="auto">I checked it, my changes were not overwritten; the file still contains</p>
</blockquote>
<p dir="auto">Did you leave <code>blah.inc</code> open in Notepad++ when you exited Notepad++?  If so, the “current session” remembers which Language is associated with an individual file.</p>
<p dir="auto">I did the following sequence:</p>
<ol>
<li>Open <code>blah.inc</code> under the old setup, and see that it’s <strong>Pascal</strong></li>
<li>Edit <code>%AppData%\Notepad++\langs.xml</code>, move the <code>inc</code> from <strong>pascal</strong> to <strong>asm</strong></li>
<li>Exit Notepad++</li>
<li>Run Notepad++</li>
<li><code>blah.inc</code> is still open as a <strong>Pascal</strong> file</li>
<li>Close <code>blah.inc</code> while Notepad++ is still running</li>
<li>Open <code>blah.inc</code>: it is now an <strong>Assembly</strong> file</li>
</ol>
<p dir="auto">If I do a different sequence:</p>
<ol>
<li>Open <code>blah.inc</code> under the old setup, and see that it’s <strong>Pascal</strong></li>
<li>Edit <code>%AppData%\Notepad++\langs.xml</code>, move the <code>inc</code> from <strong>pascal</strong> to <strong>asm</strong></li>
<li>Close <code>blah.inc</code> while Notepad++ is still running</li>
<li>Exit Notepad++</li>
<li>Run Notepad++</li>
<li>Open <code>blah.inc</code>: it is an <strong>Assembly</strong> file</li>
</ol>
]]></description><link>https://community.notepad-plus-plus.org/post/85713</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85713</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sun, 16 Apr 2023 15:59:52 GMT</pubDate></item><item><title><![CDATA[Reply to Changing language association of file extension on Sun, 16 Apr 2023 13:36:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mark-olson" aria-label="Profile: Mark-Olson">@<bdi>Mark-Olson</bdi></a><br />
Thanks for your reply.<br />
I checked it, my changes were <em>not</em> overwritten; the file still contains</p>
<pre><code>&lt;Language name="asm" ext="asm inc" commentLine=";" commentStart="/*" commentEnd="*/"&gt;
...
&lt;Language name="pascal" ext="pas pp p lpr" commentStart="{" commentEnd="}"&gt;
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/85711</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85711</guid><dc:creator><![CDATA[jofe95]]></dc:creator><pubDate>Sun, 16 Apr 2023 13:36:24 GMT</pubDate></item><item><title><![CDATA[Reply to Changing language association of file extension on Sun, 16 Apr 2023 13:26:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jofe95" aria-label="Profile: jofe95">@<bdi>jofe95</bdi></a><br />
Did you verify that your changes to the <code>langs.xml</code> file were not overwritten?</p>
<p dir="auto">I have no idea how to solve this, but my first guess is that Notepad++ overwrote your changes on exit.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85710</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85710</guid><dc:creator><![CDATA[Mark Olson]]></dc:creator><pubDate>Sun, 16 Apr 2023 13:26:08 GMT</pubDate></item></channel></rss>