Skip to content
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

[Feature Request] Customization #54

Open
Br31zh opened this issue Jan 13, 2023 · 1 comment
Open

[Feature Request] Customization #54

Br31zh opened this issue Jan 13, 2023 · 1 comment

Comments

@Br31zh
Copy link

Br31zh commented Jan 13, 2023

Hello,

Do you think it would be possible to offer customization of the syntax highlighting theme in a fairly simple way?

Or at least, is it possible to tell me how I can change it before compiling? I'm having a hard time understanding at what level it's set (I don't think just changing s.get_theme("OneHalfDark") to s.get_theme("base16-eighties") will be enough? Apparently syntect supports base16 themes, but I don't understand how it all works).

EDIT: I tried to just change the theme name, it didn’t work, as expected.

Thanks.

@evogelsa
Copy link

It looks like the built in themes for bat can be found here: https://github.com/sharkdp/bat/tree/master/assets/themes. I think if you use the name of one of the .tmTheme files in that directory or one of its submodules, that would be supported.

So for example s.get_theme("Solarized (dark)") should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants