<?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[CLI Parameter &quot;-l&quot; does not work with user defined languages]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I use Notepad++ in version 7.5.6</p>
<p dir="auto">I have prepared a user defined language to highlight target files for CNC-Machines which use a certain CNC.<br />
<code>&lt;UserLang name="G-Code" ext="DIN din NC nc CNC cnc BEV bev MHT mht target.txt" udlVersion="2.1"&gt;</code><br />
The name of the user language is “G-Code”.</p>
<p dir="auto">If I use the CLI in the following way<br />
<code>Notepad++ -lG-Code myTextfile.txt</code></p>
<p dir="auto">I also have also tried to rename the language to “GCode” and use the following command line:<br />
<code>Notepad++ -lGCode myTextfile.txt</code></p>
<p dir="auto">in both cases the code highlight of my user defined language is not selected.<br />
If I open a file with one of the defined file extensions it works properly and selects the correct user defined language.</p>
<p dir="auto">Have I done something wrong or is it just not implemented for user defined languages?</p>
<p dir="auto">Thanks in advance<br />
TMuel</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/15444/cli-parameter-l-does-not-work-with-user-defined-languages</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 03:54:30 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/15444.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 21 Mar 2018 09:59:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CLI Parameter &quot;-l&quot; does not work with user defined languages on Wed, 21 Mar 2018 18:56:44 GMT]]></title><description><![CDATA[<p dir="auto">Hi Jim,</p>
<p dir="auto">I assumed the -l parameter as an override function for the detection of the language by the files extension. because if i try -lbash then it highlites it with the Bash code highlitning.</p>
<p dir="auto">If I use a *.din file it ofcause works, but then it uses the detection for the language of the file extension and i could omit the -l parameter.</p>
<p dir="auto">it is my intention to have the <strong>target.txt</strong> in my definition, because i dont want to have the highlight for all text files, but i ofetn open files which have the name <em>target.txt</em>, which i always want to have highlighted.</p>
<p dir="auto">Best regards<br />
TMuel</p>
]]></description><link>https://community.notepad-plus-plus.org/post/31088</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/31088</guid><dc:creator><![CDATA[TMuel1123]]></dc:creator><pubDate>Wed, 21 Mar 2018 18:56:44 GMT</pubDate></item><item><title><![CDATA[Reply to CLI Parameter &quot;-l&quot; does not work with user defined languages on Wed, 21 Mar 2018 15:32:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tmuel1123" aria-label="Profile: TMuel1123">@<bdi>TMuel1123</bdi></a> in your ext definition I see <em><strong>target.txt</strong></em>, but I do not see <em><strong>txt</strong></em>.  Maybe that’s your problem…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/31084</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/31084</guid><dc:creator><![CDATA[Jim Dailey]]></dc:creator><pubDate>Wed, 21 Mar 2018 15:32:47 GMT</pubDate></item></channel></rss>