added line numbering to view
This commit is contained in:
@@ -157,7 +157,7 @@ A simple line-oriented text editor and page-oriented text viewer for MicroPython
|
||||
Exports the following functions:
|
||||
|
||||
- `edit(filename)`: start an `ed`-like text editor (see below)
|
||||
- `view(filename)`: start a `more`-like pager for viewing a text file
|
||||
- `view(filename, lno=False)`: start a `more`-like pager for viewing a text file (pass an additional parameter to view it with line numbers)
|
||||
|
||||
The editor mode supports the following subset of POSIX ed commands in the standard `[range][command][param]` syntax:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user