-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1e70e3a
commit 433c3e7
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Line Numbers | ||
|
||
In some sense, line numbers aren't meaningful in Synless: | ||
|
||
- For screen readers, there is literally no such thing as a line. | ||
- The notation you display with may be very different from the notation printed. E.g. you could have | ||
Rust displayed with indentation instead of braces, and Python displayed with braces instead of | ||
indentation. | ||
|
||
However, they are important when interfacing with the outside world. Thus we'll store them exactly | ||
when doing so! Upon save, mark every node in the document with the _first_ line number it was | ||
printed on. Display the line number for the current node in the status bar. You can jump to a node | ||
by line. |