How can i print at app designer on a Text Area box, text with hyperlinks?
16 views (last 30 days)
Show older comments
Hi,
How can i print in Text area box (with app designer), hyperlinks for files that located in local PC?
when im using the sprintf function rom conslue window i can see the print with hypelink, for example:
sprintf('<a href="matlab: winopen(''%s'')">%s</a>\n\n', filepath, CurrentFileName),
but when im trying to print the same inside the text area its printing me the whole string:

How can i print hyperlink inside the text area?
0 Comments
Answers (1)
arushi
on 11 Aug 2024
Hi David,
You can work around this by using a UIFigure component with an HTML component inside it to display hyperlinks using the "sprintf" function -
% Generate the HTML content with hyperlink
htmlContent = sprintf('<a href="matlab: winopen(''%s'')">%s</a>', filepath, CurrentFileName);
Hope this helps.
0 Comments
See Also
Categories
Find more on Develop Apps Using App Designer in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!