Scrupulous Syntax Highlighting for /etc/hosts
- It highlights IPv4 and IPv6 addresses rigidly. For example: it won't match the impossible movie IP-address
189.23.290.13
. This makes it easier to spot errors. - It styles private IPv4 address-ranges and public IPs differently. It supports all three private ranges:
10.0.0.0/8
,172.16.0.0/12
, and192.168.0.0/16
.
Install via Package Control.
The regular expressions for IPv6 by David M. Syzdek were found on stackoverflow.com. I had to rewrite them in a different format so any faults or mistakes are probably mine.
Michael B Lyons provided fixes and some great additions.