Add Line Number

This filter adds line numbers to the start of every line. By default, each line number is five digits (with leading zeroes inserted where necessary), followed by a space, but this can be tailored.
The starting line number and the line number increment can both be entered. The maximum value for each field is 2147483647.
- Format
The format field allows the output of the number to be altered, which can be used for including static text on either side of the number or altering the appearance of the number (e.g. leading zeros, hexadecimal output etc). For more information on the allowed options, please see Format Specifiers. The right-click (or context) menu on this field supports Undo, Cut, Copy, Paste, Delete, Clear Entire Field, Select All and Select All And Copy and entering special characters.
- Don't Number Blank Lines
When this field is checked, blank lines do not have a line number printed on the left hand side. This can be used to make the output look cleaner and break up sections of code.
- Skip Increment on Blank Lines
When this field is checked, blank lines are not counted. Don't Number Blank Lines must be checked for this field to be enabled.
- Don't Reset at end of file
When this field is checked, the line number does not get reset to First line number when the end of a file is reached. Instead, it keeps counting. This can be very useful when numbering inside a restriction or sub filter, as these both treat the restricted text as a new file.
|