matze / wastebin

wastebin is a pastebin 📝
https://bin.bloerg.net
MIT License
303 stars 28 forks source link

Extend syntax, including Prolog support #33

Closed berezovskyi closed 1 year ago

berezovskyi commented 1 year ago

I saw that wastebin is currently using Syntect for highlighting, which in turn relies on Sublime-2-based theme definitions. I also saw #17, which uses Tree-sitter for highlighing.

How difficult would it be to add support for Prolog code highlighting, e.g. by plugging https://github.com/BenjaminSchaaf/swi-prolog-sublime-syntax or https://github.com/Rukiza/tree-sitter-prolog into Syntect or Tree-sitter, respectively?

I am a Rust noob so far (scratch that, I have no Rust experience at all), just so that you know.

berezovskyi commented 1 year ago

I'd also be interested in other things like https://github.com/blake-regalia/linked-data.syntaxes but that's for later.

matze commented 1 year ago

I see zola has additional syntaxes including Prolog, so definitely there is a way to go forward.

As indicated in #17, tree-sitter would be nice if it wasn't for the downsides: difficult set up, blow up in size and smaller number of supported languages.

berezovskyi commented 1 year ago

@matze vielen Dank 🤝 works wonderfully!