From 43ebabe05d89118b036c4bf07a296340b037b4d3 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sat, 11 Sep 2021 17:50:11 +0200 Subject: [PATCH] docs: mention how to properly colorize all types in nano's source code --- README.GIT | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.GIT b/README.GIT index c4b2489b..2c258c5c 100644 --- a/README.GIT +++ b/README.GIT @@ -84,7 +84,6 @@ Problems? Please submit any bugs you find in the code in git via the bug tracker on Savannah (https://savannah.gnu.org/bugs/?group=nano). - Contributing something ---------------------- @@ -114,3 +113,11 @@ to include 'set tabsize 4', or you could use -T4 on the command line. To make git display things as intended, you can do: $ git config --local core.pager "less -x1,5" + +To see all types that are used in nano's source code colorized as types, +you can add these lines to your ~/.nanorc: + + extendsyntax c color green "\" + extendsyntax c color green "\" + extendsyntax c color green "\" + extendsyntax c color green "\<([[:lower:]_]+(struct|type)|va_list)\>"