eclipse-egit / egit

EGit, the git integration of Eclipse IDE
https://www.eclipse.org/egit/
Eclipse Public License 2.0
13 stars 6 forks source link

Integrate syntax highlighting in egit's compare editor #41

Closed systemoperator closed 1 week ago

systemoperator commented 1 week ago

Description

It would be great if there was syntax highlighting integrated in egit's compare editor (diff viewer) for various programming languages.

Eclipse recently announced a new, versatile syntax highlighting functionality for more than 60 languages with TextMate and it also works in the compare editor, which should be the way to go:

Motivation

Other diff-viewers and git UIs offer that. It makes the differences easier to read and merge.

Alternatives considered

No response

Additional context

No response

iloveeclipse commented 1 week ago

Actually that is already done in 4.32, see https://eclipse.dev/eclipse/news/4.32/platform.php#generic_editor_in_diff

All what you need is Textmate + language pack installed in 4.32 SDK. The rest is working out of the box for all types supported by Textmate.