how to highlight some lines in the mfile?
Show older comments
Is there any way to highlight lines or make some lines in different colors ?
Accepted Answer
More Answers (1)
Armin Mashhadi
on 24 Jan 2019
0 votes
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 Comment
Mohamed Elshami
on 13 Feb 2024
Edited: Mohamed Elshami
on 13 Feb 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.
Categories
Find more on File Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!