how to highlight some lines in the mfile?

27 vues (au cours des 30 derniers jours)
Lily
Lily le 16 Mai 2015
Is there any way to highlight lines or make some lines in different colors ?

Réponse acceptée

Walter Roberson
Walter Roberson le 16 Mai 2015
No. But possibly you might be interested in using the publish feature, especially if you included some HTML markup that inserted elements in a different color. Or perhaps just using "*TEXT*" to highlight the given text in the published document.

Plus de réponses (1)

Armin Mashhadi
Armin Mashhadi le 24 Jan 2019
Of course there is , this way you can change color of lines:
plot(x,y,'sign');
color sign
blue b
red r
black k
...
  1 commentaire
Mohamed Elshami
Mohamed Elshami le 13 Fév 2024
Modifié(e) : Mohamed Elshami le 13 Fév 2024
I think he is talking about coding lines not the line of a plot. He may want to distinct some important code in his m-file.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by