XCSwiftr
XCSwiftr copied to clipboard
Syntax Highlighting support
Hi. Thanks for the plugin! Its great! I was wondering if you'd consider adding syntax highlighting via SourceKit since its simple enough. I've actually used it for a couple of pet projects. I'd be more than happy to submit a PR to add syntax highlight via SourceKit https://github.com/soffes/SyntaxKit . I haven't worked with Xcode plugins before and not sure if its easy and/or good practice dealing w/ cocoa pods. Although we could vendor SyntaxKit via git submodules as you've done with objc2swift java project. Let me know if you're open to this and I'll be more than happy to start working on a PR.
Thanks again :)
That's definitely missing! I listed it in https://github.com/dzenbot/XCSwiftr#missing-features
SyntaxKit looks really interesting. Unfortunately, it is very hard to make Cocoapods work for plugins. The times I tried, it just didn't work consistently. Vendoring would be best.
On the other hand, Xcode has its own syntax highlight mechanism internally, privately, when combining DVTSourceTextView
and DVTTextStorage
. I was just incapable to make those private APIs work correctly. Maybe someone knows a few tricks. By using these APIs the plugin would inherit the user's color theme, making the tool look much more native and even better, we could then think of having Xcode auto-completion feature.