GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - tijn/hosts.tmLanguage: Scrupulous syntax highlighting for /etc/hosts

BranchesTags
Open more actions menu

Latest commit

 

History

57 Commits
57 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
demo
demo
 
 
messages
messages
 
 
test
test
 
 
.gitattributes
.gitattributes
 
 
.python-version
.python-version
 
 
Hosts.sublime-commands
Hosts.sublime-commands
 
 
Hosts.sublime-settings
Hosts.sublime-settings
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
Symbol List.tmPreferences
Symbol List.tmPreferences
 
 
comments.tmPreferences
comments.tmPreferences
 
 
hosts.sublime-syntax
hosts.sublime-syntax
 
 
messages.json
messages.json
 
 
support.py
support.py
 
 

Repository files navigation

hosts.tmLanguage

Scrupulous Syntax Highlighting for /etc/hosts

Screenshot

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 uses different scopes (i.e. different colors) for some special IP ranges:
    • Loopback: ::1 and 127.0.0/8
    • Private: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, and fc00::/7
  • Hostnames are in the local index: Ctrl+R (MacOS: Cmd+R)
  • Hoverable tooltips on Punycode hostname segments to render internationalized domain names.
  • Command Palette item to open Hosts file.

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.

Michael Lyons provided fixes and some great additions. And after that he rewrote the whole thing to add support for IPv6 (though still based on David M. Szydek).

About

Scrupulous syntax highlighting for /etc/hosts

packagecontrol.io/packages/Hosts

Resources

Readme
MIT license
Activity

Stars

10 stars

Watchers

2 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.