The Scintilla component doesn't track the location of XML tags, so no, there isn't a simple option that you can use to disable editing of specific parts of text. The KeyDown event may not be the only way, but it seems to me to be the best way.
↧