styleAttributes parameter

The styleAttributes parameter may be used to query or set the style attributes for a style character or for one of the built-in styles.  Style characters are normally set by the parser.  The parser uses style characters to color the data being displayed in programming language source documents.

Availability

query command
set command

Scope

The current view.

Syntax

query styleAttributes.{ styleCharacter
                      | addedLines
                      | background
                      | default
                      | deletedLines
                      | emphasis
                      | expandHide
                      | formatLine
                      | messageLine
                      | prefixArea
                      | prefixText
                      | selection
                      | sequenceNumber
                      | sequenceText
                      | statusLine
                      }
set styleAttributes.{ styleCharacter
                    | addedLines
                    | background
                    | default
                    | deletedLines
                    | emphasis
                    | expandHide
                    | formatLine
                    | messageLine
                    | prefixArea
                    | prefixText
                    | selection
                    | sequenceNumber
                    | sequenceText
                    | statusLine
                    }
                    [ foregroundRed
                      foregroundGreen
                      foregroundBlue
                      backgroundRed
                      backgroundGreen
                      backgroundBlue
                      [ underline ]
                      [ outline ]
                    ] 

Parameters

styleCharacter The styleCharacter qualifier is used to indicate the style character that you want to query or set.  The style characters are used with the set style command.  Style characters '!' and below are reserved.  The '!' style character is used as the default style character.  New text that has not yet been parsed is displayed with the default style character's attributes.
addedLines Use the addedLines qualifier to indicate the style attributes that should be used to display added lines that are detected by the compare command.
background Use the background qualifier to indicate that you want to query or set the background's style attributes.  The background style is used to draw any part of the text area that does not display text elements.
default Use the default qualifier to indicate the style attributes that should be used when no other style attributes are indicated.  This may happen if the editor encounters a style character that is  not defined.  This style will also be used if no style characters are set for the element text.
deletedLines Use the deletedLines qualifier to indicate the style attributes that should be used to display deleted lines that are detected by the compare command.
emphasis Use the emphasis qualifier to indicate the style attributes that should be used to emphasize text.  Text is normally emphasized by the findText command or locate command when a search is successful.
expandHide Use the expandHide qualifier to indicate the style attributes that should be used to draw the expand/hide area.  See the expandHide parameter.
formatLine Use the formatLine qualifier to indicate the style attributes that should be used to draw the format line.
messageLine Use the messageLine qualifier to indicate the style attributes that should be used to display the message line.
prefixArea Use the prefixArea qualifier to indicate the style attributes that should be used to display the prefix area.  See the prefixArea parameter.
prefixText Use the prefixText qualifier to indicate the style attributes that should be used to display text that is typed into the prefix area.
selection Use the selection qualifier to indicate the style attributes that should be used to display the text selection.
sequenceNumber Use the sequenceNumber qualifier to indicate the style attributes that should be used to display the numeric part of the sequence numbers.
sequenceText Use the sequenceText qualifier to indicate the style attributes that should be used to display the text part of the sequence numbers.
statusLine Use the statusLine qualifier to indicate the style attributes that should be used to display the status line.
foregroundRed Use the foregroundRed parameter to indicate the red component of the foreground color.  foregroundRed must be an integer between 0 and 255.
foregroundGreen Use the foregroundGreen parameter to indicate the green component of the foreground color.  foregroundGreen must be an integer between 0 and 255.
foregroundBlue Use the foregroundBlue parameter to indicate the blue component of the foreground color.  foregroundBlue must be an integer between 0 and 255.
backgroundRed Use the backgroundRed parameter to indicate the red component of the background color.  backgroundRed must be an integer between 0 and 255.
backgroundGreen Use the backgroundGreen parameter to indicate the green component of the background color.  backgroundGreen must be an integer between 0 and 255.
backgroundBlue Use the backgroundBlue parameter to indicate the blue component of the background color.  backgroundBlue must be an integer between 0 and 255.
underline Use the optional underline parameter to indicate that the text should be underlined.
outline Use the optional outline parameter to indicate that the text should be outlined.

Description

If you specify set styleAttributes.styleCharacter with no parameters, the specified style character's style attributes will be cleared.  If you specify one of the built-in styles with no parameters, the style attributes of the built-in style will be restored to the default setting.

Examples

query styleAttributes.c
set styleAttributes.c 0 128 128 255 255 255
query styleAttributes.messageLine 


query command
set command
style parameter
expandHide parameter
prefixArea parameter
style parameter
updateProfile.paletteAttributes parameter