How to change the
Show older comments
Hi, i am creating a comment box wich could list all the comments from different functions, So for that i have taken "boxy" as global parameter. But i need to change the editbox comments color based upon "warning" (orange) and "error" (red).
When i try to alter the color for specific line, it automatically alters the color of all the lines. see attachment for better understanding.
Below script for reference purpose not the original script.
My actual need is when i alter the colorstring to "red", the the specific line alone need to change "red" not the every line.


Pushbutton1 ---> comment box
edit1 --> edit box

2 Comments
Rik
on 30 Oct 2020
I don't see why you need a global variable.
To answer your question: I am not aware that it is possible to set the color of specific lines. You could hack it by using an axes object with text objects.
Accepted Answer
More Answers (0)
Categories
Find more on Creating, Deleting, and Querying Graphics Objects 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!