without having more information about how exactly such a feature is supposed to work, it’s hard to say whether locking part of a text with this style attribute is sufficient. For example, if this “locking” only happens after several edits, I’d be surprised if a few “undos” didn’t reset the text. Never tested it.
@Douglas-Schneider - there is a possibility that a Python script could be used via the PythonScript plugin, but one would need more information on how it should work.
Questions I’m thinking of include.
Are the files only on the hard drive or also on the network, on a USB drive, etc.?
Is the file only ever edited by one person, or perhaps multiple users?
Is the area locked when the file is loaded or at any time?
Does only text need to be locked for files that don’t use another lexer, e.g. text doesn’t have a lexer, but xml or json files do.
What must be done when ending a npp session or closing the file or starting npp and loading a file?
Etc …
If you can specify your requirement and are willing to go the a python script solution way, we might be able to offer you something.