mirror of
https://github.com/scopatz/nanorc
synced 2024-10-31 23:00:00 +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 "^#.*"
|
||||||
|
|
1
nanorc
1
nanorc
@ -16,6 +16,7 @@ include "~/.nano/dot.nanorc"
|
|||||||
include "~/.nano/dotenv.nanorc"
|
include "~/.nano/dotenv.nanorc"
|
||||||
include "~/.nano/email.nanorc"
|
include "~/.nano/email.nanorc"
|
||||||
include "~/.nano/Dockerfile.nanorc"
|
include "~/.nano/Dockerfile.nanorc"
|
||||||
|
include "~/.nano/etc-hosts.nanorc"
|
||||||
include "~/.nano/fish.nanorc"
|
include "~/.nano/fish.nanorc"
|
||||||
include "~/.nano/fortran.nanorc"
|
include "~/.nano/fortran.nanorc"
|
||||||
include "~/.nano/gentoo.nanorc"
|
include "~/.nano/gentoo.nanorc"
|
||||||
|
Loading…
Reference in New Issue
Block a user