aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2023-04-05 17:45:49 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2023-04-05 17:52:25 +0300
commit1c88da4c67cb94bbd6805419468b14b8fe77390e (patch)
tree23200ceee67e9c2e516583c03b29071b0903381a /doc
parent39490d6d8f7a0581f2502529c07fa1c2d67e3237 (diff)
downloadsciteco-1c88da4c67cb94bbd6805419468b14b8fe77390e.tar.gz
Troff documents: fixed monospaced example blocks
* .SCITECO_TT should be before .EX, so that the indent is already monospaced. .SCITECO_TT_END still needs to be before .EE however, so that the next non-monospaced line is not "typeset" with a monospaced indent. * naturally only affects the Gtk UI
Diffstat (limited to 'doc')
-rw-r--r--doc/grosciteco.tes.1.in2
-rw-r--r--doc/sciteco.1.in2
-rw-r--r--doc/sciteco.7.template26
3 files changed, 15 insertions, 15 deletions
diff --git a/doc/grosciteco.tes.1.in b/doc/grosciteco.tes.1.in
index 3e21f8a..75af1e0 100644
--- a/doc/grosciteco.tes.1.in
+++ b/doc/grosciteco.tes.1.in
@@ -156,8 +156,8 @@ a \*(ST macro package with a man page called
\fBgreat-macro.tes\fP(7sciteco):
.
.RS
-.EX
.SCITECO_TT
+.EX
groff -Z -Tascii -man -M@pkgdatadir@ -msciteco \\
great-macro.tes.7sciteco >great-macro.tes.7sciteco.intermediate
grosciteco.tes great-macro.tes.7sciteco.woman great-macro.tes.7sciteco.woman.tec \\
diff --git a/doc/sciteco.1.in b/doc/sciteco.1.in
index 014c305..c24858a 100644
--- a/doc/sciteco.1.in
+++ b/doc/sciteco.1.in
@@ -56,8 +56,8 @@ invoked as scripts by using a Hash-Bang line like
.\" not allowed since they are not escaped correctly.
.SCITECO_TOPIC scripting
.RS
-.EX
.SCITECO_TT
+.EX
#!@bindir@/sciteco -m
.SCITECO_TT_END
.EE
diff --git a/doc/sciteco.7.template b/doc/sciteco.7.template
index 76c32bd..4c06770 100644
--- a/doc/sciteco.7.template
+++ b/doc/sciteco.7.template
@@ -138,8 +138,8 @@ By default function keys except Escape, Backspace and Return are
ignored by \*(ST.
By setting bit 6 of the \fBED\fP flag variable, function key handling
is enabled:
-.EX
.SCITECO_TT
+.EX
0,64ED
.SCITECO_TT_END
.EE
@@ -309,8 +309,8 @@ state flags enables the corresponding macro only for the specified
states.
For instance, to enable the \(lq^FRIGHT\(rq function key macro
only in the \(lqstart\(rq state, you could set:
-.EX
.SCITECO_TT
+.EX
1^_U[^FRIGHT]
.SCITECO_TT_END
.EE
@@ -1104,8 +1104,8 @@ different EOL styles.
The feature is enabled by default but is controlled by bit 4
of the \fBED\fP flag setting.
It can be turned off by executing:
-.EX
.SCITECO_TT
+.EX
16,0ED
.SCITECO_TT_END
.EE
@@ -1131,8 +1131,8 @@ enable C++ lexing and syntax highlighting automatically.
editing operations.
Hooks are by default disabled.
To enable them, set bit 5 in the \fBED\fP flags:
-.EX
.SCITECO_TT
+.EX
0,32ED
.SCITECO_TT_END
.EE
@@ -1272,8 +1272,8 @@ When specifying more than one modifier their order is insignificant.
The colon (\fB:\fP) modifier usually prevents a command from
failing and instructs it to return a condition (success/failure)
boolean instead.
-.EX
.SCITECO_TT
+.EX
1000:C=
.SCITECO_TT_END
.EE
@@ -1286,8 +1286,8 @@ to be changed for individual commands.
The alternative termination character must be specified just before
the first string argument.
For instance:
-.EX
.SCITECO_TT
+.EX
@FS/foo/bar/
.SCITECO_TT_END
.EE
@@ -1300,8 +1300,8 @@ the termination character is reset to Escape and another one may
be chosen.
This feature is especially useful for embedding TECO code in
string arguments, as in:
-.EX
.SCITECO_TT
+.EX
@^Um{
@FS{foo}/bar/
}
@@ -1390,8 +1390,8 @@ This allows the useful idioms of changing to the previous
buffer with \(lq-%*\fB$\fP\(rq, changing to the next
buffer with \(lq%*\fB$\fP\(rq and changing the current buffer
temporarily:
-.EX
.SCITECO_TT
+.EX
[* ! ...change current buffer... ! ]*
.SCITECO_TT_END
.EE
@@ -1409,8 +1409,8 @@ It is possible to set this register using the \fB^U\fP or
directory in a manner similar to the \fBFG\fP command.
This allows you to change the current directory temporarily
with the following idiom:
-.EX
.SCITECO_TT
+.EX
[$ ! ...change current directory... ! ]$
.SCITECO_TT_END
.EE
@@ -1566,8 +1566,8 @@ and
commands.
For instance to search in a macro without overwriting the
contents of the search register you could write:
-.EX
.SCITECO_TT
+.EX
[_ Sfoo$ ]_
.SCITECO_TT_END
.EE
@@ -1991,8 +1991,8 @@ on the stack since the beginning of the loop and can be used
to aggregate stack values.
For instance, the following command will leave the numbers
1 to 5 on the expression stack:
-.EX
.SCITECO_TT
+.EX
0Ua 5<%a:>
.SCITECO_TT_END
.EE
@@ -2005,8 +2005,8 @@ loop end command will not discard any values which is useful
for looping over the contents of the stack.
E.g. the following command will print the numbers 1 to 5
(actually every additional number argument):
-.EX
.SCITECO_TT
+.EX
1,2,3,4,5,-1:<"~1;'=>
.SCITECO_TT_END
.EE
@@ -2057,8 +2057,8 @@ This construct is especially useful in macros to imply default
parameter values.
For instance the following macro inserts \fIn\fP tab characters
(one by default):
-.EX
.SCITECO_TT
+.EX
@^Ut{
"~1'<9@I//>
}