szabodanika / microbin

A secure, configurable file-sharing and URL shortening web app written in Rust.
https://microbin.eu
BSD 3-Clause "New" or "Revised" License
2.65k stars 163 forks source link

More syntax highlighting #105

Closed Raithmir closed 1 year ago

Raithmir commented 1 year ago

It would be great to have highlighting for PowerShell.

webtroter commented 1 year ago

Linking a Reddit comment (chain) about adding more syntax highlighting By u/BitDaniYT, 2 mo. ago

Pretty much anything that syntect supports can be added with literally 1 line of HTML code. Currently the dropdown only has the ones it has because I wanted to keep the dropdown short so you can find the most common syntaxes easily. I think a new command line argument for adding extra options would be a great and easy solution.

webtroter commented 1 year ago

So I tried to simply add Powershell to the dropdown, with what I believe are the correct values. but the syntax is not highlighted correctly. https://github.com/szabodanika/microbin/commit/d5b9deeccd1feeab5662c169e958728826eff785