how to highlight some lines in the mfile?
18 ビュー (過去 30 日間)
古いコメントを表示
Is there any way to highlight lines or make some lines in different colors ?
0 件のコメント
採用された回答
Walter Roberson
2015 年 5 月 16 日
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.
0 件のコメント
その他の回答 (1 件)
Armin Mashhadi
2019 年 1 月 24 日
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 件のコメント
Mohamed Elshami
2024 年 2 月 13 日
編集済み: Mohamed Elshami
2024 年 2 月 13 日
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.
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!