Help for Microsoft QuickHelp (qh.hlp) (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
:p
                                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
.paste paste-name
    .
    .
    .
.end
 
The .paste command specifies the beginning of a group of lines that can be
pasted from the database to a file. The lines between a .paste command and a
.end command constitute the paste group. The name specified by a .paste
command will appear in the QuickHelp Paste menu. A maximum of 18 paste
groups can be specified in each topic.
 
Example
 
In the following example, QuickHelp will place the paste name "C Example"
into the Paste menu. If the user selects this name, then all lines between
the .paste and the .end will be pasted.
 
    .context strlen
    .paste C Example
    #include <string.h>
    #include <stdio.h>
 
    char *string = "some space";
    size_t result;
 
    main()
    {
        result = strlen(string);
        printf("The size of the string is %d", result);
    }
    .end
 
.category, .context, .freeze, .list, .popup, .ref, .topic