mirror of
https://github.com/scopatz/nanorc
synced 2024-11-25 01:45:39 +01:00
add syntax highlighting for /etc/hosts
This commit is contained in:
parent
ea044abe5e
commit
0e0396222c
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 a 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