spirali / nelsie

Framework for Creating Slides
MIT License
39 stars 4 forks source link

Allow specifying custom language syntaxes #15

Closed fgelm01 closed 4 months ago

fgelm01 commented 4 months ago

It seems like you use synctet for syntax highlighting of code. Would it be possible to expose some mechanism to add more syntaxes than the ones that library bundles by default?

spirali commented 4 months ago

I have added an implementation. Unfortunately I have found a bug that custom syntaxes does not work when defaults loaded. So you have to disable loading default syntaxes by Resources(default_code_syntaxes=False). Themes are ok. It seems as a bug in upstream crate. I will investigate tomorrow.

spirali commented 4 months ago

I have found the source of the problem, so #16 fully solves this issue.

fgelm01 commented 4 months ago

Thank you!