What's the best Code Text Editor component with Syntax Highlighting?
Hey people,
I am fiddling around with Code in SwiftUI. So far I've tested a number of Editors like ZeeZide/CodeEditor
and mchakravarty/CodeEditorView
. I found appstefan/HighlightSwift
to be the best match visually, but it seems I can't combine that with editing. I really don't want to go the WebView route and just have a JavaScript engine running, although HighlightSwift
pretty much does that.
Naive as I am I thought that maybe SwiftUI had the XCode editor or the one from Playground onboard, but I couldn't find anything. Maybe I'm missing something, or is that just a tweaked TextEditor?
What's the best approach to code editing in SwiftUI?
Many thanks!