Code covered by the BSD License  

Highlights from
hprintf: disable hypertext highlighting

5.0

5.0 | 1 rating Rate this file 0 Downloads (last 30 days) File Size: 2.24 KB File ID: #16068

hprintf: disable hypertext highlighting

by Tim Davis

 

23 Aug 2007 (Updated 27 Aug 2007)

hprintf is just like fprintf, except that hypertext links are not highlighted in the command window

| Watch this File

File Information
Description

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 http://blogs.mathworks.com/desktop/2007/07/09

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
23 Aug 2007 Kelly Kearney

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

Please login to add a comment or rating.
Updates
23 Aug 2007

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.

24 Aug 2007

Added an example provided by 'us'.

27 Aug 2007

Last update regressed by accident to prior version. Reposting.

Tag Activity for this File
Tag Applied By Date/Time
hypertext Tim Davis 22 Oct 2008 09:24:09
highlight Tim Davis 22 Oct 2008 09:24:09
highlighted Tim Davis 22 Oct 2008 09:24:09
window Tim Davis 22 Oct 2008 09:24:09
utilities Tim Davis 22 Oct 2008 09:24:09

Contact us at files@mathworks.com