<?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[User Extensions for Language Recognition not working for custom styles]]></title><description><![CDATA[<p dir="auto">I added some file extensions for syntax highlighting (Lua). This works well with the default style. But after switching to another style (Obsidian), only .lua files are recognized, not my custom ones.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/21333/user-extensions-for-language-recognition-not-working-for-custom-styles</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Jul 2026 17:59:47 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/21333.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 15 Jun 2021 09:19:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to User Extensions for Language Recognition not working for custom styles on Sat, 19 Jun 2021 08:10:07 GMT]]></title><description><![CDATA[<p dir="auto">Ok, I checked with the original Obsidian.xml and it works now.<br />
Although the Lua block is the same, this strange behavior still exists. (They are only differences in other languages or maybe because of Global Style).<br />
If anyone wants to further investigate, I would upload the files here, but I can’t.</p>
<p dir="auto">Anyway, thank you for the help.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/67193</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/67193</guid><dc:creator><![CDATA[Tobias Gebhard]]></dc:creator><pubDate>Sat, 19 Jun 2021 08:10:07 GMT</pubDate></item><item><title><![CDATA[Reply to User Extensions for Language Recognition not working for custom styles on Fri, 18 Jun 2021 20:42:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tobias-gebhard" aria-label="Profile: Tobias-Gebhard">@<bdi>Tobias-Gebhard</bdi></a> said in <a href="/post/67188">User Extensions for Language Recognition not working for custom styles</a>:</p>
<blockquote>
<p dir="auto">But I also found out, this happens only at Obsidian. Not the other themes.</p>
</blockquote>
<p dir="auto">Hmm, maybe use the Compare plugin to look at your <code>Obsidian.xml</code> theme vs the <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/installer/themes/Obsidian.xml" rel="nofollow ugc">master copy of Obsidian.xml</a>, and see whether any of the differences jump out as “this may break things”.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/67191</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/67191</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 18 Jun 2021 20:42:12 GMT</pubDate></item><item><title><![CDATA[Reply to User Extensions for Language Recognition not working for custom styles on Fri, 18 Jun 2021 20:12:34 GMT]]></title><description><![CDATA[<p dir="auto">I wrote only “con” to the list and it didn’t work. Every other ending is working, except the ones I used before.</p>
<p dir="auto">But I also found out, this happens only at Obsidian. Not the other themes.<br />
I customized the settings of Obsidian before, maybe that’s the problem.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/67188</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/67188</guid><dc:creator><![CDATA[Tobias Gebhard]]></dc:creator><pubDate>Fri, 18 Jun 2021 20:12:34 GMT</pubDate></item><item><title><![CDATA[Reply to User Extensions for Language Recognition not working for custom styles on Tue, 15 Jun 2021 19:32:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tobias-gebhard" aria-label="Profile: Tobias-Gebhard">@<bdi>Tobias-Gebhard</bdi></a> said in <a href="/post/67052">User Extensions for Language Recognition not working for custom styles</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a><br />
Strange, with clua it’s working. Not so with .con file.<br />
Maybe because I used it as user extension for other themes before?</p>
</blockquote>
<p dir="auto">Doubtful.</p>
<p dir="auto">I tried some experiments.  The first time I tried using <code>clua con mdl module</code> as my user-extensions, I thought I replicated your results, and when I opened <code>blah.con</code>, it seemed to mark it as text.</p>
<p dir="auto">I was starting to think that <code>con</code> was somehow getting confused with <code>CON</code>, the DOS console pseudo-file.  I know that in other circumstances, the “user extension” also applies if it’s the exact name of the file, and I thought maybe the DOS pseudo-files would create extensions that didn’t work.  So I changed to <code>clua con prn nul mdl module</code>, and opened some files with those extensions: now <em>all</em> of them interpreted as Lua, even the <code>.con</code> file.</p>
<p dir="auto">I went to just <code>con</code> as the user-extension list, and opening <code>other.con</code> worked and was associated as Lua.</p>
<p dir="auto">I tried going back to <code>clua con mdl module</code>, and now that’s working – every <code>.con</code> file I open, or when I create a new file and save-as <em>anything</em>.con, it works for me. I can exit and restart Notepad++, and that mapping is still there.</p>
<p dir="auto">You might try clearing the user extensions for Lua, setting it only to <code>con</code>, exiting Notepad++ and coming back in, and see if it works.</p>
<p dir="auto">If not, please share your <strong>?</strong> menu <strong>Debug Info</strong> (you can copy/paste from that dialog into your reply)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/67059</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/67059</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 15 Jun 2021 19:32:08 GMT</pubDate></item><item><title><![CDATA[Reply to User Extensions for Language Recognition not working for custom styles on Tue, 15 Jun 2021 14:16:09 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 />
Strange, with clua it’s working. Not so with .con file.</p>
<p dir="auto"><img src="/assets/uploads/files/1623766153377-4fe94a4f-c278-45f9-bb18-c0dbf14d8d36-image.png" alt="4fe94a4f-c278-45f9-bb18-c0dbf14d8d36-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Maybe because I used it as user extension for other themes before?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/67052</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/67052</guid><dc:creator><![CDATA[Tobias Gebhard]]></dc:creator><pubDate>Tue, 15 Jun 2021 14:16:09 GMT</pubDate></item><item><title><![CDATA[Reply to User Extensions for Language Recognition not working for custom styles on Tue, 15 Jun 2021 13:15:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tobias-gebhard" aria-label="Profile: Tobias-Gebhard">@<bdi>Tobias-Gebhard</bdi></a> ,</p>
<p dir="auto">The <code>user ext.</code> field is apparently saved per-theme, so when you change from one theme to another, the changes you made in the first theme (including the user extension list) don’t apply to any other theme.</p>
<p dir="auto">Thus, the sequence I had to go through to make it work for a new theme:</p>
<ol>
<li>Select theme (Obsidian)</li>
<li>Save and close Style Configurator<br />
(you have to save&amp;close here, because right now, the user extension box doesn’t exist)</li>
<li>Style Configurator &gt; Lua</li>
<li>add your custom extension (my experiment used <code>clua</code>, which was short for “custom lua”)</li>
<li>save and close Style Configurator</li>
<li>Now if you open a standard <code>blah.lua</code> or a custom <code>blah.clua</code>, both will use the Lua syntax highlighting.</li>
</ol>
]]></description><link>https://community.notepad-plus-plus.org/post/67045</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/67045</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 15 Jun 2021 13:15:43 GMT</pubDate></item></channel></rss>