<?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[Opening read-only files]]></title><description><![CDATA[<p dir="auto">I’ve been using Notepad ++ for a couple of years now and think it is the best text editor that I have so far used.</p>
<p dir="auto">I used to use SciTE and there’s only one feature in that which would be very useful (for me): when opening a read-only file (eg like a template), you were able to edit it and then were forced to save it under a different name.</p>
<p dir="auto">Would you be able to add that feature?</p>
<p dir="auto">Many thanks.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/12077/opening-read-only-files</link><generator>RSS for Node</generator><lastBuildDate>Sat, 13 Jun 2026 09:00:23 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/12077.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 11 Jul 2016 08:38:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Opening read-only files on Fri, 10 Nov 2017 16:32:36 GMT]]></title><description><![CDATA[<p dir="auto">+1 for this.<br />
The <strong>Clear Read-Only Flag</strong> should not be an option and it should behave like that by default.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/27943</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/27943</guid><dc:creator><![CDATA[Filipe Costa]]></dc:creator><pubDate>Fri, 10 Nov 2017 16:32:36 GMT</pubDate></item><item><title><![CDATA[Reply to Opening read-only files on Wed, 13 Jul 2016 06:16:59 GMT]]></title><description><![CDATA[<p dir="auto">Thank you both!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/16820</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/16820</guid><dc:creator><![CDATA[Jonathan Rew]]></dc:creator><pubDate>Wed, 13 Jul 2016 06:16:59 GMT</pubDate></item><item><title><![CDATA[Reply to Opening read-only files on Tue, 12 Jul 2016 00:00:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jonathan-rew" aria-label="Profile: Jonathan-Rew">@<bdi>Jonathan-Rew</bdi></a></p>
<p dir="auto">what you could do in addition would need to install python script plugin and those four lines of code.</p>
<pre><code>def callback_MODIFYATTEMPTRO(args):
    notepad.menuCommand(MENUCOMMAND.FILE_SAVEAS)

editor.clearCallbacks([SCINTILLANOTIFICATION.MODIFYATTEMPTRO])
editor.callback(callback_MODIFYATTEMPTRO, [SCINTILLANOTIFICATION.MODIFYATTEMPTRO])
</code></pre>
<p dir="auto">What it does:<br />
By registering the callback the script gets notified when you try to change a read only file and therefore calls<br />
the file save as dialog. You can either create a script but than you need to run it every time you start npp or<br />
you put the content into the <a href="http://startup.py" rel="nofollow ugc">startup.py</a> of the python script plugin then it get called automatically every time<br />
npp starts.</p>
<p dir="auto">What needs to be done first is described <a href="https://notepad-plus-plus.org/community/topic/10882/feature-request-copy-line-with-number/6" rel="nofollow ugc">here</a></p>
<p dir="auto">Just in case that you haven’t installed python script plugin yet, I would propose to use the <a href="http://sourceforge.net/projects/npppythonscript/files/Python%20Script%201.0.8.0/PythonScript_1.0.8.0.msi/download" rel="nofollow ugc">MSI</a> package instead of using the plugin manager.</p>
<p dir="auto">Cheers<br />
Claudia<br />
Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/16796</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/16796</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Tue, 12 Jul 2016 00:00:55 GMT</pubDate></item><item><title><![CDATA[Reply to Opening read-only files on Mon, 11 Jul 2016 17:14:17 GMT]]></title><description><![CDATA[<p dir="auto">Open the file; Hit Ctrl+A, Crtl+C, Cntrl+W, Cntrl+N, Cntrl+V, Cntrl+S</p>
]]></description><link>https://community.notepad-plus-plus.org/post/16791</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/16791</guid><dc:creator><![CDATA[NotepadCpp]]></dc:creator><pubDate>Mon, 11 Jul 2016 17:14:17 GMT</pubDate></item></channel></rss>