mirror of
https://github.com/scopatz/nanorc
synced 2024-11-27 12:25:53 +01:00
Merge pull request #197 from esler/master
add syntax highlighting for /etc/hosts
This commit is contained in:
commit
9bea2503fd
15
etc-hosts.nanorc
Normal file
15
etc-hosts.nanorc
Normal file
|
@ -0,0 +1,15 @@
|
|||
## Make /etc/hosts nicer to read, see `man hosts 5` to see the format
|
||||
syntax "/etc/hosts" "hosts"
|
||||
|
||||
# IPv4
|
||||
color yellow "^[0-9\.]+\s"
|
||||
|
||||
# IPv6
|
||||
icolor green "^[0-9a-f:]+\s"
|
||||
|
||||
# interpunction
|
||||
color normal "[.:]"
|
||||
|
||||
# comments
|
||||
color brightblack "^#.*"
|
||||
|
Loading…
Reference in New Issue
Block a user