Section color no longer an option in 2021b?
조회 수: 212(최근 30일)
Prior to the changeover (versions 2021a and older), the current section in the Editor would be highlighted a yellowish color. Now with 2021b, there is a blue bar on the left to indicate the current section. I'd like the yellow-highlighted color back. Looking at the forum, there was an option in Preferences -> Colors -> Programming Tools that would allow the user to customize this section color, but unfortunately this has been removed. Or am I not seeing it somewhere?
Arthi Sathyamurthi 2021년 10월 26일
Starting in R2021b, sections in the Editor have an improve appearance. The new section is highlighted with a blue border, indicating that it is selected. Hence, "section display option" to highlight section is not available in R2021b.
For more information refer to R2021b Release Notes (Environment --> Editor Sections).
Marcel 2021년 11월 10일
@Arthi Sathyamurthi why does the Blue bar on the left side sometimes not appear?
It seems that the section bar is not available, if a .m file is a function instead of a script?
Personally I agree with @Cory Dinkle, that "improved appearance" is very subjetive and I feel a big downside on the new layout...
Andrew Marshall 2022년 1월 28일
Yes. I would also like the yellow-ish highlighted cell mode to return. I don't like the current default.
Marcel 2022년 1월 28일
I like to address another problem of a non-highlighted section @MathWorks Support Team:
It is not possible to see where the line start, where is character 1. The current editor looks like there are 3-4 free space before the first letter, so the entire line looks intended, even if it's not. With the (yellow) highlight in the picutre below from 2021a it was clearly visibly where the first character of this line is.
Zhaoran Zhang 2022년 2월 18일
Yeah, I also like the yellow backgroud much better. I think the yellow helps me to focus on the current section better and give me more peace. I've been working with the same yellow background for years, feeling sad to not have it anymore.
Martin Brand 2022년 5월 9일
I would also greatly appreciate to have the yellow highlighting back, please!
Shyam Kishor Sharma 2022년 4월 20일
Yes, Recently I updated my version from 2018 to 2022a , and there is no option for yellow color in section after %% sign .I used to that features .Please bring back the previous display settings.
Naor 2022년 5월 4일
+1 that request, and also requesting the option to remove the horizontal line between sections.
Sections are valuable to me in functions (as opposed to scripts or live scripts) as a way to visually organize code, perhaps like paragraphs or chapters in prose. A subtle visuale distinction between sections is very helpful, while a strong visual distinction is more distracting than helpful.
Ian Townend 2022년 3월 22일
I have just migrated from 2020b to 2022a. All I can see on my screen to denote the current section are two horizontal blue lines. The side bar blue strip is so thin it is almost invisible. I will try adapting but may well revert to using 2020b for editing. As already stated there is a high degree of subjectivity in the statement that this change has improved the appearane. For me the ability to clearly identify the current section with a pale colored background was one of the strengths of the Matlab editor.
Liang Hu 2022년 5월 6일
Please give this option back I am so used to it. Have to downgrade to 2021a after upgrading to 2022a. It is just a waste of time.
Michael Drew 2022년 6월 17일 6:40
+1 vote from me. This is a horrible "improvement"! Please bring back the old formatting as an option.