commit 310c971d501f9193a29743dab48c1f5c28728367
parent 3644d51b97083466faff3dc0006dd30cf2861e6e
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sun, 22 Sep 2019 12:31:12 +0200
docs: describe the new syntax-specific 'tabgives' command
Diffstat:
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/doc/nano.texi b/doc/nano.texi
@@ -1060,6 +1060,11 @@ Python files. If empty double quotes are specified, the comment/uncomment
functions are disabled; for example, @t{""} for JSON.
The default value is @t{"#"}.
+@item tabgives "@var{string}"
+Make the <Tab> key produce the given @var{string}. Useful for languages like
+Python that want to see only spaces for indentation.
+This overrides the setting of the @code{tabstospaces} option.
+
@item color @var{fgcolor},@var{bgcolor} "@var{regex}" @dots{}
Paint all pieces of text that match the extended regular expression "regex"
with the given foreground and background colors, at least one of which must
diff --git a/doc/nanorc.5 b/doc/nanorc.5
@@ -396,6 +396,11 @@ for Python files. If empty double quotes are specified, the comment/uncomment
function is disabled; for example, "" for JSON.
The default value is "\fB#\fP".
.TP
+.BI "tabgives """ string """
+Make the <Tab> key produce the given \fIstring\fR. Useful for languages like
+Python that want to see only spaces for indentation.
+This overrides the setting of the \fBtabstospaces\fR option.
+.TP
.BI "color " fgcolor , bgcolor " """ regex """ " \fR...
Paint all pieces of text that match the extended regular expression
\fIregex\fP with the given foreground and background colors, at least