![Avatar](https://secure.gravatar.com/avatar/f1042d90924d9a435ef8da942849e0f0.jpg?s=64&d=identicon&r=g)
What is the right way to go about showing a different view of the actual text in the Syntax Editor relative to what is stored?
In other words, the actual text might be something like this:
This sentence has a @special@attrib1=value1, attrib2=value2@ marked up word in it.
What I want to see in the editor is only this text:
This sentence has a special marked up word in it.
But the word "special" should have some adornment to show it has attributes; it will also have a context menu where a dialog can be opened to edit the attributes.
With the Winforms Syntax Editor, we would intercept the Text property, remove the markup and add a indicator range, then when saving, go throug those indicators and add the text back in. So you never see the markup in the editor (just the squiggly indicator), but add/edit/remove via the popup dialog, even though the markup is saved in the text that's saved to file.