title: AvalonEdit Change Syntax Highlighting in Code
body: <p>I want to change the Syntax Highlighting of AvalonEdit in my Code.</p>
  
  <p>XAML:</p>
  
  <pre><code> &lt;avalonEdit:TextEditor Name="textEditor" SyntaxHighlighting="{Binding syntaxHighlighting}" /&gt;
  </code></pre>
  
  <p>C#:</p>
  
  <pre><code>public string syntaxHighlighting { get; set; }
  
  public MainWindow()
  {
       InitializeComponent();
       syntaxHighlighting = "C#";
       DataContext = this;
  }
  </code></pre>
  
  <p>But the Syntax Highlighting is not changed. What am I doing wrong? Is there a better solution for my problem?</p>