lineNumbers.length parameter

Use the lineNumbers.length parameter to set or query the number of columns used to display line numbers in the prefix area.

 

Availability

query command
set command
current parameter
default parameter
install parameter

 

Scope

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

 

Syntax

query lineNumbers.length
set lineNumbers.length [ default | n ]
query current.lineNumbers.length
query default.lineNumbers.length
set default.lineNumbers.length [ install | n ]
query install.lineNumbers.length 

 

Parameters

default If you specify the default parameter for the set lineNumbers.length command, the current view uses the value of default.lineNumbers.length to display line numbers in the prefix area.
n If you specify the n parameter for the set lineNumbers.length command, the current view will use n columns for displaying line numbers in the prefix area.  If you specify the n parameter for the set default.lineNumbers.length command, all document views that have the lineNumbers.length set to default will use n columns to display line numbers in the prefix area.

n must be an integer value between 1 and 20.
install If you specify the install parameter for the set default.lineNumbers.length command, all views with lineNumbers.length set to default will use the value of install.lineNumbers.length to determine the number of columns to display for line numbers in the prefix area.

 

Description

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

The query current.lineNumbers.length command returns the number of columns used to display line numbers in the prefix area in the current view.

 

Examples

query lineNumbers.length
set lineNumbers.length 4
query current.lineNumbers.length
query default.lineNumbers.length
set default.lineNumbers.length 6
query install.lineNumbers.length 

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