<?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[Auto-detect Language when creating new file]]></title><description><![CDATA[<p dir="auto">When creating a new file, is there a way to auto detect and set the language of the new file content?</p>
<p dir="auto">Using the <strong>Language</strong> drop down in the menu bar at the top, I can <strong>apply</strong> the language of choice <strong>manually</strong></p>
<p dir="auto">After a few lines, is there a way to <strong>auto-detect</strong> the language and <strong>apply</strong> it for me so the proper <strong>style</strong> and <strong>syntax highlighting</strong> shows <strong>without</strong> additional clicking?</p>
<p dir="auto">If not, can we make that happen?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/15503/auto-detect-language-when-creating-new-file</link><generator>RSS for Node</generator><lastBuildDate>Sun, 14 Jun 2026 01:01:51 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/15503.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Mar 2018 23:53:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Auto-detect Language when creating new file on Tue, 05 Jun 2018 14:58:37 GMT]]></title><description><![CDATA[<p dir="auto">would not be able to use a comment line to change the syntax?</p>
<p dir="auto">use it to exchange syntax in the middle of the document?</p>
<p dir="auto">I am trying to set up the O2 compiler “Oxygen Basic” but the syntax is very varied, assimble, syntax C, Basic, and even in Basic accepts variants like End if, Endif,<br />
would be good to avoid language vices</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32806</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32806</guid><dc:creator><![CDATA[Eduardo Jorge]]></dc:creator><pubDate>Tue, 05 Jun 2018 14:58:37 GMT</pubDate></item><item><title><![CDATA[Reply to Auto-detect Language when creating new file on Sat, 31 Mar 2018 18:32:16 GMT]]></title><description><![CDATA[<p dir="auto">Would have to be in a certain order though… because I would want the PHP to set even though there is HTML syntax as well… so checking one before another would be important in this case, on new file input…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/31355</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/31355</guid><dc:creator><![CDATA[Josh Richard]]></dc:creator><pubDate>Sat, 31 Mar 2018 18:32:16 GMT</pubDate></item><item><title><![CDATA[Reply to Auto-detect Language when creating new file on Sat, 31 Mar 2018 14:12:45 GMT]]></title><description><![CDATA[<p dir="auto">Just regex some different syntax? lol idk</p>
]]></description><link>https://community.notepad-plus-plus.org/post/31349</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/31349</guid><dc:creator><![CDATA[Josh Richard]]></dc:creator><pubDate>Sat, 31 Mar 2018 14:12:45 GMT</pubDate></item><item><title><![CDATA[Reply to Auto-detect Language when creating new file on Fri, 30 Mar 2018 00:44:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/josh-richard" aria-label="Profile: Josh-Richard">@<bdi>Josh-Richard</bdi></a></p>
<p dir="auto">agreed but what if you open a html page with embedded php?<br />
I guess you don’t want to have php lexer on html page, do you?</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/31318</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/31318</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Fri, 30 Mar 2018 00:44:50 GMT</pubDate></item><item><title><![CDATA[Reply to Auto-detect Language when creating new file on Fri, 30 Mar 2018 00:41:53 GMT]]></title><description><![CDATA[<p dir="auto">I mean… I know several languages that would give away the language in the very first line… ex: <strong>#!/bin/bash</strong></p>
<p dir="auto">But other languages could have these context clues on other lines… ex: <strong>&lt;?php</strong> does not need to be the first line of a valid PHP file</p>
]]></description><link>https://community.notepad-plus-plus.org/post/31317</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/31317</guid><dc:creator><![CDATA[Josh Richard]]></dc:creator><pubDate>Fri, 30 Mar 2018 00:41:53 GMT</pubDate></item><item><title><![CDATA[Reply to Auto-detect Language when creating new file on Thu, 29 Mar 2018 10:34:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/josh-richard" aria-label="Profile: Josh-Richard">@<bdi>Josh-Richard</bdi></a></p>
<p dir="auto">if you provide the distinct logic which of the languages should be used,<br />
I can provide the python script to set it automatically, but, of course, this means<br />
you need to have python script plugin installed.</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/31289</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/31289</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Thu, 29 Mar 2018 10:34:11 GMT</pubDate></item><item><title><![CDATA[Reply to Auto-detect Language when creating new file on Thu, 29 Mar 2018 01:03:54 GMT]]></title><description><![CDATA[<p dir="auto">So there is no hope for anything based on text input?? This makes me sad. I don’t always want to save a file or select the proper syntax… ie. I’m lazy :P</p>
]]></description><link>https://community.notepad-plus-plus.org/post/31284</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/31284</guid><dc:creator><![CDATA[Josh Richard]]></dc:creator><pubDate>Thu, 29 Mar 2018 01:03:54 GMT</pubDate></item><item><title><![CDATA[Reply to Auto-detect Language when creating new file on Thu, 29 Mar 2018 00:29:24 GMT]]></title><description><![CDATA[<p dir="auto">Language is detected/based on file extension.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/31282</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/31282</guid><dc:creator><![CDATA[MAPJe71]]></dc:creator><pubDate>Thu, 29 Mar 2018 00:29:24 GMT</pubDate></item></channel></rss>