<?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 to change default language for file extension]]></title><description><![CDATA[<p dir="auto">I’m working with express applications at the moment using handlebars (.hbs files). How can i make HTML the default language for .hbs files? (I’ve tried “settings/preferences/file associations” but I can’t seem to edit anything)</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/18559/how-to-change-default-language-for-file-extension</link><generator>RSS for Node</generator><lastBuildDate>Wed, 17 Jun 2026 19:08:50 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/18559.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 30 Nov 2019 16:10:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to change default language for file extension on Tue, 05 Jan 2021 14:00:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dbdonb" aria-label="Profile: dbdonb">@<bdi>dbdonb</bdi></a> ,</p>
<blockquote>
<p dir="auto">hope that this is how it’s supposed to be done.</p>
</blockquote>
<p dir="auto">You are given access to plaintext (XML) config files in Notepad++ because the developers want you to be able to have as full control over the application as you can.  Edit config files to your heart’s content. :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61391</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61391</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 05 Jan 2021 14:00:28 GMT</pubDate></item><item><title><![CDATA[Reply to How to change default language for file extension on Tue, 05 Jan 2021 07:05:33 GMT]]></title><description><![CDATA[<p dir="auto"><strong>Update:</strong></p>
<p dir="auto">Sorry for double posting. The edit time is way too less (3 minutes!)</p>
<p dir="auto">I figured out editing the default extension I guess. I edited the <strong>langs.xml</strong> and removed <strong>inc</strong> from <strong>Pascal</strong>.</p>
<p dir="auto">It now loads the custom syntax hughlighting ( C Language) for .inc</p>
<p dir="auto">However, I hope what I’ve done won’t break anything else in the system, and also hope that this is how it’s supposed to be done.</p>
<p dir="auto"><strong>Kindly correct me if wrong.</strong></p>
<p dir="auto">Regards</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61377</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61377</guid><dc:creator><![CDATA[dbdonb]]></dc:creator><pubDate>Tue, 05 Jan 2021 07:05:33 GMT</pubDate></item><item><title><![CDATA[Reply to How to change default language for file extension on Tue, 05 Jan 2021 06:56:36 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> Thanks a lot for this splendid explanation. I really appreciate it. Apologies for my delayed response.</p>
<p dir="auto">However, I realised that the reason a particular custom extension wasn’t working for me was that it is already defined in the default of another language.</p>
<p dir="auto">I need “inc” to be opened in C language, however, it’s by default defined in Pascal. I guess if I am able to remove it from the Pascal defaults, things would work for me.</p>
<p dir="auto"><img src="/assets/uploads/files/1609829696603-66f817ff-d645-4535-ac4a-86bb498130e2-image.png" alt="66f817ff-d645-4535-ac4a-86bb498130e2-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I Would be grateful if you could kindly guide me in how to remove a default extension from a language.</p>
<p dir="auto">Regards</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61376</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61376</guid><dc:creator><![CDATA[dbdonb]]></dc:creator><pubDate>Tue, 05 Jan 2021 06:56:36 GMT</pubDate></item><item><title><![CDATA[Reply to How to change default language for file extension on Wed, 09 Dec 2020 14:07:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dbdonb" aria-label="Profile: dbdonb">@<bdi>dbdonb</bdi></a> said in <a href="/post/60623">How to change default language for file extension</a>:</p>
<blockquote>
<p dir="auto">I did that, however, the settings don’t take effect. I was in admin mode while making those settings and despite restarting NPP, the settings don’t seem to take any effect.</p>
</blockquote>
<p dir="auto">You shouldn’t need to be in Admin Mode for that change.</p>
<p dir="auto">The following sequence works just fine for me:</p>
<ol>
<li>Go to <strong>Settings  &gt; Style Configurator &gt; HTML</strong>, and type <code>rbs</code> into the <strong>User ext.</strong> box, then hit <strong>Save &amp; Close</strong><br />
<img src="/assets/uploads/files/1607522450578-e536cdd3-d57f-485e-9d17-52bef42bfb64-image.png" alt="e536cdd3-d57f-485e-9d17-52bef42bfb64-image.png" class=" img-fluid img-markdown" /></li>
<li><strong>File &gt; New</strong></li>
<li><strong>File &gt; Save As</strong>, select <strong>Save as type</strong> as either <code>All Types (*.*)</code> or <code>Hyper Text Markup Language file (*.html; ...)</code>, and type <code>blah.rbs</code>, then <strong>Save</strong></li>
<li>At this point, the status bar shows (in the lower left, if the window is wide enough) that <code>blah.rbs</code> is a <code>Hyper Text Markup Language file</code>, and if I enter HTML or pseudo-html, it highlights as expected:<br />
<img src="/assets/uploads/files/1607522753166-52efcbe4-2831-4414-8784-55388b071de0-image.png" alt="52efcbe4-2831-4414-8784-55388b071de0-image.png" class=" img-fluid img-markdown" /></li>
</ol>
<p dir="auto">This feature has worked for me in every version of Notepad++ I have used for the last 5+ years, including v7.8.7-64bit.</p>
<p dir="auto">If your experience is different, you will have to give an explanation of the exact sequence of steps, and we can try to replicate your problem.</p>
<p dir="auto">But for now, “it works for me”</p>
]]></description><link>https://community.notepad-plus-plus.org/post/60631</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/60631</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 09 Dec 2020 14:07:06 GMT</pubDate></item><item><title><![CDATA[Reply to How to change default language for file extension on Wed, 09 Dec 2020 06:24:17 GMT]]></title><description><![CDATA[<p dir="auto">Sorry for the double post.</p>
<p dir="auto">Just wanted to add that my NPP version is v7.8.7 64bit</p>
]]></description><link>https://community.notepad-plus-plus.org/post/60625</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/60625</guid><dc:creator><![CDATA[dbdonb]]></dc:creator><pubDate>Wed, 09 Dec 2020 06:24:17 GMT</pubDate></item><item><title><![CDATA[Reply to How to change default language for file extension on Wed, 09 Dec 2020 06:17:48 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I did that, however, the settings don’t take effect. I was in admin mode while making those settings and despite restarting NPP, the settings don’t seem to take any effect.</p>
<p dir="auto">Any clue where I’m going wrong?<br />
Thanks.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/60623</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/60623</guid><dc:creator><![CDATA[dbdonb]]></dc:creator><pubDate>Wed, 09 Dec 2020 06:17:48 GMT</pubDate></item><item><title><![CDATA[Reply to How to change default language for file extension on Sat, 30 Nov 2019 17:03:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ruair%C3%AD-murphy" aria-label="Profile: Ruairí-Murphy">@<bdi>Ruairí-Murphy</bdi></a> said in <a href="/post/48802">How to change default language for file extension</a>:</p>
<blockquote>
<p dir="auto">How can i make HTML the default language for .hbs files?</p>
</blockquote>
<p dir="auto"><strong>Settings &gt; Style Configurator &gt; Language: <code>HTML</code></strong>, <strong>User Ext:</strong> = <code>hbs</code> (or, if there were already one, like <strong>User Ext:</strong> <code>hta</code>, then change to space separated <code>hta hbs</code> (no dots))</p>
<p dir="auto">see also: <a href="https://npp-user-manual.org/docs/preferences/#style-configurator" rel="nofollow ugc">Style Configurator doc</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/48803</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/48803</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sat, 30 Nov 2019 17:03:31 GMT</pubDate></item></channel></rss>