2025-02-27 3:31 PM
Hello,
Is it possible to highlight USER CODE from CubeMX code generation? For example, highlight everything between these types of comments:
/* USER CODE BEGIN PM */
/* USER CODE END PM */
In a similar way that #ifdef / #endif blocks are highlighted?
If not currently available, can it be added the the CubeMX CubeIDE wishlist?
thanks
Matthew
2025-02-27 4:08 PM - edited 2025-02-27 4:10 PM
This can be done as Eclipse editor add-on. Eclipse is opensource project, a lot of add-ons are available in its "marketplace" (Help-> Eclipse marketplace). Anyone can make add-ons or sponsor development of whatever they need or want.
Same with VS Code - a lot of add-ons exist for it.
2025-02-28 3:14 AM
Indeed.
But this would be a useful add-on for ST to provide - as these sections are their thing, and key to properly using their auto-generated code.
It is the cause of quite a few problems seen here ...