Editor_Numbering

Inserts numbering at the cursor position or vertical selection. You can use this inline function or explicitly send the EE_NUMBERING message.

HRESULT Editor_Numbering( HWND hwnd, LPCWSTR pszFirst, LPCWSTR pszInc, INT64 nMaxLines, UINT nFlags );

Parameters

hwnd

Specifies the window handle of the view or frame of EmEditor.

pszFirst

Specifies an initial value or character to insert at the first line.

pszInc

Specifies an increment in the decimal notation. This is the change in value between the first line and the second line.

nMaxLines

Specifies the number of lines in the decimal notation.

nFlags

You can specify a combination of the following values.

Value

Meaning

NUM_FLAG_CAPITAL_LETTERS

Inserts hexadecimal values in capital letters.

NUM_FLAG_SKIP_EMPTY_LINES

Numbering will continue after empty lines, without numbering the empty lines during vertical selection mode or multiple selection mode.

NUM_FLAG_RESTART_NUM_EMPTY

Numbering will restart from the first value after empty lines during vertical selection mode or multiple selection mode.

NUM_FLAG_RESTART_NUM_DISCONTINUOUS

Numbering will restart from the first value at discontinuous lines during multiple selection mode.

NUM_FLAG_DECIMAL

Inserts numbers in decimal notation.

NUM_FLAG_HEXADECIMAL

Inserts numbers in hexadecimal notation.

NUM_FLAG_OCTAL

Inserts numbers in octal notation.

NUM_FLAG_BINARY

Inserts numbers in binary notation.

NUM_FLAG_OTHER

Inserts characters instead of numbers. Starting with the number specified in
the pszFirst parameter, this option inserts sequential characters using the
increment of the Unicode value specified in the pszInc parameter. Only one
character can be inserted at each line.

Return Values

The return value is 0 if succeeds.

Version

Supported on Version 19.1 or later.