aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc
diff options
context:
space:
mode:
authorRobin Haberkorn <rhaberkorn@fmsbw.de>2026-09-27 00:12:30 +0200
committerRobin Haberkorn <rhaberkorn@fmsbw.de>2026-09-27 00:12:30 +0200
commite48f1a6b5319224a92a8e7d60cbf5a4098d14ff5 (patch)
tree466ba5783925972a079fd5921237e9f29878d35a /doc
parente371b5fc710c597e175e6b7d7645b3a224a731a1 (diff)
^E at the end of a line in a string argument "swallows" the EOL character
This is similar to `\` at the line end in many languages like C and allows you to split a very long string argument over several lines without adding the EOL characters themselves. The TECO equivalent to `\` would be ^Q, but it would be a semantic exception since ^Q (escaping) is supposed to _preserve_ the value of the following character. Therefore I decided to use ^E instead. This works with DOS and Mac line breaks as well.
Diffstat (limited to 'doc')
-rw-r--r--doc/sciteco.7.template5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/sciteco.7.template b/doc/sciteco.7.template
index 14aee77..86ca68f 100644
--- a/doc/sciteco.7.template
+++ b/doc/sciteco.7.template
@@ -1878,6 +1878,11 @@ Analogous to \fB^V\fP, but upper-cases characters.
Since \fB^W\fP is an immediate editing command, this can practically be typed
only with upcarets in interactive mode.
.TP
+.SCITECO_TOPIC ^E^J ^E^M^J ^E^M
+.BI ^E eol
+\fB^E\fP followed by an end of line character (LF, CRLF or CR) is ignored,
+so you can split a long string argument over several lines.
+.TP
.SCITECO_TOPIC ^E\[rs] ^E\[rs]q
.BI ^E\(rs q
Expands to the formatted number stored in the