@Alan-Kilborn said:
Ideally there would be three options:
clear readonly (as it now functions)
make readonly in Notepad++ (as it now functions – only disallows you from editing in the buffer – file system attribute unaffected)
set readonly (currently missing! would set the readonly attribute in the file system as well as disallow editing in N++ buffer)
In Notepad++ 8.8.2 and later are two “new” checkmarkable choices at the bottom of the Edit menu:
5886cb49-dc35-4684-a952-f1d43fd6906e-image.png
I use quotes because they aren’t entirely new; they replace old items whose functionality has been reworked a bit to cover all needs.
The menu text is fairly self-explanatory for the functionality.
Really, the only new part of it is that the readonly attribute in the file system can now be set as well as cleared.
One more bit of newness: When the file system’s readonly attribute is set on a file, its tab icon will appear with an F on it, presumably standing for “File System”. (Truly, it would have been better for the menu text to have been “Read-Only Attribute in File System”…)
Also, there can be a double level of protection: If Read-Only in Notepad++ is set first, then the Read-Only Attribute in Windows is applied, Read-Only in Notepad++ will be greyed but still checkmarked. Later if Read-Only Attribute in Windows is removed, Read-Only in Notepad++ will again be enforced.
I’m sure all this and more appears in the user manual, I’m just modernizing an old thread here in case someone reading this is confused by the now outdated info above.