slackbuilds/system/nano-syntax-highlighting
B. Watson aede1df2fe system/nano-syntax-highlighting: Wrap README at 72 columns.
Signed-off-by: B. Watson <yalhcru@gmail.com>
2022-03-17 12:38:09 -04:00
..
README system/nano-syntax-highlighting: Wrap README at 72 columns. 2022-03-17 12:38:09 -04:00
nano-syntax-highlighting.SlackBuild All: Support $PRINT_PACKAGE_NAME env var 2021-07-17 21:55:09 +02:00
nano-syntax-highlighting.info
slack-desc

README

nano-syntax-highlighting (Improved Nano Syntax Highlighting Files)

This repository holds {lang}.nanorc files that have improved
definitions of syntax highlighting for various languages.

Once there you should add the languages you want to your nano
configuration file ~/.nanorc or /etc/nanorc, for example:

## C/C++
include "/usr/share/nano-syntax-highlighting/c.nanorc"

Or to be less verbose, append content of the folder in one line
with wildcard:

For current user.
$ echo 'include "/usr/share/nano-syntax-highlighting/*.nanorc"' \
       >> ~/.nanorc

For all users.
# echo 'include "/usr/share/nano-syntax-highlighting/*.nanorc"' \
       >> /etc/nanorc