
  Colorization of program source is controlled by colorization
  control files which can be bound to the file profile.

  To bind a colorization control file to a file profile, invoke
  option OPTIONS, sub-option FILE PROFILES. In the "File Type"
  dialog select the file type you want to colorize from the file
  type list. In the "File Profile" dialog set field "Color type" to
  the desired color type (e.g. CBL).

  Use the following procedure when creating or modifying a
  colorization control file for normal program source:

  *  For CREATE, invoke sub-option WORD.

  *  Specify the NAME to be associated with this colorization
     specification.

  *  Set delimiters for the programming language in question (e.g.
     semicolon, period, etc). (NOTE: Alternatively, delimiters may
     be specified as "words", see below.)

  *  Specify whether the program source "words" are case sensitive.

     If TRUE is specified, program source "words" must be an exact
     match before colorization takes place (e.g. IF=IF, if!=IF).

     If FALSE is specified, program source "words" may be upper,
     lower, or mixed case (e.g. if=IF, IF=IF, If=IF).

  *  For each word set (up to 8), specify foreground (FG) and
     background (BG) color numbers, then click on the EDIT button to
     add or delete words.

  *  In the WORD LIST dialog, if you want to create a new word or
     words, click on NEW.

  *  In the COLOR WORDS dialog, enter one or more reserved words
     from the programming language you are using.  Click on OK.

  *  In the WORD LIST dialog, if you want to delete a word, enter
     the D line command or click on the entry with the right mouse
     button then click on DELETE.

  *  Click on CLOSE or press F3 to exit the color dialogs.

  You can also colorize the fields of a flat file database and have
  field titles maintained above the edit client window.

  To colorize the fields of a flat file database use the following
  procedure:

  *  For CREATE, invoke sub-option FIELD.

  *  Specify the NAME to be associated with this colorization
     specification.

  *  For each field (up to 8), specify a text header to be displayed
     at the top of the edit display.

  *  For each field (up to 8), specify FROM and TO column numbers
     for the field.

  *  For each field (up to 8), specify foreground (FG) and
     background (BG) colors.

  *  Click on CLOSE  or press F3 to exit the color dialogs.

  The above procedures should provide the desired colorization. If
  the above procedures are unclear or you are unable to get the
  desired results, further discussion below describes the
  colorization process in greater detail.

  When using SPF/SE to write and maintain programs it is helpful to
  colorize reserved words and special characters in the source of
  the programming language being used.  This helps in understanding
  the program providing for more efficient authoring.

  SPF/SE supports a simple generalized method of specifying program
  source colorization which can be applied to the reserved words of
  any programming language.  Some languages that can be easily
  colorized with SPF/SE are COBOL, FORTRAN, PL/1, ADA, "C", "C++",
  JAVA, PASCAL, MODULA, and other similar languages.

  SPF/SE also supports colorization of fixed fields in data records.

  Colorization specifications are bound to file type for easy
  discrimination between program source and data files.

  There are two basic components to colorization:

  *  The color palette consisting of sixteen colors.  To set the
     color palette, select the COLORS item of the OPTIONS menu.
     (You can also use the primary command COLORS.)

  *  A colorization file which binds specific foreground and
     background colors to program source language elements or data
     record fields.

  When a file is colorized by field, each field name is displayed in
  a floating header above the columns of the field in Edit or
  Browse.

  Colorization files are maintained in the
  "\spf-install-directory\profiles" (or wherever you installed
  SPF/SE) sub-directory with name "color-type.CLR".  Color type
  normally corresponds to the file type of the subject program
  source files.  For example, CBL.CLR is the colorization file for
  *.CBL type COBOL source files.

  Each colorization file consists of records. Each record tells
  SPF/SE how to colorize a specific element of the language in
  question.

  SPF/SE supplies default colorization files for a number of
  languages. Feel free to alter them to suit your needs.

  There may be a case where you want to directly edit colorization
  files.  For example, it could be advantageous to create a skeletal

  colorization file using the dialogs and then edit it directly to
  bulk enter all the reserved words.  The specifications for the
  colorization control records follow.  They are subject to change
  without notice.

  COMMENT

  Any line beginning with double forward slash (//) is treated as a
  comment. Do not put comments on the end of control records.

  COLOR_DELIMITERS c [c c c]

  Specifies one or more delimiter characters separated by blank.
  Normally various punctuation characters are specified as
  delimiters. Any character specified as a delimiter may NOT be
  specified in a color word (see COLOR_WORD below).

  NOTE: Single character words are implicitly delimiters.

  COLOR_BLANK_IS_DELIMITER  YES | NO

  Specifies whether the blank character is a delimiter or not. This
  option can be used to turn OFF the blank delimiter when it is
  causing ambiguity between words in text and program source reserved
  words or markup reserved words. In these cases, you would specify
  NO. Default = YES.

  COLOR_CASE_SENSE  YES | NO

  Specifies globally whether color words are to be compared with
  case sensitivity. If YES is specified, COLOR_WORDs and the
  colorized text must match exactly. If NO is specified, the
  colorized text can be in any case as long as the letters are the
  same. If not specified, the default is NO. Example of case sense
  treatment:

  For example, if YES is specified:

  abc = abc, ABC = ABC, ABC != abc, Abc != abc.

  For example, if NO is specified:

  abc = abc, ABC = ABC, ABC = abc,  Abc = abc.

  COLOR_LITERALS fg,bg

  Specifies the foreground color and background color for literals
  (quoted strings) separated by commas. When a literal is found in
  any column, the specified colors are applied to all characters
  within the quoted string.

  When entering text it is a common practice to use the single quote
  character (x27) in place of the apostrophe (x60). To avoid
  ambiguous colorization of possessives and contractions, you must
  not use single quote in place of the apostrophe character. For
  example,

    Incorrect:  don't, Cheryl's
    Correct:    don`t, Cheryl`s

  Quoted string colorization does not span lines.

  Foreground and background colors are specified as integer numbers
  between 0 and 15 corresponding to the sixteen colors in the
  current color palette.  For example, "0,3" corresponds to the
  default text colors: black text on a white background.

  COLOR_TO_END fg,bg,word

  Specifies the foreground color, background color, and start-word
  separated by commas. When the start-word is found in any column,

  the specified colors are applied to it and all characters which
  follow to the end of the line.

  NOTE: normally used to highlight program source comments.

  COLOR_COL_TO_END fg,bg,word,column

  Specifies the foreground color, background color, start-word, and
  column separated by commas. When the start-word is found in the
  specified column, the specified colors are applied to it and all
  characters which follow to the end of the line.

  NOTE: normally used to highlight program source comments.

  COLOR_BEGEND fg,bg,start-word,end-word

  Specifies the foreground color, background color, start-word, and
  end-word separated by commas. If a start-word is found in any
  column, the specified colors are applied to it and all characters
  which follow up to and including the corresponding end-word.

  This form of colorization does not span lines.

  NOTE: normally used to highlight program source comments.

  COLOR_INTEGERS fg,bg

  The colorization algorithm parses "words" based on specified word
  delimiters. A "word" is any text that falls between delimiters. Once
  a "word" is parsed, it can be considered for colorization. This
  field comes into play for "words" that are comprised of all integer
  digits (all characters from set "0..9"). The specified colors are
  applied to the integer word.

  COLOR_WORD_SET fg,bg

  Specifies the foreground color and background color for the
  COLOR_WORDs that follow separated by commas.

  COLOR_WORD c... [c... c... c...]

  Specifies one or more words separated by blank. Words may be from
  one to 16 characters long. If a color word is found in the source
  file, the current COLOR_WORD_SET colors are applied to it.

  Single character "words" from set "A" to "Z"(alpha) require
  delimiters.

  Single character "words" except "A" to "Z"(non-alpha) do not
  require delimiters.

  A colorization "word" may not consist of all digits(0..9).

  Duplicate "word" entries are not allowed.

  COLOR_FIELD nn,nn,nn,nn,name

  Specifies a color field.  Each color field is comprised of a
  foreground color, background color, start column, end column, and
  name.  The end column number must be equal or greater than start
  column number.  Color fields must be specified in ascending order
  and may not overlap.

  Color fields are mutually exclusive to word sets.  That is, your
  colorization file can describe either word or field colorization
  but not both.  If word sets are specified in the same color map
  file as color fields, they are ignored.

  SPECIAL CHARACTERS

  In some cases a character which you want to specify is not
  typeable or does not display on your computer system. In this
  case, you can specify the character using decimal notation in the
  form "\d..." where "..." is an integer number in the range 1..255.
  Example,

  COLOR_DELIMITER \d...

  Some special character values are reserved for system use and may
  not be specified:

  0  (Null)
  9  (Tab)
  10 (Line feed)
  13 (Carriage Return)
  26 (EOF)

