From 310c971d501f9193a29743dab48c1f5c28728367 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 22 Sep 2019 12:31:12 +0200 Subject: [PATCH] docs: describe the new syntax-specific 'tabgives' command --- doc/nano.texi | 5 +++++ doc/nanorc.5 | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/doc/nano.texi b/doc/nano.texi index 9576d2ad..175222aa 100644 --- 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 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 index d59c3a84..7a742093 100644 --- 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 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