lineNumbers.pad parameter

Use the lineNumbers.pad parameter to set or query the leading padding character used when displaying line numbers in the prefix area.

 

Availability

query command
set command
current parameter
default parameter
install parameter

 

Scope

lineNumbers.pad is scoped to the current view.
current.lineNumbers.pad is scoped to the current view.
default.lineNumbers.pad is globally scoped.
install.lineNumbers.pad is globally scoped.

 

Syntax

query lineNumbers.pad
set lineNumbers.pad [ default | c ]
query current.lineNumbers.pad
query default.lineNumbers.pad
set default.lineNumbers.pad [ install | c ]
query install.lineNumbers.pad 

 

Parameters

default If you specify the default parameter for the set lineNumbers.pad command, the current view will use the value of default.lineNumbers.pad when displaying line numbers in the prefix area.
c If you specify the c parameter for the set lineNumbers.pad command, the current view will use c as the leading padding character for displaying line numbers in the prefix area.  If you specify the c parameter for the set default.lineNumbers.pad command, all document views that have the lineNumbers.pad set to default will use c as the padding character for displaying line numbers in the prefix area.

If the c parameter is not a single character, it is interpreted as a decimal, hexadecimal, or octal integer, in one of the formats exemplified here:  110, 0x6E, 0X6e, #6e, 0156.  The pad character will be the character represented by the value specified.
install If you specify the install parameter for the set default.lineNumbers.pad command, all views with lineNumbers.pad set to default will use the value of install.lineNumbers.pad to determine the leading padding character for displaying line numbers in the prefix area.

 

Description

If you do not specify any of the parameters for the set lineNumbers.pad command, default is assumed.  If you do not specify any of the parameters for the set default.lineNumbers.pad command, install is assumed.

The query current.lineNumbers.pad command returns the leading padding character used when displaying line numbers in the prefix area in the current view.

 

Examples

query lineNumbers.pad
set lineNumbers.pad 0x2e
query current.lineNumbers.pad
query default.lineNumbers.pad
set default.lineNumbers.pad 0
query install.lineNumbers.pad 

Related reference
query command
set command
current parameter
default parameter
install parameter
lineNumbers.length parameter
prefixArea parameter
prefixAreaText parameter