title: How do I add code colors to xcode TextEditor()
body: <p>I'm looking for a way to add code colors, like an IDE. I plan on using a language called lua in the editor.
  Here's the code I currently have:</p>
  <pre class="lang-swift prettyprint-override"><code>import SwiftUI
  
  struct ContentView: View {
      @Binding var document: SysxDocument
  
      var body: some View {
          TextEditor(text: $document.text)
              .font(.custom(&quot;Andale Mono&quot;, size: 13))
              
      }
  }
  
  struct ContentView_Previews: PreviewProvider {
      static var previews: some View {
          ContentView(document: .constant(SysxDocument()))
      }
  }
  
  </code></pre>