aboutsummaryrefslogtreecommitdiff
path: root/system/nano-syntax-highlighting/README
blob: cd28b1439ee0a31a48f5e0b1e4afe14d7c638bf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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