Hi, can anyone tell me how I can make HAL functions highlighted in bold purple?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-07 8:49 PM
I checked syntax coloring and it will highlight external SDK function in bold purple. But when I created my own project, these HAL functions are not highlighted in bold purple as shown in ST example projects. You may see the difference below.
Many thanks if detailed steps are provided. I searched and found similar questions, but the answer is quite general regarding syntax coloring but didn't show how to make HAL functions in my own project highlighted.
Best,
Leon
Solved! Go to Solution.
- Labels:
-
STM32CubeIDE
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-08 3:32 AM
Hi Leon,
Your observation is correct. Below is a screenshot that explains the work-around:
Notice that you are able to customize the color and style syntaxing for different "elements".
There is a difference between Functions and External SDK calls elements...
- When you create a new projects: All code (HAL included) is copied into the project. Making a call to an HAL function means the syntax coloring will rely on the Functions element.
- When you import a project: Most of the code (HAL for example) is linked into the project. HAL is thereby treated as an External SDK calls element.
Root-cause of the difference: Project structure difference in examples vs created projects.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-08 3:32 AM
Hi Leon,
Your observation is correct. Below is a screenshot that explains the work-around:
Notice that you are able to customize the color and style syntaxing for different "elements".
There is a difference between Functions and External SDK calls elements...
- When you create a new projects: All code (HAL included) is copied into the project. Making a call to an HAL function means the syntax coloring will rely on the Functions element.
- When you import a project: Most of the code (HAL for example) is linked into the project. HAL is thereby treated as an External SDK calls element.
Root-cause of the difference: Project structure difference in examples vs created projects.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-08 5:31 PM
Thanks a lot for the detailed explanation, Mattias. Finally can get the thing off my head :D
