File Exchange

image thumbnail

hprintf: disable hypertext highlighting

version (2.24 KB) by Tim Davis
hprintf is just like fprintf, except that hypertext links are not highlighted in the command window


Updated 27 Aug 2007

View License

HPRINTF is just like fprintf except that hypertext links are not highlighted in the Command Window. It does this by replacing the string href= with HREF=. If the file descriptor is not present as the first argument, the output defaults to the Command Window, just like fprintf.

Note that "help hprintf" can't display the examples properly, because they themselves are highlighted in the command window. Instead, type "hprintf" with no inputs to see them, or "edit hprintf".

See Kristin's blog

Cite As

Tim Davis (2019). hprintf: disable hypertext highlighting (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Kelly Kearney

Very nice little function, exactly what I was looking for in my comments on Kristin's blog. Thanks.


Last update regressed by accident to prior version. Reposting.

Added an example provided by 'us'.

Added additional features to more precisely mimic "fprintf" (output arguments, check of # of inputs). Added more help. Added examples. And thanks to 'us' for suggestions.

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux