Is function / variable highlighting possible in MATLAB?

12 ビュー (過去 30 日間)
Liron Stettiner
Liron Stettiner 2019 年 8 月 5 日
編集済み: Rik 2019 年 8 月 5 日
Hello everyone,
I am currently using MATLAB R2017b and wanted to know whether or not MATLAB has already / attends to add a highlighting or coloring feature for functions and variables, similar to those existing in other IDEs such as Spyder (for instance, in the attached picture, the classes and functions are in a different color than the rest of the script)?
Thanks!
  1 件のコメント
Rik
Rik 2019 年 8 月 5 日
編集済み: Rik 2019 年 8 月 5 日
Matlab is not very strict about variables that overlap with function names (although it is getting more strict). That means that it will take a lot of parsing to find out if a name is a function or a variable. And if variables are poofed into the workspace with load it is an impossible task without actually running the function in the background.
That large amount of freedom makes it difficult to have more coloring features than just marking reserved keywords and obvious data types (code/char/comment).

サインインしてコメントする。

回答 (1 件)

Neuropragmatist
Neuropragmatist 2019 年 8 月 5 日
I don't know about colouring functions but the rest of that colour scheme can be replicated using stuff like this:

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by