title: Protect a range of text in ScintillaNet: what is the best way to do it?
body: <p>I know that styles have an attribute to allow/avoid changes in the text in which they are applied:</p>
  <p><a href="https://www.scintilla.org/ScintillaDoc.html#SCI_STYLESETCHANGEABLE" rel="nofollow noreferrer">SCI_STYLESETCHANGEABLE(int style, bool changeable)</a></p>
  <p>However, the documentation says &quot;<strong>This is an experimental and incompletely implemented style attribute.</strong>&quot;, which seems it is not &quot;production-ready&quot;</p>
  <p>I think there is another alternative, using &quot;<a href="https://www.scintilla.org/ScintillaDoc.html#Indicators" rel="nofollow noreferrer">Indicators</a>&quot;:</p>
  <p>To protect a range of text, we could apply an specific indicator to it and in keydown event detect &quot;del&quot; &amp; &quot;backspace&quot;. If the character that follows current position (caret position) in &quot;del&quot; case or that precedes current position in &quot;backspace&quot; case has this indicator, then we must cancel the event and do not erase the text.</p>
  <p>Which of this 2 alternatives is better? There is another better way?</p>
  <p><em>Note: ScintillaNet is based on Scintilla and I assume that the extensive documentation of the last one is valid for both.</em></p>