Hyper-Help parses a plain-text document for special markups (based on HTML) which allow it to format the text properly, and allow the user to roam through a series of documents. In fact, the operation of HTHELP is very similar to Mosaic and Netscape.
This file you are reading is written using HTHELP's markup language. The file is in uitools/hthelp.html, if you wish to look at the source-text.
Except for < characters, HTHELP will work on plain ascii files without any of HTHELP's formatting codes. When used in this way it provides a nice UI to display and cache long text files.
To use HTHELP from within an m-file, or anywhere, all that needs to be done is to pass it the name of the HTML file to load.
Calling HTHELP('prev', 0) reverts to the previous document. If the user
has dismissed the window by pressing the "Done" button, this just makes the
figure visible with the last document still loaded. If the figure is
visible, then it is just as if the user has pressed the PREVIOUS button.
(It stores up to the last 20 documents you have viewed as a stack.)
Calling HTHELP with no arguments loads up the main help page of MATLAB.
Hyper-links are automatically built to all of the MATLAB main topics and
toolboxes.
Calling HTHELP('cont', 'filename') loads up the specified file as a MATLAB
Content.m file. This can be useful in displaying the contents of any
MATLAB directory. Hyper-links are automatically built to the m-files
described in the Contents.m file 'filename'. The Contents.m file must be
written in the proper MATLAB Contents.m file format.
Calling HTHELP('func', 'mfilename') loads up the specified file as a MATLAB
m-file. Hyper-links are automatically created to other related m-files.
These related function names are found after the 'See also' in the m-file
help text.
Try >>hthelp with no arguments at the MATLAB prompt to see how the 'cont'
and the 'func' commands can be used to generate hyper-help across all of
MATLAB.
Markups can appear anywhere within a line. The only restriction comes
from the way markers are stored internally: they are attached as tags
to the next text object created. For this reason, multiple markers
without text in between do not all work.
1. Filename codes
Formatting HTHELP Files
The first time HTHELP loads a document, it parses it for markups which are
enclosed between a greater than and a less than symbol. It also parsed for
escape sequences enclosed between the & and ; symbols. The markups
used in HTHELP are an extended subset of HTML, the markup language used by
Mosaic, Netscape and the World-Wide Web. People familiar with HTML should
have no trouble with these commands. Here are the recognized markups:This is a level zero heading
This is a level one heading
This is a level two heading
This is a level three heading
Link-codes come in three styles. The basic form is:
[filename][#marker]
Specifically, the variations are:
2. Full codes
3. Relative codes
Note that marker names can contain whitespace.
Click here for an example of HTHELP source code and how
it looks.
<TITLE>Sample Document</TITLE>
<A NAME="Sample">This is a sample piece of HTHELP code.
Click <A HREF="#Example">here</A> to view the source code again.
Click here to see how this would look.