Colored parentheses by nested level
显示 更早的评论
Hello all, this is my first posting , so bear with me if I fail to provide all necessary information the first time though.
I was wondering if Matlab has the capability to detect nested parentheses and match levels by color in the Editor and the Command Window. If so, a brief tutorial in enabling such a function would be greatly appreciated. for example:
This:
SQRT((gamma+1)/(gamma-1))*atand(SQRT(((gamma-1)/(gamma+1))*(M^2-1)))-atand(SQRT(M^2-1))
displays as this

This just makes user interaction and identification of different layers a lot more quick and efficient in my opinion. Any help would be appreciated.
5 个评论
Star Strider
2014-4-25
Matching parentheses now have small underlines under them when you mouse over them, and not-matching parentheses trigger a red underline at the end of a statement. I like the idea of color-highlighted matching parentheses, though. Those would be easier to see in the Editor.
José-Luis
2014-4-25
I second that motion. I have lost so much time getting the parentheses wrong.
Star Strider
2014-4-26
There used to be a ‘Request Enhancements’ option, but I couldn’t find it when I looked earlier today. I suggest you submit this thread to: MathWorks Support Team.
Robert
2014-4-26
Star Strider
2014-4-26
I’d include the URL http://www.mathworks.com/matlabcentral/answers/127189-colored-parentheses-by-nested-level in the message.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!