Alternate Editor Sample

This sample shows you how to replace the text editor in SharpDevelop with another editor.  In this case the text editor is replaced by a simple rich text box control.

After the sample has been built, and SharpDevelop restarted, creating a new text file or source code file will open up the alternate editor.

The example works by defining a new display binding and inserting it into the list of display bindings before the text editor.  The new display binding will then be asked first whether it can display a particular file.

<Path name = "/SharpDevelop/Workbench/DisplayBindings">
    <DisplayBinding id = "AlternateEditor"
	insertbefore = "Text"
	supportedformats = "Text Files,Source Files"
	class = "AlternateEditor.AlternateEditorDisplayBinding" />
</Path>