Skip to content
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.

Syntax Highlighting support #3

Open
hamin opened this issue Apr 12, 2016 · 1 comment
Open

Syntax Highlighting support #3

hamin opened this issue Apr 12, 2016 · 1 comment

Comments

@hamin
Copy link

hamin commented Apr 12, 2016

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 :)

@dzenbot
Copy link
Owner

dzenbot commented Apr 13, 2016

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.

@dzenbot dzenbot changed the title Syntax Highlighting via SyntaxKit? Syntax Highlighting support Apr 13, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants