ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Hosts

by tijn ST2/ST3

Scrupulous syntax highlighting for /etc/hosts

Details

Installs

  • Total 3K
  • Win 1K
  • OS X 1K
  • Linux 361
Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1
Windows 0 1 3 3 4 2 0 0 1 0 1 1 2 0 0 0 2 1 0 0 1 0 0 1 1 0 3 0 0 0 1 3 6 0 0 1 0 2 1 0 0 1 0 1 0 4
OS X 0 1 0 0 2 0 0 0 0 1 0 1 2 0 0 1 4 0 1 0 0 0 1 1 2 2 2 0 2 1 2 1 0 1 2 0 1 2 0 1 1 2 0 3 3 1
Linux 0 0 1 0 0 0 0 0 0 1 0 0 2 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1

Readme

Source
raw.​githubusercontent.​com

hosts.tmLanguage

Scrupulous Syntax Highlighting for /etc/hosts

Features

  • 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, and 192.168.0.0/16.

Installation

Install via Package Control.

Acknowledgements

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.