Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide syntax highlighting in the compare editor #684 #1311

Merged
merged 1 commit into from
Jul 19, 2024

Conversation

oleosterhagen
Copy link
Contributor

Fixes #684

This enables syntax highlighting for build scripts (Groovy and Kotlin DSL) in these areas:

  • Compare editor
  • Dialog: Restore from Local History (1)
  • Opening an old file revision from history (2)

(1) For build scripts in Kotlin DSL (Generic Editor) also this fix already released with Eclipse 2024-06 is needed: eclipse-platform/eclipse.platform.ui#1880. In older Eclipse versions a NullPointerException will be thrown.

(2) For build scripts in Kotlin DSL (Generic Editor) also this fix already released with Eclipse 2024-06 is needed: eclipse-platform/eclipse.platform.ui#1873. In older Eclipse versions the content type determination will not work and the file is opened without syntax highlighting.

This enables syntax highlighting for build scripts (Groovy and Kotlin
DSL) in these areas:

  * Compare editor
  * Dialog: Restore from Local History
  * Opening an old file revision from history
@donat
Copy link
Contributor

donat commented Jul 19, 2024

I've tested and reviewed your changes. LGTM, merging.

@donat donat modified the milestone: 3.1.10 Jul 19, 2024
@donat donat merged commit 9ba95e9 into eclipse:master Jul 19, 2024
2 checks passed
@donat donat added this to the 3.1.10 milestone Aug 2, 2024
@oleosterhagen oleosterhagen deleted the issue-684 branch August 3, 2024 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Syntax highlighting in Text compare view for build.gradle files?
2 participants