gitbutlerapp / gitbutler

The GitButler version control client, backed by Git, powered by Tauri/Rust/Svelte
https://gitbutler.com
Other
13.2k stars 524 forks source link

Feature request: missing color highlighter for Swift #2684

Open Adamekka opened 8 months ago

Adamekka commented 8 months ago

I use gitbutler as a drop-in replacement for GitHub Desktop, it's amazing so far, but I miss the feature that the previews are colored gitbutler:

image

GitHub Desktop:

image
Adamekka commented 8 months ago

I've looked at the source of this app and you are missing color highlighter for Swift, so I'll rename this issue

krlvi commented 2 months ago

i believe we just need to add the entry here https://github.com/gitbutlerapp/gitbutler/blob/master/apps/desktop/src/lib/utils/codeHighlight.ts

Caleb-T-Owens commented 2 months ago

@ndom91 I believe you've touched this area of the code recently. Would it be possible to add all the syntax hilighters that are available?

ndom91 commented 2 months ago

@ndom91 I believe you've touched this area of the code recently. Would it be possible to add all the syntax hilighters that are available?

Yup I can definitely look into this 👌