Variable highlighting isn't working
古いコメントを表示
I can't seem to get variables to be highlighted in the editor. If I understand correctly, this should be controlled by the checkbox in: Preferences > Colors > Programming Tools > Variables and function colors > Variables with shared scope. I've tried all combinations of checking, unchecking, changing the color, restarting Matlab between changes, etc. and nothing works. My function variables remain the same default text color (i.e. black if background is white, white if background is black).
I'm running 2019a on Windows 10.
1 件のコメント
Rik
2019 年 9 月 8 日
So when you click on a variable, that specific variable doesn't change color? Or do you want all variables to change color?
採用された回答
その他の回答 (1 件)
per isakson
2019 年 9 月 8 日
編集済み: per isakson
2019 年 9 月 8 日
1 投票
I guess the problem is with the meaning of "Variables with shared scope". See Check Variable Scope in Editor
The gui you refer to shows this sample (R2018b)

Type the text of this sample in the editor. Aren't the variables hightlighted as in this image?
カテゴリ
ヘルプ センター および File Exchange で Entering Commands についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

