sourcegit-scm / sourcegit

Windows/macOS/Linux GUI client for GIT users
MIT License
1.46k stars 147 forks source link

[Feature] Syntax highlighting for TOML files #365

Closed fgimian closed 3 months ago

fgimian commented 3 months ago

Hey there, amazing job on this application!

I noticed that TOML files (which are quite prominent in Rust and Python projects) don't have syntax highlighting. Any chance of adding support for them please?

Thanks Fotis

gadfly3173 commented 3 months ago

I think this need to add configuration from https://github.com/textmate/toml.tmbundle/blob/master/Syntaxes/TOML.tmLanguage into https://github.com/danipen/TextMateSharp .

aikawayataro commented 3 months ago

There also is https://github.com/tamasfe/taplo/blob/master/editors/vscode/toml.tmLanguage.json that is fresher and in a supported JSON format

love-linger commented 3 months ago

Here's how to add unsupported syntax highlighting in this program.