How can I get rid of the yellow background?

While editing a script I inadvertently clicked something that caused a yellow background for the script and also added comments for various sections. How can I get rid of that background? Thanks.

 Respuesta aceptada

Star Strider
Star Strider el 7 de Mzo. de 2015

34 votos

That’s an Editor ‘section’ indication. Look for a pair of percent signs ‘%%’ together in the first and second columns where the yellow section starts. Delete one of the percent signs, and all will be back to normal.

3 comentarios

David Koenig
David Koenig el 7 de Mzo. de 2015
Thanks!
Star Strider
Star Strider el 7 de Mzo. de 2015
My pleasure!
Image Analyst
Image Analyst el 7 de Mzo. de 2015
David - you can also thank him by "Accepting" and "Voting" for his answer.

Iniciar sesión para comentar.

Más respuestas (3)

Kenny
Kenny el 4 de Ag. de 2018
Editada: Kenny el 4 de Ag. de 2018

18 votos

Just for asking something extra to this ..... can we disable this feature altogether? An option for turning it off?I'm using matlab 2018 right now. Thanks!!
[Update : found it ... preferences -> colors -> programming tools, where you can turn off higlights etc. One would expect that turning off the highlight feature would be under Editor options ...... but no, it's hidden in the color preferences.]

4 comentarios

The best solution!! Jeez, that highlighting was ANNOYING!!!
P Lepage
P Lepage el 19 de Oct. de 2020
thanks, that's the textbox I was looking for
Natalie Perlin
Natalie Perlin el 13 de Sept. de 2021
So helpful, thank you!!
Ricardo
Ricardo el 20 de Mzo. de 2023
Thanks! This is what I was looking for.

Iniciar sesión para comentar.

Claudio Acuna
Claudio Acuna el 15 de Nov. de 2020

0 votos

Yes check
%%
en remove it or just leave one %
it is very anoying the yellow color, not relevant, but distracting
BR
Claudio

Categorías

Más información sobre Environment and Settings en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 7 de Mzo. de 2015

Comentada:

el 20 de Mzo. de 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by