<?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[Notepad sees files with .tcl extension as shell file]]></title><description><![CDATA[<p dir="auto">Notepad sees a file with .tcl extension as a shell file although the default extension &lt;tcl&gt; is set for TCL language in Settings&gt;Style configurator .</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/23636/notepad-sees-files-with-tcl-extension-as-shell-file</link><generator>RSS for Node</generator><lastBuildDate>Sat, 10 Oct 2026 11:59:25 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/23636.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 20 Oct 2022 08:17:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Notepad sees files with .tcl extension as shell file on Wed, 26 Oct 2022 12:20:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gor-abgaryan-0" aria-label="Profile: Gor-Abgaryan-0">@<bdi>Gor-Abgaryan-0</bdi></a> said in <a href="/post/80874">Notepad sees files with .tcl extension as shell file</a>:</p>
<blockquote>
<p dir="auto">And what about &lt;#!/bin/sh&gt; at the beginning of the tcl file? Is there a way to read this file as a TCL file?<br />
There were a feedback saying there is no way.</p>
</blockquote>
<p dir="auto">I still don’t believe this is currently possible, but I think a change is coming soon to Notepad++ to allow this to happen.</p>
<p dir="auto">This <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/12397" rel="nofollow ugc">ISSUE</a> that came up recently describes a similar situation and links to some others discussing the impending code change.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80876</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80876</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 26 Oct 2022 12:20:29 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad sees files with .tcl extension as shell file on Wed, 26 Oct 2022 12:12:19 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 the feedback.<br />
And what about &lt;#!/bin/sh&gt; at the beginning of the tcl file? Is there a way to read this file as a TCL file? There were a feedback saying there is no way.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80874</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80874</guid><dc:creator><![CDATA[Gor Abgaryan 0]]></dc:creator><pubDate>Wed, 26 Oct 2022 12:12:19 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad sees files with .tcl extension as shell file on Thu, 20 Oct 2022 15:18:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gor-abgaryan-0" aria-label="Profile: Gor-Abgaryan-0">@<bdi>Gor-Abgaryan-0</bdi></a> said in <a href="/post/80720">Notepad sees files with .tcl extension as shell file</a>:</p>
<blockquote>
<p dir="auto">I need also .sv.bck to be read as Verilog</p>
</blockquote>
<p dir="auto">If you are editing blah.sv.bck and nothing else using the .bck extension, so that all .bck files that you are editing are Verilog, then you can just use <code>bck</code> in the User Extension list for Verilog.  Reason why it didn’t work for you: When Notepad++ is doing the extension matching, it only looks from the <em>final</em> dot to the end, so it only compares the <code>bck</code> portion, which then doesn’t match a User Ext: <code>sv.bck</code></p>
<p dir="auto">With some effort, you can create a macro for changing the current file to Verilog, and assign that macro to a keyboard shortcut, so that you could then just use that shortcut anytime you load a .sv.bck file. (Unfortunately, Languages aren’t in the Shortcut Mapper, and changing Langauge isn’t macro-recordable; but if you manually edit your macro file to have a macro calling <code>&lt;Action type="2" message="0" wParam="46043" lParam="0" sParam="" /&gt;</code>, and restart Notepad++, that Macro will then be available to assign a keyboard shortcut to, and it will do that action, even though you couldn’t record it.)</p>
<p dir="auto">Or you could use a scripting plugin (like Python Script) to set up a callback which every time you open a new file, it checks the filename, and if that ends in <code>.sv.bck</code> then change the language to Verilog.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80729</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80729</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 20 Oct 2022 15:18:27 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad sees files with .tcl extension as shell file on Thu, 20 Oct 2022 12:16:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gor-abgaryan-0" aria-label="Profile: Gor-Abgaryan-0">@<bdi>Gor-Abgaryan-0</bdi></a> said in <a href="/post/80719">Notepad sees files with .tcl extension as shell file</a>:</p>
<blockquote>
<p dir="auto">Isn’t there a way to disable that and make npp read only the file extension for highlighting?</p>
</blockquote>
<p dir="auto">I don’t believe so.</p>
<blockquote>
<p dir="auto">I need also .sv.bck to be read as Verilog. Is there a way to let it work?</p>
</blockquote>
<p dir="auto">I don’t think so.</p>
<p dir="auto">But I could be wrong.  Perhaps someone will respond that has a different opinion.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80721</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80721</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 20 Oct 2022 12:16:31 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad sees files with .tcl extension as shell file on Thu, 20 Oct 2022 12:02:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a><br />
And one more question about extensions.<br />
I have .v/.sv extensions for Verilog, but I need also .sv.bck to be read as Verilog. But it is not working. Is there a way to let it work?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80720</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80720</guid><dc:creator><![CDATA[Gor Abgaryan 0]]></dc:creator><pubDate>Thu, 20 Oct 2022 12:02:40 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad sees files with .tcl extension as shell file on Thu, 20 Oct 2022 12:00:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a><br />
Thanks. Isn’t there a way to disable that and make npp read only the file extension for highlighting?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80719</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80719</guid><dc:creator><![CDATA[Gor Abgaryan 0]]></dc:creator><pubDate>Thu, 20 Oct 2022 12:00:44 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad sees files with .tcl extension as shell file on Thu, 20 Oct 2022 11:39:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gor-abgaryan-0" aria-label="Profile: Gor-Abgaryan-0">@<bdi>Gor-Abgaryan-0</bdi></a> said in <a href="/post/80716">Notepad sees files with .tcl extension as shell file</a>:</p>
<blockquote>
<p dir="auto">#!/bin/sh</p>
</blockquote>
<p dir="auto">Sorry, that line is going to override your file’s extension and set Notepad++ up to lex the document as shell.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80717</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80717</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 20 Oct 2022 11:39:06 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad sees files with .tcl extension as shell file on Thu, 20 Oct 2022 11:11:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gor-abgaryan-0" aria-label="Profile: Gor-Abgaryan-0">@<bdi>Gor-Abgaryan-0</bdi></a></p>
<p dir="auto">Found the issue, but still need to be fixed.<br />
The first 3 lines of the code are:</p>
<p dir="auto">#!/bin/sh<br />
#\<br />
exec tclsh $0 ${1+“$@”}</p>
<p dir="auto">removing these lines fixes the problem, but these lines need to be there</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80716</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80716</guid><dc:creator><![CDATA[Gor Abgaryan 0]]></dc:creator><pubDate>Thu, 20 Oct 2022 11:11:14 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad sees files with .tcl extension as shell file on Thu, 20 Oct 2022 10:50:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a><br />
Hi. Thanks for your feedback. Nope, there is only my username in extensions part<br />
<img src="/assets/uploads/files/1666263023303-ext.png" alt="ext.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/80715</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80715</guid><dc:creator><![CDATA[Gor Abgaryan 0]]></dc:creator><pubDate>Thu, 20 Oct 2022 10:50:30 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad sees files with .tcl extension as shell file on Thu, 20 Oct 2022 09:33:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gor-abgaryan-0" aria-label="Profile: Gor-Abgaryan-0">@<bdi>Gor-Abgaryan-0</bdi></a></p>
<p dir="auto">this works for me, could it be that .tcl is added into the user ext setting of the bash lexer?</p>
<p dir="auto"><img src="/assets/uploads/files/1666258393470-4de6a3b3-a62d-4140-b2b6-e0d748776b48-image.png" alt="4de6a3b3-a62d-4140-b2b6-e0d748776b48-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/80713</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80713</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Thu, 20 Oct 2022 09:33:36 GMT</pubDate></item></channel></rss>