HTML Tags support in MATLAB
22 次查看(过去 30 天)
显示 更早的评论
Hey,
I was just wondering why HTML tags work in MATLAB and how good of a practice is it to use them.
For example, while using fprintf function I can just use <b>text</b> or <i>text</i> or even <strong>text</strong> to display out bold, italicized and bold texts respectively on the command window.
Example:
fprintf(<strong>Hello World</strong>);
Output: Hello World
So, what is the underlying principle for this?
Also is there any other way I can print out bold or italics text in MATLAB using fprintf?
0 个评论
回答(1 个)
Walter Roberson
2021-3-8
See the File Exchange contribution cprintf() https://www.mathworks.com/matlabcentral/fileexchange/24093-cprintf-display-formatted-colored-text-in-the-command-wind
2 个评论
Rik
2021-3-8
I would expect the command window parses most basic HTML tags. That is also how documentation links in errors and warnings work.
Did you search the documentation for something related?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Report Generator 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!