Author Topic: partial locked text to avoid changes in locked regions  (Read 2015 times)

ewendt

  • Community Member
  • Posts: 42
  • Hero Points: 2
partial locked text to avoid changes in locked regions
« on: August 11, 2017, 05:44:16 AM »
Hello,
we are generating code text, where a lot of text should not be changeable. Only in marked regions changes are allowed (to assure proper updating). Changeable parts of the text are marked with special intro and extro lines.
Is this already provided by any macro?

Graeme

  • Senior Community Member
  • Posts: 2796
  • Hero Points: 347
Re: partial locked text to avoid changes in locked regions
« Reply #1 on: August 11, 2017, 08:51:42 AM »
There's no macro for it but you could write a macro to hide the non changeable lines using the hide-selection command.
Or you could write your own version of the save_file command that checked for modified lines within the protected regions and warned about it.

ewendt

  • Community Member
  • Posts: 42
  • Hero Points: 2
Re: partial locked text to avoid changes in locked regions
« Reply #2 on: August 11, 2017, 01:49:39 PM »
Thx. But I did already what you proposed and it is no solution at all.
The protected text is important information - to hide it is no solution. To warn when save is to late. Imagine to fill in a template, where only input regions are changeable - and, of course, the file is a little bit bigger.