2021-09-06 12:23 AM
2021-09-06 01:01 AM
Welcome, @Per, to the community!
very good idea, but STMicroelectronics uses the GUI Eclipse unchanged and only adds its own program extensions. The color scheme is determined by the GUI and can currently only be set for multi-line comments and single-line comments (Window > Preferences > Editor > Syntax Coloring).
If you want to find these USER CODE code blocks again, there is a little help by defining task tags (Window > Preferences > Task Tags). Adding USER CODE END there with any priority will show them in the Tasks view (Window > Show View > Tasks). After a double click, you'll get the end of this block in the editor and directly above it your own code that may have been inserted.
If the problem is resolved, please mark this topic as answered by selecting Select as best. This will help other users find that answer faster.
Good luck!
/Peter