Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Syntax Highlighting Problem
Syntax Highlighting Problem [message #1856907] Sun, 08 January 2023 22:35 Go to next message
ihave question is currently offline ihave questionFriend
Messages: 32
Registered: November 2014
Member
Settings in [Preferences > Java > Editor > Syntax Coloring] are not saved when Eclipse Dark theme is enabled.

To reproduce:


    Install Platform Runtime Library (eclipse-platform-4.26-win32-x86_64.zip)

    Install Java Development Tools

    Enable Dark theme

    Customize Java Syntax Coloring

    Exit and relaunch Eclipse

    Java Syntax Coloring preferences are now back to default (honestly, an eyesore)


Am i doing something wrong? I basically wasted this evening trying to make the settings stay. Even manually editing workspace\.metadata\.plugins\org.eclipse.core.runtime.settings\org.eclipse.jdt.ui.prefs does not work because of CSS override.
Re: Syntax Highlighting Problem [message #1856910 is a reply to message #1856907] Mon, 09 January 2023 07:22 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
Maybe you recorded the preferences settings in the past and they are being re-applied each time you start any workspace? Some details are here:

https://github.com/eclipse-platform/.github/issues/81#issuecomment-1361342695

Of course if it really is the CSS ignoring the preferences that sounds like a bug to me. But even then, you could consider contributing the improvements/fixes for the CSS:

https://github.com/eclipse-platform/.github/blob/main/CONTRIBUTING.md


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Syntax Highlighting Problem [message #1856915 is a reply to message #1856910] Mon, 09 January 2023 08:31 Go to previous messageGo to next message
ihave question is currently offline ihave questionFriend
Messages: 32
Registered: November 2014
Member
I reinstalled Eclipse multiple times with different versions (2022-12 and 2020-06) with multiple JREs (19.0.1 - 1.8)

I was afraid the workspace directory was left in a dirty state so i deleted the folder everytime before making any new attempt.
Never managed to disable Syntax coloring in Java Editor Preferences.

If you disable Themes in General > Appearance, disabling Syntax coloring works correctly every time.

As an update:
Changes in colors in [Preferences > Java > Editor > Syntax Coloring] work correctly. Changes in Enabled/Disabled state won't stick and are reset when you restart Eclipse when Dark Theme (or themes in general) in enabled

[Updated on: Mon, 09 January 2023 08:33]

Report message to a moderator

Re: Syntax Highlighting Problem [message #1856917 is a reply to message #1856915] Mon, 09 January 2023 10:56 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
And you have confirmed that this isn't happening because you previously recorded preferences?

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Exported jar files not working
Next Topic:Maps from local machine to display with GeoMap
Goto Forum:
  


Current Time: Mon Jan 13 07:42:38 GMT 2025

Powered by FUDForum. Page generated in 0.03427 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top