private void InitEditor()
{
sourcePreviewer.ConfigurationManager.Language = "xml";
sourcePreviewer.IsReadOnly = false;
sourcePreviewer.Lexing.Lexer = Lexer.Xml;
sourcePreviewer.Folding.IsEnabled = true;
sourcePreviewer.MatchBraces = true;
sourcePreviewer.IsBraceMatching = true;
sourcePreviewer.Lexing.SetProperty( "fold", "1" );
sourcePreviewer.Lexing.SetProperty( "fold.html", "1" );
sourcePreviewer.UndoRedo.EmptyUndoBuffer();
sourcePreviewer.Modified = false;
}