HP (Highlighted Phrase)

The HP tag identifies text to be displayed with highlighted emphasis.

Syntax

Read syntax diagramSkip visual syntax diagram
>>-<HP--+----------------+--+---------------------+------------->
        |       .-ET---. |  '-COLOR=-+-WHITE----+-'   
        '-TYPE=-+-CH---+-'           +-RED------+     
                +-CT---+             +-BLUE-----+     
                +-FP---+             +-GREEN----+     
                +-LEF--+             +-PINK-----+     
                +-LI---+             +-YELLOW---+     
                +-NT---+             +-TURQ-----+     
                +-PT---+             '-%varname-'     
                +-SAC--+                              
                +-TEXT-+                              
                +-WASL-+                              
                '-WT---'                              

>--+----------------------+--+----------------------+----------->
   |         .-HIGH-----. |  '-HILITE=-+-USCORE---+-'   
   '-INTENS=-+-LOW------+-'            +-BLINK----+     
             +-NON------+              +-REVERSE--+     
             '-%varname-'              '-%varname-'     

>--+-----------------+--+--------------------------+------------>
   '-INTENSE=varname-'  '-phrase-to-be-highlighted-'   

>--+-------+---------------------------------------------------><
   '-</HP>-'   

Parameters

TYPE= ET | CH | CT | FP | LEF | LI | NT | PT | SAC | TEXT | WASL | WT
This attribute defines the attribute type to be applied to the phrase-to-be-highlighted. Using a CUA attribute causes the text to appear in the associated color.

When TYPE=TEXT, a non-CUA attribute is generated and you can specify the color, intensity, and highlighting with the COLOR, INTENS, and HILITE attributes. These attributes are not valid for CUA types.

COLOR= WHITE | RED | BLUE | GREEN | PINK | YELLOW | TURQ | %varname
This attribute specifies the color of the field. You can define this attribute as a variable name preceded by a percent (%) sign.
INTENS= HIGH | LOW | NON | %varname
This attribute defines the intensity of a field. You can define this attribute as a variable name preceded by a percent (%) sign.
HILITE= USCORE | BLINK | REVERSE | %varname
This attribute specifies the extended highlighting attribute of a field. You can define this attribute as a variable name preceded by a percent (%) sign.
INTENSE=varname
This attribute supplies a variable name that must contain a valid value for the INTENS keyword. The entire phrase is controlled by this value. For example, if the variable contains the value NON, the phrase is not visible.
phrase-to-be-highlighted
This text displays with highlighted emphasis.

Comments

The HP identifies text to be displayed with highlighted emphasis by ISPF. The HP end tag restores normal text.

Restrictions

Processing

None.

Examples

This markup shows the formatted result in Figure 1.
<!DOCTYPE DM SYSTEM(
  <!entity sampvar1 system>
  <!entity sampabc system>)>
&sampvar1;

<PANEL NAME=hp KEYLIST=keylxmp>Library Card Registration
<AB>
&sampabc;
</AB>
<TOPINST> Type in <HP>patron's name</HP> and <HP>card number</HP>
          (if applicable)
<TOPINST> Then select an action bar choice.
<AREA>
    <DTACOL PMTWIDTH=12 ENTWIDTH=25 DESWIDTH=25 SELWIDTH=25>
    <DTAFLD DATAVAR=curdate USAGE=out ENTWIDTH=8>Date
    <DTAFLD DATAVAR=cardno ENTWIDTH=7>Card No.
      <DTAFLDD>(A 7-digit number)
    <DTAFLD DATAVAR=name>Name
      <DTAFLDD>(Last, First, M.I.)
    <DTAFLD DATAVAR=address>Address
     </DTACOL>
  <DIVIDER>
  <REGION DIR=horiz>
  <SELFLD NAME=cardsel PMTWIDTH=30 SELWIDTH=38>Choose
  one of the following
    <CHOICE CHECKVAR=card MATCH=new>New
    <CHOICE CHECKVAR=card MATCH=renew>Renewal
    <CHOICE CHECKVAR=card MATCH=replace>Replacement
  </SELFLD>
  <SELFLD TYPE=multi PMTWIDTH=30 SELWIDTH=25>Check valid branches
    <CHOICE NAME=north HELP=nthhlp CHECKVAR=nth>North Branch
    <CHOICE NAME=south HELP=sthhlp CHECKVAR=sth>South Branch
    <CHOICE NAME=east HELP=esthlp CHECKVAR=est>East Branch
    <CHOICE NAME=west HELP=wsthlp CHECKVAR=wst>West Branch
  </SELFLD>
  </REGION>
</AREA>
<CMDAREA>Enter a command
</PANEL>
Figure 1. HP (Highlighted Phrase)
   File  Search  Help
 --------------------------------------------------------------------------
                         Library Card Registration

 Type in patron's name and card number (if applicable).

 Then select an action bar choice.

 Date . . . :
 Card No. . . _______  (A 7-digit number)
 Name . . . . _________________________  (Last, First, M.I.)
 Address  . . _________________________

 Choose one of the following           Check valid branches
 __  1.  New                           _  North Branch
     2.  Renewal                       _  South Branch
     3.  Replacement                   _  East Branch
                                       _  West Branch

 Enter a command ===> ______________________________________________________
  F1=Help        F2=Split       F3=Exit        F6=KEYSHELP    F9=Swap
 F12=Cancel