-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
syntect-plugin highlight as a feature #98
Comments
Hi. To answer your question i'm not entirely sure. the syntect-plugin is a binary program much like xi-term itself and must be installed on the system to be use, There is no 'dependency' for Cargo.toml to manage. xi-term works regardless of whether the syntect plugin is enabled or not. I'm not sure i understand why a feature would be needed for this? |
Hello. I was thinking syntect-plugin as an internal xi-term plugin. You explain me that sintect-plugin is an external program that I think it is https://github.com/trishume/syntect . Correct? In that way I will need to port this as well so xi-term can use it. Thanks, Nuno Teixeira |
Yeah you pretty much got it. It is actually an xi-core plugin, located here. The library you linked to is the syntect crate, it's a rust library for syntax highlighting it does nothing on it's own. Yes in order to get this working you would have to Port xi-term, xi-core, and syntect-plugin all 3 would be required. Thanks for using xi-term btw 😄, If there's anything i could do to help with the porting process just let me know i'd be happy to help. |
Hello, I just submit my first port to FreeBSD and now I'm waiting that it will be accepted/included in ports tree: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237533 and I also adopted xi-editor port because it was without maintainer. Also waiting for permission so I can be port maintainer: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237532 When this stage is complete I will include a new port so we can have syntax highlighting included and I will start working on that now :) Nuno Teixeira |
Awesome. That's great to hear! i thank you very much for your work |
Hello,
It is possible to have syntect-plugin as a feature in Cargo.toml like, e.g.:
[features]
default = ["dist-client", "s3"]
all = ["dist-client", "redis", "s3", "memcached", "gcs", "azure"]
azure = ["chrono", "hyper", "hyperx", "rust-crypto", "url"]
(example from sccache Cargo.toml project)
I'm asking this because I'm porting xi-term to FreeBSD and it will be more easy to me to use:
.
CARGO_FEATURES= syntect-plugin
or
CARGO_FEATURES= all
if there are more features that we like to have activated in a port.
I have not ported your project yet but I am using/testing it and it works very well.
Thanks,
Nuno Teixeira
The text was updated successfully, but these errors were encountered: